arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2407.18213cs.LGcs.AIcs.CLcs.CR
收藏

语言模型鲁棒性的规模扩展趋势

Scaling Trends in Language Model Robustness

Mila – Quebec AI Institute(魁北克人工智能研究所)

Nikolaus Howe, Ian McKenzie, Oskar Hollinsworth, Michał Zajac, Tom Tseng, Aaron Tucker, Pierre-Luc Bacon, Adam Gleave

AI总结:

本文通过规模扩展视角系统研究语言模型鲁棒性,发现更大模型并非天然更鲁棒,但规模能提升对抗训练样本效率,且更大的对抗训练模型可能在长期攻防平衡中使防御方获得优势。

摘要:

模型规模的增大已经解锁了现代语言模型中一系列令人眼花缭乱的能力。与此同时,尽管人们为使其鲁棒付出了协同努力,但即便是前沿模型仍然容易受到越狱攻击和提示注入攻击的影响。随着攻击方和防御方都能获得更多算力,并且模型变得更大,鲁棒性会发生什么变化?我们认为,要回答这一问题需要一种“规模扩展”方法,我们在一项涉及多个分类任务、模型家族和对抗攻击的广泛研究中采用了这一方法。我们发现,在缺乏明确安全训练的情况下,更大的模型并不总是更鲁棒;然而,规模扩展提高了对抗训练中的样本效率,尽管它恶化了计算效率。此外,我们发现增加攻击算力会平稳地提高针对未防御模型和经过对抗训练的模型的攻击成功率。最后,在探索了跨攻击和威胁模型的鲁棒性迁移之后,我们结合攻击与防御的规模扩展速率来研究攻防平衡。我们发现,尽管在所研究的所有模型中,攻击规模扩展的速度都超过了对抗训练,但从长远来看,更大的经过对抗训练的模型可能会使防御方获得优势。这些结果凸显了规模扩展视角的效用,并为评估未来针对前沿模型的攻击和防御提供了一个范式。

英文摘要:

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. 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑