mlsanityData to 7 Oct 2026

Opponent Shaping in LLM Agents

arXiv 2510.08255 ↗First posted 9 Oct 2025cs.LG cs.AI cs.CLcited by 2

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

  1. 2024Moral Alignment for LLM Agents2 Oct
  2. 2024How Far Are We on the Decision-Making of LLMs? Evaluating LLMs' Gaming Ability in Multi-Agent Environments18 Mar
  3. 2024ArCHer: Training Language Model Agents via Hierarchical Multi-Turn RL29 Feb

Other references · 41

  1. 2020Language Models are Few-Shot Learnerscited by 32,199
  2. 2022Training language models to follow instructions with human feedbackcited by 15,712
  3. 2017Proximal Policy Optimization Algorithmscited by 14,441
  4. 2024The Llama 3 Herd of Modelscited by 14,192
  5. 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
  6. 2024DeepSeekMath: Pushing the Limits of Mathematical Reasoning in Open Language Modelscited by 8,851
  7. 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
  8. 2025Qwen3 Technical Reportcited by 8,195
  9. 2023Direct Preference Optimization: Your Language Model is Secretly a Reward Modelcited by 7,916
  10. 2023Toolformer: Language Models Can Teach Themselves to Use Toolscited by 4,072
  11. 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
  12. 2023Sparks of Artificial General Intelligence: Early experiments with GPT-4cited by 2,579
29 more
  1. 2020Learning to summarize from human feedbackcited by 2,562
  2. 2023A Survey of Large Language Modelscited by 2,537
  3. 2022Emergent Abilities of Large Language Modelscited by 2,483
  4. 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
  5. 2019Fine-Tuning Language Models from Human Preferencescited by 2,124
  6. 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,928
  7. 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
  8. 2023Gorilla: Large Language Model Connected with Massive APIscited by 1,302
  9. 2023Cognitive Architectures for Language Agentscited by 422
  10. 2025Towards Large Reasoning Models: A Survey of Reinforced Reasoning with Large Language Modelscited by 291
  11. 2024Magentic-One: A Generalist Multi-Agent System for Solving Complex Taskscited by 221
  12. 2017Learning with Opponent-Learning Awarenesscited by 218
  13. 2023Playing repeated games with Large Language Modelscited by 213
  14. 2024Cooperate or Collapse: Emergence of Sustainable Cooperation in a Society of LLM Agentscited by 120
  15. 2023Generative agent-based modeling with actions grounded in physical, social, or digital space using Concordiacited by 119
  16. 2024Guiding LLMs The Right Way: Fast, Non-Invasive Constrained Generationcited by 99
  17. 2023Can Large Language Models Serve as Rational Players in Game Theory? A Systematic Analysiscited by 91
  18. 2024SynCode: LLM Generation with Grammar Augmentationcited by 66
  19. 2024Multi-turn Reinforcement Learning from Preference Human Feedbackcited by 65
  20. 2023Strategic Reasoning with Language Modelscited by 64
  21. 2025Magistralcited by 57
  22. 2018Stable Opponent Shaping in Differentiable Gamescited by 49
  23. 2022Model-Free Opponent Shapingcited by 43
  24. 2022COLA: Consistent Learning with Opponent-Learning Awarenesscited by 38
  25. 2024AgentCoord: Visually Exploring Coordination Strategy for LLM-based Multi-Agent Collaborationcited by 26
  26. 2025AgentBreeder: Mitigating the AI Safety Risks of Multi-Agent Scaffolds via Self-Improvementcited by 13
  27. 2023Scaling Opponent Shaping to High Dimensional Gamescited by 12
  28. 2022The Good Shepherd: An Oracle Agent for Mechanism Designcited by 10
  29. 2017Reinforcement Learning Produces Dominant Strategies for the Iterated Prisoner's Dilemmacited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 1; 2026: 1.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026Competition and Cooperation of LLM Agents in Games
  2. 2025Will Systems of LLM Agents Cooperate: An Investigation into a Social Dilemma
  3. 2025Playing games with Large language models: Randomness and strategy
  4. 2024Large Language Models as Agents in Two-Player Games
  5. 2026Payoff scaling shapes cooperation in LLM agents across languages
  6. 2026SOM: Structured Opponent Modeling for LLM-based Agents via Structural Causal Model
  7. 2024STRIDE: A Tool-Assisted LLM Agent Framework for Strategic and Interactive Decision-Making
  8. 2025Multi-Agent Evolve: LLM Self-Improve through Co-evolution