On Effects of Steering Latent Representation for Large Language Model Unlearning

Huu-Tien Dang, Tin Pham, Hoang Thanh-Tung, Naoya InoueAAAI 2025

Abstract

Representation Misdirection for Unlearning (RMU) is a prominent method for removing hazardous knowledge from Large Language Models (LLMs). This paper investigates the theoretical foundations of RMU, identifying that it works by collapsing token confidence. We highlight a critical failure mode: standard RMU's effectiveness diminishes in deeper layers due to increased representation norms. We propose Adaptive RMU, which scales unlearning signals based on layer activity, ensuring robust unlearning across the entire model architecture without additional computational cost.

Introduction

As Large Language Models (LLMs) grow more powerful, they inadvertently memorize "hazardous" information—ranging from bioweapon recipes to cyberattack strategies. Machine Unlearning aims to remove this specific knowledge without the massive expense of retraining the model from scratch. A leading technique is Representation Misdirection for Unlearning (RMU), which "steers" the model's internal representations of "forget-samples" toward a random, meaningless vector while trying to keep "retain-samples" (general knowledge) intact. However, RMU has been a bit of a "black box": we knew it worked, but we didn't strictly know why, nor why its effectiveness drops off sharply when applied to the middle or later layers of a network. This paper provides the missing theory and a fix for these "blind spots."

Analysis of Layer Sensitivity

The authors analyze RMU through theoretical math and empirical experiments. They prove that steering a representation toward a random vector effectively reduces token confidence (measured by MaxLogit). By introducing "noise" into the latent space, the model's output becomes increasingly random and nonsensical for the forbidden topics.

However, standard RMU is highly effective in early layers (3–10) but fails in middle and late layers. The authors introduce the concept of "noise sensitivity" to explain these layer-specific failures. They found that deeper layers in LLMs have much larger representation norms. Standard RMU uses a fixed scaling coefficient ($c$); if $c$ is smaller than the layer's natural signal, the unlearning "noise" is too weak to change the model's behavior.

Noise sensitivity across layers for various base models and RMU-modified Zephyr-7B.

As shown in Figure 1, the noise sensitivity of base models generally decreases or stabilizes at a high level in deeper layers, while the RMU-modified model shows a sharp drop in sensitivity at the edited layer ($l=7$), followed by a gradual rise. This indicates that the fixed-scale steering becomes less dominant as the natural representation magnitude increases in later layers.

Adaptive RMU

To fix this, the authors propose Adaptive RMU. Instead of a fixed target magnitude, they adaptively scale the random target vector based on the norm of the original representation. This ensures the "misdirection" is always strong enough to override the original signal, regardless of which layer is being edited. Because the adaptation is a simple scaling calculation, Adaptive RMU provides these gains with zero additional computational overhead compared to the original method.

Confidence and Scaling Effects

The paper confirms that unlearning isn't just about changing the answer; it's about destroying the model's internal certainty. A "well-unlearned" model produces a MaxLogit distribution that is much narrower and shifted toward lower values compared to the base model.

Distributions of representations and MaxLogit values for different scaling coefficients $c$.

Figure 5 illustrates how the scaling coefficient $c$ impacts the separation between the base model and the RMU-steered model. As $c$ increases, the steered representation (blue) shifts further away from the original distribution (red), effectively "misdirecting" the model's logic.

Key Results and Evaluation

The study utilizes several key benchmarks: WMDP-Biology & WMDP-Cyber for unlearning, and Wikitext and MMLU for retention.

  • Superior Unlearning: Adaptive RMU significantly outperformed the original RMU and other baselines. On the Zephyr-7B model, Adaptive RMU reduced accuracy on the WMDP-Biology forget set to 23.7%, compared to 28.8% for standard RMU.
  • Consistency Across Layers: While standard RMU's performance was inconsistent depending on the target layer, Adaptive RMU showed stable, effective unlearning across almost all layers.
  • The "Gradient Shield": RMU-trained models are highly resistant to "jailbreaks" (like GCG attacks). Because representations are steered toward a fixed random point, the gradient signals—which attackers use to find "loopholes"—become uninformative and near zero.

Conclusion

Adaptive RMU solves the layer-sensitivity problem of standard representation steering. While challenges remain—such as the manual tuning of the scaling factor $\beta$ and the inherent tradeoff between unlearning and general knowledge retention—this work provides a robust theoretical framework for understanding and improving latent-space unlearning in LLMs.

Summary updated

BibTeX
@inproceedings{dang2025effects,
  author = {Huu-Tien Dang and Tin Pham and Hoang Thanh-Tung and Naoya Inoue},
  title = {{On Effects of Steering Latent Representation for Large Language Model Unlearning}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  doi = {10.1609/aaai.v39i22.34544},
}
Figure