Introduction
Offline Imitation Learning (IL) aims to derive an expert-level policy from a pre-collected dataset without further environment interaction. While traditional IL assumes access to a large volume of expert demonstrations, real-world scenarios often provide only a small sliver of expert data alongside a vast pool of suboptimal, "cheap" data—such as random explorations, logs from legacy controllers, or mediocre human attempts.
Existing frameworks, particularly those in the Stationary Distribution Correction Estimation (DICE) family, typically rely on distribution matching. These methods attempt to minimize the divergence between the learned policy and the behavior policy that generated the dataset. However, when the dataset is dominated by low-quality transitions, strict distribution matching becomes a liability, forcing the agent to mimic suboptimal behavior and trapping it in a state of excessive pessimism. This paper introduces RelaxDICE, a framework that replaces strict distribution matching with relaxed support regularization to overcome these limitations.
The Problem: The Pessimism Trap
Standard offline IL methods often employ f-divergence minimization to keep the learned policy close to the data distribution. This is intended to prevent distribution shift, where the agent encounters states it does not know how to handle. However, in the presence of suboptimal data, this objective creates a conflict: the agent is penalized for deviating from the "garbage" data even if that deviation is necessary to reach expert-level performance.
This "pessimism trap" prevents the agent from exploring the full support of the state-action space provided by the data. Instead of finding the best path within the available data, the agent is forced to match the frequency of the suboptimal actions, leading to poor performance in environments where expert transitions are rare.
The RelaxDICE Framework
RelaxDICE shifts the objective from exact distribution matching to support regularization. The core idea is that as long as the agent stays within the "support" of the observed data—where value estimates are likely to be reliable—it should not be penalized for how frequently it visits specific state-action pairs relative to the behavior policy.
1. Asymmetrically-Relaxed f-Divergence
The authors propose a novel divergence measure that ignores density differences below a certain threshold, $\beta$. If the density ratio between the learned policy and the behavior data is low, the penalty is zero. This allows the agent to move freely within the regions of the state-action space covered by the data without being forced to mimic the exact distribution of the suboptimal demonstrations.
2. Closed-Form Optimization
Min-max optimization, common in DICE-based algorithms, is often unstable and difficult to tune. RelaxDICE avoids these pitfalls by deriving a closed-form solution for the inner maximization step of the objective. This mathematical refinement significantly improves training stability and computational efficiency compared to previous adversarial approaches.
3. Density Ratio Correction (DRC)
To further refine the learning process, the authors introduced RelaxDICE-DRC. This extension utilizes a classifier to distinguish between expert-like and suboptimal transitions within the dataset. By weighting the regularization based on this classification, the agent can more effectively prioritize the high-quality data points hidden within the larger pool of suboptimal data.
Experimental Evaluation
The researchers evaluated RelaxDICE on the D4RL benchmark, focusing on MuJoCo locomotion tasks (Hopper, HalfCheetah, Walker2d, Ant) and Adroit robotic manipulation tasks (Hammer, Relocate).
To rigorously test the algorithm's robustness, the authors established four levels of suboptimality (L1 to L4). In the L4 setting—the most challenging—the dataset consists almost entirely of random, low-quality transitions with only a minimal fraction of expert data. These conditions are significantly more demanding than standard offline IL benchmarks.
Key Results
- State-of-the-Art Performance: RelaxDICE-DRC achieved the highest scores in 18 out of 22 experimental settings.
- Robustness to Suboptimal Data: In the most difficult L3 and L4 settings, RelaxDICE outperformed the previous state-of-the-art method, DemoDICE, by an average margin of over 30%.
- Hyperparameter Stability: A common issue in offline RL/IL is the sensitivity to the regularization weight ($\alpha$). While DemoDICE's performance often collapses if $\alpha$ is not perfectly tuned, RelaxDICE maintains high performance across a broad range of hyperparameter values, making it much more practical for real-world deployment.
Discussion and Limitations
RelaxDICE represents a significant step forward in making offline IL more practical by reducing the requirement for high-quality data. By focusing on support rather than distribution, it balances the need for pessimism (to avoid unknown states) with a necessary degree of optimism (to find expert behavior within noisy data).
However, some limitations remain. The current framework uses a single-point estimation for the stationary distribution, which may introduce bias in highly stochastic environments. Additionally, while the base version of RelaxDICE can automate the threshold $\beta$, the high-performance DRC version still requires some manual tuning to define the upper bounds of the density ratio. Future work may explore more complex distribution estimation techniques and ways to handle extreme aleatoric uncertainty where the "safe" regions of the state-action space are exceptionally narrow.
Summary updated