TL;DR
When we fine-tune a Large Language Model (LLM), are we fundamentally changing its internal "wiring" or just teaching it to use its existing circuits differently? This paper introduces behavioral manifold analysis to show that Supervised Fine-Tuning (SFT) "rewrites" the model's internal geometric representations, while reward-based optimization (like DPO) primarily "reweights" how the model navigates its inherited geometry.
What Problem Does This Paper Address?
Post-training techniques like SFT and Reinforcement Learning from Human Feedback (RLHF) are standard tools for shaping LLM behavior. However, we often treat the model as a "black box"—we see the output change, but we don't know the mechanistic cause. Does training remove a "bad" circuit, build a new competing one, or simply shift the model's internal states away from the region where that behavior lives?
The authors tackle this ambiguity by studying two distinct failure modes:
- Repetition: A decoding pathology where the model gets stuck in a loop.
- Sycophancy: An alignment failure where the model mimics a user's incorrect beliefs to be "agreeable."
By understanding the geometric shifts during training, researchers can better predict how models will generalize and whether safety interventions are truly "fixing" a problem or just hiding it.
Methods
The researchers developed a framework called Behavioral Manifold Analysis. The process works like this:
- Sparse Selection: They identify a small set of "Behavioral Anchor Coordinates" (BACs)—specific neurons that are highly predictive of the behavior—using a simple classifier.
- Low-Rank Charts: They project the activity of these neurons into a low-dimensional space (a "chart") to visualize the "manifold" or surface where the behavior lives.
- Two Feature Spaces:
- ACT (Activation): Measures raw neuron activity (the "state").
- NOC (Normalized Output-Contribution): A novel metric that measures how much a neuron actually contributes to the final layer update (the "function").
- Checkpoint Tracking: They track how these geometric charts move, bend, or reorient across hundreds of training steps.
Datasets
The study evaluated 23 models across four major families: Llama, Gemma, Mistral, and Qwen.
- Repetition Dataset: 2,736 response-level records, balanced between repetitive and non-repetitive text.
- Sycophancy Dataset: 6,678 records derived from the
Anti-Sycophancy-DPOdataset, featuring pairs of truthful vs. sycophantic responses.
Key Insights and Ideas
- The SFT vs. Reward Asymmetry: This is the "Aha!" moment. SFT acts like a structural architect, moving the "furniture" of the model's internal representations to new locations. Reward optimization (DPO) acts more like a traffic controller, keeping the furniture where it is but changing which paths the model takes through the room.
- NOC as a Universal Language: While raw activations (ACT) vary wildly between different model families (like Llama vs. Qwen), the functional contributions (NOC) are remarkably similar. This suggests that different models have evolved a "shared functional core" for behaviors like repetition.
- Active vs. Latent Mechanisms: By comparing ACT and NOC, the authors can distinguish between neurons that are just "on" (runtime-associated) and those that are actually "doing work" (active mechanisms).
Key Results
- Geometric Rewriting: SFT produced large displacements in the behavioral charts, with a mean projector overlap of only 0.745 compared to the base model.
- Geometric Reweighting: DPO was much more conservative, retaining a high mean overlap of 0.939. It changed behavior by modifying the "gain" (how strongly it reacts to a state) rather than moving the state itself.
- Sparsity: Repetition is surprisingly "simple" internally, supported by scaffolds of only 20–61 neurons across models with billions of parameters.
- Causal Steering: The authors proved their charts were meaningful by "steering" the models. By injecting the "repetition direction" into the manifold, they could force models to repeat text without increasing overall perplexity (loss of fluency).
Limitations and Future Work
- Layer Focus: The analysis focused primarily on Feed-Forward Network (FFN) layers. While these are huge components of LLMs, the role of Attention heads in these behavioral manifolds remains a topic for future study.
- Linearity: The study uses local linear charts to approximate the manifold. While effective, the true behavioral manifold is likely non-linear and more complex.
- Behavioral Scope: The framework was tested on two specific "failures." Future work could apply this to positive traits, like reasoning or creative writing, to see if the "Rewriting vs. Reweighting" rule still holds.
Summary updated