Adversarially Trained Linear Transformers Are Optimal Robust In-Context Learners for Gaussian Mixtures
Soichiro Kumano
Key points
From the paper's conclusion- We further analyze convergence under gradient flow, an accuracy--robustness trade-off, and demonstration complexity.
Abstract
Adversarial training is one of the most reliable defenses against adversarial attacks, but its high computational cost must generally be paid anew for each task. Robust foundation models offer a promising alternative: adversarially pretrain a model once and then transfer its robustness to downstream tasks through lightweight adaptation. However, a fundamental question remains open: can robustness acquired during pretraining transfer to unseen tasks without further adversarial training? In this study, we answer this question affirmatively. A single model adversarially pretrained at scale can achieve optimal robustness on new tasks without additional task-specific training. Specifically, we show that, for a family of Gaussian-mixture classification tasks, a sufficiently deep linear transformer adversarially trained across tasks can asymptotically attain the robust Bayes error on previously unseen tasks through in-context learning from clean demonstrations. By contrast, a standardly trained model cannot. We further analyze convergence under gradient flow, an accuracy--robustness trade-off, and demonstration complexity.
Read the paper
Discussion
Science Skim's AI key points, plus readers' public thoughts
Readers' thoughts
No reader thoughts yet.
Related papers
- Combating Overfitting of Adversarial Training Efficiently via Balanced Instance Adaptive Defense.IEEE transactions on image processing : a publication of the IEEE Signal Processing Society · 2026
- The Surprising Harmfulness of Benign Overfitting for Adversarial RobustnessIEEE Transactions on Information Theory · 2026
- Diffusion Transformers are Provably Optimal In-context GeneratorsarXiv · 2026
- Model predictive task sampling for efficient and robust adaptationNature Communications · 2026
- On the tradeoff between robustness and geometric accuracy in adversarial trainingarXiv · 2026
- Fine-Tuning Without Gradients? Closed-Form, LLM-Written Classifiers on a Frozen EncoderarXiv · 2026