Bridging the Imitation Gap by Adaptive Insubordination

Luca Weihs, Unnat Jain, Jordi Salvador, Svetlana Lazebnik, Aniruddha Kembhavi, Alex Schwing

TL;DR

Imitation learning (IL) often struggles when the "teacher" agent has access to privileged information unavailable to the "student." This leads to an "imitation gap" where the student fails to learn effectively. This paper introduces ADVISOR, a novel method that adaptively balances imitation and reinforcement learning (RL) losses, allowing the student to switch between learning from the expert and exploring on its own, effectively bridging this gap.

What Problem Does This Paper Address?

In many real-world scenarios, training an AI agent using pure reinforcement learning (RL) can be challenging, especially when rewards are sparse or the state space is vast. Imitation learning (IL), where an agent learns by mimicking an expert, offers a compelling alternative. However, a common practice is to use an "expert" that has access to "privileged information" – data or knowledge not available to the student agent during deployment. This could be anything from a global map for a navigation agent to knowing the shortest path to a goal.

The core problem this paper addresses is the imitation gap. When a student agent tries to imitate an expert with privileged information, it can only learn from the information it also has access to. This leads to the privileged information being effectively ignored or "marginalized out" in the student's learned policy. Consequently, the student might learn a suboptimal policy, or even a uniformly random one, especially in tasks requiring frequent exploration and exploitation. Existing methods that sequentially transition from IL to RL can fail in such scenarios.

Methods

The paper introduces Adaptive Insubordination (ADVISOR), a novel approach to bridge the imitation gap. ADVISOR works by dynamically weighting two loss functions during training:

  1. Imitation Loss: This encourages the student agent to mimic the expert's actions.
  2. Reward-based RL Loss: This encourages the student agent to maximize its own cumulative reward through exploration.

The key innovation is an auxiliary actor network. This auxiliary actor is trained to predict the expert's action based on the student's limited observations. The confidence of this auxiliary actor in predicting the expert's action is used to determine the weight given to the imitation loss versus the RL loss.

  • High confidence from the auxiliary actor (meaning the student's observations are sufficient to predict the expert's action) implies a small imitation gap, and ADVISOR leans more heavily on the imitation loss.
  • Low confidence (indicating the expert likely used privileged information) suggests a large imitation gap, and ADVISOR shifts towards the RL loss, allowing the student to explore and learn from its own experiences.

This adaptive weighting allows the agent to learn from the expert when it's beneficial and to explore when imitation would be misleading.

Datasets

The authors evaluate ADVISOR on a diverse set of tasks and environments:

  • Didactic Tasks:
    • PoisonedDoors (PD): A custom gridworld task designed to demonstrate the imitation gap.
  • 2D-Lighthouse (2D-LH): A gridworld task used to empirically verify the analysis of the imitation gap.
  • LavaCrossing (LC), WallCrossing (WC), and their variants (Switch, Corrupt): Tasks within the MINIGRID environment, featuring challenges like navigation with limited visibility and environmental hazards.
  • High-Fidelity 3D Simulators:
    • PointGoal Navigation (POINTNAV): An agent navigates to a goal specified by a relative displacement vector in the AIHABITAT simulator.
  • ObjectGoal Navigation (OBJECTNAV): An agent navigates to a goal object category in the RoboTHOR environment.
  • Multi-Agent Environments:
    • Cooperative Navigation (COOPNAV): A multi-agent particle environment task where agents must cover landmarks and avoid collisions.

Key Insights and Ideas

  • The "Imitation Gap" is a Real Problem: The paper provides a theoretical and empirical demonstration that when experts have privileged information, simply imitating them can lead to significantly worse performance than expected. This gap is not just theoretical but has practical implications for agent training.
  • Adaptive Balancing is Key: ADVISOR's strength lies in its ability to dynamically switch between imitation and exploration. This is crucial for tasks that require both learning from expert demonstrations and discovering novel strategies through self-exploration.
  • Auxiliary Actor as a "Gap Detector": The auxiliary actor acts as an intelligent gatekeeper, assessing how much of the expert's decision is predictable from the student's limited observations. This assessment directly informs the weighting of imitation vs. RL losses.
  • Robustness to Expert Corruption: Surprisingly, ADVISOR shows resilience even when the expert's supervision is partially corrupted, outperforming other methods in such scenarios.

Key Results

  • Superior Performance: ADVISOR consistently outperforms pure IL, pure RL, and their sequential/parallel combinations across a suite of 13 challenging tasks, including gridworlds, multi-agent environments, and high-fidelity 3D simulators.
  • Sample Efficiency: ADVISOR demonstrates strong sample efficiency, often reaching near-optimal performance much faster than baselines. For instance, in COOPNAV, ADVISOR achieved significant learning in 0.2 million steps, while other baselines took over 1.5 million.
  • Imitation Gap Impact: The paper empirically shows that as the imitation gap increases (i.e., the difference in information between teacher and student grows), the performance of standard IL methods degrades significantly, while ADVISOR maintains better performance.
  • Success in Complex Environments: ADVISOR achieves strong results in challenging 3D visual environments (POINTNAV, OBJECTNAV) and multi-agent cooperative settings (COOPNAV).

Limitations and Future Work

  • Focus on Navigational Tasks: The current evaluation is heavily focused on navigational tasks where shortest-path experts are easily computed. The authors suggest further validation in other domains like interactive robotics or natural language applications.
  • Societal Impact: While the direct negative societal impact is deemed small, the authors note that enabling more effective learning from expert supervision could amplify the propagation of any existing biases present in human experts.
  • Improving Distance Estimators: The paper identifies improving the statistical efficiency of the distance estimator used to detect the imitation gap as a promising future direction. This could involve more sophisticated techniques like Targeted Maximum Likelihood Estimation (TMLE) or prospective estimation methods.
  • Combining with Other Methods: The authors suggest that ADVISOR could be beneficially combined with methods that enrich agent information or improve memory.

Summary updated

BibTeX
@inproceedings{weihs2021bridging,
  author = {Luca Weihs and Unnat Jain and Jordi Salvador and Svetlana Lazebnik and Aniruddha Kembhavi and Alex Schwing},
  title = {{Bridging the Imitation Gap by Adaptive Insubordination}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2021},
  url = {https://openreview.net/forum?id=8qaQTX3GyD},
}
Figure