A Dynamic Regret Analysis and Adaptive Regularization Algorithm for On-Policy Robot Imitation Learning

Jonathan Lee, Michael Laskey, Ajay Kumar Tanwani, Anil Aswani, Ken Goldberg

Introduction

Imitation Learning (IL) serves as a cornerstone for teaching robots complex tasks by mimicking expert behavior. However, the practical application of IL is frequently undermined by "covariate shift." This phenomenon occurs when a robot’s minor execution errors lead it into states not covered by the expert’s training data, resulting in a compounding error cycle often described as a "death spiral." While iterative algorithms like Dataset Aggregation (DAgger) were developed to mitigate this by incorporating the robot's own trajectory into training, a rigorous theoretical understanding of their convergence in dynamic, non-stationary environments has remained elusive.

This paper addresses this gap by reframing on-policy imitation learning through the lens of Dynamic Regret Theory. By treating the learning process as a pursuit-evasion game between the learner and a shifting data distribution, the authors provide new convergence guarantees and introduce Adaptive On-Policy Regularization (AOR), a novel algorithm designed to stabilize learning in challenging robotic environments.

The Shift from Static to Dynamic Regret

Traditional analysis of imitation learning often relies on static regret, which measures the learner's performance against the single best fixed policy in hindsight. In the context of robotics, static regret is an insufficient metric because the data distribution is inherently non-stationary; every update to the robot's policy changes the states it will visit in the next iteration.

Dynamic regret offers a more stringent and realistic benchmark. It compares the learner’s decision at each iteration to the optimal decision for the current distribution. Achieving low dynamic regret is significantly more difficult because the "target" (the optimal policy) is constantly moving. This paper argues that dynamic regret is the appropriate metric for robotics, as it directly accounts for the learner's ability to track the optimal policy across a sequence of evolving trajectory distributions.

Theoretical Framework: The Stability Constant

The authors demonstrate that the convergence of on-policy IL algorithms depends on a fundamental relationship between the environment and the optimizer. They define a critical stability constant, $\lambda = \beta / \alpha$, where:

  • $\beta$ (Distribution Continuity): Represents the sensitivity of the environment—how much the trajectory distribution shifts in response to a change in the policy.
  • $\alpha$ (Strong Convexity): Represents the "sharpness" of the optimization landscape, typically influenced by the regularization of the loss function.

Their analysis proves that if $\lambda < 1$, the learner can effectively "catch" the moving optimal policy, leading to a dynamic regret bound of $O(N^{-1})$. This provides a formal condition under which algorithms like DAgger and Imitation Gradient are guaranteed to converge.

Adaptive On-Policy Regularization (AOR)

In many robotic tasks, the environment's sensitivity ($\beta$) is high or unknown, making it difficult to satisfy the $\lambda < 1$ condition with fixed hyperparameters. Since the physical dynamics of the robot cannot be easily altered, the authors propose the Adaptive On-Policy Regularization (AOR) algorithm.

AOR dynamically estimates the stability of the learning process and adjusts the $L_2$ regularization parameter ($\alpha$) on the fly. By increasing regularization when the system detects instability, AOR ensures that the optimization landscape remains sufficiently steep to anchor the learner, preventing the "chattering" behavior—rapid, unstable oscillations in performance—often seen in complex tasks.

Experimental Evaluation

The framework and AOR algorithm were evaluated across three simulated benchmarks designed to test stability under high-sensitivity conditions:

  1. Cart-Pole Balancing: A modified setup where control force magnitudes were increased to induce high distribution shifts.
  2. Walker Locomotion (OpenAI Gym): A 2D bipedal task requiring stable gait transitions.
  3. Hopper Locomotion (OpenAI Gym): A single-legged robot task focused on forward progress.

Key Results

  • Stabilization of Learning: In the "hard" Cart-Pole and Walker environments, standard DAgger and Multiple Imitation Gradient (MIG) methods exhibited severe performance oscillations. AOR successfully smoothed these learning curves, leading to faster and more reliable convergence.
  • Performance Trade-offs: In the Hopper task, while AOR provided superior stability, the increased regularization led to a slightly more conservative policy compared to the expert. This highlights a fundamental trade-off: higher regularization ensures stability but may slightly limit the peak performance achievable by the learner.

Discussion and Limitations

While this work provides a robust theoretical foundation for on-policy IL, several challenges remain. The current theory assumes Lipschitz continuity in the system dynamics. This assumption may not hold for hybrid systems involving hard contacts or impacts, such as a robot foot striking the ground, where distributions can change discontinuously. Additionally, finding the "Goldilocks" zone for regularization is critical; excessive regularization can lead to a policy that prioritizes staying near the regularizer over completing the actual task.

Conclusion

By applying dynamic regret theory to imitation learning, this research provides a new mathematical language for understanding why robot training often fails in practice. The introduction of the stability constant $\lambda$ and the AOR algorithm offers both a diagnostic tool and a practical solution for stabilizing on-policy learning, moving the field closer to reliable, autonomous robot training in complex, real-world environments.

Summary updated

BibTeX
@inproceedings{lee2018dynamic,
  author = {Jonathan Lee and Michael Laskey and Ajay Kumar Tanwani and Anil Aswani and Ken Goldberg},
  title = {{A Dynamic Regret Analysis and Adaptive Regularization Algorithm for On-Policy Robot Imitation Learning}},
  booktitle = {WAFR},
  year = {2018},
  doi = {10.1007/978-3-030-44051-0\_13},
}
Figure