校准后再行动:在大语言模型代理中考虑成本的探索
Calibrate-Then-Act: Cost-Aware Exploration in LLM Agents
AI总结:
本文提出Calibrate-Then-Act框架,使LLM代理在不确定环境下显式平衡成本与不确定性,从而更优地决策。
摘要:
大语言模型代理被部署在需要交互以获取信息的环境中。在这些场景中,代理必须权衡行动中的内在成本不确定性,例如何时停止探索并提交答案。例如,在编程任务中,代理可能运行生成的代码,或为该代码片段生成测试;编写和运行测试的成本非零,但通常低于运行有缺陷代码的成本。本文表明,可以通过诱导LLM代理显式权衡这些成本-不确定性权衡,使代理在环境中表现更优。我们正式化了多个任务,包括检索增强的问答和文件阅读编码任务,作为在不确定性下的连续决策问题。每个问题都有潜在的环境状态影响代理性能。我们引入了名为Calibrate-Then-Act(CTA)的框架,通过将代理传递推断出的环境状态先验信息,使其能够更优地行动。此信息在定性上改变了代理行为,并向代理添加了非标准RL训练所学的环境敏感性。在合成任务、问答和文件阅读上的结果表明,通过CTA显式进行成本-收益权衡有助于代理发现更优的决策策略。
英文摘要:
LLM agents are deployed in environments where they must interact to acquire information. In these scenarios, the agent must reason about inherent cost-uncertainty tradeoffs in how to act, such as when to stop exploring and commit to an answer. For instance, on a programming task, an agent might run the code it generates, or it might generate tests for that code snippet; the cost of writing and running a test is nonzero, but typically lower than the cost of running buggy code. In this work, we show that we can induce LLM agents to explicitly reason about balancing these cost-uncertainty tradeoffs, then act more optimally in their environments. We formalize multiple tasks, including retrieval-augmented QA and a file reading coding task, as sequential decision-making problems under uncertainty. Each problem has latent environment state that impacts the agent's performance. We introduce a framework called Calibrate-Then-Act (CTA), where we pass the agent an inferred prior about this environment state to enable it to act more optimally. This information qualitatively changes agent behavior, and adds environment sensitivity to the agent which is not learned via standard RL training. Our results on a synthetic task, QA, and file reading show that making cost-benefit tradeoffs explicit with CTA helps agents discover more optimal decision-making strategies.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。