Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distribution
Citation. Ananya Kumar, Aditi Raghunathan, Robbie Jones, Tengyu Ma and Percy Liang (Department of Computer Science, Stanford University). "Fine-Tuning can Distort Pretrained Features and Underperform Out-of-Distribution". arXiv:2202.10054, version 1 of 21 February 2022, the only version. The arXiv comment gives the venue as "ICLR (Oral) 2022". The text we read gives no code or data link. Funding: the Rambus Corporation Stanford Graduate Fellowship, the Open Philanthropy Project, NSF Award 1805310 and a Google PhD Fellowship. Tengyu Ma names a Google Faculty Award, NSF IIS 2045685, the Sloan Fellowship, JD.com, SAIL and SDSI.
Status. Planned. #4782 (catastrophic interference, weight-space programming and LoRA) would use it. The page proposes one follow-up issue, which tests the paper's main prediction on the base-instruct pairs of docs/analyses/base-instruct.md.
Read. On 2026-11-19 we downloaded the arXiv PDF (54 pages) and extracted its text with pdftotext. The reader was this page's author, a model (Claude Opus 5.5). We read in the source's own words the abstract, sections 1 to 6, the acknowledgements, Appendix B (B.1 to B.5) and Appendix C. We read Tables 1 to 9 as text. In Appendix A, we read A.1, the start of A.2 and the formal statements of the theorems. We did not check each step of the proofs. We did not see the figures as images, so this page gives only their captions. We did not read the ICLR camera-ready version or the references in full.
Summary
Claim. Full fine-tuning of a pretrained model can give lower accuracy out of distribution (OOD) than linear probing, although it gives higher accuracy in distribution (ID). This happens when the pretrained features are good and the shift is large. A random head makes fine-tuning change the features of the training inputs, but not of inputs outside their span. Linear probing first and full fine-tuning after (LP-FT) avoids most of this.
Method.
- Theory. The model is a two-layer linear network, f(x) = vᵀBx, for regression with squared loss. The feature extractor B starts at a pretrained B₀, and the head v starts random or at zero. Training is gradient flow. The ID training inputs span a subspace S, and the OOD inputs have directions outside S.
- Main theorem (3.3). The gradient to B is zero for every direction orthogonal to S. So fine-tuning changes the features of ID inputs only. Theorem 3.3 gives a lower bound on the OOD error of fine-tuning at every time t. The bound grows with the head's initial alignment error. Theorem 3.5 compares the two OOD errors. As B₀ approaches the true features, the ratio of linear probing's error to fine-tuning's goes to 0. The distance between feature extractors is a minimum over rotations (Definition 3.1).
- LP-FT (Proposition 3.7). With perfect features, fine-tuning from the linear-probed head keeps zero OOD error at all times. With a random head, the OOD error stays above zero at all times. The authors could not prove an upper bound for imperfect features.
- Experiments. Ten distribution shifts: CIFAR-10 to STL and to CIFAR-10.1, Breeds Living-17 and Entity-30, DomainNet, FMoW geo-shift, and ImageNet to ImageNetV2, -R, -A and -Sketch. The models are ResNet-50 with MoCo-v2, CLIP or MoCo-TP pretraining. ImageNet uses a CLIP ViT-B/16.
- Protocol. Fine-tuning sweeps 6 learning rates with a cosine schedule, and early-stops on ID validation accuracy. Linear probing is ℓ2-regularised logistic regression on frozen penultimate features. Each setting runs 3 seeds, and tables give 90% confidence intervals. ImageNet runs once with 3 learning rates, and LP-FT there uses the same compute as fine-tuning. The authors use OOD data only for evaluation, except in one ablation.
- Feature change. The Euclidean distance of each example's penultimate features before and after tuning, averaged over a validation set.
Findings, as the source reports them. A row marked derived is our arithmetic on the source's tables, not a number in the text.
| Setting | Result |
|---|---|
| ID accuracy, 6 datasets (Table 1) | Average 85.1 for fine-tuning, 82.9 for linear probing, 85.7 for LP-FT. Fine-tuning beats linear probing on 5 of 6, all but DomainNet |
| OOD accuracy, 10 datasets (Table 2) | Average 59.3 for fine-tuning, 66.2 for linear probing, 68.9 for LP-FT. Linear probing wins on 8 of 10, all but CIFAR-10.1 and ImageNetV2 |
| Largest OOD gaps (Table 2) | DomainNet: 55.5 fine-tuning, 79.7 linear probing. ImageNet-R: 52.4 against 70.6. ImageNet-A: 27.8 against 45.7 |
| Early stop and learning rate chosen on OOD data (Table 4) | Average 61.3 for fine-tuning, 67.1 for linear probing. FMoW is the only dataset that changes order |
| Feature change, Living-17 (section 4.3) | Fine-tuning: 0.0188 ± 0.0001 ID, 0.0167 ± 0.0001 OOD. LP-FT: 0.0011 ID, 0.0009 OOD, "20× smaller" |
| Feature change, 5 datasets (Tables 5, 6) | ID features move more than OOD features in 9 of 10 cases. The exception is fine-tuning on FMoW (4.87 ID, 5.62 OOD, ×100) |
| LP-FT against fine-tuning, feature change (Tables 5, 6) | 30× less on CIFAR-10 (text). Entity-30: about 100× less. FMoW: about 9× less. DomainNet: about 1,000× less (derived) |
| Weaker features, MoCo-v1, Living-17 (section 4.3) | Fine-tuning 96 ID and 71 OOD, against 92 and 66 for linear probing |
| Small shift, CIFAR-10.1 (section 4.3) | Fine-tuning 92.3, linear probing 82.7, LP-FT 93.5 |
| Other methods, Living-17 (Table 9), ID and OOD | Fine-tuning 97.1, 77.7. Head at 10× learning rate 97.2, 80.4. Weights pulled toward pretrained 97.1, 80.0. Side-tuning 95.5, 81.0. LP-FT 97.8, 82.6. Linear probing 96.5, 82.2 |
| CLIP ViT-B/16, Living-17 (Table 8), ID and OOD | Linear probing 97.5, 87.6. Fine-tuning 97.8, 81.5. LP-FT 98.0, 86.1, which "closes 75% of the gap" |
Where the claims go beyond the evidence
- The theory and the experiments differ in kind. The proofs are for a two-layer linear regression trained by gradient flow. The experiments are deep classifiers trained by SGD with a cosine schedule. The authors name non-linear activations and layerwise learning rates as open questions. Section 4.3 tests the theory's predictions, but it cannot test its mechanism in a deep network.
- The LP-FT theory needs perfect features. Proposition 3.7 holds only when B₀ equals the true features up to rotation, and then linear probing alone has zero OOD error. The authors state that they could not prove an upper bound for imperfect features. So the theory explains why fine-tuning loses, more than why LP-FT wins.
- The "10×–100×" range does not match all the tables. The introduction says that LP-FT changes features 10× to 100× less than fine-tuning. Our ratios from Tables 5 and 6 are about 9× on FMoW and about 1,000× on DomainNet. On DomainNet, fine-tuning moves the features by 207.6 (×100), about 100 times more than on the other datasets. The text does not explain this.
- The feature-change prediction holds on average, not everywhere. The ID minus OOD difference is small on Living-17 (0.0188 against 0.0167). On FMoW the OOD features move more than the ID features. The theory predicts that OOD features do not move at all outside S. The authors report the FMoW exception.
- Few seeds, and no intervals on ImageNet. Each setting has 3 seeds and 90% intervals, and ImageNet has one run. Many LP-FT gains over linear probing are within 1 point, for example 82.6 against 82.2 on Living-17.
- Small inconsistencies. Fine-tuning's OOD accuracy on Living-17 is 77.8 in Table 2 and 77.7 in Table 9. Training from scratch on Living-17 is 89.3 ID in Appendix B.1 and 92.4 in Table 9. The same appendix says it ran for 300 epochs, and B.4 says 450.
- One augmentation difference. On ImageNet, fine-tuning used augmentations and linear probing did not. The authors tested fine-tuning without augmentations and report that it did worse.
The authors state that the pretrained features must be good and the shift large, and they show two cases where fine-tuning wins (MoCo-v1 and CIFAR-10.1). They choose all hyperparameters on ID data and report the OOD-selected ablation apart.
Use in this repo
- The repo has a measure of feature change after tuning, per neuron.
docs/analyses/base-instruct.mdcompares each VERIFIED pole of a Qwen2.5 base model with the same index in its instruct model. On Qwen2.5-1.5B, 38 of 43 hypotheses keep, and the activation correlation is at least 0.953, median 0.983. On Qwen2.5-0.5B, 252 of 311 keep, at a median correlation of 0.974. The paper's measure is one Euclidean distance over the whole feature vector, so it cannot say which units moved. - The paper's theory is blind to single units. Definition 3.1 takes the minimum over all rotations of the features. So a rotation of the feature space counts as no change in the theory, but it could change every neuron. A neuron's explanation depends on the basis. The repo's per-index correlation is therefore a stricter test than the paper's distance. The paper says nothing about neurons, explanations or random baselines for them.
- The theory may explain why instruction tuning moves the poles so little. In the theory, a head far from the right head drives large feature change. Instruction tuning keeps the pretrained unembedding, so it resembles LP-FT more than fine-tuning with a random head. That is consistent with correlations of 0.95 and more. This is our inference, and the paper tests only image classifiers.
- The paper's main prediction points at the chat template. The theory says that tuning moves features most for inputs like the tuning data. Instruction tuning trains on text inside the chat template. The repo reads its correlations only on plain text from
corpus.jsonl, which is nearer to the theory's OOD inputs. With probes inside the template, the keep share falls from 88% to 70% on Qwen2.5-1.5B, and from 81% to 72% on Qwen2.5-0.5B. - That chat result has a confound, so it is not yet evidence for the theory.
scripts/base_instruct.py --chatreads only the instruct model inside the template, and the base readings stay plain text. So the fall in sensitivity can come from the template text, from the tuning, or from both. Two measures would separate them: the base model's own readings inside the template, and the correlation on a chat-formatted sample. We propose this as a follow-up issue below. It extends #4105, which adds a second family and more template variants, but not this control. - A second predictor for #5118. #5118 asks whether a pole's diagonal Fisher predicts whether its explanation keeps. The paper suggests a predictor from the data: how strongly the pole fires on chat-formatted text in the base model. A pole that the tuning data activates sits in the tuning span, so the theory expects it to move more. We propose this as a comment on #5118, not as a new issue.
- Evidence for the fix campaign, not a design. On Living-17, pulling the weights toward their pretrained values raised OOD accuracy from 77.7 to 80.0. A 10× head learning rate gave 80.4, and LP-FT gave 82.6. The theory says that a narrow fix changes the features of the inputs it trains on. A fix for the #4781 " days" error could then move poles on inputs like its training prompts more than elsewhere. This is our inference.
fixing-models.mdnotes that the repo has no fine-tuning or weight-edit code. - A question for the maintainer. Should a weight fix for #4781 measure each VERIFIED pole's correlation on two sets: text like the fix prompts, and plain
corpus.jsonltext? That is a choice in the fix campaign, so this page records it as a question and opens no issue. - Pretraining shows the same gap between loss and features. In
papers/neuron-development/, Pythia-70m's loss settles by step 16,000, but the 86 VERIFIED poles correlate with their final form at a median of only 0.62 there. The paper likewise shows that ID accuracy does not reveal how far the features moved. The two settings differ: one is pretraining, the other is transfer to a new task. - The word "probe" has two meanings here. The paper's linear probe is a classifier trained on frozen features. The repo's probes are the reviewer's test texts.
linear-probe-evidence.mdcovers the first meaning. A reader must not mix the two.