Learning a Policy for Opportunistic Active Learning

Aishwarya Padmakumar, Peter Stone, Raymond J. Mooney

Abstract

In interactive robotics, agents often face a trade-off between immediate task completion and long-term skill acquisition. This paper explores "Opportunistic Active Learning" (OAL), where an agent must decide when to ask questions that improve its internal models for future utility without excessively delaying the current goal. We present a Reinforcement Learning (RL) approach using the REINFORCE algorithm to learn an optimal policy for this trade-off. Our results demonstrate that a learned policy significantly outperforms static rule-based strategies, achieving higher task success rates with shorter interaction lengths.

Introduction

Traditional Active Learning (AL) focuses on selecting data points for labeling to improve a model as efficiently as possible. However, in real-world settings—such as a robot assisting a human—the agent is often "on the clock." It must fulfill a specific request (exploitation) while potentially leveraging the current environment to learn about concepts it might encounter later (exploration).

For instance, if tasked with finding a "red box," an agent might observe a "round blue ball." While querying the human about the ball's properties does not aid the immediate search, it strengthens the agent's understanding of the concept "round" for future tasks. This scenario defines Opportunistic Active Learning. The fundamental challenge lies in balancing the cost of human interaction (frustration and time) against the long-term benefit of improved model accuracy.

The Opportunistic Active Learning Framework

We frame OAL as a Markov Decision Process (MDP) where the agent interacts with an environment to identify a target object based on a natural language description.

Task and Interaction

The agent receives a target description and can perform three types of actions:

  1. Label Queries: Asking if a specific object possesses a certain attribute (e.g., "Is this object yellow?").
  2. Example Queries: Asking the user to point out an example of a specific attribute (e.g., "Show me something white").
  3. Guess: Identifying the target object to conclude the task.
An example of the interaction protocol where the robot queries the oracle to identify a target object.

Policy Learning

Instead of relying on hand-coded heuristics, we use the REINFORCE algorithm to learn a policy. The policy is conditioned on features representing the agent's current state, including:

  • Confidence Metrics: The probability gap between the top two candidate objects.
  • Utility Metrics: The potential value of a query, such as the frequency of the predicate in the dataset and whether the query is "opportunistic" (relevant to future tasks but not the current one).

The reward function incentivizes accuracy and efficiency: a large positive reward (+200) for correct guesses, a penalty (-100) for incorrect ones, and a minor penalty (-1) for every question asked to minimize dialogue length.

Experimental Setup

The framework was evaluated using the Visual Genome dataset, which provides a rich, unrestricted vocabulary of over 5.4 million annotated regions. To test the agent's ability to generalize, we employed an experimental split where the agent encountered novel predicates during the testing phase that were absent during policy training. The agent maintained binary classifiers for visual predicates (e.g., "heavy," "round," "red") based on VGG-network features.

Results and Analysis

The learned RL policy was compared against a static baseline that asks a fixed number of queries based on simple heuristics.

Comparison of the learned RL policy against static and ablated baselines.

As shown in the results table, the RL agent achieved a success rate of 0.44, a 15-percentage-point improvement over the static baseline (0.29). Notably, the RL agent achieved this higher accuracy while maintaining a shorter average dialog length (12.95 vs. 16.00).

Ablation studies revealed that both "Guess" features (confidence) and "Query" features (utility) are critical. Removing these features dropped the success rate to 0.37 and 0.35, respectively, confirming that the agent must simultaneously evaluate its task progress and the information gain of potential questions.

Conclusion

By learning a policy for Opportunistic Active Learning, agents can move beyond rigid interaction rules to strategically manage their own learning. The RL approach enables the agent to recognize when it has "learned enough" to succeed at a task and which questions provide the most value for future encounters. Future work will focus on deploying these policies on physical robotic platforms and improving the handling of missing labels in large-scale visual datasets.

Summary updated

BibTeX
@inproceedings{padmakumar2018learning,
  author = {Aishwarya Padmakumar and Peter Stone and Raymond J. Mooney},
  title = {{Learning a Policy for Opportunistic Active Learning}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1165},
}
Figure