Skip to main content
QUICK REVIEW

[Paper Review] Refusal in Language Models Is Mediated by a Single Direction

Andy Arditi, Oscar Obeso|arXiv (Cornell University)|Jun 17, 2024
Natural Language Processing TechniquesComputer Science8 citations
TL;DR

The paper identifies a single, one-dimensional direction in residual activations that mediates refusal across 13 open-source chat models; ablation disables refusal, while adding the direction induces refusals, enabling a white-box jailbreak via weight edits.

ABSTRACT

Conversational large language models are fine-tuned for both instruction-following and safety, resulting in models that obey benign requests but refuse harmful ones. While this refusal behavior is widespread across chat models, its underlying mechanisms remain poorly understood. In this work, we show that refusal is mediated by a one-dimensional subspace, across 13 popular open-source chat models up to 72B parameters in size. Specifically, for each model, we find a single direction such that erasing this direction from the model's residual stream activations prevents it from refusing harmful instructions, while adding this direction elicits refusal on even harmless instructions. Leveraging this insight, we propose a novel white-box jailbreak method that surgically disables refusal with minimal effect on other capabilities. Finally, we mechanistically analyze how adversarial suffixes suppress propagation of the refusal-mediating direction. Our findings underscore the brittleness of current safety fine-tuning methods. More broadly, our work showcases how an understanding of model internals can be leveraged to develop practical methods for controlling model behavior.

Motivation & Objective

  • Investigate how refusal to harmful instructions is represented in the internal activations of chat models.
  • Identify a minimal, one-dimensional direction that distinguishes harmful from harmless instruction processing.
  • Demonstrate causal manipulation of model behavior via activation-level interventions.
  • Propose a white-box jailbreak method via weight orthogonalization that removes refusal while preserving other capabilities.
  • Analyze how adversarial suffixes affect the propagation of the refusal direction.

Proposed method

  • Use difference-in-means to extract a candidate refusal direction from layer-wise residual activations across post-instruction tokens.
  • Select a single most effective direction by validating its ability to ablate refusal and induce refusal when added, while preserving other behavior.
  • Perform directional ablation by removing the direction from all activations across layers and tokens to assess refusal bypass.
  • Apply activation addition by injecting the direction into activations at a chosen layer to induce refusal on harmless prompts.
  • Develop a white-box jailbreak by orthogonalizing model weight matrices with respect to the refusal direction to prevent writing this direction to the residual stream.
  • Evaluate model coherence post-orthogonalization with standard LM benchmarks and compare with other jailbreaks on HarmBench.

Experimental results

Research questions

  • RQ1Does a single direction in the model's residual stream mediate refusal across multiple open-source chat models?
  • RQ2Is ablating this direction sufficient to disable refusal, and is adding it sufficient to induce refusal on harmless prompts?
  • RQ3Can a weight-orthogonalization intervention serve as a practical white-box jailbreak without severely harming general capabilities?
  • RQ4How do adversarial suffixes interfere with the propagation of the refusal direction across tokens?

Key findings

  • A single difference-in-means direction explains refusal across 13 models up to 72B parameters.
  • Ablating the refusal direction reduces refusal rates and yields unsafe completions on harmful prompts.
  • Adding the refusal direction to activations induces refusal even for harmless prompts.
  • Weight orthogonalization serves as an effective white-box jailbreak with minimal impact on other capabilities.
  • Adversarial suffixes suppress the refusal direction by hijacking attention and reducing its projection onto the refusal direction.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.