Opponent Shaping in LLM Agents
On the map: LLM agents and tool use → Reinforcement learning for LLM agents
Abstract (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.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Placed in Reinforcement learning for LLM agents, one of 16 directions in LLM agents and tool use. Builds on 44 of its 61 references that are in the map. First posted on arXiv 9 Oct 2025.
Builds on
44 of 61 references.
Closest ancestors · 3
Same direction, newest first
- 2024Moral Alignment for LLM Agents2 Oct
- 2024How Far Are We on the Decision-Making of LLMs? Evaluating LLMs' Gaming Ability in Multi-Agent Environments18 Mar
- 2024ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RL29 Feb
Other references · 41
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2017Proximal Policy Optimization Algorithmscited by 14,441
- 2024The Llama 3 Herd of Modelscited by 14,192
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2025Qwen3 Technical Reportcited by 8,195
- 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
- 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
29 more
- 2020Learning to summarize from human feedbackcited by 2,562
- 2023A Survey of Large Language Modelscited by 2,537
- 2022Emergent Abilities of Large Language Modelscited by 2,483
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
- 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
- 2023Cognitive Architectures for Language Agentscited by 422
- 2025Towards Large Reasoning Models: A Survey of Reinforced Reasoning with Large Language Modelscited by 291
- 2024Magentic-One: A Generalist Multi-Agent System for Solving Complex Taskscited by 221
- 2017Learning with Opponent-Learning Awarenesscited by 218
- 2023Playing repeated games with Large Language Modelscited by 213
- 2024Cooperate or Collapse: Emergence of Sustainable Cooperation in a Society of LLM Agentscited by 120
- 2023Generative agent-based modeling with actions grounded in physical, social, or digital space using Concordiacited by 119
- 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 99
- 2023Can Large Language Models Serve as Rational Players in Game Theory? A Systematic Analysiscited by 91
- 2024SynCode: LLM Generation with Grammar Augmentationcited by 66
- 2024Multi-turn Reinforcement Learning from Preference Human Feedbackcited by 65
- 2023Strategic Reasoning with Language Modelscited by 64
- 2025Magistralcited by 57
- 2018Stable Opponent Shaping in Differentiable Gamescited by 49
- 2022Model-Free Opponent Shapingcited by 43
- 2022COLA: Consistent Learning with Opponent-Learning Awarenesscited by 38
- 2024AgentCoord: Visually Exploring Coordination Strategy for LLM-based Multi-Agent Collaborationcited by 26
- 2025AgentBreeder: Mitigating the AI Safety Risks of Multi-Agent Scaffolds via Self-Improvementcited by 13
- 2023Scaling Opponent Shaping to High Dimensional Gamescited by 12
- 2022The Good Shepherd: An Oracle Agent for Mechanism Designcited by 10
- 2017Reinforcement Learning Produces Dominant Strategies for the Iterated Prisoner's Dilemmacited by 7
Built on by
Citing papers per year: 2025: 1; 2026: 1.
2 papers.
Similar, not cited
Close in wording, no citation either way
- 2026Competition and Cooperation of LLM Agents in Games
- 2025Will Systems of LLM Agents Cooperate: An Investigation into a Social Dilemma
- 2025Playing games with Large language models: Randomness and strategy
- 2024Large Language Models as Agents in Two-Player Games
- 2026Payoff scaling shapes cooperation in LLM agents across languages
- 2026SOM: Structured Opponent Modeling for LLM-based Agents via Structural Causal Model
- 2024STRIDE: A Tool-Assisted LLM Agent Framework for Strategic and Interactive Decision-Making
- 2025Multi-Agent Evolve: LLM Self-Improve through Co-evolution