Open Interpretability Models Contributors Research Posts About

Mechanistically Analyzing the Effects of Fine-Tuning on Procedurally Defined Tasks

Source

Citation. Samyak Jain (University of Cambridge), Robert Kirk (University College London), Ekdeep Singh Lubana (University of Michigan and Harvard), Robert P. Dick (University of Michigan), Hidenori Tanaka (Harvard and NTT Research), Edward Grefenstette (UCL), Tim Rocktäschel (UCL) and David Krueger (Cambridge). Jain, Kirk and Lubana are co-first authors. "Mechanistically analyzing the effects of fine-tuning on procedurally defined tasks". arXiv 2311.12786 [cs.LG]. Versions: v1 of 21 November 2023 and v2 of 21 August 2024. We read v2. Paper. The PDF header says "Published as a conference paper at ICLR 2024". We did not check the proceedings page. The paper gives no link to its own code or data. It says that its TinyStories code builds on karpathy/llama2.c, and it uses the public TinyStories-Instruct dataset. Funding: BERI for Jain, NSF awards CNS-2008151 and CNS-2211509 for Lubana, and the Foundation AI CDT at UCL for Kirk. The TinyStories evaluation uses a GPT-3.5 classifier, fine-tuned through the OpenAI API.

Status. Planned. #5125 (narrow fine-tunes of Qwen2.5-0.5B and its instruct model) would use the paper's reverse fine-tuning as a test of whether a failed explanation comes back. The page also proposes one follow-up, which looks for a small set of neurons that holds the base-to-instruct failures. The paper studies full fine-tuning only, not LoRA, so the issue's adapter question is outside it.

Read. On 2026-11-19 a model (Claude Opus 5.5) downloaded the arXiv v2 PDF and extracted its text with pdftotext. It read the text directly. We have in the source's own words the abstract, Sections 1 to 6, the acknowledgements and the author contributions. We also have Appendices B (datasets), D (training, evaluation and the pruning protocol) and E (the jailbreak, sample-efficiency and randFT results). We have Appendix F (TinyStories) in full. Appendices G and H hold more Tracr and PCFG results. Of these, we read the figure captions, the observations and the table titles, but not every table cell. We did not see the figures as images. So no number below comes from a plot, only from text or Table 1. We read the reference list in part.

Summary

Claim. Fine-tuning a pretrained model at a small learning rate seldom changes its pretrained capabilities. In place of a change, the model learns a small, local transform on top of a capability, which the authors call a wrapper. Pruning a few neurons removes the wrapper. A short further fine-tune on pretraining data brings the capability back, in fewer steps than a control needs to learn it.

Method.

Findings, as the source reports them.

Setting Result
PCFG counter, small learning rate, pruning (Figure 7 caption) Pretraining accuracy rises after pruning only 5 to 15 neurons. Fine-tuning accuracy falls to match.
PCFG counter, reFT, strongly relevant capability (Figure 9 caption) Good pretraining accuracy after 0.1K to 1K iterations.
PCFG counter, reFT, weakly relevant capability (Figure 9 caption) About 3K iterations.
PCFG counter, Scr. + FT baseline (Figure 9 caption) Perfect accuracy only at 4.5K iterations, and only at the larger rate η_M.
PCFG counter, linear probes (Figure 8 caption) The pretraining count can be read with a trend like the pretrained model's. It drops only at η_M with a weakly relevant capability.
Tracr counter, attention (Figure 10 caption) The model keeps attending to the pretraining token a. Only a large rate with no spurious attribute changes the pattern.
PCFG jailbreak tokens (Appendix E, Figure 24) Other task-family tokens bring back the a-count after fine-tuning, when the pretraining prior on b was high. Probes read the a-count in middle layers even with the fine-tuning token.
randFT, trained to give wrong pretraining answers (Appendix E, Figure 28) reFT is about as sample-efficient as after the main protocol, and more than both baselines.
TinyStories, twist share during reFT at 0, 30, 300 and 3,000 iterations (Table 1) Filtering at η_M: 44%, 81%, 81%, 82%. Filtering + Randomisation at η_M: 12%, 56%, 69%, 75%. Control not pretrained on twists: 12%, 31%, 44%, 81%.
TinyStories, reFT loss (Figure 11 caption) Fine-tuned models' loss falls within 30 to 300 iterations. The controls never reach the same loss.
TinyStories twist classifier (Appendix F) 92% accuracy on a held-out test set.

Where the claims go beyond the evidence

The authors state their scope clearly. Section 2 limits "fine-tuning" to further training at a rate one to three orders of magnitude below pretraining. Section 3 says that their idealised notion of capability will not hold for every capability of a real model. They use several tools because each tool comes with known pitfalls.

Use in this repo