Hybrid of Reinforcement and Imitation Learning for Human-Like Agents

Rousslan Fernand Julien Dossa, Xinyu Lian, Hirokazu Nomoto, Takashi Matsubara, Kuniaki Uehara

Abstract

This research introduces a hybrid training framework that integrates Reinforcement Learning (RL) and Imitation Learning (IL) to develop agents that achieve high performance while maintaining human-like behavioral characteristics. By balancing the goal-oriented efficiency of RL with the stylistic nuances of human demonstrations, the proposed agents outperform human experts and successfully pass behavioral "Turing tests" in both discrete and continuous action environments.

Introduction

In the development of artificial intelligence, "optimal" behavior does not always equate to "desirable" behavior. Pure Reinforcement Learning (RL) agents are designed to maximize rewards with mathematical precision, often resulting in "mechanical" behaviors—such as instantaneous reaction times and perfectly straight but jerky movements—that humans find unsettling or frustrating to interact with.

Conversely, Imitation Learning (IL) produces agents that mimic human style but are strictly limited by the skill level of the human demonstrator. This paper addresses the challenge of finding the "Goldilocks zone": creating agents that possess superhuman capabilities while retaining the predictable, natural-feeling behavior of a human.

Methodology

The authors propose two distinct strategies tailored to the complexity of the agent's action space. For discrete action spaces (e.g., simple games), they utilize Policy Distillation.

The Policy Distillation framework for discrete action spaces, where a student model learns from both an RL teacher and a human expert.

In this framework, the agent is trained using a weighted cross-entropy loss, learning simultaneously from an RL teacher (providing "soft labels" or action probabilities) and a human expert (providing "hard labels" of specific actions). A trade-off coefficient ($\alpha$) allows researchers to tune the balance between RL efficiency and human style. For continuous action spaces (e.g., autonomous driving), a modified Generative Adversarial Imitation Learning (GAIL) framework is used, where a discriminator network is trained to distinguish between student, RL expert, and human behaviors.

Experimental Setup

The hybrid approach was evaluated across three distinct environments:

  1. Apple Game: A 2D discrete-action game where an agent collects randomly spawning apples.
  2. Atari Gopher: A classic discrete-action game requiring strategic movement to protect a garden.
  3. TORCS (The Open Racing Car Simulator): A sophisticated continuous-action driving simulator representing real-world autonomous driving challenges.

Key Results and Discussion

The hybrid agents consistently achieved a superior balance between performance and human-like style. In all tested environments, the hybrid agents achieved higher average scores than the human experts. For example, in the Apple Game, the hybrid agent averaged 22.02 points, surpassing the human average of 18.71.

Performance of the proposed hybrid agent in the Apple Game as a function of the trade-off coefficient α.

Beyond raw scores, the agents were subjected to double-blind sensitivity tests to measure "human-likeliness." Human participants watched clips of the agents and labeled them as "human" or "machine." In Atari Gopher, the hybrid agent was identified as human by 31/52 participants, compared to only 17/52 for the pure RL agent. Remarkably, in the TORCS simulator, the hybrid agent was identified as "human" more frequently than the actual human expert (32 vs 26 out of 52 participants), suggesting the hybrid successfully filtered out human errors while retaining human-like smoothness.

Conclusion

This study demonstrates that integrating RL and IL can produce agents that are both effective and relatable. While the current work relies on high-quality human data and relatively small test groups, it paves the way for more sophisticated NPCs and autonomous systems that interact naturally with humans. Future research will focus on sparse data scenarios and the subjective nature of human behavior across different users.

Summary updated

BibTeX
@article{dossa2020hybrid,
  author = {Rousslan Fernand Julien Dossa and Xinyu Lian and Hirokazu Nomoto and Takashi Matsubara and Kuniaki Uehara},
  title = {{Hybrid of Reinforcement and Imitation Learning for Human-Like Agents}},
  journal = {IEICE Trans. Information and Systems},
  year = {2020},
  doi = {10.1587/transinf.2019edp7298},
}
Figure