Scaling Trends in Language Model Robustness

Nikolaus Howe, Ian McKenzie, Oskar Hollinsworth, Michał Zajac, Tom Tseng +3 more
7/25/2024
21 citations
cs.LGcs.AIcs.CL

Official code: AlignmentResearch/scaling-llm-robustness-paper (2 stars, Python, MIT, last commit 2025-06-04).

Abstract

Increasing model size has unlocked a dazzling array of capabilities in modern language models. At the same time, even frontier models remain vulnerable to jailbreaks and prompt injections, despite concerted efforts to make them robust.

Show full abstract

As both attack and defense gain access to more compute, and as models become larger, what happens to robustness? We argue that to answer this question requires a \emph{scaling} approach, which we employ in an extensive study of language model robustness across several classification tasks, model families, and adversarial attacks. We find that in the absence of explicit safety training, larger models are not consistently more robust; however, scale improves sample efficiency in adversarial training, though it worsens compute efficiency. Further, we find that increasing attack compute smoothly improves attack success rate against both undefended and adversarially trained models. Finally, after exploring robustness transfer across attacks and threat models, we combine attack and defense scaling rates to study the offense-defense balance. We find that while attack scaling outpaces adversarial training across all models studied, larger adversarially trained models might give defense the advantage in the long run. These results underscore the utility of the scaling lens, and provide a paradigm for evaluating future attacks and defenses on frontier models.

View on arXivView PDF

Code Implementations(1)

MIT

Code used for the paper `Scaling Trends in Language Model Robustness`

20Python, DockerfileDec 12, 20241 years agoMIT

Similar Papers

Cite this paper

@article{howe2024scaling,
  title  = {Scaling Trends in Language Model Robustness},
  author = {Nikolaus Howe and Ian McKenzie and Oskar Hollinsworth and Michał Zajac and Tom Tseng and Aaron Tucker and Pierre-Luc Bacon and Adam Gleave},
  year   = {2024},
  eprint = {2407.18213},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2407.18213v5}
}

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/2407.18213.svg)](https://codeofpaper.com/paper/2407.18213)

Discussion