arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.12128cs.CLcs.CY
收藏

隐喻并非注意力所需全部

Metaphor Is Not All Attention Needs

Sapienza University of Rome Department of Computer, Control and Management Engineering(罗马大学Sapienza计算机、控制与管理工程系);DEXAI – Icaro Lab(DEXAI – Icaro实验室);University of Rome Tor Vergata(罗马大学Tor Vergata);Sant’Anna School of Advanced Studies(Sant’Anna高级研究学校)

Olga Sorokoletova, Francesco Giarrusso, Giacomo De Luca, Piercosma Bisconti, Matteo Prandi, Federico Pierucci, Marcello Galisai, Vincenzo Suriani, Daniele Nardi

AI总结:

本文研究文学式绕过策略为何有效,发现其效果源于风格不规则性而非对文学格式的识别失败,表明安全机制需考虑风格变化对模型行为的影响。

摘要:

大语言模型正越来越多地应用于安全关键型应用,其中它们抵抗有害指令的能力至关重要。尽管训练后旨在使模型对许多绕过策略具有鲁棒性,但最近的证据表明,诸如诗歌转换之类的风格改写仍能以令人担忧的效果绕过安全机制。这引发了一个核心问题:为什么文学绕过策略能够成功?本文研究其有效性是否依赖于特定的诗歌手法,是否是对文学格式的识别失败,还是对模型如何处理风格不规则提示的更深层次变化。我们通过注意力模式的可解释性分析来解决这个问题。我们通过输入层面的消融研究来评估个别和组合诗歌手法的贡献;构建了注意力地图的可解释向量表示;对这些表示进行聚类,并训练线性探针以预测安全结果和文学格式。我们的结果表明,模型在区分诗歌和散文格式方面具有高准确性,但难以在每种格式内预测绕过成功。聚类进一步揭示了清晰的文学格式分离,但并非由安全标签决定。这些发现表明,绕过成功并非源于对诗歌格式识别的失败;而是诗歌提示诱导了不同的处理模式,这些模式在很大程度上独立于有害内容检测。总体而言,文学绕过似乎通过积累的风格不规则性来使大语言模型产生偏差,而不是通过任何单一的诗歌手法。这种风格不规则性改变了提示处理并避开了训练后考虑的词法触发器。这表明,鲁棒性需要考虑风格引起的模型行为变化的安全机制。我们使用Qwen3-14B作为代表性的开源案例研究。

英文摘要:

Large language models are increasingly deployed in safety-critical applications, where their ability to resist harmful instructions is essential. Although post-training aims to make models robust against many jailbreak strategies, recent evidence shows that stylistic reformulations, such as poetic transformation, can still bypass safety mechanisms with alarming effectiveness. This raises a central question: why do literary jailbreaks succeed? In this work, we investigate whether their effectiveness depends on specific poetic devices, on a failure to recognize literary formatting, or on deeper changes in how models process stylistically irregular prompts. We address this problem through an interpretability analysis of attention patterns. We perform input-level ablation studies to assess the contribution of individual and combinations of poetic devices; construct an interpretable vector representation of attention maps; cluster these representations and train linear probes to predict safety outcomes and literary format. Our results show that models distinguish poetic from prose formats with high accuracy, yet struggle to predict jailbreak success within each format. Clustering further reveals clear separation by literary format, but not by safety label. These findings indicate that jailbreak success is not caused by a failure to recognize poetic formatting; rather, poetic prompts induce distinct processing patterns that remain largely independent of harmful-content detection. Overall, literary jailbreaks appear to misalign large language models not through any single poetic device, but through accumulated stylistic irregularities that alter prompt processing and avoid lexical triggers considered during post-training. This suggests that robustness requires safety mechanisms that account for style-induced shifts in model behavior. We use Qwen3-14B as a representative open-weight case study.

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

↑