Skip to main content
QUICK REVIEW

[论文解读] Jailbreak Scaling Laws for Large Language Models: Polynomial-Exponential Crossover

Indranil Halder, Annesya Banerjee|arXiv (Cornell University)|Mar 11, 2026
Language and cultural evolutionSocial Sciences被引用 0
一句话总结

该论文提出一种基于自旋玻璃的生成模型(SpinLLM),以解释对抗性越狱提示注入如何使攻击成功率随推理时样本数量的增加从多项式扩展到指数,并根据注入强度和模型 regime 进行划分,在大语言模型上进行经验验证。

ABSTRACT

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. To explain this phenomenon, 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. Within this framework, we analyze prompt injection-based jailbreaking. 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 derive these behaviors analytically and confirm them empirically on large language models. This transition between two regimes is due to the appearance of an ordered phase in the spin chain under a strong magnetic field, which suggests that the injected jailbreak prompt enhances adversarial order in the language model.

研究动机与目标

  • 激励并量化对抗性提示注入在推理时样本数量增加时对安全越狱的影响。
  • 开发一个可行的能量基生成模型,受自旋玻璃启发,用以捕捉在越狱提示下 LLM 的安全与不安全生成。
  • 表征弱场(多项式)与强场(指数)两种 regime,并给出将模型参数与扩展规律联系起来的解析结果。
  • 在使用越狱提示的情况下,对大语言模型进行经验验证理论预测并评估模型。

提出的方法

  • 定义一个能量基生成模型,其中每个词元是一个自旋,生成来自 p 自旋哈密顿量的 Gibbs 测度。
  • 引入师生框架,其中不安全簇由教师指定,外部错配场 h 将学生偏置到不安全簇。
  • 通过 replica symmetry breaking 分析推导两种扩展 regime:弱场中的幂律 ASR 增长和强场中的指数 ASR 增长。
  • 使用 Langevin 采样或自回归采样将能量基模型与类似扩散的语言模型采样连接起来。
  • 给出大 N 极限下 ASR 扩展的解析结果(定理1与定理2),并将参数与泊松-狄里克克聚簇权重联系起来。
  • 在 walledai/AdvBench 上用 Mistral 作为评判标准、并对多种 LLM(如 Llama-8B、3B、3.2B)进行经验验证。
Figure 1: Attack success rate $\Pi_{k}$ is plotted against number of inference time samples $k$ . The experiment is performed with Mistral-7B-Instruct-v0.3 acting as the judge of jailbreaking on walledai/AdvBench dataset using the attack method in Zou et al. ( 2023 ) .
Figure 1: Attack success rate $\Pi_{k}$ is plotted against number of inference time samples $k$ . The experiment is performed with Mistral-7B-Instruct-v0.3 acting as the judge of jailbreaking on walledai/AdvBench dataset using the attack method in Zou et al. ( 2023 ) .

实验结果

研究问题

  • RQ1越狱提示注入如何随着推理时样本数量增加而影响攻击成功率的扩展?
  • RQ2是否可以用基于自旋玻璃的模型捕捉安全与不安全生成,并预测在对抗性提示下的幂律到指数的拐点?
  • RQ3在攻击扩展方面,弱场与强场 regime 是怎样的,模型参数如何影响它们?
  • RQ4理论扩展规律是否与在越狱提示下的大语言模型的经验观察一致?
  • RQ5越狱提示的长度或强度与错配场及安全结果之间有何关系?

主要发现

  • 攻击成功率的扩展从多项式到指数在注入强度增加时发生转换,与理论和经验数据一致。
  • 在弱场 regime 中,ASR 遵循关于 k 的幂律间隙衰减,包含与 Poisson–Dirichlet 矩有关的显式表达式(定理1)。
  • 在强场 regime 中,学生测度变得对称性复刻,ASR 间隙随 k 指数衰减(定理2)。
  • 更深的推理(更大的 m_l)降低指数 nu,放慢 1−Pi_k 的衰减,暗示在缺乏强错配时更深层次提升鲁棒性。
  • 关于 LLM(GPT-4.5 Turbo、Vicuna、Llama 变体)的经验结果在对数(-对数 Pi_k) 的线性趋势以及在较高提示注入长度下的指数扩展方面与预测具有定性一致性。
  • 更长的越狱提示增加了有效错配场,提升 nu 与 mu,促使模型出现更强的对抗序。
Figure 2: A schematic view of the low energy landscape of large number of spins interacting via the spin-glass Hamiltonian. In low temperature replica symmetry breaking phase the Gibbs measure decomposes into many hierarchically organized (based on overlaps) pure states/clusters; it is common to pic
Figure 2: A schematic view of the low energy landscape of large number of spins interacting via the spin-glass Hamiltonian. In low temperature replica symmetry breaking phase the Gibbs measure decomposes into many hierarchically organized (based on overlaps) pure states/clusters; it is common to pic

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。