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

通过对手利用实现大语言模型的策略增强规划

Strategy-Augmented Planning for Large Language Models via Opponent Exploitation

Nanjing University of Information Science & Technology(南京信息工程大学);Nanjing Artificial Intelligence Research of IA(南京人工智能研究所);University of Chinese Academy of Sciences(中国科学院大学);Institute of Automation, Chinese Academy of Sciences(中国科学院自动化研究所);School of Artificial Intelligence, University of Chinese Academy of Sciences(中国科学院大学人工智能学院)

Shuai Xu, Sijia Cui, Yanna Wang, Bo Xu, Qi Wang

AI总结:

本文提出策略增强规划(SAP)框架,通过策略评估网络(SEN)显式建模并贪婪利用对手策略,使LLM智能体在MicroRTS中提升85.35%性能,并能泛化到未见策略。

摘要:

在对抗性领域中,高效地建模和利用对手一直是一个长期挑战。基于大量文本数据训练的大语言模型(LLMs)最近在通用任务中展现出卓越的性能,为对手建模引入了新的研究方向。一些研究主要侧重于直接使用LLMs,根据包含对手描述的精心设计的提示上下文来生成决策,但这些方法仅限于LLMs具备足够领域专业知识的场景。为了解决这一问题,我们引入了一个两阶段的策略增强规划(SAP)框架,该框架通过利用一个关键组件——策略评估网络(SEN),显著增强了基于LLM的智能体的对手利用能力。具体而言,在离线阶段,我们构建一个显式的策略空间,并随后收集策略-结果对数据用于训练SEN网络。在在线阶段,SAP动态识别对手的策略,并通过在训练良好的SEN上搜索最佳响应策略来贪婪地利用它们,最后通过精心设计的提示将策略转化为一系列行动。实验结果表明,SAP展现出强大的泛化能力,使其不仅能够有效应对先前遇到过的对手策略,还能应对新颖的、未见过的策略。在MicroRTS环境中,SAP相比基线方法实现了85.35%的性能提升,并在与最先进的(SOTA)基于规则的AI的竞争中达到了强化学习方法的竞争力水平。我们的代码可在 https://github.com/hsushuai/SAP 获取。

英文摘要:

Efficiently modeling and exploiting opponents is a long-standing challenge in adversarial domains. Large Language Models (LLMs) trained on extensive textual data have recently demonstrated outstanding performance in general tasks, introducing new research directions for opponent modeling. Some studies primarily focus on directly using LLMs to generate decisions based on the elaborate prompt context that incorporates opponent descriptions, while these approaches are limited to scenarios where LLMs possess adequate domain expertise. To address that, we introduce a two-stage Strategy-Augmented Planning (SAP) framework that significantly enhances the opponent exploitation capabilities of LLM-based agents by utilizing a critical component, the Strategy Evaluation Network (SEN). Specifically, in the offline stage, we construct an explicit strategy space and subsequently collect strategy-outcome pair data for training the SEN network. During the online phase, SAP dynamically recognizes the opponent's strategies and greedily exploits them by searching best response strategy on the well-trained SEN, finally translating strategy to a course of actions by carefully designed prompts. Experimental results show that SAP exhibits robust generalization capabilities, allowing it to perform effectively not only against previously encountered opponent strategies but also against novel, unseen strategies. In the MicroRTS environment, SAP achieves a $85.35\%$ performance improvement over baseline methods and matches the competitiveness of reinforcement learning approaches against state-of-the-art (SOTA) rule-based AI. Our code is available at https://github.com/hsushuai/SAP.

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

↑