Cooperate or Collapse: Emergence of Sustainable Cooperation in a Society of LLM Agents

Giorgio Piatti, Zhijing Jin, Max Kleiman-Weiner, Bernhard Schölkopf, Mrinmaya Sachan, Rada Mihalcea

As large language models (LLMs) transition from simple chatbots to autonomous agents, they are increasingly handed the keys to complex decision-making processes. But what happens when these agents have to share finite resources? In a new study, researchers explore whether a society of LLMs can avoid the classic economic dilemma known as the "Tragedy of the Commons."

The Challenge of Shared Resources

The "Tragedy of the Commons" occurs when individual users, acting independently according to their own self-interest, deplete a shared resource, contrary to the common good. While decades of research exist on how humans navigate these social dilemmas, little is known about how LLMs behave in multi-agent, multi-turn strategic environments.

Existing AI safety benchmarks typically focus on single-agent behavior or simple zero-sum games like Chess or Go. However, real-world AI safety often depends on sustainable cooperation—the ability to balance immediate rewards with long-term group stability. The authors tackle a critical question: Can LLMs develop decentralized norms to manage resources, or will they default to a "grab-all-you-can" strategy that leads to systemic collapse?

Overview of the GovSim environment and resource sharing scenarios.

Introducing GovSim

To study this, the research team developed the Governance of the Commons Simulation (GovSim). In this generative simulation platform, a society of AI agents must collectively balance exploiting a common resource with sustaining it for future use.

The benchmark includes three distinct scenarios:

  • Fishery: Managing a shared lake of fish.
  • Pasture: Managing grass for sheep grazing.
  • Pollution: Balancing factory production with river cleanliness.

In GovSim, five agents interact over a simulated period of 12 "months." Each month follows a structured cycle:

  1. Strategy & Planning: Agents reflect on past events and plan their approach.
  2. Harvesting: Agents privately decide how much of a resource to extract.
  3. Communication: Agents engage in open-ended natural language discussion with one another.
  4. Reflection: Agents synthesize insights from the month’s events to inform future actions.
The monthly cycle of an agent in GovSim, detailing the prompts used for harvesting, discussion, and reflection.

The resource dynamics are mathematically defined. For example, in the Fishery scenario, the resource doubles every month up to a carrying capacity. If the total harvest exceeds a certain threshold, the population shrinks. If it hits a "collapse" floor, the simulation ends in failure.

Key Insights and Results

The researchers evaluated 15 different LLMs, ranging from closed-weights models like GPT-4o and Claude-3 Opus to open-weights models like Llama-3 and Qwen-110B. The results reveal a sobering reality about current AI capabilities.

  • Survival is Rare: Most current LLMs fail to cooperate, leading to total resource collapse. Even the best-performing model, GPT-4o, only achieved a 53.3% survival rate across all scenarios. Smaller models (like Llama-3-8B) act "blindly greedy" and fail to sustain resources past the first month.
  • Communication is Critical: Ablation studies showed that when communication was disabled, resource overuse increased by 22%. When allowed to converse, negotiation was the dominant form of dialogue, with agents actively attempting to coordinate on extraction limits.
  • The Power of Moral Reasoning: The researchers introduced a novel prompting technique based on Universalization—a moral philosophy principle where an agent asks, "What if everyone acted this way?" Forcing the LLM to consider the aggregate effect of its policy was a game-changer, increasing average survival time by 4 months and significantly boosting efficiency across almost all models.
  • The "Greedy Newcomer" Test: When a sustainable community was disrupted by a single "greedy newcomer" programmed to maximize profit, the group often collapsed. However, in some GPT-4o runs, the original agents successfully negotiated with the newcomer to adopt sustainable norms.
  • Belief Formation: Success in GovSim highly correlated with an agent's ability to form accurate beliefs about what other agents were likely to do, suggesting that a strong "Theory of Mind" is a prerequisite for sustainable governance.

Looking Ahead

While GovSim provides a vital playground for studying AI cooperation, the authors note several limitations. Real-world ecosystems feature far more variables and unpredictable shocks than the simplified GovSim model. Additionally, the simulations were limited to small, homogeneous populations of five identical agents, whereas real-world AI ecosystems will likely be a diverse mix of different models and capabilities.

By open-sourcing the GovSim environment, agent prompts, and a comprehensive web interface, the researchers have laid the groundwork for the community to build AI systems that don't just follow instructions, but understand how to coexist sustainably in a world of shared, finite resources.

Summary updated

BibTeX
@inproceedings{piatti2024cooperate,
  author = {Giorgio Piatti and Zhijing Jin and Max Kleiman-Weiner and Bernhard Schölkopf and Mrinmaya Sachan and Rada Mihalcea},
  title = {{Cooperate or Collapse: Emergence of Sustainable Cooperation in a Society of LLM Agents}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=0zWzJj6lO3},
}
Figure