HiL-Bench (Human-in-Loop Benchmark): 代理何时该请求帮助?
HiL-Bench (Human-in-Loop Benchmark): Do Agents Know When to Ask for Help?
AI总结:
HiL-Bench通过评估代理在任务中何时请求帮助的能力,揭示了当前基准测试的不足。核心指标Ask-F1衡量代理在请求与猜测之间的平衡,证明判断力可通过强化学习提升。
摘要:
前沿编码代理在获得完整上下文时能解决复杂任务,但在规范不完整或模糊时会崩溃。瓶颈不是原始能力,而是判断:知道何时自主行动,何时请求帮助。当前基准测试忽视了这种失败模式。它们提供无歧义的详细指示,仅奖励执行正确性,因此一个代理在缺失要求时幸运猜测得分与请求帮助的代理相同。我们提出了HiL-Bench(人机协同基准测试)来衡量这种选择性升级技能。每个任务包含经人类验证的阻塞因素(缺失信息、模糊请求、矛盾信息),这些因素只能通过逐步探索显现,而非提前检查。我们的核心指标Ask-F1,即问题精确度与阻塞因素召回率的调和平均,捕捉了过度请求与沉默猜测之间的张力;其结构设计防止了通过问题垃圾邮件来操控。在SWE和文本到SQL领域评估显示,存在显著的普遍判断差距:没有前沿模型在决定是否请求帮助时能恢复其完整信息性能的分数。失败分析识别出三种关键求助模式:过度自信的错误信念无差距检测;高不确定性检测但持续错误;广泛但不精确的升级无自我修正。这些一致的模式证实了不良求助是模型层面的缺陷,而非任务特定的。在基于形状Ask-F1奖励的强化学习训练中,证明判断力是可训练的:一个32B模型在帮助寻求质量和任务通过率上都有提升,且收益可跨领域转移。模型并未学习特定领域的求助启发式方法,而是学会检测不可解决的不确定性并采取行动。
英文摘要:
Frontier coding agents solve complex tasks when given complete context but collapse when specifications are incomplete or ambiguous. The bottleneck is not raw capability, but judgment: knowing when to act autonomously and when to ask for help. Current benchmarks are blind to this failure mode. They supply unambiguous detailed instructions and solely reward execution correctness, so an agent that makes a lucky guess for a missing requirement will score identically to one that would have asked to be certain. We present HiL-Bench (Human-in-the-Loop Benchmark) to measure this selective escalation skill. Each task contains human-validated blockers (missing information, ambiguous requests, contradictory information) that surface only through progressive exploration, not upfront inspection. Our core metric, Ask-F1, the harmonic mean of question precision and blocker recall, captures the tension between over-asking and silent guessing; its structure architecturally prevents gaming through question spam. Evaluation across SWE and text-to-SQL domains reveals a large universal judgment gap: no frontier model recovers more than a fraction of its full-information performance when deciding whether to ask. Failure analysis identifies three key help-seeking patterns: overconfident wrong beliefs with no gap detection; high uncertainty detection yet persistent errors; broad, imprecise escalation without self-correction. These consistent patterns confirm poor help-seeking is a model-level flaw, not task-specific. RL training on shaped Ask-F1 reward shows judgment is trainable: a 32B model improves both help-seeking quality and task pass rate, with gains that transfer across domains. The model does not learn domain-specific heuristics for when to ask; it learns to detect unresolvable uncertainty and act on it.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。