Reproduce “Safety Alignment Should Be Made More Than Just a Few Tokens Deep” on OpenResearch
Turn your favorite coding agents into research agents that review literature, develop hypotheses, and run experiments.
Universal app for Apple silicon and Intel. Requires macOS 11 or later.
About this paper
Xiangyu Qi, Ashwinee Panda, Kaifeng Lyu, Xiao Ma, Subhrajit Roy, Ahmad Beirami, Prateek Mittal, Peter Henderson
The authors test whether aligned models depend on refusal tokens at a response’s start. Harmfulness rises when harmful response tokens are prefilled, supporting shallow safety alignment as one possible explanation. Constrained SFT reduces attack success rate from 88.9 ± 1.2% to 4.6 ± 0.5% under a tested harmful-examples attack, but does not guarantee protection against other attacks.
Key insights
- Current safety alignment techniques predominantly affect only the first few tokens of an LLM's output, making the alignment "shallow."
- This shallow nature explains the effectiveness of diverse jailbreaking attacks (e.g., adversarial suffixes, prefilling, decoding parameter exploits) and the fragility of alignment to fine-tuning.
- Even minimal fine-tuning can compromise safety by altering the probabilities of initial tokens, concentrating loss and KL divergence in these early positions.
Summary by alphaXiv.
Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.