People Evaluate Agents Based on the Algorithms That Drive Their Behavior

Eric Bigelow, Tomer UllmanOpen 2025

TL;DR

This paper investigates whether people evaluate agents based solely on their observable behavior (behaviorism) or also consider the underlying algorithms driving that behavior (cognitivism). Through experiments with maze-solving agents and their block-based programs, they found that people are "intuitive cognitivists," preferring agents with more efficient algorithms and better generalization capabilities, even when behavior is identical.

What Problem Does This Paper Address?

The core question this paper tackles is how humans intuitively evaluate the "goodness" of an agent's performance. Do we act like behaviorists, judging solely on observable outcomes, or like cognitivists, considering the internal mechanisms or "thought processes" that lead to those outcomes? This is a fundamental question in cognitive science and has direct implications for how we design and evaluate artificial intelligence. The authors draw a parallel to the philosophical "Blockhead objection" to the Turing Test, which argues that passing the test based on behavior alone isn't sufficient if the underlying mechanism is just a massive lookup table rather than genuine intelligence. They aim to empirically test whether people, when given access to an agent's program, value the algorithm itself beyond just its output.

Methods

The researchers developed a novel approach using a simple block programming language, inspired by educational tools like Scratch and Blockly. This allowed them to teach participants (even those with no prior programming experience) to understand and evaluate programs that controlled agents navigating mazes.

They proposed three key metrics for evaluating these programs:

  • Action Efficiency: How quickly or with how few steps an agent completes a task (e.g., solving a maze). This is a purely behavioral metric.
  • Representation Efficiency: The complexity or "length" of the program (e.g., number of code blocks used). This is a cognitive metric related to Occam's Razor.
  • Generalization: How well a program can solve a variety of tasks beyond the single example shown (e.g., solving many different mazes). This is also a cognitive metric.

The experiments involved presenting participants with pairs of maze-solving agents and their corresponding programs. In each trial, the programs were designed to differ in only one of these three metrics, while being equal on the other two. Participants were then asked to choose the "better" program.

Datasets

The paper does not explicitly mention pre-existing datasets for training or evaluation. Instead, the authors generated their own stimuli:

  • Mazes: Generated using Prim's algorithm, with modifications to create a diverse set of maze structures.
  • Block Programs: Generated using a probabilistic context-free grammar implementation of their block programming language, filtered for complexity (e.g., no more than 8 blocks).
  • Stimulus Pairs: Automatically generated by pairing programs and mazes to ensure they differed significantly on one metric while being equivalent on the other two.

Key Insights and Ideas

  • People are "Intuitive Cognitivists": The most significant insight is that humans don't just look at what an agent does, but also care about how it does it. They value the underlying algorithms, not just the observable behavior.
  • Beyond Behaviorism: The findings directly challenge a purely behaviorist view of how we evaluate agents. Access to the program's internal logic demonstrably influences our judgment.
  • Multiple Evaluation Metrics: People consider several factors when judging programs, including efficiency of action, simplicity of representation, and the ability to generalize to new situations.
  • Generalization as a Key Factor: The ability of a program to solve a wide range of problems (generalization) is a crucial aspect of how people perceive intelligence, even when not explicitly prompted to consider it.
  • Fallback Heuristics: When direct comparison of generalization is difficult, people might use Action Efficiency or Representation Efficiency as proxies.

Key Results

  • Experiment 1: Participants consistently preferred programs that were more Action-Efficient, Representation-Efficient, and had higher Generalization. For example, in the Action Efficiency condition, 96% of participants preferred the faster program. In Representation Efficiency, 89% preferred the shorter program, and in Generalization, 62% preferred the program that solved more mazes.
  • Experiment 2: This experiment replicated the findings with a larger stimulus set and introduced a "Solves More Mazes" instruction.
  • When asked to choose the "better" program, participants showed preferences similar to Experiment 1 across all three metrics.
  • When explicitly asked to "Choose the program that solves more mazes," preferences for Action Efficiency and Representation Efficiency decreased significantly, suggesting these are not the primary drivers when generalization is the explicit focus.
  • Crucially, in the Generalization condition, the preference for the higher-generalization program remained nearly identical regardless of whether participants were asked to choose the "better" program or the one that "solves more mazes." This strongly supports the idea that people implicitly consider generalization when judging overall "betterness."

Limitations and Future Work

  • Artificial Environment: The experiments used a simplified block programming language and maze tasks. Real-world agents operate in much more complex environments.
  • Direct Program Access: In real-world scenarios, humans rarely have direct access to an agent's underlying code. The study's design intentionally provided this access to test the Blockhead objection. Future work could explore how people infer algorithms from limited behavioral data.
  • Program Representation: The study used block programs. Future research could explore how people evaluate algorithms represented in natural language or other formats.
  • Trade-offs Between Metrics: While the study showed people prefer programs that excel in each metric individually, it only briefly touched on how people make trade-offs between these metrics when they conflict. Further research is needed to understand these trade-offs and the cognitive effort involved in estimating generalization.
  • Inferring Intelligence: The authors acknowledge that attributing intelligence to the agent versus the programmer is a subtle distinction, though their findings suggest people do attribute intelligence to the machine when its behavior is driven by sophisticated algorithms.
  • Simulating Generalization: The paper notes that people likely don't perform exhaustive simulations to estimate generalization but rather use heuristics or high-level representations. Understanding these intuitive estimation strategies is a key future direction.

Summary updated

BibTeX
@inproceedings{bigelow2025people,
  author = {Eric Bigelow and Tomer Ullman},
  title = {{People Evaluate Agents Based on the Algorithms That Drive Their Behavior}},
  booktitle = {Open},
  year = {2025},
  doi = {10.1162/opmi.a.26},
}

Loading related content...

Figure