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

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

Abstract

Understanding an agent's goals helps explain and predict its behaviour, yet there is no established methodology for reliably attributing goals to agentic systems. We propose a framework for evaluating goal-directedness that integrates behavioural evaluation with interpretability-based analyses of models' internal representations. As a case study, we examine an LLM agent navigating a 2D grid world toward a goal state. Behaviourally, we evaluate the agent against an optimal policy across varying grid sizes, obstacle densities, and goal structures, finding that performance scales with task difficulty while remaining robust to difficulty-preserving transformations and complex goal structures. We then use probing methods to decode the agent's internal representations of the environment state and its multi-step action plans. We find that the LLM agent non-linearly encodes a coarse spatial map of the environment, preserving approximate task-relevant cues about its position and the goal location; that its actions are broadly consistent with these internal representations; and that reasoning reorganises them, shifting from broader environment structural cues toward information supporting immediate action selection. Our findings support the view that introspective examination is required beyond behavioural evaluations to characterise how agents represent and pursue their objectives.

Introduction: Beyond the "Stochastic Parrot"

As Large Language Models (LLMs) are increasingly deployed as autonomous agents, a critical question arises: is the agent actually pursuing a goal, or is it just a "stochastic parrot" following the most likely next token? Traditional "black-box" behavioural evaluation—simply observing an agent's external actions—is often insufficient for determining intent. An agent might fail a task due to a minor capability limit (such as poor spatial reasoning) while still being intensely goal-directed based on its own internal, albeit flawed, beliefs. Conversely, an agent might appear aligned while secretly pursuing a misaligned objective. This research addresses the lack of a rigorous methodology for attributing goals to AI systems by examining both an agent's actions and its internal representations.

Methodology: A Dual-Pronged Approach

The researchers developed a "white-box" framework to evaluate goal-directedness in a GPT-OSS-20B agent navigating a 2D grid world (MiniGrid). The evaluation is split into two primary components:

  1. Behavioural Evaluation: The agent is tested against an optimal A* policy across grids of varying sizes and obstacle densities. To ensure the model isn't simply memorising specific layouts, the researchers introduced "iso-difficulty" transformations—rotating or reflecting the grid to verify that performance relies on task-relevant cues. The study also includes complex goal structures, such as instrumental goals (e.g., picking up a key to open a door) and distractor items.
  2. Representational Evaluation (Probing): The team used linear and non-linear (MLP) probes to decode the model's internal activations across different layers. This allows for the reconstruction of the agent's internal "cognitive maps"—its internal representation of the locations of walls, the goal, and itself—as well as its multi-step action plans.
The evaluation framework integrates behavioural transforms (A), agent reasoning (B), and internal representational probing (C) to decode cognitive maps.

Key Results and Insights

The study yielded several key insights into the internal mechanics of LLM agents:

  • Non-Linear Cognitive Maps: Spatial information is encoded non-linearly within the model. MLP probes significantly outperformed linear probes (75% vs 39% accuracy), suggesting that the "map" of the environment is a complex, emergent feature of the model's internal state rather than a simple linear mapping.
  • The "Fuzzy" Internal World: The model represents the environment with a "blurred" quality. It identifies the general neighbourhood of the goal with high recall but lower precision, suggesting a coarse spatial understanding.
  • Reasoning as a Filter: A striking finding is that the process of reasoning acts as a sharpening mechanism. Pre-reasoning activations contain broader environmental data and long-term plans, while post-reasoning activations (after the model has "thought" about its move) discard this context to focus intensely on immediate action selection.
  • Consistency over Optimality: When the agent makes a mistake relative to the ground truth, it is often acting logically relative to its own internal (fuzzy) map. The agent's actions agreed with the optimal policy derived from its decoded internal map approximately 84% of the time, indicating genuine goal-directedness despite representational inaccuracies.

Discussion and Limitations

While the findings support the existence of internal goal-directed representations, several limitations remain. The study is currently confined to 2D discrete grid worlds; it remains to be seen if these cognitive maps scale to high-dimensional or continuous tasks. Furthermore, while a strong correlation exists between internal maps and behaviour, a definitive causal link—proving the model moved specifically because of its internal representation—requires further research using activation intervention or steering techniques. Future work will also need to address the "tunnel vision" observed in partially observable environments, where models struggle to reason about past actions.

Summary updated

Abstract

Understanding an agent's goals helps explain and predict its behaviour, yet there is no established methodology for reliably attributing goals to agentic systems. We propose a framework for evaluating goal-directedness that integrates behavioural evaluation with interpretability-based analyses of models' internal representations. As a case study, we examine an LLM agent navigating a 2D grid world toward a goal state. Behaviourally, we evaluate the agent against an optimal policy across varying grid sizes, obstacle densities, and goal structures, finding that performance scales with task difficulty while remaining robust to difficulty-preserving transformations and complex goal structures. We then use probing methods to decode the agent's internal representations of the environment state and its multi-step action plans. We find that the LLM agent non-linearly encodes a coarse spatial map of the environment, preserving approximate task-relevant cues about its position and the goal location; that its actions are broadly consistent with these internal representations; and that reasoning reorganises them, shifting from broader environment structural cues toward information supporting immediate action selection. Our findings support the view that introspective examination is required beyond behavioural evaluations to characterise how agents represent and pursue their objectives.
BibTeX
@inproceedings{arghal2026behavioural,
  author = {Raghu Arghal and Fade 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