Skip to main content
QUICK REVIEW

[Paper Review] CompeteAI: Understanding the Competition Dynamics in Large Language Model-based Agents

Qinlin Zhao, Jindong Wang|arXiv (Cornell University)|Oct 26, 2023
FinTech, Crowdfunding, Digital FinanceBusiness, Management and Accounting7 citations
TL;DR

This paper introduces CompeteAI, a framework for studying competition dynamics in LLM-based agents using a simulated virtual town with restaurant and customer agents. Using GPT-4, it demonstrates that competitive environments drive strategic adaptation, social learning, and improved service quality—aligning with sociological and economic theories—highlighting the potential of LLM agents for simulating real-world competitive systems.

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.

Motivation & Objective

  • To address the research gap in understanding competition behaviors among LLM-based agents, which are underexplored compared to cooperative behaviors.
  • To develop a generalizable framework for studying competition in LLM-based agent systems.
  • To simulate a realistic competitive environment using GPT-4, featuring restaurant agents competing for customers with diverse preferences.
  • To investigate how competition drives strategic adaptation, imitation, and innovation in autonomous agents.
  • To validate findings against sociological and economic theories such as social learning and market competition theory.

Proposed method

  • Propose a general framework, CompeteAI, to systematically study competition dynamics in LLM-based agents.
  • Design a virtual town environment with two agent types: restaurant agents (managing operations) and customer agents (evaluating experiences).
  • Implement agents using GPT-4, enabling natural language reasoning and decision-making in a text-based simulation.
  • Endow customer agents with heterogeneous traits (income, taste, health, dietary restrictions) to reflect real-world diversity.
  • Define competition as a mechanism where restaurant agents strive to attract and retain customers through strategic improvements.
  • Use iterative interactions and feedback loops to observe emergent behaviors such as imitation, differentiation, and service optimization.
Figure 1: (A) We construct an environment for agents that fosters competitive behaviors, aligning with established sociological and economic theories. (B) We implement LLM-based restaurant agents and customer agents in a competitive environment.
Figure 1: (A) We construct an environment for agents that fosters competitive behaviors, aligning with established sociological and economic theories. (B) We implement LLM-based restaurant agents and customer agents in a competitive environment.

Experimental results

Research questions

  • RQ1How do LLM-based agents perceive and respond to competitive environments in a structured simulation?
  • RQ2To what extent do competing agents exhibit social learning behaviors such as imitation and differentiation?
  • RQ3How does market competition influence service quality and customer satisfaction in LLM-based agent systems?
  • RQ4What strategic adaptations emerge in restaurant agents under sustained competitive pressure?
  • RQ5To what degree do the observed behaviors align with established sociological and economic theories of competition?

Key findings

  • LLM-based agents demonstrate contextual competency by accurately perceiving and responding to competitive dynamics in the simulated environment.
  • Competing agents engage in mutual imitation while simultaneously differentiating their strategies, consistent with social learning theory.
  • Competition drives measurable improvements in service quality and customer-centric strategy development, aligning with market competition theory.
  • Agents evolve new operating strategies—such as menu innovation and targeted promotions—through sustained competitive pressure.
  • The simulation reveals a Matthew Effect, where leading agents gain disproportionate advantages, reflecting real-world competitive dynamics.
  • Price consistency is observed among top-performing agents, suggesting strategic rationality in pricing behavior under competition.
Figure 2: A general framework for studying the competition between AI agents. Our framework consists of four main components: environment selection, environment setup, simulation execution, and analysis. Environment setup is the key component, where competitors and judges interact with each other an
Figure 2: A general framework for studying the competition between AI agents. Our framework consists of four main components: environment selection, environment setup, simulation execution, and analysis. Environment setup is the key component, where competitors and judges interact with each other an

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.