arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2606.05296cs.LGcs.AI
收藏

智能体蒙特卡洛:黑盒智能体的强化学习模拟

Agentic Monte Carlo: Simulating Reinforcement Learning for Black-Box Agents

University of Cambridge(剑桥大学)

Dae Yon Hwang, Raunaq Suri, Valentin Villecroze, Anthony L. Caterini, Jesse C. Cresswell, Noël Vouitsis, Brendan Leigh Ross

AI总结:

提出Agentic Monte Carlo (AMC)方法,利用序贯蒙特卡洛从最优策略后验中采样,无需参数级优化即可对黑盒LLM智能体进行强化学习式优化,在AgentGym基准上超越提示基线并随测试时计算扩展优于GRPO。

摘要:

LLM智能体在两种不同的机制下运行:适用于强化学习(RL)的开权重智能体,以及其行为必须在测试时纯粹控制的黑盒智能体。尽管黑盒智能体通常由最先进的专有LLM支持,但仅API访问排除了参数级优化,使得大多数RL方法不适用。为解决这一限制,我们转向RL与贝叶斯推断之间的已知等价性。我们提出智能体蒙特卡洛(AMC),直接从黑盒智能体的最优策略中采样,而不是通过RL训练它。最优策略是轨迹上的后验,其先验我们定义为固定的黑盒LLM智能体。我们采用序贯蒙特卡洛从该后验中采样,通过学习一个价值函数来引导智能体,同时保持底层黑盒模型不变。我们在AgentGym基准的三个不同环境中验证了AMC,展示了相对于提示基线的显著改进,并且随着我们方法测试时计算的扩展,甚至优于组相对策略优化(GRPO)。AMC证明了执行黑盒LLM智能体的原则性RL式优化的可行性。代码可在https://github.com/layer6ai-labs/Agentic-Monte-Carlo获取。

英文摘要:

LLM agents operate in two distinct regimes: open-weight agents amenable to reinforcement learning (RL) and black-box agents whose behaviour must be controlled purely at test time. Although black-box agents are often backed by state-of-the-art proprietary LLMs, API-only access precludes parameter-level optimization, rendering most RL methods inapplicable. To address this limitation, we turn to a known equivalence between RL and Bayesian inference. We propose Agentic Monte Carlo (AMC) to directly sample from the optimal policy of a black-box agent rather than training it through RL. The optimal policy is a posterior over trajectories whose prior we define as the fixed black-box LLM agent. We employ Sequential Monte Carlo to sample from this posterior by learning a value function to steer the agent while leaving the underlying black-box model unchanged. We validate AMC on three diverse environments from the AgentGym benchmark, demonstrating significant improvements over prompting baselines and even outperforming Group Relative Policy Optimization (GRPO) as we scale the test-time compute of our method. AMC demonstrates the feasibility of performing principled RL-style optimization of black-box LLM agents. Code is available at https://github.com/layer6ai-labs/Agentic-Monte-Carlo

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑