Abstract
We consider online imitation learning (OIL), where the task is to find a policy that imitates the behavior of an expert via active interaction with the environment. We aim to bridge the gap between theory and practice by analyzing the popular DAGGER algorithm and proposing stabilized alternatives. We prove that DAGGER (an instance of Follow-the-Leader) achieves constant regret when using highly expressive models like neural networks. To handle noisy experts and less expressive models where DAGGER fails, we introduce a memory-efficient Follow-the-Regularized-Leader (FTRL) algorithm, which stabilizes training and outperforms standard methods in both theory and practice.
Introduction
In Online Imitation Learning (OIL), an agent learns to perform a task by actively interacting with an environment and trying to mimic an expert's behavior. The most popular algorithm for this is DAGGER. Mathematically, DAGGER is an instance of Follow-the-Leader (FTL), an online convex optimization algorithm.
Standard theory suggests that FTL works well (achieving sublinear regret) primarily when the loss landscape is strongly convex. However, modern OIL uses deep neural networks, which are highly non-convex, yet DAGGER still performs remarkably well in practice. Conversely, if the model is not powerful enough to perfectly copy the expert, or if the expert provides noisy feedback, FTL can oscillate wildly and fail. This research aims to explain the success of DAGGER with neural networks and provide solutions for its vulnerabilities.
Theoretical Analysis: The Power of Expressivity
Instead of relying on standard convexity assumptions, the authors analyze FTL under the assumption of an expressive policy class. They prove that if the model is complex enough to perfectly contain the expert policy (the "interpolation" regime), FTL achieves constant regret without needing the loss to be convex with respect to the model's parameters. This "interpolation" property explains the long-standing gap between FTL theory and DAGGER practice.
Algorithmic Design: Stabilizing OIL with FTRL
To address FTL's oscillation problem in noisy or non-expressive settings, the authors apply Follow-the-Regularized-Leader (FTRL) and an adaptive version (AdaFTRL). Regularization prevents the model from overreacting to new, potentially noisy data, acting as a stabilizer.
A key contribution is a Memory-Efficient Reformulation. Standard FTRL requires storing all past model parameters, leading to $O(mT)$ memory requirements (where $m$ is model size and $T$ is time). This is prohibitively expensive for large neural networks. The authors mathematically reformulate the FTRL update to only require storing past gradients, matching FTL's lighter $O(m+T)$ memory footprint.
Experimental Results
The authors evaluated their algorithms across synthetic tasks (Adversarial Gridworld), continuous control (MuJoCo suite), and discrete control (Atari suite).
Key Findings
- Regularization prevents catastrophic oscillation: In adversarial setups where perfect imitation is impossible, FTL fails because it chases moving targets. FTRL ensures the algorithm maintains a steady course.
- "Offline" updates are crucial: Algorithms that update the policy by solving an optimization problem over all past data (like FTL and FTRL) significantly outperform incremental gradient-based algorithms like Online Gradient Descent or AdaGrad.
- Empirical Performance: Across MuJoCo and Atari environments, FTRL and AdaFTRL consistently matched or outperformed FTL (DAGGER) in terms of average cumulative loss. AdaFTRL performed just as well as standard FTRL without requiring manual tuning of learning rate constants.
Conclusion
This work provides a theoretical foundation for the success of DAGGER in deep learning and introduces FTRL as a robust, memory-efficient alternative for more challenging imitation learning scenarios. While the results are promising, extending theoretical guarantees for FTRL to non-convex parameterizations remains an open question for future research.
Summary updated