google-deepmind/concordia

A library for generative social simulation

What it solves

Concordia provides a framework for creating generative agent-based models to simulate complex interactions between entities in physical, social, or digital environments. It addresses the challenge of grounding agent actions in a plausible world by using a structured interaction pattern that prevents agents from simply imagining outcomes without environmental constraints.

How it works

The library uses a "Game Master" (GM) pattern inspired by tabletop role-playing games. In this setup, player entities describe their intended actions in natural language, and a dedicated GM entity translates these intentions into actual outcomes, ensuring they are physically or socially plausible.

Technically, simulations are built using:

  • Entities: The actors in the simulation.
  • Components: Modular building blocks (like memory, instructions, and action selection) that define an entity's state and behavior.
  • Prefabs: Templates used to quickly instantiate entities with predefined configurations.
  • Engine: The coordinator that manages the run loop, assigning roles (Player or GM) and handling the flow of actions and observations.

Who it’s for

It is designed for researchers and developers in fields such as social science, AI safety and ethics, cognitive neuroscience, economics, and those needing synthetic data for personalization or service performance evaluation.

Highlights

  • GM-based Grounding: Uses a Game Master entity to resolve actions and maintain environmental consistency.
  • Entity-Component Architecture: Offers a modular approach to building agents via components and prefabs.
  • LLM Agnostic: Works with any standard LLM API and text embedder for associative memory.
  • Flexible Execution: Supports various engine interfaces for turn-taking, simultaneous, or asynchronous actions.

Related

  • Project
  • Project
  • Project
  • Project
  • Project