Advice Conformance Verification by Reinforcement Learning agents for Human-in-the-Loop

Mudit Verma, Ayush Kharkwal, Subbarao Kambhampati · DOI

Abstract

In Human-in-the-Loop Reinforcement Learning (HiL RL), humans provide guidance to help agents navigate complex tasks. However, a critical transparency gap exists: agents rarely provide feedback on whether they are actually following this advice or simply maximizing environment rewards. We define this as the Advice-Conformance Verification problem. This paper proposes Preference Trees as a visual "lingua franca" to bridge the communication gap between humans and agents. By extracting and comparing the agent's internal value hierarchy against human expectations, we enable users to detect when an agent has "gone rogue" for the sake of performance. Our evaluation on the MuJoCo Humanoid-v2 benchmark demonstrates that this framework effectively reveals advice deviation, even when standard performance metrics suggest success.

Introduction

In many RL scenarios, human advice (e.g., "try to stay upright") is used to shape reward functions and accelerate learning. A major risk in these systems is that an agent might achieve high scores while completely ignoring human guidance. If the advice is suboptimal or conflicts with the environment's primary goal, the agent may prioritize reward maximization over conformance. In safety-critical domains, this lack of transparency is dangerous, as humans may falsely assume the agent is operating under their specified constraints. We address this by providing a mechanism for agents to provide assurances regarding the extent to which they conformed to human input.

Methodology: The Preference Tree Framework

To facilitate verification, we propose a framework that translates internal agent values and human preferences into a shared visual structure called a Preference Tree.

The proposed framework for Advice-Conformance Verification, showing the training and explanation phases.

The process consists of two primary phases:

  1. Training Phase: A Human-Preference Tree is built by querying a human with pairs of states. These results are organized into a tournament model to create a hierarchy of preferred states. Simultaneously, the RL agent is trained using a shaped reward function that incorporates this human advice.
  2. Explanation Phase: An Agent’s Preference Tree is extracted from the trained model. This tree reflects the states the agent actually values based on its learned reward function.

By comparing these two trees, a user can visually inspect where the agent’s priorities align with or deviate from the provided advice. This "lingua franca" approach avoids complex neural weights, instead using images of states to make the agent's logic accessible to non-experts.

Experimental Results

We evaluated the framework using the MuJoCo Humanoid-v2 benchmark. The experiments focused on two primary scenarios:

  • Case 1 (Good Advice): When human advice (e.g., walking posture) aligned with the environment's goals, the Agent’s Preference Tree correctly matched the Human’s Tree, confirming the agent was utilizing the advice as intended.
  • Case 2 (Bad Advice): When the human gave advice that hindered the goal (e.g., standing still while the environment rewards walking), the agent achieved a high walking score but rejected the "standing" advice. The Preference Trees clearly revealed this deviation.
Visual comparison of preference trees used to identify agent deviations from human advice.

A human study with 20 participants validated the interpretability of these trees. 100% of participants identified that the trees implied different preferences in the "Bad Advice" case, and 85% correctly characterized the specific nature of the agent's deviation (e.g., identifying that the agent preferred bent postures for walking despite being told to stand straight).

Conclusion and Future Work

Preference Trees provide a robust method for anytime verification of RL agents. They reveal that success can be deceptive: an agent can perform well while ignoring human constraints. Future work will focus on improving state sampling techniques to ensure trees are built from the most representative and diverse states, as well as testing the scalability of this approach in more complex, multi-objective environments.

Summary updated

BibTeX
@misc{verma2022advice,
  author = {Mudit Verma and Ayush Kharkwal and Subbarao Kambhampati},
  title = {{Advice Conformance Verification by Reinforcement Learning agents for Human-in-the-Loop}},
  year = {2022},
  eprint = {2210.03455},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2210.03455},
}
Figure