paper-with-me

홈 › Papers

Opponent Shaping in LLM Agents

2025-10-09 · Marta Emili Garcia Segura, Stephen Hailes, Mirco Musolesi arxiv

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.

📄 PDF Abstract BibTeX arXiv:2510.08255

Code (0)

등록된 구현이 없습니다.

Tasks

Reinforcement Learning

Similar Papers 제목 키워드 기반

Advantage Alignment Algorithms

2024-06-20 · Juan Agustin Duque, Milad Aghajohari, Tim Cooijmans, Razvan Ciuca 외

Artificially intelligent agents are increasingly being integrated into human decision-making: from large language model (LLM) assistants to autonomous vehicles. These systems often optimize their individual objective, le…

Autonomous VehiclesDecision MakingLanguage ModelingLanguage Modelling+1

Leading the Pack: N-player Opponent Shaping

2023-12-19 · Alexandra Souly, Timon Willi, Akbir Khan, Robert Kirk 외

Reinforcement learning solutions have great success in the 2-player general sum setting. In this setting, the paradigm of Opponent Shaping (OS), in which agents account for the learning of their co-players, has led to ag…

Preference-based opponent shaping in differentiable games

2024-12-04 · Xinyu Qiao, Yudong Hu, Congying Han, Weiyan Wu 외

Strategy learning in game environments with multi-agent is a challenging problem. Since each agent's reward is determined by the joint strategy, a greedy learning strategy that aims to maximize its own reward may fall in…

Stable Opponent Shaping in Differentiable Games

2018-11-20 · ICLR 2019 5 · Alistair Letcher, Jakob Foerster, David Balduzzi, Tim Rocktäschel 외

A growing number of learning methods are actually differentiable games whose players optimise multiple, interdependent objectives in parallel -- from GANs and intrinsic curiosity to multi-agent RL. Opponent shaping is a …

Model-Free Opponent Shaping

2022-05-03 · Chris Lu, Timon Willi, Christian Schroeder de Witt, Jakob Foerster

In general-sum games, the interaction of self-interested learning agents commonly leads to collectively worst-case outcomes, such as defect-defect in the iterated prisoner's dilemma (IPD). To overcome this, some methods,…

model