Summary
This paper proposes adversarial training for LLMs, in which perturbations are created in the continuous embedding space rather than finding discrete suffixes. The proposed fast adversarial training algorithm (AdvUL) consists of two losses: the first strengthens the model against continuous embedding attacks computed on an adversarial behavior dataset, and the second ensures the final model's usefulness by fine-tuning utility data. Furthermore, the authors introduce C-AdvIPO, an adversarial variant of IPO that does not rely on utility data for adversarially robust alignment. The empirical evaluation of four models, Gemma, Phi3, Mistral, and Zephyr, at various scales, reveals that both algorithms improve LLM robustness against discrete attacks (GCG, AutoDAN, PAIR).
Strengths
The Strengths of this paper include:
- The writing of this paper is clear, with neat formulas to fastly explain the proposed AT methods. Using the form of DPO/IPO in Eq. (5) seems reasonable to me.
- There are details to describe the experimental settings, and experiments are comprehensively done on different LLMs and datasets.
- The empirical improvements on the robustness against GCG, AutoDAN, and PAIR appear significant.
Weaknesses
The Weaknesses of this paper include:
- The main difference between adversarial attacks/defenses on traditional models (e.g., CNNs) and those on LLMs is that there is no explicitly defined *threat model* when jailbreaking LLMs. Namely, the strategy to jailbreak an LLM could be quite flexible, and there is usually no constraint on human imperceptibility. AT is a strong defense under a given threat model (e.g., $8/255, \\ell\_{\\infty}$), but AT is observed to generalize badly to unseen attacks. While I'm experienced with AT in traditional settings, I'm still not very convinced that AT could be a good solution for LLMs.
- While GCG, AutoDAN, and PAIR are commonly evaluated attacks, they are relatively weak nowadays. The authors are encouraged to evaluate their models against more advanced and diverse attacks, such as ICL-based [1,2] and/or decomposing-based [3].
- To investigate the limits of C-AdvUL and C-AdvIPO, there should be a sanity check to directly perform attacks in the continuous embedding space.
- From my perspective, what C-AdvUL and C-AdvIPO do is connected to machine unlearning (i.e., unlearning the harmful knowledge), where [4,5] have used similar learning objectives. Their connections should be more discussed and empirically ablated.
Refs:\
[1] Many-Shot Jailbreaking\
[2] Improved Few-Shot Jailbreaking Can Circumvent Aligned Language Models and Their Defenses\
[3] A False Sense of Safety: Unsafe Information Leakage in 'Safe' AI Responses\
[4] Negating Negatives: Alignment without Human Positive Samples via Distributional Dispreference Optimization\
[5] Negative Preference Optimization: From Catastrophic Collapse to Effective Unlearning
Questions
Why there are no experiments done on the Llama series of models? Is there any reason for this design choice?
Limitations
Please see Weaknesses.