Latent Adversarial Training Improves the Representation of Refusal
Alexandra Abbas, Nora Petrova, Helios Ael Lyons, Natalia Perez-Campanero
TL;DR
This work investigates Latent Adversarial Training (LAT) as a safety-enhancing approach that perturbs internal representations rather than inputs to improve refusal robustness. By analyzing Llama-2-7B-chat, it shows LAT reshapes the latent encoding of refusal, concentrating it into the first two SVD components to explain about $75\%$ of activation variance, making refusal vectors more transferable across models. However, LAT also exhibits a vulnerability to self-generated vectors, performing worse than AT in self-attacks, which reveals a nuanced trade-off between robustness and exposure to tailored latent-space manipulations. Overall, LAT offers a promising direction for improving safety, with notable strengths in cross-model transfer but clear areas for mitigating self-attacks and further validating the latent-direction interpretations across architectures and datasets.
Abstract
Recent work has shown that language models' refusal behavior is primarily encoded in a single direction in their latent space, making it vulnerable to targeted attacks. Although Latent Adversarial Training (LAT) attempts to improve robustness by introducing noise during training, a key question remains: How does this noise-based training affect the underlying representation of refusal behavior? Understanding this encoding is crucial for evaluating LAT's effectiveness and limitations, just as the discovery of linear refusal directions revealed vulnerabilities in traditional supervised safety fine-tuning (SSFT). Through the analysis of Llama 2 7B, we examine how LAT reorganizes the refusal behavior in the model's latent space compared to SSFT and embedding space adversarial training (AT). By computing activation differences between harmful and harmless instruction pairs and applying Singular Value Decomposition (SVD), we find that LAT significantly alters the refusal representation, concentrating it in the first two SVD components which explain approximately 75 percent of the activation differences variance - significantly higher than in reference models. This concentrated representation leads to more effective and transferable refusal vectors for ablation attacks: LAT models show improved robustness when attacked with vectors from reference models but become more vulnerable to self-generated vectors compared to SSFT and AT. Our findings suggest that LAT's training perturbations enable a more comprehensive representation of refusal behavior, highlighting both its potential strengths and vulnerabilities for improving model safety.
