Tight Performance Guarantees of Imitator Policies with Continuous Actions

Davide Maran, Alberto Maria Metelli, Marcello Restelli

TL;DR

Behavioral Cloning (BC) works exceptionally well for continuous action spaces in practice, but its theoretical guarantees have historically fallen apart because standard distance metrics (like Total Variation) become vacuous. This paper bridges the gap by deriving novel performance bounds using the Wasserstein distance and proving that value functions are inherently Hölder continuous. Furthermore, it mathematically validates why the common practice of "noise injection" drastically improves these guarantees, transforming an exponential error rate into a linear one.

What Problem Does This Paper Address?

Behavioral Cloning (BC) is the simplest form of imitation learning: an agent learns to mimic an expert by treating demonstrations as a supervised learning dataset (e.g., minimizing Mean Squared Error between the agent's and the expert's actions). While highly successful in continuous domains like robotics and autonomous driving, the theoretical understanding of BC has been largely restricted to finite action spaces.

Existing performance bounds rely on Total Variation (TV) distance or KL-divergence to measure the discrepancy between the expert and imitator policies. However, for continuous, deterministic policies, the TV distance between two different actions is always 1, regardless of how close they are. This makes traditional bounds completely uninformative (vacuous) for continuous control. This paper aims to establish tight, meaningful performance guarantees for BC in continuous action spaces.

Methods

To overcome the limitations of TV-based analysis, the authors introduce a framework built on optimal transport and mathematical regularization:

  • Wasserstein Distance Bounds: The authors replace TV distance with the $L_1$-Wasserstein distance. Because the Wasserstein distance accounts for the underlying metric of the action space, it remains meaningful for continuous and deterministic distributions.
  • Hölder Continuity of Value Functions: Previous attempts to use Wasserstein bounds required the MDP's value function to be Lipschitz continuous. The authors demonstrate that this assumption is frequently violated in practice. Instead, they prove a relaxed, universal property: the value function of any Lipschitz MDP is always Hölder continuous. They use this to derive a realistic performance bound.
  • Mathematical Formalization of Noise Injection: The authors analyze "noise injection"—the practice of adding random noise to the expert's actions during execution. By modeling this mathematically as a convolution, they prove that noise regularizes the value function, smoothing out irregularities.

Datasets

The authors evaluated their theoretical insights using three standard continuous control environments from the OpenAI Gym library:

  1. Pendulum-v0: A highly regular, deterministic system where an agent applies torque to balance a pendulum upright.
  2. LunarLanderContinuous-v2: A more complex environment with stochastic dynamics introduced by simulated wind.
  3. BipedalWalker-v3: A highly complex, deterministic environment requiring a bipedal robot to walk.

Expert policies for these environments were trained using three popular Reinforcement Learning algorithms: DDPG, TD3, and PPO.

Key Insights and Ideas

  • The Failure of Total Variation: As shown in Figure 1, TV distance cannot distinguish between small and large deviations in continuous distributions once they stop overlapping. Wasserstein distance smoothly scales with the actual geometric distance, making it the correct tool for continuous BC.
Figure 1: Comparison between TV and Wasserstein dis- tances for two Gaussian distributions µ and ν. Left: TVpµ, νq « 0.38, Wpµ, νq “ 1, Center: TVpµ, νq « 1, Wpµ, νq “ 1, Right: TVpµ, νq « 1, Wpµ, νq “ 0.4
  • Value Functions are Seldom Lipschitz: Even in a perfectly smooth environment with a smooth policy, compounding dynamics over a long horizon can cause the value function's derivatives to explode (Figure 2, left). Proving that these functions are instead Hölder continuous (Figure 2, right) provides a realistic mathematical foundation for continuous control theory.
Figure 2: State value functions of Example 2. Left: the bound of (Rachelson and Lagoudakis 2010) hold and it is tight. Right: the bound of (Rachelson and Lagoudakis 2010) does not hold, but our bound based on H¨older continuity holds, for different values of α P p0, 1q.
  • Why Noise Injection Works: Practitioners have long used noise injection to make imitation learning more robust. This paper provides the mathematical "why": the injected noise acts as a convolution filter that smooths the value function, eliminating the nasty exponential error rates seen in standard BC.

Key Results

  • Optimal Error Rate for Standard BC: The authors prove that the performance gap scales as $J^{\pi_E} - J^{\pi_I} \le O(\epsilon^\alpha)$, where $\epsilon$ is the root mean squared error (MSE) of the imitator, and $\alpha$ is a critical exponent determined by the system's dynamics.
  • Linear Bounds via Noise Injection: With noise injection, the exponent $\alpha$ disappears, yielding a strictly linear bound: $J^{\pi_{E,\ell}} - J^{\pi_{I,\ell}} \le O(\epsilon)$. This represents a significant theoretical acceleration in convergence speed.
  • Negligible Empirical Cost: Testing on OpenAI Gym environments (Figure 3) revealed that injecting Gaussian noise into the expert's actions did not significantly degrade the expert's actual performance, even when the noise standard deviation approached the boundaries of the action space.
Figure 3: The performance of the expert Jπ as a function of the standard deviation of the noise σ. The performance is measured on 40 episodes int environment repeated for 20 different random seeds (nuance represents the 95% non-parametric c.i.).

Limitations and Future Work

  • Unknown Constants: The standard BC bound depends on a critical exponent $\alpha$, which is a function of the environment's unknown Lipschitz constants. Because these constants are typically impossible to compute in practice, the bound cannot be directly optimized during training.
  • The Noisy Expert Bias: While noise injection yields a superior linear error rate, it forces the imitator to compete against a noisy expert rather than a perfect one. Although empirical results show this bias is small, it remains a theoretical trade-off.
  • Future Directions: A promising avenue of future work is developing algorithms that adaptively tune the magnitude of injected noise online, balancing the benefit of value-function smoothing against the performance bias of a noisy expert.

Summary updated

BibTeX
@inproceedings{maran2023tight,
  author = {Davide Maran and Alberto Maria Metelli and Marcello Restelli},
  title = {{Tight Performance Guarantees of Imitator Policies with Continuous Actions}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2023},
  doi = {10.1609/aaai.v37i8.26089},
}
Figure