Differentiated Directional Intervention A Framework for Evading LLM Safety Alignment
Peng Zhang, Peijie Sun
TL;DR
This paper reframes LLM safety alignment as a bi-dimensional activation phenomenon, separating Harm Detection and Refusal Execution into distinct directions. It introduces Differentiated Bi-Directional Intervention (DBDI), a white-box framework that offline-identifies two vectors and an optimal layer, then applies a two-step, inference-time intervention: first projecting out the Refusal Execution component and then steering away from the Harm Detection direction. Empirical results show DBDI achieves high attack success rates across multiple models and benchmarks (e.g., up to 97.88% ASR on AdvBench for Llama-2-7B) and outperforms existing jailbreaking methods, with robustness to hyperparameters and data efficiency via classifier-guided sparsification. The findings offer a precise, modular mechanism for understanding and evaluating LLM safety alignment, with implications for stronger defenses that acknowledge the underlying multi-direction nature of safety signals.
Abstract
Safety alignment instills in Large Language Models (LLMs) a critical capacity to refuse malicious requests. Prior works have modeled this refusal mechanism as a single linear direction in the activation space. We posit that this is an oversimplification that conflates two functionally distinct neural processes: the detection of harm and the execution of a refusal. In this work, we deconstruct this single representation into a Harm Detection Direction and a Refusal Execution Direction. Leveraging this fine-grained model, we introduce Differentiated Bi-Directional Intervention (DBDI), a new white-box framework that precisely neutralizes the safety alignment at critical layer. DBDI applies adaptive projection nullification to the refusal execution direction while suppressing the harm detection direction via direct steering. Extensive experiments demonstrate that DBDI outperforms prominent jailbreaking methods, achieving up to a 97.88\% attack success rate on models such as Llama-2. By providing a more granular and mechanistic framework, our work offers a new direction for the in-depth understanding of LLM safety alignment.
