AnchorRep: Defending LLMs Against Cross-Model Adversarial Transfer via Representation Repulsion
Abstract
Adversarial attacks optimized on a single open-weight LLM can transfer to and jailbreak architecturally different models, allowing an attacker with white-box access to one model to compromise independently deployed systems. This creates a shared vulnerability across models, yet existing defenses are not designed for this cross-model threat. We find that cross-model transfer aligns with shared internal representation geometry, making it a natural defense target. AnchorRep targets this geometry directly with a lightweight LoRA adapter that pushes the defended model's internal representations of harmful prompts away from those of a frozen anchor model on the same prompts. Training uses a small set of harmful prompts and no adversarial examples. Across five models and four architectural families, AnchorRep reduces cross-model attack success rate to <=1.1% on 2,000 transferred attacks (0% on two), including the largest drop on Mistral (36% -> 1.1%). Existing defenses can reduce transfer, but only at high cost either inducing up to 77% degenerate benign output or increasing over-refusal by up to 18%. Because such degenerate benign outputs are not captured by standard refusal-based metrics, we introduce the Benign Garble Rate to quantify them. Our results suggest that cross-model robustness can be achieved by shaping representation geometry, without requiring attack-specific training
Create a lesson
Metadata
- Categories
- cs.LG, cs.AI
- Comments
- NeurIPS 2026; Code, configs and logs: https://github.com/galwert/AnchorRep
Related papers
Cross-Activity Transfer Learning for Wearable Heart Rate Forecasting During Loaded Marching
Shared title terminologycs.LGMuntaqim Ahmed Raju, Ruizhe Ma, John W Ramsay et al.
Mid-JEPA: Learning Representations and Control through Multiscale Goal Decomposition
Shared title terminologycs.LGJiazhe Hu, Donghai Hong, Jingqi Wang et al.
A Matched Filter Representation for Environment-Aware MIMO Channel Estimation
Shared title terminologycs.LGMd. Farhan Shadiq, Md Tawheedul Islam Bhuian, Kyoung-Don Kang
Machine Learning Moment Closure for the Radiative Transfer Equation: Enforcing Hyperbolicity and Wave-Speed Bounds
Shared title terminologycs.LGBongseok Kim, Guang Lin
Hyperparameter Transfer For Reinforcement Learning Post-Training
Shared title terminologycs.LGYihe Dong, Gage DeZoort, Mufan Li
Interpretable generative graph attention for representation learning and reconstruction of multimodal neuroimaging data
Shared title terminologycs.LGMeenu Ajith, Ishaan Batta, Vince Calhoun