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

小改动,大后果:区分大语言模型中好的与坏的鲁棒性

Small Edits, Big Consequences: Telling Good from Bad Robustness in Large Language Models

Berkeley(伯克利)

Altynbek Ismailov, Salia Asanova

AI总结:

本文通过三类最小提示扰动测试六个前沿大语言模型,发现其对欠指定过度鲁棒而对语义翻转不敏感,提出应奖励差异化敏感性的评估与训练协议。

摘要:

大语言模型(LLMs)如今在误读一个词就可能破坏安全性或造成经济损失的场景中编写代码,但我们仍然期望它们能够忽略零散的拼写错误。为了探究有用的鲁棒性止于何处、有害的不敏感始于何处,我们汇编了50道LeetCode题目,并设计了三种在重要性上应当有所不同的最小提示扰动:(i)渐进式欠指定,每步删除10%的词语;(ii)词汇翻转,将关键量词对调(“max”改为“min”);(iii)术语膨胀,将普通名词替换为生僻的技术同义词。六个前沿模型,包括三个“推理调优”版本,求解每一个变异后的提示,其Python输出会对照原始测试套件进行检查,以揭示它们是复用了基线解法还是进行了适应调整。在11853次生成中,我们观察到一种鲜明的双重不对称性。即使提示缺失了90%的内容,模型在85%的情况下仍然保持正确,显示出对欠指定的过度鲁棒性;然而,面对一个会反转任务的单个量词翻转,只有54%的情况会作出反应,而推理调优变体甚至比其基础模型更不敏感。术语编辑介于两者之间,通过率为56%。因此,当前的大语言模型模糊了无害噪声与改变含义的编辑之间的界限,常常将两者都视为可忽略。遮蔽显著锚点(如函数名)可以迫使模型重新评估。我们倡导采用奖励差异化敏感性的评估和训练协议:在良性噪声下保持稳定,但在语义真正改变时进行适应——或拒绝执行。

英文摘要:

Large language models (LLMs) now write code in settings where misreading a single word can break safety or cost money, yet we still expect them to overlook stray typos. To probe where useful robustness ends and harmful insensitivity begins, we compile 50 LeetCode problems and craft three minimal prompt perturbations that should vary in importance: (i) progressive underspecification deleting 10 % of words per step; (ii) lexical flip swapping a pivotal quantifier ("max" to "min"); and (iii) jargon inflation replacing a common noun with an obscure technical synonym. Six frontier models, including three "reasoning-tuned" versions, solve each mutated prompt, and their Python outputs are checked against the original test suites to reveal whether they reused the baseline solution or adapted. Among 11 853 generations we observe a sharp double asymmetry. Models remain correct in 85 % of cases even after 90 % of the prompt is missing, showing over-robustness to underspecification, yet only 54 % react to a single quantifier flip that reverses the task, with reasoning-tuned variants even less sensitive than their bases. Jargon edits lie in between, passing through 56 %. Current LLMs thus blur the line between harmless noise and meaning - changing edits, often treating both as ignorable. Masking salient anchors such as function names can force re - evaluation. We advocate evaluation and training protocols that reward differential sensitivity: stay steady under benign noise but adapt - or refuse - when semantics truly change.

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

↑