DACE: Diversity-Driven Adversarial Co-Evolution for Robust LLM Safety Alignment

Peng Yu, Xiaoyu Wen, Zhida He, Ziyuan Zhou, Han Qi +4 more
11/17/2026
cs.AI

No official code found. Best implementation: PursuitYP/DACE-NeurIPS (3 stars, Python, Apache-2.0, last commit 2026-10-21).

Abstract

Ensuring robust safety alignment of large language models (LLMs) is increasingly difficult as adversarial attacks evolve and outpace alignment pipelines built on pre-collected data. Existing co-evolutionary frameworks let the defender chase a moving attacker, yet their training dynamics expose two compounding pathologies: \emph{attack strategy collapse}, where the attacker overfits to a narrow set of high-reward rewrites, and \emph{defense adversarial forgetting}, where the defender loses competence against earlier attacks as the attack distribution drifts.

Show full abstract

Existing remedies are partial: attacker-side diversity rewards score textual novelty rather than strategy novelty, and defender-side replay relies on discrete judge scores that ignore estimation uncertainty, response stochasticity, and defender non-stationarity. We introduce \textbf{\method}, a diversity-driven adversarial co-evolution framework that targets both pathologies jointly. On the attacker side, \method couples an explicit two-dimensional strategy space (risk category $\times$ attack style) with a \emph{normalized marginal coverage gain} reward, providing a bounded, non-vanishing exploration signal at the strategy layer. On the defender side, \method maintains a unified \emph{Bayesian adversarial replay pool} whose Beta--Bernoulli threat posteriors are refreshed by time decay and sampled via Thompson sampling, anchoring defender training to an evolving threat landscape. Across standard safety, automated-attacker, and general-capability benchmarks, \method improves robustness to out-of-distribution attacks while preserving general capabilities, and yields broader attacker strategy coverage.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

DACE: Diversity-Driven Adversarial Co-Evolution for Robust LLM Safety Alignment

31Python, ShellOct 9, 20261 months agoApache-2.0

Similar Papers

Cite this paper

@article{yu2026dace,
  title  = {DACE: Diversity-Driven Adversarial Co-Evolution for Robust LLM Safety Alignment},
  author = {Peng Yu and Xiaoyu Wen and Zhida He and Ziyuan Zhou and Han Qi and Shao Zhang and Qiaosheng Zhang and Ying Wen and Chaochao Lu},
  year   = {2026},
  eprint = {2611.22278},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2611.22278v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2611.22278.svg)](https://codeofpaper.com/paper/2611.22278)

Discussion