A Behavioural and Representational Evaluation of Goal-Directedness in Language Model Agents

Raghu Arghal, Phoebe Chen, Niall Dalton, Evgenii Kortukov, Calum McNamara, Angelos Nalmpantis, Moksh Nirvaan, Gabriele Sarti, Mario Giulianelli

TL;DR

This paper introduces a novel framework for evaluating "goal-directedness" in AI agents, combining behavioral analysis with interpretability techniques to understand how agents internally represent and pursue goals. They found that LLM agents navigating a grid world exhibit goal-directed behavior that is robust to certain environmental changes but also influenced by irrelevant cues, and their internal representations shift from broad spatial maps to focused action selection after reasoning.

What Problem Does This Paper Address?

Understanding an AI agent's goals is crucial for explaining its behavior and ensuring its alignment with human intentions, especially as AI systems become more autonomous and operate in complex, long-horizon tasks. However, there's a significant lack of standardized methods to reliably attribute goals to these systems. Simply observing an agent's actions (behavioral evaluation) can be misleading, as apparent success might stem from instrumental usefulness rather than true goal alignment, or failure might be due to capability limitations rather than a lack of goal-directedness. This paper aims to bridge this gap by proposing a more comprehensive evaluation framework that looks "under the hood" of the agent.

Methods

The authors propose a "white-box" framework that combines two key approaches:

  1. Behavioral Evaluation: This involves assessing the agent's actions against an optimal policy. They test the agent's performance across various grid sizes, obstacle densities, and even in environments with instrumental (necessary intermediate steps) or implicit (irrelevant but goal-like) goals. They also introduce "iso-difficulty transformations" (like grid reflection or rotation) to check if the agent's behavior is biased towards specific configurations or truly general.
  2. Representational Analysis (Interpretability): This is the core novelty. They use "probing" techniques to decode the internal states of the LLM agent. Specifically, they extract activations from different layers of the model and train simple classifiers (linear and MLP probes) to predict information about the environment, such as the agent's position, the goal's location, and even potential multi-step action plans. This allows them to reconstruct "cognitive maps" of the agent's internal world model and analyze how these representations change, particularly before and after the agent engages in explicit reasoning.

Datasets

The experiments were conducted using the GPT-OSS-20B language model as the agent. The environment was a 2D grid world based on the MiniGrid environment. The grids were generated with varying sizes (7x7 to 15x15) and obstacle densities (0.0 to 1.0). The paper does not introduce new benchmark datasets but rather uses controlled variations of a grid world environment to systematically test the agent's behavior and internal representations.

Key Insights and Ideas

  • Behavior is not enough: The paper strongly advocates that purely behavioral metrics are insufficient for understanding goal-directedness. An agent might appear goal-directed behaviorally due to instrumental reasons, or fail due to limitations, without necessarily having misaligned internal goals.
  • LLMs build internal world models: The LLM agent, even without explicit training for navigation, develops internal representations that resemble "cognitive maps," capturing approximate spatial information about its position and the goal.
  • Reasoning reorganizes representations: A key finding is that the agent's internal representations undergo a significant shift after its explicit reasoning process. Before reasoning, representations are more spatially focused and might encode longer-term plans. After reasoning, they become more focused on immediate action selection.
  • Goal-like distractions matter: Even when an object (like a key) has no functional utility for the task, it can still influence the agent's behavior, suggesting a bias from learned semantic associations during training.
  • Uncertainty is key: The agent's internal representations are not always precise. Accounting for this uncertainty (e.g., by considering multiple possible goal locations) can better explain the agent's actions than relying on a single decoded "best guess."

Key Results

  • Behavioral robustness: The agent's performance scales with task difficulty (grid size, obstacle density) but remains robust to iso-difficulty transformations like grid rotation or reflection.
  • Instrumental goals handled: The agent successfully navigates environments requiring instrumental goals (e.g., collecting a key to open a door).
  • Cognitive maps decoded: MLP probes achieved around 70% accuracy in reconstructing the agent's cognitive maps, identifying cell types and approximate locations of the agent and goal. This information was encoded non-linearly.
  • Reasoning impact: Cognitive map accuracy dropped from ~75% before reasoning to ~60% after, suggesting a reorganisation of representations away from explicit spatial cues towards action selection.
  • Action consistency: The agent's actions were broadly consistent with its decoded beliefs (average agreement of 83.9% between policies derived from ground truth and decoded maps).
  • Plan decoding: The agent's internal states could predict short action sequences (up to 4 steps) with significant accuracy, especially after reasoning, indicating some level of planning.

Limitations and Future Work

  • Partial Observability: The paper found significant difficulties for the LLM agent in partially observable grid worlds, exhibiting behaviors like redundant backtracking. This was left for future work.
  • Activation Patching Limitations: Simple, single-layer activation patching interventions were largely ineffective in altering the agent's behavior, suggesting that task-relevant information is distributed across layers and requires more complex intervention strategies.
  • Grid World Abstraction: The controlled grid world environment, while useful for precise measurement, abstracts away from the complexities of real-world scenarios.
  • Future Directions: The authors suggest extending the framework to more complex environments, developing more effective intervention strategies to establish causal links between representations and behavior, and exploring alternative grid encodings. They also emphasize the need for more comprehensive approaches to goal attribution and monitoring for responsible AI deployment.

Summary updated

BibTeX
@inproceedings{arghal2026behavioural,
  author = {Raghu Arghal and Phoebe Chen and Niall Dalton and Evgenii Kortukov and Calum McNamara and Angelos Nalmpantis and Moksh Nirvaan and Gabriele Sarti and Mario Giulianelli},
  title = {{A Behavioural and Representational Evaluation of Goal-Directedness in Language Model Agents}},
  booktitle = {International Conference on Machine Learning},
  year = {2026},
  url = {https://openreview.net/forum?id=OqYz3v9111},
}
Figure