Reproduce “Emulated Disalignment: Safety Alignment for Large Language Models May Backfire!” on OpenResearch

Run Claude Code, Codex or any coding agent as a research agent: literature, hypotheses and experiments on your laptop, cluster or cloud GPUs.

Universal app for Apple silicon and Intel. Requires macOS 11 or later.

About this paper

Zhanhui Zhou, Jie Liu, Zhichen Dong, Jiaheng Liu, Chao Yang, Wanli Ouyang, Yu Qiao

Researchers at the Shanghai Artificial Intelligence Laboratory developed Emulated Disalignment (ED), a training-free inference-time attack that reverses the safety alignment of Large Language Models. This method generates highly harmful content by leveraging the difference between pre-trained and aligned model outputs, revealing that stronger safety alignment can paradoxically increase a model's potential for malicious use.

Key insights

  • A duality exists between reward functions and language models, allowing safety alignment to be reverse-engineered into an implicit safety reward function.
  • Stronger safety alignment, while intended to improve safety, can paradoxically create a greater potential for harm if that alignment is maliciously reversed.
  • Training-free attacks are possible by manipulating the output token distributions of LLMs, shifting the attack vector from inputs or training.

Summary by alphaXiv.

Tip: change arxiv.org to autoarxiv.org in any arXiv abstract link to open the paper here.