While critical for alignment, Supervised Fine-Tuning (SFT) incurs the risk of catastrophic forgetting, yet the layer-wise emergence of instruction-following capabilities remains elusive. We investigate this mechanism via a comprehensive analysis utilizing information-theoretic, geometric, and optimization metrics across model scales (1B-32B). Our experiments reveal a distinct depth-dependent pattern: middle layers (20%-80%) are stable, whereas final layers exhibit high sensitivity. Leveraging this insight, we propose Mid-Block Efficient Tuning, which selectively updates these critical intermediate layers. Empirically, our method outperforms standard LoRA up to 10.2% on GSM8K (OLMo2-7B) with reduced parameter overhead, demonstrating that effective alignment is architecturally localized rather than distributed. The code is publicly available at https://anonymous.4open.science/r/base_sft.
Figures & tables
Figure 1: Representational divergence metrics (CKA, Cosine Similarity and Mean Shift) across layers.
Figure 2: Intrinsic representation metrics across layers for Base and SFT models.
Figure 3: Next-token prediction accuracy of layer-wise probing, from left to right is GSM8K, MMLU, IFEval, WikiText, HumanEval, MT-Bench, and ToxiGen dataset.
Figure 4: Layer-wise magnitude of weight updates ( L2 norm).
Figure 5: Correlation between layer-wise magnitude of weight updates and representation metrics, OLMo2-7B (left), OLMo2-13B (right).
Figure 6: Model performance evaluation under block-wise layer swapping between Base and SFT weights, from left to right is MMLU, GSM8K, WikiText, HumanEval, MT-Bench, ToxiGen dataset.
Figure 7: Mid-Block Efficient Tuning, from left to right is OLMo2-(1B, 7B, 13B, 32B), respectively.
Appendix figures & tables4 assets
Supplementary material from the paper’s appendix.
Appendix
Segment
Accuracy
Segment 1
0.4650
Segment 2
0.4721
Segment 3
0.4550
Appendix
Table 1: Performance with M=3 Segments (OLMo2-13B, ToxiGen).
Segment
Accuracy
Segment 1
0.4503
Segment 2
0.4589
Segment 3
0.4693
Segment 4
0.4761
Segment 5
0.4771
Segment 6
0.4754
Appendix
Table 2: Performance with M=10 Segments (OLMo2-13B, ToxiGen).
Model Family
Official Aligned Version
Alignment Pipeline
Suitable
LLaMA 2 / 3
LLaMA-2-Chat / LLaMA-3-Instruct
SFT + RLHF / DPO
✗
Gemma 1 / 2
Gemma-IT / Gemma-2-IT
SFT + RLHF
✗
Qwen 1.5 / 2
Qwen-Chat / Qwen2-Instruct
SFT + DPO
✗
DeepSeek
DeepSeek-LLM-Chat / V2
SFT + RLHF / DPO
✗
Falcon
Falcon-Instruct
Mixed / Unpaired
✗
Pythia
None (Base only)
N/A
✗
Appendix
Table 3: Summary of instruction-tuned versions of commonly used open-source LLMs.
Strategy
IFEval ↓
MT-Bench ↓
Base ( 00000 )
14.53
13.58
Full-layer LoRA ( 11111 )
14.70
13.76
Top-layer Segments ( 10000 )
14.61
13.63
Tail-layer Segments ( 00001 )
14.65
13.72
Middle-layer Segments ( 00110 )
14.54
13.60
Appendix
Table 4: Perplexity ( ↓ ) for pre-training knowledge retention across tuning strategies (OLMo2-13B).
The cosine similarity between a large language model's hidden activations before and after Supervised Fine-Tuning (SFT) remains very high. This, at first glance, suggests that SFT leaves the model's activation geometry largely undisturbed. However, projecting both sets of activations through a Sparse Autoencoder (SAE) pretrained on the base model reveals that the underlying sparse latents diverge significantly. We introduce a novel investigative pipeline which utilizes these pretrained SAEs as a high-resolution diagnostic tool to mechanistically investigate the drivers of this representational divergence. Through our analytical pipeline, we discover task-specific and layer-specific distributions of the precise semantic features that are systematically altered during supervised fine-tuning. We additionally identify a layer-wise update profile specific to safety alignment. All code, experimental scripts, and analysis files associated with this work are publicly available at: https://github.com/ruhzi/sae-investigation.
Supervised fine-tuning (SFT) is a common first stage of LLM post-training, teaching the model to follow instructions and shaping its behavior as a helpful assistant. At the same time, SFT may harm the fundamental capabilities of an LLM, particularly after long pretraining: a phenomenon known as catastrophic overtraining (Springer et al., 2025). To understand overtraining, we first investigate catastrophic forgetting in finetuning through the lens of implicit regularization of the learning rate. For models trained to the same SFT loss, we identify how the learning rate mediates optimization: finetuning with large and small steps converges to qualitatively different models. Next, we link forgetting to overtraining: learning rate decay increases the sharpness of the pretrained model, which in turn exacerbates catastrophic forgetting during SFT, leading to overtraining. Our findings paint a picture of the overtraining mechanism in LLMs and broadly contribute to the understanding of the interplay between optimization dynamics during pretraining and finetuning.
Every supervised fine-tuning run forces the same chain of decisions, such as learning rate, batch size, LoRA or full fine-tuning, how many epochs, which optimiser, and what data to feed the model. Each of these is typically rediscovered from scratch for every new model and dataset. Here we measure them under one instrument: a sweep that varies one lever at a time, and spans dense and mixture-of-experts models in two families (Qwen3 and Llama), on four real-world customer SFT datasets, for both LoRA and full fine-tuning. These datasets give a controlled testbed: each task carries an evaluation built with the customer, and its training data is produced by iterative supervised fine-tuning that refines model outputs until they pass that evaluation, so the supervised target is internally consistent and the task judge we report against is the criterion the data was built to satisfy. We ask how the optimal learning rate and batch size move with model scale, family, and data, and whether one selection rule transfers across them; what LoRA trades against full fine-tuning, and how its rank and alpha set what the adapter can learn; whether validation loss (or other metrics, such as loss landscape flatness) faithfully ranks downstream quality; whether post-training gains scale with model size and data volume, on a model ladder extended through mixtures-of-experts to 235B parameters; how many epochs to train before general instruction-following erodes; and whether a geometry-aware optimiser improves on AdamW. Each recommendation is paired with a measure of its uncertainty.
Charles O'Neill, Mudith Jayasekara, Harry Partridge