Rewriting or Reweighting? A Geometric Account in Language Models

Juntong Wang, Shengkun Yang, Xiyuan Wang, Muhan ZhangarXiv 2026

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:

  1. Repetition: A decoding pathology where the model gets stuck in a loop.
  2. 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.
Figure 1: Overview of the behavioral-geometry framework. We extract behavior-relevant token windows and decompose FFN computation into two representations. A sparse selector identifies a compact set of Behavioral Anchor Coordinates, whose activations or contributions are projected into a low-rank behavioral chart. The resulting chart separates behavior-positive and behavior-negative occupancy while preserving the local geometry and trajectories of behavior-conditioned states. The ACT–NOC quadrant illustrates that frequent activation and strong causal contribution are distinct properties. To study generality across architectures, local charts from 23 models spanning four families are aligned with CCA to form a cross-model atlas; ACT retains larger family-specific residuals, whereas NOC exposes a more consistent shared functional core. Finally, checkpoint tracking reveals that SFT substantially moves, bends, and reorients the behavioral chart—rewriting behavioral geometry—whereas reward-based optimization largely preserves the inherited chart while redistributing occupancy and modifying readout gain or threshold—reweighting behavior within existing geometry.

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-DPO dataset, 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).
Figure 2: High NOC with high ACT denotes a strong and fre- quently used mechanism; high NOC with low ACT denotes a strong but latent or rarely occupied pathway; low NOC with high ACT denotes frequently observed states with weak functional support; and low NOC with low ACT denotes a weak and rarely occupied mechanism.

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).
Tracking checkpoints shows that SFT rapidly moves away from the base chart, while RL/DPO remains geometrically similar to its starting point.

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

BibTeX
@misc{wang2026rewriting,
  author = {Juntong Wang and Shengkun Yang and Xiyuan Wang and Muhan Zhang},
  title = {{Rewriting or Reweighting? A Geometric Account in Language Models}},
  year = {2026},
  eprint = {2608.01835},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.01835},
}
Figure