Discovering agents

Zachary Kenton, Ramana Kumar, Sebastian Farquhar, Jonathan Richens, Matt MacDermott, Tom Everitt

TL;DR

This paper introduces the first formal causal definition of an "agent": a system that adapts its behavior (policy) if the way its actions influence the world changes. By grounding agency in causal discovery, the authors provide algorithms to automatically identify agents and their goals from experimental data, offering a rigorous new toolkit for analyzing the safety of complex AI systems.

What Problem Does This Paper Address?

In the field of AI safety, we often talk about "agents" pursuing "goals." However, identifying what actually constitutes an agent is surprisingly difficult. In textbooks, agents are clearly defined by utility functions, but in the real world, the lines are blurred. Is a thermostat an agent? Is a frozen neural network an agent? Or is it the training process that created it?

If we misidentify a system as non-agentic when it actually has goals, we might overlook "convergent instrumental goals"—dangerous behaviors like resource acquisition or self-preservation that emerge naturally in goal-seeking systems. Conversely, if we assume a system is an agent when it’s just a "dumb" tool, our safety analysis will be fundamentally flawed. This paper seeks to move agency from a subjective "modeling choice" to a provable, empirical property.

Methods

The authors build their framework on Mechanised Structural Causal Models (SCMs). While a standard causal model shows how variables (like "Price" and "Demand") relate, a mechanised model adds "mechanism nodes" that represent the rules governing those variables.

The core of their approach consists of three algorithms:

  1. Algorithm 1 (Mechanised Causal Graph Discovery): Uses "leave-one-out" interventions (systematically changing one part of the system while holding others constant) to map out the causal relationships between both the objects in the world and the rules (mechanisms) governing them.
  2. Algorithm 2 (Agency Identification): Analyzes the mechanised graph to find "decision nodes" and "utility nodes." It identifies agents by looking for mechanisms that adapt in response to changes in downstream variables they "care about."
  3. Algorithm 3 (Mechanism Identification): Provides the mathematical bridge to convert standard game-theoretic "influence diagrams" back into mechanised causal models.

The authors prove that under certain assumptions (like agents playing a subgame perfect equilibrium), these algorithms can perfectly reconstruct the "game graph" of a system from experimental data.

Datasets

The paper does not use large-scale empirical datasets (like ImageNet). Instead, it validates its theory using several sophisticated synthetic benchmarks and thought experiments designed to test edge cases of agency:

  • The Mouse Gridworld: A minimal example of a mouse seeking cheese.
  • Recommender Systems: Modeling how an AI might "nudge" human opinions to make them more predictable (and thus easier to monetize).
  • Actor-Critic RL: A multi-agent setup where one part of the system (the critic) influences another (the actor).
  • Modified Action MDPs: Systems where a human can override an AI's decisions.

Key Insights and Ideas

  • Agency as Adaptation: The "aha moment" is the definition: An agent is a system "moved by reasons." If you change the "reason" (the outcome of an action), an agent will change its "choice." A rock blocking a pipe is "optimal" for stopping water, but if you widen the pipe, the rock doesn't change. A firm, however, will change its prices if consumers become more price-sensitive.
  • The Creation Process Matters: The authors argue that a "frozen" RL policy might not be an agent by itself, but the RL training process is. This highlights that agency often resides in the process that creates and updates the behavior, rather than just the behavior itself.
  • Violating the ICM Principle: A standard assumption in causal discovery is the "Independent Causal Mechanism" (ICM) principle—the idea that the rules governing one variable tell you nothing about the rules governing another. This paper shows that agents inherently violate ICM. An agent’s decision rule is specifically tuned to the mechanisms of the environment it wants to influence.

Key Results

  • Resolving Modeling Confusions: The authors show that previous safety analyses of recommender systems were ambiguous. By using their mechanised SCMs, they could pinpoint exactly when a system has an incentive to manipulate a user's opinion versus when it is "safe."
  • Multi-Agent Identification: The algorithms successfully distinguished between the "Actor" and the "Critic" in RL setups, correctly identifying them as separate entities with different (though related) goals.
  • Formal Proofs: The paper establishes the first formal equivalence between causal discovery (learning from experiments) and game theory (modeling strategic behavior).

Limitations and Future Work

  • Requirement for Interventions: Currently, the discovery algorithm requires the ability to perform "hard interventions" (experiments). Identifying agents from purely observational data remains a major challenge for future work.
  • The "Frame" Problem: The paper acknowledges that whether something looks like an agent depends on which variables you choose to include in your model (relativism).
  • Shared Utilities: The current "colouring" logic in Algorithm 2 struggles with "Assistance Games" (where a robot and human share the same utility). The authors suggest that future versions will need to incorporate concepts like "sufficient recall" to distinguish between agents sharing a single goal.

Summary updated

BibTeX
@article{kenton2023discovering,
  author = {Zachary Kenton and Ramana Kumar and Sebastian Farquhar and Jonathan Richens and Matt MacDermott and Tom Everitt},
  title = {{Discovering agents}},
  journal = {Artificial Intelligence},
  year = {2023},
  doi = {10.1016/j.artint.2023.103963},
}
Figure