Imitating from auxiliary imperfect demonstrations via Adversarial Density Weighted Regression

Ziqi Zhang, Zifeng Zhuang, Donglin Wang, Jingzehua Xu, Miao Liu, Shuai Zhang, Zhang, Shuai · DOI

Abstract

We propose a novel one-step supervised imitation learning (IL) framework called Adversarial Density Regression (ADR). This IL framework aims to correct the policy learned on unknown-quality to match the expert distribution by utilizing demonstrations, without relying on the Bellman operator. Specifically, ADR addresses several limitations in previous IL algorithms: First, most IL algorithms are based on the Bellman operator, which inevitably suffer from cumulative offsets from sub-optimal rewards during multi-step update processes. Additionally, off-policy training frameworks suffer from Out-of-Distribution (OOD) state-actions. Second, while conservative terms help solve the OOD issue, balancing the conservative term is difficult. To address these limitations, we fully integrate a one-step density-weighted Behavioral Cloning (BC) objective for IL with auxiliary imperfect demonstration. Theoretically, we demonstrate that this adaptation can effectively correct the distribution of policies trained on unknown-quality datasets to align with the expert policy's distribution. Moreover, the difference between the empirical and the optimal value function is proportional to the upper bound of ADR's objective, indicating that minimizing ADR's objective is akin to approaching the optimal value. Experimentally, we validated the performance of ADR by conducting extensive evaluations across Gym-Mujoco, Adroit, and Kitchen domains.

The Challenge: Beyond the Bellman Operator

Imitation Learning (IL) aims to teach agents to perform tasks by watching experts. However, expert data is often scarce. To compensate, researchers often use large "auxiliary" datasets of unknown or imperfect quality. The standard way to handle this is to combine IL with Offline Reinforcement Learning. These methods typically rely on the Bellman operator to estimate value functions over multiple steps. This approach has two major "Achilles' heels":

  1. Cumulative Error: Small errors in reward or value estimation compound over multi-step updates, leading to sub-optimal policies.
  2. Out-of-Distribution (OOD) Issues: Off-policy training often struggles when the agent encounters state-action pairs it hasn't seen in the training data, leading to overestimation and "delusional" behavior.

While "conservative" methods exist to fix these issues, they are notoriously difficult to tune. Adversarial Density Regression (ADR) asks: Can we achieve expert-level performance using a simple, stable, one-step supervised approach instead?

Methodology: Adversarial Density Regression

ADR treats imitation as a weighted regression problem, bypassing the instabilities of traditional reinforcement learning. The framework consists of three core components:

  • Adversarial Density Estimation (ADE): The framework uses Variational Auto-Encoders (VAEs) to estimate the "density" (likelihood) of actions in two different pools: the small expert demonstration set and the large, unknown-quality auxiliary set.
  • Density Weighting: ADR calculates a weight for every sample in the dataset. If an action is highly likely in the expert data but unlikely in the auxiliary data, it receives a high weight. Conversely, it "pushes" the policy away from actions that characterize the sub-optimal data.
  • One-Step Supervised Learning: Unlike RL, which iterates through time, ADR performs a single-step density-weighted Behavioral Cloning (BC) update. This makes the training process significantly more stable and immune to the compounding errors of Bellman-based methods.
Conceptual comparison between multi-step updates (susceptible to cumulative error) and ADR's one-step update, which directly targets the optimal policy.

Key Insights

The "Push-Pull" Dynamics

Most imitation algorithms only try to "pull" the policy toward the expert. ADR’s adversarial component explicitly identifies what makes the auxiliary data bad and "pushes" the policy away from those patterns. By regressing only on actions already present in the dataset, it naturally avoids the OOD "explosion" seen in many offline RL algorithms.

Bypassing the Bellman

By proving that minimizing their ADR objective is theoretically equivalent to approaching the optimal value function, we show that multi-step RL updates are not strictly necessary to solve these problems. This supervised learning objective is much more robust than RL, leading to remarkably smooth convergence compared to the "jittery" performance often seen in offline RL.

Experimental Results

We evaluated ADR across three major benchmarks in the D4RL suite: Gym-Mujoco, Adroit, and Kitchen. ADR consistently outperformed competitive baselines like IQL, CQL, and various DICE-based imitation methods.

  • Gym-Mujoco: ADR achieved a total score of 1008.7, surpassing the previous best-performing framework, CEIL (912.5).
  • Adroit & Kitchen: ADR achieved an 89.5% improvement over IQL (when IQL was given ground-truth rewards) and a 121.1% improvement over CQL, even when using only a single expert trajectory.
t-SNE visualization of state distributions for ADR vs. Expert across various Gym-Mujoco tasks, demonstrating high alignment between the learned policy and expert behavior.

Conclusion and Future Work

ADR demonstrates that a one-step supervised framework can achieve state-of-the-art performance on complex robotics tasks without the complexity of the Bellman operator. While ADR excels in Markov Decision Process (MDP) settings, future work will focus on extending the framework to handle sequential models like Decision Transformers, potentially allowing the model to capture longer-term dependencies in non-Markovian environments.

Summary updated

BibTeX
@misc{zhang2024imitating,
  author = {Ziqi Zhang and Zifeng Zhuang and Donglin Wang and Jingzehua Xu and Miao Liu and Shuai Zhang and Zhang, Shuai},
  title = {{Imitating from auxiliary imperfect demonstrations via Adversarial Density Weighted Regression}},
  year = {2024},
  eprint = {2405.20351},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.20351},
}
Figure