On the Sample Complexity of Imitation Learning for Smoothed Model Predictive Control

Kwangjun Ahn, Daniel Pfrommer, Jack Umenberger, Tobia Marcucci, Zak Mhammedi, Ali Jadbabaie, Jadbabaie, Ali

TL;DR

This paper tackles the challenge of learning smooth and stable expert controllers for imitation learning, which is crucial for guaranteeing performance. They propose a novel "barrier MPC" approach that smooths the expert controller by incorporating constraints into the cost function using a log-barrier, offering theoretical guarantees and outperforming randomized smoothing in experiments.

What Problem Does This Paper Address?

Imitation learning aims to train agents by mimicking expert demonstrations. A key challenge is the "compounding error problem," where small errors accumulate over time, leading to out-of-distribution failures. Recent work suggests that if the expert controller is "smooth" (its output changes predictably with state) and stable, this compounding error can be mitigated, leading to end-to-end performance guarantees. However, constructing such smooth expert controllers, especially for systems with input and state constraints (common in real-world applications), is difficult. This paper focuses on how to create a smooth expert controller for Model Predictive Control (MPC) systems, a powerful class of controllers that optimize future performance.

Methods

The core contribution is the development of Barrier MPC. Instead of directly approximating a potentially non-smooth explicit MPC (which can have an exponential number of "pieces" in its representation), the authors propose a method to smooth the MPC itself. They achieve this by reformulating the MPC optimization problem. Standard MPCs use hard constraints. Barrier MPC replaces these hard constraints with "soft constraints" by adding a log-barrier term to the objective function. This log-barrier term penalizes approaching the constraint boundaries, effectively smoothing the resulting control policy.

The paper then provides theoretical analysis to show that this barrier MPC formulation results in a controller that is sufficiently smooth (specifically, Lipschitz continuous in its value and its Jacobian). This smoothness is then leveraged within an existing imitation learning framework that provides performance guarantees, provided the expert controller is smooth. They compare this approach to randomized smoothing, a common technique for smoothing policies, highlighting its drawbacks (sampling-based evaluation, potential violation of state constraints, and potential instability).

Datasets

Not discussed in the paper. The experiments use a simulated "toy double integrator system" for evaluation.

Key Insights and Ideas

  • Smoothness is Key for Guarantees: The paper reinforces the idea that smooth expert controllers are essential for robust imitation learning, enabling strong performance guarantees and avoiding compounding errors.
  • Barrier MPC as a Smoothing Tool: The log-barrier formulation provides a principled way to create a smooth expert controller from a constrained MPC, directly addressing the difficulty of constructing smooth experts.
  • Theoretical Guarantees for Barrier MPC: The authors provide theoretical results showing that their barrier MPC is indeed smooth, which is crucial for its use in imitation learning frameworks.
  • Overcoming Randomized Smoothing Limitations: Barrier MPC is presented as a superior alternative to randomized smoothing, as it avoids the need for sampling during evaluation, inherently respects constraints, and preserves stability.

Key Results

  • Theoretical Smoothness: The paper theoretically proves that the barrier MPC policy is (L0, L1)-smooth, meaning both its output and its Jacobian are Lipschitz continuous. This is a key enabler for the imitation learning guarantees.
  • Experimental Performance: In experiments on a double integrator system, barrier MPC outperforms randomized smoothing in terms of imitation error, especially when the expert controller is more smooth. This validates the theoretical findings.
  • Efficiency: While not explicitly quantified in terms of speedup, the barrier MPC approach is presented as computationally more tractable than enumerating all pieces of an explicit MPC, and more efficient than sampling-based randomized smoothing during training.

Limitations and Future Work

  • Generalizability of Barrier MPC: While the paper focuses on linear systems with polytopic constraints, future work could explore extending the barrier MPC approach to more general nonlinear systems and constraint types.
  • Computational Cost of Barrier MPC: Although presented as an improvement over explicit MPC enumeration and randomized smoothing, the computational cost of solving the barrier MPC optimization problem itself is not deeply analyzed.
  • Empirical Validation on More Complex Systems: The experiments are conducted on a "toy double integrator system." Further validation on more complex, higher-dimensional systems would be valuable.
  • Data Requirements: The paper relies on an existing imitation learning framework that requires a certain number of sample trajectories for its guarantees. Investigating the interplay between the number of samples and the effectiveness of barrier MPC would be interesting.

Summary updated

BibTeX
@inproceedings{ahn2023sample,
  author = {Kwangjun Ahn and Daniel Pfrommer and Jack Umenberger and Tobia Marcucci and Zak Mhammedi and Ali Jadbabaie and Jadbabaie, Ali},
  title = {{On the Sample Complexity of Imitation Learning for Smoothed Model Predictive Control}},
  booktitle = {CDC},
  year = {2023},
}
Figure