TL;DR
This paper introduces a unifying "Dual RL" framework that bridges the gap between various reinforcement learning (RL) and imitation learning (IL) algorithms by viewing them as dual optimization problems. Leveraging this perspective, the authors propose ReCOIL, a discriminator-free imitation learning method that works without restrictive data coverage assumptions, and f-DVL, a family of offline RL algorithms that solve the training instability issues found in state-of-the-art methods like XQL.
What Problem Does This Paper Address?
Reinforcement and imitation learning often struggle in "offline" settings, where an agent must learn from a fixed dataset without further environment interaction. Two major hurdles persist:
- Distribution Mismatch: Popular off-policy algorithms often fail because the data they learn from (the "behavior policy") differs significantly from the policy they are trying to optimize.
- Algorithmic Fragmentation: Many modern RL and IL methods are derived using disparate mathematical tools, making it difficult to understand their shared limitations or why one outperforms another.
Specifically, in imitation learning, existing methods often rely on a "coverage assumption"—the idea that the suboptimal data provided must fully "cover" the states and actions the expert takes. In practice, this is rarely true, leading to poor performance. In offline RL, recent high-performers like XQL suffer from numerical instability because their loss functions (based on Gumbel regression) can produce exploding gradients.
Methods
The authors tackle these issues by framing RL as a constrained optimization of state-action visitation distributions. By applying Lagrangian duality, they transform these constrained problems into unconstrained "Dual RL" forms that are easier to optimize.
From this unified viewpoint, they introduce two primary innovations:
- ReCOIL (RElaxed Coverage for Off-policy Imitation Learning): Instead of assuming the suboptimal data covers the expert data, ReCOIL matches mixture distributions. It is "discriminator-free," meaning it doesn't need to train a separate neural network to distinguish between expert and non-expert data, which often introduces errors. Instead, it learns a Bellman-consistent energy-based model. Algorithm 1: ReCOIL (offline, chi-squared)
- f-DVL (f-Dual V Learning): The authors show that the instability in XQL stems from its use of the reverse KL-divergence. They propose f-DVL, which allows for a family of different f-divergences (like Pearson $\chi^2$ or Total Variation). These result in polynomial loss functions that are much more stable during training than the exponential Gumbel loss.
Datasets
The methods were validated using the D4RL benchmark, a standard suite for offline RL. The experiments covered:
- Locomotion tasks: Simulated robots like Hopper, HalfCheetah, Walker2d, and Ant.
- Manipulation tasks: The Adroit suite (Pen, Door, Hammer, Relocate) and Kitchen environments, which involve complex, high-dimensional control.
- Expert Data: Ranged from a single expert demonstration to larger sets, often mixed with varying amounts of "random" or "medium" quality suboptimal data.
Key Insights and Ideas
- The Power of Unification: By casting algorithms like CQL, IQLearn, and XQL into the Dual RL framework, the authors could pinpoint exactly which mathematical choices (like the choice of f-divergence or gradient type) led to specific failure modes.
- Relaxing Coverage: The "aha moment" for imitation learning was realizing that matching mixtures of agent and suboptimal data to mixtures of expert and suboptimal data mathematically eliminates the need for the expert data to be fully contained within the suboptimal set.
- Stability through Polynomials: In RL, the insight was that the exponential nature of Gumbel regression is a choice, not a necessity. Switching to polynomial-based losses provides the same theoretical benefits with far fewer "crashes" during training. XQL training diverges due to numerical instability, while f-DVL remains stable.
Key Results
-
Imitation Learning: ReCOIL significantly outperformed baselines like SMODICE and IQLearn, particularly in the "few-expert" and high-dimensional manipulation tasks where coverage is sparse. For example, on the Adroit "Pen" task with human data, ReCOIL achieved a score of ~103.7 vs. IQLearn's ~14.3. Normalized return obtained by different offline IL methods.
-
Reinforcement Learning: f-DVL proved to be highly competitive with state-of-the-art offline RL methods while exhibiting superior stability. It matched or exceeded XQL's performance across most D4RL tasks without requiring the same level of hyperparameter tuning or gradient clipping.
- Visitation Estimation: The authors demonstrated that ReCOIL can perfectly infer an agent's visitation distribution in grid-world settings where prior methods failed due to coverage gaps. ReCOIL perfectly infers visitation whereas methods relying on coverage assumptions fail.
Limitations and Future Work
- Supervised RL: The framework currently does not encompass supervised learning approaches like Decision Transformers or Reward-conditioned Policies (RvS), as these lack a return optimization term.
- Expert Quality: The methods assume expert demonstrations are of high quality. If the "expert" data is noisy or suboptimal, the performance of ReCOIL may degrade.
- Static Regularization: The framework uses a static distribution for regularization ($d^O$). The authors suggest that extending this to dynamically changing distributions (common in on-policy methods like PPO) would require further theoretical work.
- Future Directions: Exploring the "Dual-V" form for imitation learning and testing these methods in real-world robotic systems are noted as promising next steps.
Summary updated