protologue

Gradient Routing

Also called GRAFT, Gradient Routing Adapter Fine-Tuning, expand-route-ablate.

Gradient routing is a training method that applies data-dependent masks to gradients during backpropagation, so that what is learned from chosen examples is confined to designated parts of a network, which can then be inspected or removed.

Description

Cloud et al. introduced gradient routing in 2024 as a way to isolate capabilities to specific subregions of a neural network. They showed three uses, learning representations partitioned in an interpretable way, robust unlearning by ablating a pre-specified subregion, and scalable oversight of a reinforcement learner by localizing modules responsible for different behaviors, and noted that it works even when only part of the data is labeled. In 2026 Ward et al. applied it to unintended behaviors in reinforcement learning, reporting that ablating the parameters that absorbed those behaviors reduced or stopped them while keeping improved performance on target tasks, in models from 135M to 8B parameters. The Anthropic Alignment Science blog described one variant, Gradient Routing Adapter Fine-Tuning (GRAFT), in October 2026; when a monitor flags a rollout, gradient updates go only to a FORGET adapter, which is removed after training. In its Qwen3-8B experiment the blog reports reward hacking dropping to nearly zero after ablation, whereas penalizing flagged rollouts led the model to a hack the monitor could not detect. The approach localizes undesired behavior rather than penalizing it.

Sources

  1. Cloud et al. (2024). Gradient Routing: Masking Gradients to Localize Computation in Neural Networks.
  2. Ward et al. (2026). Gradient Routing Localizes and Removes Unintended Behaviors in RL.
  3. Hu, Ward et al. (Anthropic Alignment Science Blog) (2026). Reducing Reward Hacking by Localizing Bad Behavior Instead of Penalizing It.

Cite this entry

Protologue. (2026). Gradient Routing. In Protologue: A Taxonomy of Prompting and LLM Techniques (v1.9.2, PTL-0278). https://protologue.com/t/gradient-routing/

BibTeX
@misc{protologue_gradient_routing,
  title = {Gradient Routing},
  author = {{Protologue}},
  year = {2026},
  howpublished = {Protologue: A Taxonomy of Prompting and LLM Techniques, v1.9.2},
  note = {Entry PTL-0278},
  url = {https://protologue.com/t/gradient-routing/}
}

Markdown JSON