mlsanityData to 14 Oct 2026

Shifting the Gradient: Understanding How Defensive Training Methods Protect Language Model Integrity

arXiv 2604.16423 ↗First posted 3 Apr 2026cs.LG cs.AIcited by 3

Not on the map. Why?

Abstract (arXiv)

Defensive training methods such as positive preventative steering (PPS) and inoculation prompting (IP) offer surprising results through seemingly similar processes: both add trait-inducing objects to large language models (LLMs) during training, and both defend the LLM against acquiring the trait. The surprising success of these methods comes with the question: how do they work? Are PPS and IP doing the same thing? We provide behavioral and mechanistic comparisons of these two methods using "evilness" as a case-study trait. Our central finding is that PPS and IP achieve their defensive benefits through distinct mechanisms. Behaviorally, we show that neither PPS nor IP operates through a purely associative mechanism; and PPS can both defend against trait acquisition and actively reduce pre-existing expression, whereas IP is ineffective in models that were previously finetuned to express the trait. This behavioral divergence is reflected mechanistically: PPS shifts the activation gradient towards an attenuating direction along the PPS vector axis. When the PPS vector is aligned with a trait-expressing axis, it can reverse the gradient pressure, reducing rather than increasing activation along that axis. In contrast, IP continues to resist a precise mechanistic account. Direct cosine similarity analyses reveal that IP has a characteristically different gradient signature than PPS, and qualitative analyses reveal IP's gradient to be more diffuse. Furthermore, IP reduces the next-token prediction loss on trait-expressing data where PPS need not, consistent with the notion that IP "explains away" the trait-expression in the training data. Taken together, our analyses reveal distinct mechanisms by which each method operates and highlight open questions about IP's mechanistic picture.

Key facts. Cited by 3 papers in the map (data through 14 Oct 2026). Builds on 15 of its 17 references that are in the map. First posted on arXiv 3 Apr 2026.

Builds on

15 of 17 references.

References · 15

  1. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  2. 2025Qwen3 Technical Reportcited by 8,820
  3. 2019HuggingFace's Transformers: State-of-the-art Natural Language Processingcited by 2,218
  4. 2023Steering Llama 2 via Contrastive Activation Additioncited by 1,085
  5. 2023Steering Language Models With Activation Engineeringcited by 922
  6. 2025Persona Vectors: Monitoring and Controlling Character Traits in Language Modelscited by 345
  7. 2025AxBench: Steering LLMs? Even Simple Baselines Outperform Sparse Autoencoderscited by 218
  8. 2025Natural Emergent Misalignment from Reward Hacking in Production RLcited by 136
  9. 2025Poisoning Attacks on LLMs Require a Near-constant Number of Poison Samplescited by 72
  10. 2025Inoculation Prompting: Eliciting traits from LLMs during training can suppress them at test-timecited by 43
  11. 2025Inoculation Prompting: Instructing LLMs to misbehave at train-time improves test-time alignmentcited by 43
  12. 2025Priors in Time: Missing Inductive Biases for Language Model Interpretabilitycited by 25
3 more
  1. 2025Recontextualization Mitigates Specification Gaming without Modifying the Specificationcited by 14
  2. 2026Linear representations in language models can change dramatically over a conversationcited by 10
  3. 2026Context Structure Reshapes the Representational Geometry of Language Modelscited by 8

Built on by

Cited by year (2026 to 14 Oct)

Citing papers per year: 2026: 3.

3 papers.