让大模型智能体学会在多智能体环境中策略性探索与利用。
MAGE: Meta-Reinforcement Learning for Language Agents toward Strategic Exploration and Exploitation
- 通过多轮交互与反思构建上下文,引导模型基于经验优化策略。
- 在探索与利用任务中超越基线,对未知对手展现强泛化能力。
- 适合研究多智能体博弈、长期自适应学习的学者参考。
大型语言模型(LLM)代理在已学任务中表现优异,但在非平稳环境和反馈变化下难以适应。尽管上下文学习和外部记忆提供一定灵活性,但无法内化长期改进所需的适应能力。元强化学习(meta-RL)通过将学习过程嵌入模型内部提供替代方案。然而现有针对LLM的meta-RL方法主要聚焦单智能体探索,忽视多智能体环境中的战略利用。本文提出MAGE框架,使LLM代理具备策略性探索与利用能力。MAGE采用多轮训练机制,将交互历史与反思内容整合进上下文窗口,并以最终回合奖励为目标函数,激励代理根据过往经验优化策略。进一步结合基于种群的训练与代理特异性优势归一化技术,增强代理多样性并保障学习稳定性。实验表明,MAGE在探索与利用任务中均优于现有基线。此外,其对未见对手表现出强泛化能力,表明已内化战略探索与利用能力。代码已开源:https://github.com/Lu-Yang666/MAGE。
原文摘要 · Abstract (English)
Large Language Model (LLM) agents have demonstrated remarkable proficiency in learned tasks, yet they often struggle to adapt to non-stationary environments with feedback. While In-Context Learning and external memory offer some flexibility, they fail to internalize the adaptive ability required for long-term improvement. Meta-Reinforcement Learning (meta-RL) provides an alternative by embedding the learning process directly within the model. However, existing meta-RL approaches for LLMs focus primarily on exploration in single-agent settings, neglecting the strategic exploitation necessary for multi-agent environments. We propose MAGE, a meta-RL framework that empowers LLM agents for strategic exploration and exploitation. MAGE utilizes a multi-episode training regime where interaction histories and reflections are integrated into the context window. By using the final episode reward as the objective, MAGE incentivizes the agent to refine its strategy based on past experiences. We further combine population-based training with an agent-specific advantage normalization technique to enrich agent diversity and ensure stable learning. Experiment results show that MAGE outperforms existing baselines in both exploration and exploitation tasks. Furthermore, MAGE exhibits strong generalization to unseen opponents, suggesting it has internalized the ability for strategic exploration and exploitation. Code is available at https://github.com/Lu-Yang666/MAGE.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。