OLIVIA:通过推理时间动作适应实现LLM ReAct代理的在线学习
OLIVIA: Online Learning via Inference-time Action Adaptation for Decision Making in LLM ReAct Agents
AI总结:
OLIVIA通过在推理时对动作进行适应,改进LLM ReAct代理在部署中的决策能力,提供可跟踪、细粒度和不确定性感知的适应方法。
摘要:
大型语言模型代理通过交替推理、动作选择和观察来解决顺序决策任务。在部署环境中,代理反复处理相关多步骤任务时,小的动作选择错误会累积成浪费的工具调用、延迟和降低的可靠性。尽管需要部署时的改进,现有针对LLM代理的推理时间适应方法主要依赖提示或检索,通过上下文操控间接影响行为。对于ReAct风格的代理,这些方法没有暴露一个显式的决策层,可以评分候选动作、表示不确定性或从动作层面反馈进行在线更新。因此,它们在部署期间提供有限的支持。我们提出了OLIVIA,一种针对ReAct风格代理的推理时间动作适应框架。OLIVIA将LLM的最终动作选择层建模为候选动作上的上下文线性老虎机,隐藏状态冻结作为决策上下文。这种选择特别适合部署,因为它直接在动作选择接口上适应行为,保留底层推理过程,并提供显式的不确定性估计和轻量的在线更新。通过上置信界探索,OLIVIA以最小的计算开销提高了策略的样本效率。我们将在四个基准上实例化OLIVIA,并显示其在静态ReAct和基于提示的推理时间基线上的任务性能持续改进。我们的结果表明,显式的在线决策层为LLM代理在部署中的适应提供了有效的替代方案,而非纯粹基于提示或检索的适应。
英文摘要:
Large language model agents interleave reasoning, action selection, and observation to solve sequential decision-making tasks. In deployed settings where agents repeatedly handle related multi-step tasks, small action-selection errors can accumulate into wasted tool calls, latency, and reduced reliability. Despite this need for deployment-time improvement, existing inference-time adaptation methods for LLM agents mainly rely on prompting or retrieval, which influence behavior indirectly through context manipulation. For ReAct-style agents, such approaches do not expose an explicit decision layer that can score candidate actions, represent uncertainty, or be updated online from action-level feedback. As a result, they provide limited support for trackable, fine-grained, and uncertainty-aware adaptation during deployment. We propose OLIVIA, an inference-time action adaptation framework for ReAct-style agents. OLIVIA models the LLM's final action-selection layer as a contextual linear bandit over candidate actions, with frozen hidden states as decision contexts. This choice is particularly suitable for deployment because it adapts behavior directly at the action-selection interface, preserves the underlying reasoning process, and provides explicit uncertainty estimates and lightweight online updates from action-level feedback. With upper-confidence-bound exploration, OLIVIA improves the policy sample-efficiently with minimal computational overhead. We instantiate OLIVIA on four benchmarks and show that it consistently improves task performance over static ReAct and prompt-based inference-time baselines. Our results suggest that explicit online decision layers provide an effective alternative to purely prompt- or retrieval-based adaptation for LLM agents during deployment.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。