LGAICLJun 17, 2024

Refusal in Language Models Is Mediated by a Single Direction

arXiv:2406.11717v3737 citationsHas Code
Originality Highly original
AI Analysis

This work addresses the brittleness of safety fine-tuning in conversational AI, offering insights for controlling model behavior, though it is incremental in improving mechanistic understanding.

The study tackled the problem of understanding refusal mechanisms in large language models by identifying a one-dimensional subspace that mediates refusal behavior across 13 models up to 72B parameters, enabling a white-box jailbreak method to disable refusal with minimal impact on other capabilities.

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.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes