当智能体过早承诺:诊断LLM智能体中的过早承诺问题
When Agents Commit Too Soon: Diagnosing Premature Commitment in LLM Agents
AI总结:
本文提出表征承诺作为跨运行隐藏状态收敛的指标,用于诊断长程LLM智能体过早承诺问题,并在多个模型和数据集上验证其预测轨迹一致性的能力。
摘要:
长程LLM智能体可能会悄无声息地失败:它们过早地确定对证据的一种解读,然后花费剩余时间来捍卫它。我们称之为过早承诺。最终答案评分无法捕捉这种失败模式,因为它只看到答案,而不关注过程是否已经崩溃到稳定路径。我们将表征承诺定义为在固定推理步骤上跨运行的隐藏状态收敛,并将其用作轨迹一致性的早期诊断指标。在Llama-3.1-70B上运行ReAct于HotpotQA时,第4步隐藏状态相似性预测下游行为一致性(r = -0.35,偏相关r = -0.45),具有局部的时间和层间特征。该信号在Qwen-2.5-72B和Phi-3-14B以及StrategyQA(r = -0.83)上复现。它不追踪正确性:承诺错误和承诺正确的问题在激活相似性上不可区分。这一边界是核心主张。承诺告诉我们智能体是否已稳定,而非是否正确。一个运行时监控器从隐藏状态检测不一致轨迹,AUROC高达0.97(更严格划分下为0.85-0.88),而提示干预将行为方差降低28%(与令牌匹配对照相比),同时准确性统计上无变化。我们还测试了该信号是否能引导自一致性计算;在更难的基准上,它仅适度帮助,并被一个更简单的基于输出的基线所匹配。结果是对隐藏过程失败的诊断,具有明确局限性,而非通用的准确性杠杆。
英文摘要:
Tool-using LLM agents make early choices about what to search for, which evidence to trust, and what to do next. A wrong early choice can steer every later tool call, so an agent may produce a coherent but incorrect result. Existing evaluation does not reveal this process: final-answer scoring comes only after completion, and agreement across runs can be high even when every run is wrong. We ask whether hidden states reveal that repeated runs have already settled into stable behavior. Our contributions are threefold. First, we introduce representational commitment, which measures hidden-state similarity across repeated runs at the same step. On Llama-3.1-70B running ReAct on HotpotQA, we show that higher step-4 similarity is associated with lower whole-trajectory variability (r = -0.35); we find the same pattern in action sequences and replicate it on two other models and StrategyQA. This provides an internal measure for studying when agent behavior stabilizes. Second, we establish the measure's scope. Shared evidence explains much of the observed association, the HotpotQA result disappears on hard questions, and correct and confidently wrong questions overlap. We therefore show that the measure detects stability, not correctness, and cannot by itself establish that commitment was premature. Third, we evaluate monitoring and intervention. A monitor built from three partial runs predicts whole-trajectory variability (mean AUROC 0.81). A commitment prompt reduces variability by 28% relative to a token-matched filler, but not significantly relative to the standard agent after correction, and it does not improve accuracy. Together, these contributions provide a measurement and evaluation framework for studying how agent trajectories stabilize and for testing when additional evidence, sampling, or review may be useful.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。