arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2510.08255cs.LGcs.AIcs.CLcs.MA
收藏

LLM智能体中的对手塑形

Opponent Shaping in LLM Agents

Department of Computer Science, University College London(计算机科学系,伦敦大学学院);Centre for Artificial Intelligence, University College London(人工智能中心,伦敦大学学院);Department of Computer Science, University of Bologna(计算机科学系,博洛尼亚大学)

Marta Emili Garcia Segura, Stephen Hailes, Mirco Musolesi

AI总结:

本文首次研究LLM智能体的对手塑形,提出ShapeLLM方法,证明其能在博弈中引导对手行为,促进合作,确立对手塑形为多智能体LLM研究的关键维度。

摘要:

大型语言模型(LLM)正越来越多地被部署为现实环境中的自主智能体。随着这些部署规模的扩大,多智能体交互变得不可避免,因此理解此类系统中的策略行为至关重要。一个核心的开放问题是,LLM智能体是否像强化学习智能体一样,能够仅通过交互来塑造学习动态并影响其他智能体的行为。在本文中,我们首次对基于LLM的智能体进行了对手塑形(OS)研究。现有的OS算法无法直接应用于LLM,因为它们需要高阶导数、面临可扩展性限制,或依赖于Transformer中不存在的架构组件。为了解决这一差距,我们引入了ShapeLLM,这是一种针对基于Transformer的智能体量身定制的无模型OS方法的改编。使用ShapeLLM,我们考察了LLM智能体是否能在各种博弈论环境中影响共同玩家的学习动态。我们证明,LLM智能体能够成功地在竞争性博弈(迭代囚徒困境、匹配便士和斗鸡博弈)中引导对手走向可利用的均衡,并在合作性博弈(迭代雄鹿狩猎和合作版本的囚徒困境)中促进协调并提高集体福利。我们的研究结果表明,LLM智能体既能通过交互塑造他人,也能被他人塑造,从而将对手塑形确立为多智能体LLM研究的一个关键维度。

英文摘要:

Large Language Models (LLMs) are increasingly being deployed as autonomous agents in real-world environments. As these deployments scale, multi-agent interactions become inevitable, making it essential to understand strategic behavior in such systems. A central open question is whether LLM agents, like reinforcement learning agents, can shape the learning dynamics and influence the behavior of others through interaction alone. In this paper, we present the first investigation of opponent shaping (OS) with LLM-based agents. Existing OS algorithms cannot be directly applied to LLMs, as they require higher-order derivatives, face scalability constraints, or depend on architectural components that are absent in transformers. To address this gap, we introduce ShapeLLM, an adaptation of model-free OS methods tailored for transformer-based agents. Using ShapeLLM, we examine whether LLM agents can influence co-players' learning dynamics across diverse game-theoretic environments. We demonstrate that LLM agents can successfully guide opponents toward exploitable equilibria in competitive games (Iterated Prisoner's Dilemma, Matching Pennies, and Chicken) and promote coordination and improve collective welfare in cooperative games (Iterated Stag Hunt and a cooperative version of the Prisoner's Dilemma). Our findings show that LLM agents can both shape and be shaped through interaction, establishing opponent shaping as a key dimension of multi-agent LLM research.

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

↑