paper-with-me

홈 › Papers

Any-Depth Alignment: Unlocking Innate Safety Alignment of LLMs to Any-Depth

2025-10-20 · Jiawei Zhang, Andrew Estornell, David D. Baek, Bo Li, Xiaojun Xu arxiv

Large Language Models (LLMs) exhibit strong but shallow alignment: they directly refuse harmful queries when a refusal is expected at the very start of an assistant turn, yet this protection collapses once a harmful continuation is underway (either through the adversarial attacks or via harmful assistant-prefill attacks). This raises a fundamental question: Can the innate shallow alignment in LLMs be unlocked to ensure safety at arbitrary generation depths? To achieve this goal, we propose Any-Depth Alignment (ADA), an effective inference-time defense with negligible overhead. ADA is built based on our observation that alignment is concentrated in the assistant header tokens through repeated use in shallow-refusal training, and these tokens possess the model's strong alignment priors. By reintroducing these tokens mid-stream, ADA induces the model to reassess harmfulness and recover refusals at any point in generation. Across diverse open-source model families (Llama, Gemma, Mistral, Qwen, DeepSeek, and gpt-oss), ADA achieves robust safety performance without requiring any changes to the base model's parameters. It secures a near-100% refusal rate against challenging adversarial prefill attacks ranging from dozens to thousands of tokens. Furthermore, ADA reduces the average success rate of prominent adversarial prompt attacks (such as GCG, AutoDAN, PAIR, and TAP) to below 3%. This is all accomplished while preserving utility on benign tasks with minimal over-refusal. ADA maintains this resilience even after the base model undergoes subsequent instruction tuning (benign or adversarial).

📄 PDF Abstract BibTeX arXiv:2510.18081

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

Test-Time Preference Optimization: On-the-Fly Alignment via Iterative Textual Feedback

2025-01-22 · Yafu Li, Xuyang Hu, Xiaoye Qu, Linjie Li 외

Large language models (LLMs) demonstrate impressive performance but lack the flexibility to adapt to human preferences quickly without retraining. In this work, we introduce Test-time Preference Optimization (TPO), a fra…

Instruction Following

AI Alignment Strategies from a Risk Perspective: Independent Safety Mechanisms or Shared Failures?

2025-10-13 · Leonard Dung, Florian Mai arxiv

AI alignment research aims to develop techniques to ensure that AI systems do not cause harm. However, every alignment technique has failure modes, which are conditions in which there is a non-negligible chance that the …

Logic Jailbreak: Efficiently Unlocking LLM Safety Restrictions Through Formal Logical Expression

2025-05-18 · Jingyu Peng, Maolin Wang, Nan Wang, Xiangyu Zhao 외

Despite substantial advancements in aligning large language models (LLMs) with human values, current safety mechanisms remain susceptible to jailbreak attacks. We hypothesize that this vulnerability stems from distributi…

Stochastic Monkeys at Play: Random Augmentations Cheaply Break LLM Safety Alignment

2024-11-05 · Jason Vega, Junsheng Huang, Gaokai Zhang, Hangoo Kang 외

Safety alignment of Large Language Models (LLMs) has recently become a critical objective of model developers. In response, a growing body of work has been investigating how safety alignment can be bypassed through vario…

QuantizationSafety Alignment

SPA-VL: A Comprehensive Safety Preference Alignment Dataset for Vision Language Model

2024-06-17 · Yongting Zhang, Lu Chen, Guodong Zheng, Yifeng Gao 외

The emergence of Vision Language Models (VLMs) has brought unprecedented advances in understanding multimodal information. The combination of textual and visual semantics in VLMs is highly complex and diverse, making the…

Language ModelingLanguage ModellingSafety Alignment