Robust Behavior Cloning Via Global Lipschitz Regularization

Shili Wu, Yizhao Jin, Puhua Niu, Aniruddha Datta, Sean B. AnderssonarXiv 2025 · DOI

Introduction

Behavior Cloning (BC) has emerged as a fundamental technique in imitation learning, enabling agents to learn complex behaviors by mimicking expert demonstrations. Despite its success in controlled environments, BC often suffers from extreme sensitivity to distribution shifts, sensor noise, and adversarial perturbations. In safety-critical applications like autonomous driving or robotics, this "brittleness" can lead to catastrophic failures. While techniques like adversarial training and local smoothing offer empirical improvements, they typically lack formal guarantees regarding performance under uncertainty.

This paper addresses these shortcomings by introducing a method to enforce a global Lipschitz constraint on the policy network. By regulating the network's smoothness, the authors provide a mathematical robustness certificate—a guaranteed upper bound on the performance degradation an agent will experience for a given level of observation noise.

Methodology: The LipsNet Architecture

The core of the proposed approach lies in the transition from local to global regularization. A function is Lipschitz continuous if the change in its output is bounded by a constant multiple of the change in its input. By enforcing this property globally across the entire state space, the authors can derive a theoretical bound on the "performance drop" (the difference between the ideal reward and the reward under noise).

To implement this, the authors propose LipsNet, a specialized neural network architecture designed to maintain a controlled Lipschitz constant without sacrificing expressivity.

The LipsNet architecture incorporates weight normalization and specific structural constraints to enforce a global Lipschitz bound.

Key components of LipsNet include:

  • Weight Normalization (WN): The network regulates the $\ell_\infty$-induced norm of weight matrices in each layer to bound the overall Lipschitz constant.
  • Auxiliary Loss Function: A modified loss function ensures the Lipschitz constant doesn't become too small, which would prevent the network from learning complex, non-linear expert behaviors (interpolation error).
  • Deterministic Certificates: Unlike previous theoretical work focused on stochastic policies, this research extends robustness certificates to deterministic policies, which are more prevalent in practical robotics applications.

Experimental Evaluation

The authors evaluated LipsNet against "Vanilla" BC and the "SR²L" (adversarial smoothing) baseline across several standard benchmarks in the Gymnasium and MuJoCo suites, including Walker2d-v4, Hopper-v4, Humanoid-v4, and Cartpole-v1. Expert datasets were generated using state-of-the-art RL algorithms (PPO and TD3).

Performance Under Noise

The primary metric of success was the agent's ability to maintain high rewards as the level of observation noise increased. The experiments covered random noise, adversarial attacks, and online critic-based attacks.

Performance comparison across four environments (Hopper, Walker2d, Humanoid, and Cartpole) showing rewards vs. noise levels for LipsNet variants, Vanilla BC, and SR²L.

As shown in the results above, LipsNet consistently demonstrates superior resilience. In the Humanoid-v4 task, LipsNet maintained an average reward of 3548 under adversarial noise, significantly outperforming the Vanilla BC reward of 2348. Across all tasks, the performance of LipsNet decayed much more gracefully than baselines as noise levels intensified.

Discussion and Key Insights

The research highlights a fundamental trade-off between robustness and optimality. A policy with a very low Lipschitz constant is highly robust but may be too "smooth" to capture the nuances of expert behavior. Conversely, a high constant allows for precise imitation but leads to brittleness. LipsNet effectively finds the "Goldilocks" zone by baking regularization into the architecture itself.

Limitations

While providing a formal certificate is a major step forward, the authors note that the global Lipschitz constant often provides a "loose" upper bound. In practice, the actual performance drop is often smaller than the certificate predicts, suggesting that the agent might be more robust than the math strictly guarantees. Additionally, the current framework is limited to offline Behavior Cloning; extending these architectural constraints to online Reinforcement Learning remains a promising avenue for future research.

Conclusion

By shifting the focus from empirical smoothing to global structural regularization, this work provides a path toward more reliable and verifiable imitation learning. LipsNet offers a practical way to deploy behavior cloning agents in real-world scenarios where sensor noise and adversarial disturbances are inevitable.

Summary updated

BibTeX
@misc{wu2025robust,
  author = {Shili Wu and Yizhao Jin and Puhua Niu and Aniruddha Datta and Sean B. Andersson},
  title = {{Robust Behavior Cloning Via Global Lipschitz Regularization}},
  year = {2025},
  eprint = {2506.19250},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2506.19250},
}
Figure