A diagnostic model cleared for use at one hospital often loses accuracy at the next hospital, where scanners, stains, and patient populations differ. One safe fix is to leave the cleared model untouched and add a small correction on top of its outputs at each new site. This correction is a "residual head": a lightweight layer that learns only how the new site's decision rule differs from the original. The hard part is deciding how strongly to hold that correction back, which statisticians call choosing the regularization strength. A new site typically supplies a few dozen to a few hundred labeled cases, and those labels vary in quality. With so few cases, tuning the regularization strength by cross-validation gives noisy, unstable choices. Set it too weak and the head memorizes site artifacts and annotation errors. Set it too strong and the head fixes nothing.
We propose to import a trick from sparse regression. The square-root Lasso fits the square root of the loss instead of the loss itself. This change makes the best regularization strength roughly independent of how noisy the data are, so a single fixed value works across noise levels. We apply the same idea to residual classifier heads. The result is a site-adaptation procedure with no target-specific tuning. It also estimates a per-site noise level, which gives a principled rule for deciding when a site should not be adapted at all. The claim we test is concrete. For a standard penalized residual head, the best regularization strength moves by large factors across sites and label-noise levels. For the square-root head it should stay nearly constant. If that holds, the procedure should beat cross-validated tuning when target labels are scarce.
Core Claim
Residual adaptation is statistically attractive because the difference between the source and target decision rules is usually simpler than the target rule itself. Hypothesis Transfer Learning via Transformation Functions and Generalization Bounds for Transfer Learning under Model Shift show that excess risk falls faster when this difference is smoother than the target function. Those rates, however, assume the penalty on the offset is set correctly. Classical theory says the correct penalty scales with the noise level. In practice, deep residual methods fix the penalty by hand. Unsupervised Domain Adaptation with Residual Transfer Networks uses fixed trade-off weights among alignment, entropy, and residual terms. Residual Parameter Transfer for Deep Domain Adaptation regularizes $\|\Delta W\|$ with a heuristic scale.
Separately, Square-root lasso: pivotal recovery of sparse signals via conic programming shows that removing the square on the residual norm makes the optimal penalty independent of the noise scale. It attains near-oracle rates without knowing $\sigma$, even under heavy-tailed noise. Generalized Concomitant Multi-Task Lasso for Sparse Multimodal Regression extends the idea with a jointly convex program that estimates a separate noise scale for each block of sensors. This automatically down-weights noisy modalities in brain-imaging regression. Neither line of work has touched classification, deep features, or transfer.
Our contribution is to transplant the concomitant form onto a residual classification head sitting on a frozen medical model. We then test whether its tuning-free property survives the move from linear regression to cross-entropy.
Method
Let the cleared source network produce logits $f_s(x)$ and penultimate features $\phi(x) \in \mathbb{R}^d$. Both are frozen and standardized using source statistics. At a target site we deploy $f_t(x) = f_s(x) + W\phi(x) + b$, fit on $n$ labeled target cases $(x_i, y_i)$ by solving
$$\min_{W,\, b,\, \sigma \ge \sigma_0} \; \frac{1}{\sigma n}\sum_{i=1}^{n} \ell\big(y_i,\, f_s(x_i) + W\phi(x_i) + b\big) + \sigma + \frac{\lambda}{\sqrt{n}}\,\|W\|_{2,1}.$$
The symbols are as follows. $\ell$ is cross-entropy. $\sigma$ is a per-site noise scale that the program estimates. $\sigma_0$ is a small floor. $\|W\|_{2,1}$ sums the Euclidean norms of $W$'s columns, which switches whole feature directions on or off.
Minimizing over $\sigma$ gives $\sigma = \sqrt{\hat L}$, where $\hat L$ is the average training loss. The objective is therefore equivalent to penalizing the square root of the empirical risk, the classification analogue of the square-root Lasso. The floor $\sigma_0$ plays the smoothing role it plays in the concomitant Lasso. It removes the singularity that arises when an overparameterized head drives the training loss to zero, which is exactly the regime of a few hundred cases and $d$ in the thousands.
The penalty $\lambda$ follows a universal rule of the Belloni type, depending only on $n$, $d$, and a confidence level. It is never tuned on target data. The column-grouped penalty borrows the structure and solvers of The Group Square-Root Lasso: Theoretical Properties and Fast Algorithms. It also yields an auditable change: a short list of feature directions whose weights moved.
The optimality conditions give a built-in abstention test. The zero correction $W=0$ is optimal exactly when the largest column-norm of the target-loss gradient at the source model falls below $\lambda\sqrt{\hat L(0)}$. When the test passes, the site keeps the cleared model unchanged.
When a vendor adapts to several sites at once, we fit site-specific offsets with a separate $\sigma_k$ for each site $k$, in the spirit of the block-homoscedastic concomitant Lasso. Sites with noisier labels then have less influence on any shared component.
We are explicit about what is not guaranteed. In linear regression, pivotality is exact because the fit term and the penalty both scale linearly with the noise. With softmax outputs this argument holds only approximately, through a local quadratic expansion of the loss around the source model. Whether the approximation holds is the central empirical question, not an assumption. As an ablation, we also run a square-root Brier variant, $\|y - \mathrm{softmax}(f_t(x))\|_2$, which is geometrically closer to the original square-root Lasso.
Research Program
We will build the residual head and its solver, using block coordinate descent with closed-form updates for $\sigma$ as in the concomitant Lasso. We will fit it on frozen models trained at source sites. The program has three phases.
Pivotality test. For each target site and each injected label-noise rate, we find the oracle penalty. This is the value maximizing performance on a large held-out labeled target set that no method is allowed to see. We then measure how much the oracle penalty moves for the standard penalized head versus the square-root head.
Scarce-label comparison. Using the universal $\lambda$, we compare the square-root head against tuned competitors while varying the number of target labels.
Abstention validation. We check whether the abstention rule fires on sites where adaptation does not help, and stays silent where it does.
This design takes seriously the stability-versus-tuning trade-off analyzed in Square Root LASSO: Well-Posedness, Lipschitz Stability, and the Tuning Trade-Off. A tuning-free rule is only useful if the solution is not overly sensitive to the constant in the rule. We therefore report performance over a band of constants around the default.
Our work is distinct from Smoothness Adaptive Hypothesis Transfer Learning. That work adapts kernel regularization to unknown smoothness differences between source and target. We adapt to unknown noise level, which is the quantity that varies most across hospitals with different annotators.
Our work is also distinct from Active Transfer Learning under Model Shift. That method uses uncertainty in the offset to choose which target points to label. We use the estimated noise scale to set regularization and to decide whether to adapt. The two could be combined later.
Unsupervised adaptation is out of scope. The square-root loss needs labeled residuals, and Extending the WILDS Benchmark for Unsupervised Adaptation reports that standard unsupervised methods often barely beat ERM on real medical shift. That finding supports focusing on the few-label regime instead.
Baselines
The naive reference is the locked source model applied unchanged. On Camelyon17-WILDS, Extending the WILDS Benchmark for Unsupervised Adaptation reports 70.8% out-of-distribution accuracy for ERM. On the three-hospital chest X-ray setup, Regulating AI Adaptation: An Analysis of AI Medical Device Updates reports cross-site AUC drops of up to 0.18. Any adaptation that fails to beat the locked model should instead trigger abstention.
The strongest direct competitor is the same residual head with a standard squared-loss-free objective: cross-entropy plus a group penalty. Its penalty is chosen by 5-fold cross-validation on the target labels, with the one-standard-error rule. This is exactly what a careful practitioner would do. To keep the comparison fair, it uses the same frozen features, the same labeled cases, and the same solver. It also gets a penalty grid of 20 values, so it spends more compute than our method. We beat it if our head has higher target AUC or accuracy, averaged over sites and noise rates, at $n \le 200$. We also require our result to lie closer to the oracle-tuned head, with non-overlapping bootstrap intervals.
A second competitor selects the penalty by maximizing the Laplace-approximated marginal likelihood (empirical Bayes). This is also tuning-free, and in our view it is the most serious threat. No reported result was found on Lacuna for this method on these benchmarks.
Stronger interventions. We include full fine-tuning at the target site. Regulating AI Adaptation reports that it recovers up to 0.23 AUC locally, but at an average cost of 0.176 AUC on the original site. We also include the best source-side method on Camelyon17. Out-of-Distribution Robustness via Targeted Augmentations reports that targeted stain jitter raises out-of-distribution accuracy from 75.3% to 90.5%. Because augmentation changes the source model rather than the target correction, we treat it as a stronger starting backbone. We report our head on top of it, and expect smaller but nonzero gains there.
Ablations. Four ablations isolate the key ingredient. The first uses the square-root loss without the $\sigma$ floor. The second fixes $\sigma$ to the source-site value, removing concomitant estimation. The third swaps cross-entropy for the square-root Brier loss. The fourth replaces the group penalty with plain $\ell_2$.
Why not just…?
Why not just cross-validate the penalty on the target labels? This is the real threat. With a few hundred labels it may already work well enough. The argument against it is variance: 5-fold cross-validation on 50–200 cases, with a few positives each, gives unstable penalty choices. Label noise at the site makes validation scores noisier still. We do not assume this problem; we measure it. The scarce-label comparison reports each method's gap to the oracle as a function of $n$. If cross-validation matches the square-root head at $n=100$, the practical case for our method shrinks to reproducibility and abstention. We would report that honestly.
Why not just correct the output bias or temperature? Much cross-site shift in medicine may be a change in disease prevalence, which an intercept alone can absorb. We include an intercept-only head as a baseline. We also report how often the group penalty in our head selects zero columns, meaning it keeps only $b$. If intercept-only correction captures most of the gain, the story narrows to choosing between bias correction and a full correction. The abstention and column-selection tests are designed to make that choice without tuning.
Why not just keep a separate fine-tuned model per site? Deploying site-specific copies also avoids forgetting at the source site. Our residual head avoids forgetting only by construction, so we do not claim that as a result. What fine-tuning lacks is a small, bounded change that a regulator could inspect. Regulating AI Adaptation finds that only 6 of 416 devices were ever retrained, which suggests that large updates are rarely approved. Fine-tuning also inherits the same penalty-selection problem, in a far higher-dimensional space. We compare against full fine-tuning at matched label budgets to show whether the extra capacity pays off with scarce labels.
Why not adapt the input instead, as INPUTADAPTER does? Adapt the Data, Not the Model keeps the predictor frozen by transforming target inputs, and was shown on clinical time series. An input adapter for gigapixel pathology or radiographs is a much larger model, needing more data than a linear head. It also offers no noise-adaptive regularization. We treat input adaptation as complementary rather than competing, and leave the comparison to future work unless a pathology implementation proves feasible.
Proposed Experiments
The primary testbed is Camelyon17-WILDS, from WILDS: A Benchmark of in-the-Wild Distribution Shifts. We train on its source hospitals and treat each held-out hospital as a deployment site. From each site we draw labeled subsets of $n \in \{25, 50, 100, 200, 500\}$ patches, grouped by slide to avoid leakage, and evaluate on the remainder. We inject symmetric label flips at 0%, 10%, 20%, and 30% to mimic the observer variability documented in the CAMELYON dataset.
The second testbed reproduces the NIH / Stanford / Beth Israel pneumothorax setup of Regulating AI Adaptation with a DenseNet-121 source model. We report target AUC and AUC at the source site. Source-site AUC stays unchanged for the head by construction, but will drop for the fine-tuning baselines.
A third, exploratory testbed applies the head as a residual 1×1 convolution on AMOS segmentation, from AMOS: A Large-Scale Abdominal Multi-Organ Benchmark. There, unseen-scanner drops exceed 20% mDice and scanners supply natural blocks for per-site noise scales.
The decisive check is the pivotality plot. For each site and noise rate we plot the oracle penalty, normalized by the universal rule. The proposal succeeds if this ratio stays within a factor of about two for the square-root head, while varying by an order of magnitude for the standard head. It fails if the two curves look alike. That would mean the pivotal property does not survive nonlinearity, and any gains would have to be explained otherwise.
Secondary checks cover three things. First, whether our head beats cross-validated and empirical-Bayes tuning at $n \le 200$. Second, whether each site's estimated $\sigma_k$ tracks its injected noise rate monotonically. Third, whether the abstention rule declines to adapt on sites where the oracle head does not beat the locked model, with false-abstention and false-adaptation rates reported over all site–noise–$n$ combinations.
References
- Hypothesis Transfer Learning via Transformation Functions
- Generalization Bounds for Transfer Learning under Model Shift
- Unsupervised Domain Adaptation with Residual Transfer Networks
- Residual Parameter Transfer for Deep Domain Adaptation
- Square-root lasso: pivotal recovery of sparse signals via conic programming
- Generalized Concomitant Multi-Task Lasso for Sparse Multimodal Regression
- The Group Square-Root Lasso: Theoretical Properties and Fast Algorithms
- Square Root LASSO: Well-Posedness, Lipschitz Stability, and the Tuning Trade-Off
- Smoothness Adaptive Hypothesis Transfer Learning
- Active Transfer Learning under Model Shift
- Extending the WILDS Benchmark for Unsupervised Adaptation
- Regulating AI Adaptation: An Analysis of AI Medical Device Updates
- Out-of-Distribution Robustness via Targeted Augmentations
- Adapt the Data, Not the Model: Input-Space Adaptation for Frozen Time-Series Predictors
- WILDS: A Benchmark of in-the-Wild Distribution Shifts
- 1399 H&E-stained sentinel lymph node sections of breast cancer patients: the CAMELYON dataset
- AMOS: A Large-Scale Abdominal Multi-Organ Benchmark for Versatile Medical Image Segmentation