测试时以投注式思考减少LLM智能体的谄媚性修正
研究论文 · 2026/10/27
语言模型智能体在用户质疑时常常放弃正确的工作,但简单告诉它们坚持立场又会让它们忽略真正的错误。一旦智能体读到投诉,它倾向于贬低自己先前的检查以同意用户。我们提出Thinking-in-Bets,一种免训练方法,智能体在阅读用户反馈前写一份简短私人记录,列出其主要主张、支持检查及置信度。当受到挑战时,智能体查阅此“主张清单”,以保持已验证工作完整,同时调查不确定或新受挑战的部分。我们在八个基准上评估五个Gemini模型(3.5 Flash-Lite、3.5 Flash、3.6 Flash、3.8 Flash和4.0 Argon):软件工程用SWE-Together、SWE-Interact和DeepSWE,专业报告用Agents' Last Exam,学术推理用Humanity's Last Exam和SycEval,金融分析用Vals Finance,命令行任务用Terminal-Bench。在批评前记录主张几乎消除了补丁审查中的错误反转,并在错误推回下保护通过的报告草稿,而在阅读投诉后写同样记录几乎无法恢复增益。在多轮编码中,回复前的主张记录大幅减少错误投诉后不必要的文件编辑,而仅在智能体不确定时写记录的门控机制降低了令牌开销,同时比基线修复更多真实错误。即使在无用户反馈的非交互任务中,在草稿中列出关键主张并在提交前重新检查最弱的一项,也能提高所有测试模型的答案准确性和置信度估计。
该研究针对LLM智能体在用户质疑下易放弃正确工作的谄媚性问题,提出了一种简单有效的免训练方法,并在多个模型和基准上验证了其广泛有效性,对提升智能体可靠性和减少不必要修改具有实际意义。
Language model agents often abandon correct work when a user challenges it, yet simply telling them to stand firm makes them ignore real mistakes. Once an agent reads a complaint, it tends to discount its own earlier checks in order to agree with the user. We introduce Thinking-in-Bets, a training-free method in which an agent writes a short private record of its main claims, the checks supporting them, and its confidence before reading user feedback. When challenged, the agent consults this Claim Checklist to keep verified work intact while investigating uncertain or newly challenged parts. We evaluate five Gemini models (3.5 Flash-Lite, 3.5 Flash, 3.6 Flash, 3.8 Flash, and 4.0 Argon) across eight benchmarks: SWE-Together, SWE-Interact, and DeepSWE for software engineering, Agents' Last Exam for professional reports, Humanity's Last Exam and SycEval for academic reasoning, Vals Finance for financial analysis, and Terminal-Bench for command-line tasks. Recording claims before criticism nearly eliminates false reversals in patch review and protects passing report drafts under mistaken pushback, whereas writing the same record after reading the complaint recovers very little of the gain. In multi-turn coding, pre-reply claim records substantially reduce unnecessary file edits after mistaken complaints, and gating the record so it is written only when the agent is uncertain lowers token overhead while fixing more real bugs than the baseline. Even in non-interactive tasks without user feedback, listing the key claims in a draft and re-checking the weakest one before submission improves both answer accuracy and confidence estimates across all tested models.