Measuring Goal-Directedness

Matt MacDermott, James Fox, Francesco Belardinelli, Tom Everitt

TL;DR

The paper introduces Maximum Entropy Goal-Directedness (MEG), a formal metric to quantify how "agentic" or goal-oriented an AI system is. By combining Daniel Dennett’s philosophy of the "intentional stance" with the mathematics of Maximum Causal Entropy, the authors provide a way to measure agency as a continuous value rather than a binary label, helping researchers identify potentially risky autonomous behavior.

What Problem Does This Paper Address?

As AI systems—particularly those built on Large Language Models—become more "agentic," they gain the ability to pursue complex goals autonomously. While useful, this agency introduces significant risks, ranging from individual harm to catastrophic systemic failures.

The core challenge is that "agency" and "goal-directedness" have historically been fuzzy, philosophical concepts. How do we distinguish between a system that is truly pursuing a goal and one that is simply following a complex but reactive script? Previous attempts to formalize this were often binary (it’s an agent or it isn't) or failed to account for different levels of competence. This paper seeks a mathematically rigorous, continuous measure that works across various frameworks like Causal Bayesian Networks and Markov Decision Processes (MDPs).

Methods

The authors base their measure on the intentional stance: we are justified in saying a system has a "goal" if assuming it has that goal helps us predict its behavior.

MEG Framework

Key components of the MEG framework include:

  • Maximum Entropy Policy Sets: Instead of looking at just the "optimal" policy for a goal, the authors construct a set of policies representing every possible level of competence (from perfectly rational to completely random).
  • Predictive Accuracy: MEG measures how much better we can predict a system's actions using a "goal-directed" model versus a "random chance" model.
  • Scale Invariance: A major technical contribution is ensuring the measure is "scale-invariant." In standard Inverse Reinforcement Learning (IRL), doubling a reward value might make an agent look "more" goal-directed. MEG fixes this by optimizing over the entire class of maximum entropy policies, making the score independent of how the utility function is scaled.
  • Algorithms: The paper provides two main algorithms:
  • Known-utility MEG: Uses gradient ascent to find the "rationality level" ($\beta$) that best explains observed behavior for a specific goal.
  • Unknown-utility MEG: Uses a neural network to hypothesize a utility function ($\theta$) and simultaneously finds the best rationality level to explain the behavior.

Datasets and Environments

The paper focuses on theoretical foundations and small-scale validation rather than large-scale benchmarks.

Gridworld to Causal Model

The primary environments used include:

  • CliffWorld: A 4x10 gridworld MDP from the seals suite. In this environment, an agent must navigate to a goal square while avoiding a "cliff" that resets its position.
  • Synthetic Trajectories: The authors generate behavior data using $\epsilon$-greedy policies (varying levels of randomness) to test if MEG correctly identifies decreasing goal-directedness as noise increases.

Key Insights and Ideas

  • Agency as Predictability: The "aha moment" is defining agency not by what a system is, but by how well we can model it as an optimizer. If a specific utility function makes a system's actions 80% predictable, that system is highly goal-directed toward that utility.
  • The "Pessimism" Quirk: Interestingly, the formal definition of MEG means a system that perfectly avoids a goal is just as goal-directed as one that pursues it. Both behaviors provide strong evidence that the system is "aware" of the goal and acting in relation to it.
  • Pseudo-terminal Goals: The authors prove that an agent is at least as goal-directed toward an intermediate "mediator" (like a key needed to open a door) as it is toward the final goal, provided that the mediator is the only path to the goal. This allows us to detect goal-directedness by looking at short-term behavior without needing to see the final outcome.

Key Results

  • Sensitivity to Noise: In experiments with $\epsilon$-greedy policies, MEG scores dropped linearly as the policy became more random. This confirms the metric accurately captures "competence" as a component of goal-directedness.
  • Task Difficulty vs. Evidence: A fascinating result showed that as a task becomes "easier" (e.g., the goal region in CliffWorld gets larger), the known-utility MEG score actually decreases. This is because "doing well" on an easy task provides less evidence of deliberate optimization than doing well on a hard one.
  • Unknown Utility Robustness: When the specific goal wasn't known, the "Unknown-utility MEG" (using a neural network to guess the goal) remained high even as the task got easier. This suggests the metric can detect that an agent is "trying to do something" even if the observer isn't sure what the exact target is.

Limitations and Future Work

  • Environment Access: The current algorithms require "black-box access" to the environment (the ability to run different policies and see outcomes). It cannot yet compute MEG from purely static, observational data.
  • Computational Complexity: The use of "soft value iteration" makes the current approach computationally expensive for high-dimensional environments (like modern video games or complex robotics).
  • Distributional Shift: MEG is currently tied to the specific distribution of states the agent encounters. If the agent is moved to a completely new part of the environment, the score might change drastically.
  • Mechanistic Gap: This is a "behavioral" measure. It tells you if a system acts like it has a goal, but it doesn't look at the internal neural circuitry to see how that goal is represented. The authors suggest combining MEG with mechanistic interpretability in future work.

Summary updated

BibTeX
@inproceedings{macdermott2024measuring,
  author = {Matt MacDermott and James Fox and Francesco Belardinelli and Tom Everitt},
  title = {{Measuring Goal-Directedness}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=o4coDIby7e},
}
Figure