NeurIPS 2026QuestionsPapersAreasAboutMarkdown

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

Satchel Grant, Victor Gillioz, Jake Ward, Tom McGrath

NeurIPS page · OpenReview · Open on the map

Category: AI Safety, Security & Alignment › Emergent Misalignment in Fine-Tuning · Type: empirical study · Keywords: defensive training, language model safety, gradient analysis, mechanistic interpretability, PPS, IP

Areas: Safety & Security › Safe Alignment › Refusal and Activation Steering

Summary

The paper investigates how two defensive training methods, PPS and IP, protect language models from acquiring undesirable traits, revealing that they operate via distinct mechanisms.

Explained to a 5-year-old

We want computers to talk nicely and not learn bad behaviors. Two tricks called PPS and IP try to stop bad behaviors from appearing. The paper shows that these tricks work in different ways inside the computer. One trick can even undo a bad behavior that was already learned. The other trick works like a different kind of shield against bad behavior.

Explained to a 5-year-old, longer

We want computers that talk to us to be helpful and not say mean things. Researchers have created two ways to protect language models from learning bad habits. The first way is called PPS, and the second way is called IP. Both methods add special hints to the model during training to steer it away from bad behavior. The paper investigates how each method actually works inside the computer. It looks at the model's internal signals called activations and how they change. PPS changes the direction of these signals so they push the model away from bad traits. When the bad trait is already present, PPS can even reverse the signal and reduce the bad behavior. IP works differently; it makes the model think the bad data is explained by something else. This causes the model to lower the loss on bad examples, which helps hide the bad trait. The study shows that PPS and IP are not the same and each has its own strengths and weaknesses. Understanding these differences helps us design better defenses for language models.

For a technical reader

The paper compares two defensive training techniques, PPS and IP, by measuring how they alter model activations and gradients. It finds that PPS can shift gradients to attenuate or even reverse undesirable traits, while IP reduces loss on trait-expressing data without directly altering gradients. These distinct mechanisms explain why PPS can undo existing bad behavior but IP cannot after prior fine-tuning. The analysis provides insight into how to choose or combine defenses for safer language models.

Problem

How do defensive training methods protect language models from acquiring undesirable traits, and are their underlying mechanisms the same?

Method

The authors conduct behavioral and mechanistic comparisons of PPS and IP using an 'evilness' trait, analyzing activation gradients, cosine similarity, and next-token prediction loss to uncover how each method influences model behavior.

Results

The approach shows that PPS can both prevent trait acquisition and reduce pre-existing expression, while IP is ineffective after prior fine-tuning and reduces prediction loss differently.

Contributions

The paper reveals distinct mechanistic pathways for PPS and IP, demonstrating that PPS can reverse gradient pressure and IP 'explains away' trait expression, clarifying why the two methods differ in effectiveness.

Research questions this paper is counted under

This page was written by language models from the title and abstract of each paper, and the answers were checked by two other models. It can be wrong: check the paper itself. Suggest a correction