arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.09022cs.AI
收藏

MEMO: 带记忆的模型上下文优化用于鲁棒的多轮多智能体大语言模型游戏

MEMO: Memory-Augmented Model Context Optimization for Robust Multi-Turn Multi-Agent LLM Games

Rice University(里士满大学);The University of Texas at Austin(德克萨斯大学奥斯汀分校);Princeton University(普林斯顿大学);A*STAR;Good Start Labs;TTIC

Yunfei Xie, Kevin Wang, Bobby Cheng, Jianzhu Yao, Zhizhou Sha, Alexander Duffy, Yihan Xi, Hongyuan Mei, Cheston Tan, Chen Wei, Pramod Viswanath, Zhangyang Wang

AI总结:

MEMO通过优化推理时的上下文,结合记忆保留和探索,提升了多轮多智能体大语言模型游戏的鲁棒性和性能,显著提高了胜率并降低了运行间方差。

摘要:

多轮、多智能体的大语言模型游戏评估常表现出显著的运行间方差。在长周期互动中,早期的小偏差会随着轮次累积并被多智能体耦合放大,这会偏移胜率估计并使跨重复比赛的排名不可靠。提示选择进一步恶化这一问题,因为它会产生不同的有效策略。我们通过MEMO(带记忆的模型上下文优化)解决不稳定性和表现不佳问题,这是一种自我对战框架,通过耦合保留和探索来优化推理时的上下文。保留维护一个持久的记忆库,存储来自自我对战轨迹的结构化洞察,并在后续对战中将其作为先验注入。探索通过具有不确定性意识选择的TrueSkill进行比赛式提示进化,并使用优先级回放重新访问罕见和决定性的状态。在五个基于文本的游戏上,MEMO使GPT-4o-mini的平均胜率从25.1%提升到49.5%,使Qwen-2.5-7B-Instruct的胜率从20.9%提升到44.3%,每个任务使用2,000个自我对战游戏。运行间方差也降低,从而在提示变化下提供更稳定的排名。这些结果表明,多智能体大语言模型游戏的性能和鲁棒性通过上下文优化仍有显著提升空间。MEMO在谈判和不完美信息游戏中取得最大收益,而强化学习在完美信息设置中仍更有效。所有代码均为开源,可在https://github.com/openverse-ai/MEMO获取。

英文摘要:

Multi-turn, multi-agent LLM game evaluations often exhibit substantial run-to-run variance. In long-horizon interactions, small early deviations compound across turns and are amplified by multi-agent coupling. This biases win rate estimates and makes rankings unreliable across repeated tournaments. Prompt choice worsens this further by producing different effective policies. We address both instability and underperformance with MEMO (Memory-augmented MOdel context optimization), a self-play framework that optimizes inference-time context by coupling retention and exploration. Retention maintains a persistent memory bank that stores structured insights from self-play trajectories and injects them as priors during later play. Exploration runs tournament-style prompt evolution with uncertainty-aware selection via TrueSkill, and uses prioritized replay to revisit rare and decisive states. Across five text-based games, MEMO raises mean win rate from 25.1% to 49.5% for GPT-4o-mini and from 20.9% to 44.3% for Qwen-2.5-7B-Instruct, using $2,000$ self-play games per task. Run-to-run variance also drops, giving more stable rankings across prompt variations. These results suggest that multi-agent LLM game performance and robustness have substantial room for improvement through context optimization. MEMO achieves the largest gains in negotiation and imperfect-information games, while RL remains more effective in perfect-information settings. All code is open-source and available here: https://github.com/openverse-ai/MEMO

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

↑