Selective imitation on the basis of reward function similarity

Max Taylor-Davies, Stephanie Droop, Christopher G. Lucas

TL;DR

This paper demonstrates that human selective imitation is driven by inferences about others' internal reward functions—we don't just copy the most successful person, but the one whose goals most closely align with our own. By conducting experiments in a virtual gridworld, the authors show that people can generalize these inferences to novel tasks and even to unfamiliar agents by leveraging observed correlations between different individuals.

What Problem Does This Paper Address?

In a complex world, "indiscriminate imitation" is a recipe for disaster. If you are a vegetarian, copying the most successful hunter in your tribe won't help you find dinner. While previous research has identified simple heuristics for social learning—such as "copy the oldest" or "copy the highest payoff"—these rules fail to account for the diversity of goals in a heterogeneous population.

The authors address whether humans use Theory of Mind (ToM) to perform selective imitation. Specifically, they investigate if we infer the hidden "reward functions" (preferences and goals) of others to determine their suitability as models. They also explore how we generalize these inferences: if someone shares my taste in food, will I also trust their choice in music? If I know Alice is like Bob, and Bob is like me, will I follow Alice?

Methods

The researchers designed a behavioral experiment using a 2D "gridworld" environment (built with the GriddlyJS framework). Participants navigated these levels to collect colored gems, with their score determined by a hidden reward function (e.g., red gems = 10 pts, blue = 0 pts).

The experiment was structured into several phases:

  1. Learning Phase: Participants observed two simulated agents (Agent 1 and 2) and learned which one shared their preferences.
  2. Path Uncertainty Phase: The environment became partially observable (see Figure 2). To succeed, participants had to choose which agent's path to follow without seeing the gems themselves.
  3. Goal Generalization Phase: Participants faced new gems with unknown values. They had to decide whether to continue following the agent that was previously aligned with them.
  4. Agent Generalization Phase: New agents (Agents 3 and 4) were introduced. Participants observed how these new agents related to the original ones, testing if they could "transfer" trust through a chain of similarity.
Figure 2: Examples of fully observable (left) and partially observable (right) gridworld levels.

The primary metric was trajectory similarity, calculated using the Euclidean distance between the participant's path and the agents' paths at each timestep.

Datasets

The study utilized a custom dataset generated from 150 UK-based adult participants recruited via the Prolific platform. The data consists of 2D coordinate sequences (trajectories) and scores from the gridworld tasks, along with free-text explanations provided by the participants at the end of the study.

Key Insights and Ideas

  • Reward Function Inference: People are remarkably good at identifying "aligned" agents based on very sparse data. In the path uncertainty phase, participants followed the aligned agent with 87.5% accuracy.
  • Inductive Bias for "Types": The results from the agent generalization phase suggest that humans have an inductive bias toward grouping people into "types." If we see Agent 3 acting like Agent 1 (who we already like), we assume Agent 3 also shares our preferences. This is a highly sample-efficient way to navigate social environments.
  • Curiosity vs. Imitation: In the final stages of the experiment, imitation accuracy dropped. The authors suggest this is due to curiosity-driven exploration: once participants had "solved" the task, they began exploring unknown gems to learn their values, rather than strictly following the model.

Key Results

The quantitative results, summarized in Table 1 (Figure 4), show significant evidence for selective imitation across almost all phases:

  • Goal Generalization: When faced with novel gems of unknown value, participants continued to follow their aligned agent with 69.4% to 76.4% accuracy.
  • Agent Generalization: In Level 9, participants successfully identified and imitated a new, unfamiliar agent based solely on that agent's similarity to a known model (65.8% accuracy, p = .00328).
  • Trajectory Alignment: As shown in Figure 3, the mean similarity to aligned agents (pink bars) consistently and significantly outperformed similarity to misaligned agents (brown bars) across the test levels.
Figure 3: Top: mean similarity of participant trajectories to those of the aligned and misaligned agents for each level, computed following Equation 1. Error bars represent standard error. Bottom: visualisation of recorded trajectories from participants and agents with each reward function. Tiles with a lighter color were visited by a greater proportion of participants, and the starting location for each level is highlighted in green.
Table 1: The results of a single-tailed binomial test and a logistic regression across levels.

Limitations and Future Work

The authors noted that a significant portion of participants (roughly one-third) reported using a "random" strategy or misunderstood the task, which likely dampened the results. Future iterations could benefit from clearer instructions or more engaging task designs.

Additionally, the study doesn't fully disentangle whether participants judge agents based on reward similarity or competence. While the instructions stated all agents were equally capable, participants might have perceived the misaligned agent as simply "bad" at the task.

For researchers in AI, these findings suggest that Inverse Reinforcement Learning (IRL) algorithms could be improved by incorporating human-like priors—specifically the assumption that agents belong to latent groups with correlated reward functions. This could allow robots to learn more efficiently in multi-agent environments by selectively imitating the right demonstrators.

Summary updated

BibTeX
@misc{taylordavies2023selective,
  author = {Max Taylor-Davies and Stephanie Droop and Christopher G. Lucas},
  title = {{Selective imitation on the basis of reward function similarity}},
  year = {2023},
  eprint = {2305.07421},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2305.07421},
}
Figure