Bridging the Imitation Gap by Adaptive Insubordination
In the world of AI, we often teach agents by having them "shadow" an expert—a process called Imitation Learning (IL). It’s faster than letting an agent flail around in the dark via Reinforcement Learning (RL). But there’s a catch: what if the teacher knows something the student doesn't?
In a new paper, researchers introduce ADVISOR (Adaptive Insubordination), a method that allows student agents to strategically "disobey" their teachers when the teacher's advice is based on information the student cannot see.
The Problem: The Imitation Gap
Standard imitation learning assumes a level playing field where the teacher and the student observe the same environment. In practice, this is rarely true. Teachers are often "privileged"—they might have access to a global map, know the exact location of a goal behind a wall, or even see into the future via simulations.
When a student tries to imitate a privileged teacher, they encounter the Imitation Gap. Because the student lacks the teacher's secret information, they end up "averaging" the teacher's actions across many different scenarios that look identical to the student.
The Poisoned Doors Example: Imagine four doors. Door 1 has a consistent reward of 1 but requires a complex code. The other doors have rewards of -2, except for one random door which has a reward of 2.
A privileged teacher knows which door is the lucky one and always goes to it. A student, not knowing which door is lucky, tries to copy the teacher and ends up picking doors 2, 3, or 4 at random—resulting in a terrible average score. In this case, the student would be better off ignoring the teacher and learning the code for Door 1.
The Solution: Adaptive Insubordination (ADVISOR)
To solve this, the authors propose ADVISOR. Instead of blindly following the teacher, the agent learns to judge the quality of the advice on the fly.
- The Dual-Loss System: ADVISOR combines an IL loss (copy the teacher) and an RL loss (maximize reward) into a single objective.
- The Auxiliary Actor: The agent maintains an auxiliary model that tries to predict the teacher's action using only the student's limited observations.
- Adaptive Weighting:
- If the auxiliary actor can predict the teacher's action with high confidence, it means the teacher's logic is visible to the student. ADVISOR increases the weight of the Imitation Loss.
- If the auxiliary actor is confused or the teacher's action seems unpredictable, it suggests an imitation gap. ADVISOR "insubordinates," ignores the teacher, and increases the weight of the RL Loss to explore on its own.
This allows the agent to benefit from expert guidance early on while retaining the flexibility to solve the task through trial and error when the expert's advice becomes a hindrance.
Key Insights and Results
The researchers tested ADVISOR across a diverse range of environments, including custom gridworlds, MiniGrid navigation tasks, Multi-agent Particle Environments (MPE), and high-fidelity 3D simulators like AIHabitat and RoboTHOR.
- Policy Averaging is Poisonous: The paper formally proves that when an imitation gap exists, the student learns the expected value of the teacher's policy. As seen in partially observable gridworlds, this "averaging" (e.g., a 50/50 split between moving left or right) can lead to policies that are worse than random.
- Sequential Learning Fails: A common tactic is to start with IL and then fine-tune with RL. The authors show this often fails because the agent first has to "unlearn" the bad averaged policy before it can start exploring effectively.
- On-the-fly Switching: Unlike prior methods that use a fixed schedule to move from IL to RL, ADVISOR makes this decision per-state. It can imitate the teacher for the easy parts of a path and switch to RL for the privileged parts.
Performance Highlights: * Poisoned Doors: ADVISOR achieved a perfect reward of 1.0, while pure IL failed miserably with -0.59 and sequential IL+RL only reached -0.17. * 3D Navigation (PointNav): ADVISOR reached an 88.2% success rate, significantly higher than pure RL (79.0%) or pure IL (76.7%). * Sample Efficiency: In complex 3D tasks, ADVISOR often reached better performance after just 10% of training time than other methods reached at the very end.
Limitations and Future Work
While highly effective, the authors note a few areas for growth. The experiments focused heavily on navigation, leaving open questions about its performance in non-spatial domains like Natural Language Processing or complex robotic manipulation. Furthermore, ADVISOR still requires a teacher and hasn't been tested extensively with suboptimal teachers who simply make mistakes. Finally, while ADVISOR might ignore confusing biased behavior, it isn't specifically designed as a bias-mitigation tool.
Summary updated