大型语言模型的越狱缩放定律:多项式-指数交叉
Jailbreak Scaling Laws for Large Language Models: Polynomial-Exponential Crossover
AI总结:
研究发现对抗性提示注入攻击可使攻击成功率从无注入时的缓慢多项式增长变为随推理样本数指数增长,并通过自旋玻璃模型从理论上解释了这一现象。
摘要:
对抗性攻击可以可靠地将安全对齐的大型语言模型引导至不安全行为。经验上,我们发现对抗性提示注入攻击可以将攻击成功率从无注入时观察到的缓慢多项式增长放大为随推理样本数指数增长。我们首先通过一组关于上下文安全生成分布的最小假设,确定了这两种机制的统计基础,并推导出两种缩放定律。为了进一步解释这一现象,我们提出了一个基于自旋玻璃系统的代理语言理论生成模型,该系统处于复制对称破缺状态,生成样本来自相关的吉布斯测度,并将低能、有偏大小的子集标记为不安全。我们分析展示了该模型如何自然实现最小假设。短注入提示对应于指向不安全簇中心的弱磁场,导致攻击成功率随推理样本数呈幂律缩放;而长注入提示(即强磁场)则导致指数缩放。我们在参数规模从3B到70B的广泛大型语言模型中观察到了定性一致的行为。特别是,主要趋势在多种攻击方法(如GCG和AutoDAN)以及基准数据集(如AdvBench和HarmBench)中保持稳定。
英文摘要:
Adversarial attacks can reliably steer safety-aligned large language models toward unsafe behavior. Empirically, we find that adversarial prompt-injection attacks can amplify attack success rate from the slow polynomial growth observed without injection to exponential growth with the number of inference-time samples. We first identify a minimal statistical mechanism for these two regimes by giving a small set of assumptions on the distribution of safe generation across contexts under which both scaling laws follow. To explain this phenomenon further, we propose a theoretical generative model of proxy language in terms of a spin-glass system operating in a replica-symmetry-breaking regime, where generations are drawn from the associated Gibbs measure and a subset of low-energy, size-biased clusters is designated unsafe. We analytically show how this model naturally realizes the minimal assumptions. Short injected prompts correspond to a weak magnetic field aligned towards unsafe cluster centers and yield a power-law scaling of attack success rate with the number of inference-time samples, while long injected prompts, i.e., strong magnetic field, yield exponential scaling. We observe qualitatively consistent behavior across a broad range of large language models, spanning parameter scales from 3B to 70B. In particular, the main trends remain stable across multiple attack methods, such as GCG and AutoDAN, as well as across benchmark datasets such as AdvBench and HarmBench.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。