Bayesian Reinforcement Learning with Behavioral Feedback

Teakgyu Hong, Jongmin Lee, Kee-Eung Kim, Pedro A. Ortega, Daniel D. LeeIJCAI 2016

Abstract

In the standard reinforcement learning setting, the agent learns optimal policy solely from state transitions and rewards from the environment. We consider an extended setting where a trainer additionally provides feedback on the actions executed by the agent. This requires appropriately incorporating the feedback, even when the feedback is not necessarily accurate. In this paper, we present a Bayesian approach to this extended reinforcement learning setting. Specifically, we extend Kalman Temporal Difference learning to compute the posterior distribution over Q-values given the state transitions and rewards from the environment as well as the feedback from the trainer. Through experiments on standard reinforcement learning tasks, we show that learning performance can be significantly improved even with inaccurate feedback.

Introduction

Standard reinforcement learning (RL) agents typically discover optimal behaviors through trial and error, guided by sparse environmental rewards. This "tabula rasa" approach is often sample-inefficient, requiring many interactions to converge. While human trainers can provide behavioral feedback (e.g., "good" or "bad") to accelerate learning, integrating such discrete and potentially noisy advice into a formal mathematical framework remains a challenge.

Previous attempts, such as reward shaping, treat feedback as a numeric bonus, which can introduce bias without guaranteeing optimal behavior if environmental rewards are strong elsewhere. Other methods like policy shaping often decouple human advice from the environment's reward structure. This paper introduces KTD+FB, a Bayesian framework that jointly and principally learns from both rewards and behavioral feedback by treating feedback as a noisy observation of action optimality.

Methodology: The KTD+FB Framework

The proposed method builds upon Kalman Temporal Difference (KTD) learning, which employs a Kalman Filter to maintain a posterior distribution over the parameters of a Q-function. The core innovation lies in modeling binary feedback as a geometric constraint in the agent's belief space.

Graphical model of KTD with behavioral feedback (KTD+FB), illustrating the integration of feedback $f^{(t)}$ alongside rewards $r^{(t)}$ and state transitions.

When a trainer labels an action as "good," it implies that the Q-value for that action exceeds the Q-values of all alternative actions. This relationship defines a set of linear constraints that truncate the Gaussian distribution of the parameter space. To maintain tractability, the resulting truncated multivariate normal distribution is approximated back into a single Gaussian using moment matching after each update. Furthermore, to handle trainers of unknown reliability, the framework incorporates a grid-based filtering mechanism to estimate the trainer's accuracy on the fly.

Experimental Evaluation

The KTD+FB algorithm was evaluated on four classic RL benchmarks: Inverted Pendulum, Mountain Car, Acrobot, and the high-dimensional Octopus Arm task.

Performance comparison of KTD+FB against standard KTD and BQL+PS across four benchmark tasks. Note that for Inverted Pendulum, a lower cumulative number of episodes indicates better performance (longer survival), while for the others, higher is better.

As shown in the results, KTD+FB provides a dramatic speedup in learning. In the Inverted Pendulum task, the agent achieved near-perfect performance almost immediately. Across all tasks, KTD+FB consistently outperformed BQL+PS (Bayesian Q-Learning with Policy Shaping). Notably, the success in the Octopus Arm environment—which features 82 state variables—demonstrates the scalability of this Bayesian approach to high-dimensional state spaces.

Discussion and Conclusion

A key insight of this work is that behavioral feedback can be treated geometrically rather than numerically, effectively "chopping off" inconsistent regions of the parameter space. This tight coupling ensures that the agent's understanding of the environment and the trainer's advice are unified into a single internal model. The system is also robust to adversarial trainers; by estimating reliability, the agent can learn to do the opposite of what a consistently lying trainer suggests.

While computationally more intensive due to the calculation of truncated normal moments, KTD+FB represents a significant step toward efficient human-in-the-loop reinforcement learning. Future work may explore low-rank approximations to handle larger action spaces and more complex models of dynamic human behavior.

Summary updated

BibTeX
@inproceedings{hong2016bayesian,
  author = {Teakgyu Hong and Jongmin Lee and Kee-Eung Kim and Pedro A. Ortega and Daniel D. Lee},
  title = {{Bayesian Reinforcement Learning with Behavioral Feedback}},
  booktitle = {International Joint Conference on Artificial Intelligence},
  year = {2016},
  url = {https://openreview.net/forum?id=HJV4vVMO-S},
}
Figure