Leveraging human knowledge in tabular reinforcement learning: a study of human subjects

Ariel Rosenfeld, Moshe Cohen, Matthew E. Taylor, Sarit Kraus

Introduction

Reinforcement Learning (RL) has demonstrated remarkable success in complex domains, yet it remains notoriously sample-inefficient, often requiring millions of interactions to converge on an optimal policy. To mitigate this, human designers frequently "inject" domain knowledge into agents. Common techniques include Function Approximation (FA), which groups states together to reduce the search space, and Reward Shaping (RS), which provides auxiliary rewards to guide the agent toward desirable behaviors.

However, most RL research focuses on the mathematical properties of these methods, largely ignoring the "human in the loop." This paper addresses a critical gap: How do human designers—ranging from novices to experts—actually implement these techniques under real-world constraints, and which methods are most intuitive and effective?

The SASS Framework

The authors introduce a novel method called State Action Similarity Solutions (SASS). Built upon the concept of "QS-learning," SASS allows designers to define a similarity function between state-action pairs. When the agent learns a Q-value for a specific state $A$, that knowledge is automatically propagated to a similar state $B$ based on a human-defined metric.

The study identifies three primary types of human-defined similarities:

  1. Representational: Similarities based on shared features or attributes.
  2. Symmetry: Exploiting geometric properties like mirroring or rotation (e.g., the left side of a soccer field is functionally identical to the right side).
  3. Transition: Identifying actions that produce similar relative effects across different states.

Experimental Design and Tasks

To evaluate these methods, the researchers conducted a study with 51 participants: 48 computer science students (representing non-experts) and 3 experienced RL researchers (experts). Participants were tasked with improving agent performance in three distinct environments of increasing complexity.

The three experimental tasks: (a) Simple Robotic Soccer grid, (b) Pursuit (Predator/Prey) with rotational symmetry, and (c) the high-dimensional Mario environment.
  1. Simple Robotic Soccer: A basic $8 \times 8$ grid task where the agent must score a goal.
  2. Pursuit (Predator/Prey): A more challenging $20 \times 20$ grid task where two predators must coordinate to capture a prey, involving approximately 46 million state-action pairs.
  3. Mario: A complex, high-dimensional side-scrolling environment with over 100 billion possible states.

Key Insights: The Human Element

The study revealed significant differences in how humans approach different knowledge-injection methods:

The Intuition of Reward Shaping

For both experts and novices, Reward Shaping was the most "natural" choice. It mirrors human pedagogical techniques—like giving treats to a pet for incremental progress. RS was often a "one and done" process where designers could quickly write a function that significantly boosted learning speed.

The Difficulty of Abstraction

In contrast, Function Approximation (FA) proved to be a "black art." Non-experts frequently struggled with FA, often over-simplifying the state space to the point where the agent's performance actually degraded compared to the baseline. While experts were successful, the cognitive load required to design effective abstractions was significantly higher than for other methods.

SASS as a Complementary Tool

While RS was the favorite, SASS emerged as a powerful secondary tool. It allowed designers to easily capture symmetries (like mirroring in Soccer) that are difficult to express through reward functions alone. The best results were often achieved by combining methods, such as the QRS agent, which utilized both Reward Shaping and SASS.

Results and Performance

The quantitative results underscored the effectiveness of human-guided learning:

  • Soccer Task: 75% of non-experts successfully used SASS to outperform the baseline, whereas only 19% were successful with FA.
  • Pursuit Task: While RS provided the fastest initial training, the QRS agent (RS + SASS) achieved the highest overall performance, reducing the number of turns required to win by 16.5% compared to RS alone and 66% compared to SASS alone.
  • The Complexity Ceiling: In the Mario task, the sheer scale of the state space overwhelmed most non-experts. Within the 45-minute time limit, many were unable to design beneficial agents, highlighting that human intuition has limits when faced with extreme environmental complexity.

Conclusion

This research demonstrates that the effectiveness of an RL technique is inextricably linked to the human designer's ability to implement it. While Reward Shaping remains the most intuitive tool for human teachers, the SASS framework provides a valuable way to leverage geometric and transition-based symmetries. Future work will explore extending these concepts to Deep RL and investigating how non-technical users might contribute to the training of intelligent agents.

Summary updated

BibTeX
@inproceedings{rosenfeld2017leveraging,
  author = {Ariel Rosenfeld and Moshe Cohen and Matthew E. Taylor and Sarit Kraus},
  title = {{Leveraging human knowledge in tabular reinforcement learning: a study of human subjects}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2017},
  url = {https://openreview.net/forum?id=rJNwUXGdbH},
}
Figure