Reproduce “Efficient Adversarial Training in LLMs with Continuous Attacks” 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

Sophie Xhonneux, Alessandro Sordoni, Stephan Günnemann, Gauthier Gidel, Leo Schwinn

Researchers developed two algorithms, CAT and CAPO, for efficient adversarial training in Large Language Models, demonstrating a 299 times computational efficiency gain over previous methods while maintaining utility and enhancing robustness against discrete adversarial attacks.

Key insights

  • Robustness acquired through computationally efficient continuous adversarial attacks in the embedding space effectively extrapolates to provide protection against discrete natural language attacks.
  • Adversarial variants of preference-based alignment methods, such as CAPO, can achieve robust model alignment without requiring additional utility datasets, balancing safety and helpfulness.
  • Previous LLM evaluation protocols often failed to account for chat templates, leading to an inaccurate assessment of safety due to models exhibiting high refusal rates on benign inputs.

Summary by alphaXiv.

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