CompeteAI: Understanding the Competition Dynamics of Large Language Model-based Agents

Qinlin Zhao, Jindong Wang, Yixuan Zhang, Yiqiao Jin, Kaijie Zhu +2 more
2/12/2026

No official code found. Best implementation: microsoft/competeai (83 stars, MIT, last commit 2024-07-25).

Abstract

Large language models (LLMs) have been widely used as agents to complete different tasks, such as personal assistance or event planning. While most of the work has focused on cooperation and collaboration between agents, little work explores competition, another important mechanism that promotes the development of society and economy. In this paper, we seek to examine the competition dynamics in LLM-based agents. We first propose a general framework for studying the competition between agents. Then, we implement a practical competitive environment using GPT-4 to simulate a virtual town with two types of agents, restaurant agents and customer agents. Specifically, the restaurant agents compete with each other to attract more customers, where competition encourages them to transform, such as cultivating new operating strategies. Simulation experiments reveal several interesting findings at the micro and macro levels, which align well with existing market and sociological theories. We hope that the framework and environment can be a promising testbed to study competition that fosters understanding of society. Code is available at: https://github.com/microsoft/competeai.

View on arXivView PDF

Code Implementations(1)

microsoft/competeaiCommunity100%
MIT

[ICML 2024 Oral] A framework for society simulation that supports complex simulation, for example: multi-scene.

8313Shell, PythonAug 30, 20232 years agoMIT
agent-based-simulationllm

Similar Papers

Cite this paper

@article{zhao2026competeai,
  title  = {CompeteAI: Understanding the Competition Dynamics of Large Language Model-based Agents},
  author = {Qinlin Zhao and Jindong Wang and Yixuan Zhang and Yiqiao Jin and Kaijie Zhu and Hao Chen and Xing Xie},
  year   = {2026},
  eprint = {2310.17512},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2310.17512},
  journal = {ICML 2023 2023}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2310.17512.svg)](https://codeofpaper.com/paper/2310.17512)

Discussion