Facial feedback for reinforcement learning: a case study and offline analysis using the TAMER framework

Guangliang Li, Hamdi Dibeklioglu, Shimon Whiteson, Hayley Hung · DOI

Abstract

Traditional Interactive Reinforcement Learning (IRL) relies on explicit human feedback, which often suffers from rapid engagement decay as trainers become fatigued. This study explores the use of facial expressions as a passive, naturalistic reward signal. By integrating the TAMER framework with a deep CNN-RNN model and conducting a large-scale study with 561 participants, we demonstrate that facial expressions can effectively guide agent learning. Results indicate that social factors, such as competition, significantly enhance the signal quality of facial feedback, leading to classification accuracies up to 78% and agent performance comparable to explicit feedback modalities.

Introduction

In Interactive Reinforcement Learning (IRL), human trainers provide evaluative signals to guide an agent's policy development. While effective, traditional methods like button presses are cognitively demanding, leading to "trainer fatigue" where feedback frequency drops over time. Facial expressions present a promising alternative as a continuous, low-effort communication channel. However, the high variability and noise inherent in human facial reactions pose significant challenges for machine learning models. This research investigates whether deep learning can bridge the gap between raw facial data and meaningful reinforcement signals within the TAMER framework.

The TAMER Framework and Technical Pipeline

The researchers utilized the Training an Agent Manually via Evaluative Reinforcement (TAMER) framework. In this setup, the agent learns a predictive model of human reward ($h_t$) based on the current state ($s_t$) and action ($a_t$).

The interactive reinforcement learning framework illustrating the loop between the agent, human trainer, and environment.

The technical pipeline involved:

  1. Domain: Training an agent to play Infinite Mario, a complex benchmark requiring precise sequences of actions.
  2. Facial Tracking: Monitoring 512 facial landmarks across over 9 million video frames using state-of-the-art trackers.
  3. Deep Learning Model: A hybrid CNN-RNN architecture was employed. The CNN extracted spatial features from individual frames, while the RNN captured temporal dynamics over a 2-second window to classify expressions as positive or negative feedback.
  4. Credit Assignment: A probability density function was used to map delayed human reactions back to the most likely preceding actions, accounting for human reaction time.

Experimental Methodology

The study was conducted at the NEMO Science Museum in Amsterdam, involving 561 participants (ages 6–72) from 27 countries. After data cleaning to remove occlusions and technical errors, data from 498 participants remained, comprising over 200,000 feedback instances. Participants were assigned to different conditions, including a "Competitive" group shown a leaderboard and a "Facial Expression" group explicitly told their faces were being monitored to train the agent.

Key Insights and Results

The study revealed several critical findings regarding human-agent interaction:

  • Social Catalysts: Competition significantly increased facial expressiveness. Participants in the competitive condition provided clearer signals, enabling the CNN-RNN model to reach 78% accuracy, compared to 66% in the control group.
  • Instructional Effects: Explicitly informing trainers that their facial expressions were the primary feedback source led to exaggerated, more easily classifiable expressions, particularly in the mouth region (smiles and frowns).
  • Agent Performance: Offline simulations showed that agents trained solely on predicted facial feedback could achieve performance levels nearing those trained on binary keypresses, provided the prediction accuracy was high.
  • Engagement Persistence: The data confirmed that while explicit keypress feedback decays sharply after initial interactions, facial expressions remain a consistent, albeit noisier, source of information throughout the training session.

Discussion and Future Work

While this study demonstrates the viability of facial feedback, several hurdles remain for real-time implementation. The current analysis was conducted offline; transitioning to a "closed-loop" online system requires overcoming significant processing latency. Furthermore, distinguishing between task-related expressions and spontaneous reactions (e.g., reacting to an external stimulus) remains an open challenge. Future research should explore regression models to capture the intensity of feedback, potentially allowing agents to learn more nuanced behaviors from human emotion.

Conclusion

Facial expressions offer a rich, naturalistic modality for training autonomous agents. By leveraging social incentives and deep temporal modeling, researchers can extract reliable reinforcement signals from human trainers, paving the way for more engaging and intuitive human-AI collaboration.

Summary updated

BibTeX
@article{li2020facial,
  author = {Guangliang Li and Hamdi Dibeklioglu and Shimon Whiteson and Hayley Hung},
  title = {{Facial feedback for reinforcement learning: a case study and offline analysis using the TAMER framework}},
  journal = {Auton. Agents Multi Agent Syst.},
  year = {2020},
  doi = {10.1007/s10458-020-09447-w},
}
Figure