Interactive Policy Learning through Confidence-Based Autonomy

Sonia Chernova, Manuela M. Veloso · DOI

Abstract

We present Confidence-Based Autonomy (CBA), an interactive algorithm for policy learning from demonstration. The CBA algorithm consists of two components which take advantage of the complimentary abilities of humans and computer agents. The first component, Confident Execution, enables the agent to identify states in which demonstration is required, to request a demonstration from the human teacher and to learn a policy based on the acquired data. The algorithm selects demonstrations based on a measure of action selection confidence, and our results show that using Confident Execution the agent requires fewer demonstrations to learn the policy than when demonstrations are selected by a human teacher. The second algorithmic component, Corrective Demonstration, enables the teacher to correct any mistakes made by the agent through additional demonstrations in order to improve the policy and future task performance. CBA and its individual components are compared and evaluated in a complex simulated driving domain. The complete CBA algorithm results in the best overall learning performance, successfully reproducing the behavior of the teacher while balancing the tradeoff between number of demonstrations and number of incorrect actions during learning.

Introduction

Learning from Demonstration (LfD) is a powerful alternative to Reinforcement Learning because it bypasses the "reward function headache"—the often impossible task of mathematically defining exactly what "good behavior" looks like. However, LfD has its own bottleneck: demonstration selection.

Usually, a human teacher provides examples and hopes the agent generalizes correctly. This is inefficient because humans are often poor at guessing which specific states the agent’s internal model finds confusing. Conversely, if an agent blindly follows a partial policy, it may eventually make a catastrophic mistake. The authors address this by creating a "shared autonomy" loop where the agent identifies its own uncertainty and the teacher provides surgical corrections.

Methods

The authors introduce the Confidence-Based Autonomy (CBA) algorithm, which consists of two primary components designed to optimize the interaction between agent and teacher.

Confident Execution (CE)

The agent monitors its own certainty using two distinct metrics to decide when to pause and ask for a demonstration:

  • Distance Threshold ($\tau_{dist}$): If the current state is too far from any previously seen training data (an "unfamiliar" state), the agent requests help.
  • Classification Confidence ($\tau_{conf}$): Even in familiar territory, the agent might be "confused" between two similar actions (an "ambiguous" state).
Flowchart of the Confident Execution (CE) component within the CBA framework.

Instead of using a single fixed confidence threshold, the authors developed Multiple Adjustable Thresholds. The algorithm automatically calculates a unique threshold for every decision boundary based on the confidence scores of misclassified points in a validation set. This addresses the "Donut Problem," where classification confidence alone can be misleading in regions of space the agent has never encountered.

Illustration of data uncertainty types: outlying points representing unfamiliarity and overlapping classes representing ambiguity.

Corrective Demonstration (CD)

This component allows the teacher to intervene proactively. If the teacher sees the agent about to make a mistake—even if the agent feels "confident"—they can provide a retroactive correction. The agent then updates its policy using that specific state and the corrected action, effectively polishing the policy where the agent is "confidently wrong."

Experimental Evaluation

The algorithm was evaluated in a Simulated Driving Domain. The task requires navigating a car at a fixed 60 mph through five lanes of traffic without colliding with other vehicles. The state space is a 4D vector consisting of the current lane and the distance to the nearest car in the left, center, and right lanes. If discretized, this space would contain over 600,000 possible states, making it a significant "needle in a haystack" problem for manual demonstration selection.

Key Results and Insights

The researchers compared several selection techniques, finding that agents are often better at self-diagnosis than humans are at guessing their needs:

  • Efficiency: The $CE_M$ (Multiple Thresholds) approach required the fewest demonstrations (~504) to learn the task, compared to over 1,300 for purely teacher-guided learning.
  • Performance: Only methods involving Corrective Demonstration (CD and the full CBA) achieved a 0% collision rate in final evaluations.
  • Training Safety: While purely corrective learning (CD) was efficient, it resulted in 48% more collisions during the training phase than the full CBA algorithm. CBA's ability to ask for help before crashing makes it significantly safer for real-world applications.

Limitations and Future Work

Current implementations focus on discrete action primitives; extending this to continuous action spaces (like precise steering angles) remains a challenge. Additionally, the CD component assumes constant teacher attention, which may not scale to multi-robot systems. Future work may also incorporate reinforcement signals to allow agents to "learn beyond the teacher" in cases where the human demonstrations are suboptimal.

Summary updated

BibTeX
@article{chernova2009interactive,
  author = {Sonia Chernova and Manuela M. Veloso},
  title = {{Interactive Policy Learning through Confidence-Based Autonomy}},
  journal = {J. Artif. Intell. Res.},
  year = {2009},
  doi = {10.1613/jair.2584},
}
Figure