相同训练的语言模型在不同越狱攻击下失效
研究论文 · 2026/11/06
该研究探究了相同预训练数据但不同随机种子对语言模型越狱鲁棒性的影响。针对25种预训练数据配方,每种配方使用3个预训练种子得到1B基础模型,再对每个模型进行2个种子的相同安全后训练,共150个模型。对每个模型在共享越狱提示集上收集20个响应,计算每对模型间逐提示拒绝率的相关系数。结果显示,同一预训练运行的两个后训练副本的逐提示非拒绝率平均相关系数为0.984;不同预训练种子降至0.811;不同数据配方仅略降至0.779。这表明越狱有效性更依赖于预训练运行而非数据配方,该模式在全部25种配方及150M和300M参数下均成立。实践中,在一个检查点上找到的最佳攻击模板(共91种)在新预训练种子后仅27%的模型对中保持最佳,而新后训练种子后为67%。每个预训练运行还留下指纹:在3211个提示上,逐提示非拒绝率能100%识别出75次运行中的对应预训练运行,随机50个提示子集仍有98%的识别率。
该研究挑战了越狱基准测试将单次检查点的脆弱性视为数据属性的假设,揭示了预训练随机性对安全性的主导影响,对模型安全评估和可复现性研究具有重要启示。
Jailbreak benchmarks test one checkpoint and treat which jailbreaks break it as a property of its pretraining data and safety training. We ask whether another pretraining run of the same data, given the same safety training, would break on the same jailbreaks. For each of 25 pretraining data recipes, we take 1B base models from 3 pretraining seeds and give each the same safety post-training with 2 post-training seeds, for 150 models in all. We then collect 20 responses from every model to a shared set of jailbreak prompts and correlate the per-prompt non-refusal rates between every pair of models. On average, two post-trained copies of the same pretraining run have per-prompt non-refusal rates that correlate at 0.984. A different pretraining seed lowers the correlation to 0.811, and a different data recipe lowers it only slightly further, to 0.779. These results indicate that which jailbreaks break a checkpoint depends much more on its pretraining run than on its data, a pattern that holds in all 25 data recipes and at 150M and 300M parameters. In practice, the best of 91 attack templates found on one checkpoint stays the best after a new pretraining seed in only 27% of model pairs, against 67% after a new post-training seed. Each pretraining run also leaves a fingerprint: across 3,211 prompts, a model's per-prompt non-refusal rates identify its pretraining run among all 75 runs every time, and a random subset of 50 prompts still does so 98% of the time.