An Optimal Discriminator Weighted Imitation Perspective for Reinforcement Learning
Haoran Xu, Shuozhe Li, Harshit Sikchi, Scott Niekum, Amy Zhang
TL;DR
Offline RL faces distributional shift between the policy visitation distribution $d^{\pi}$ and the offline data distribution $d^{\mathcal{D}}$; this work reframes the problem as optimal discriminator-weighted imitation and proposes Iterative Dual-RL (IDRL). IDRL learns the visitation ratio via a two-stage correction that first estimates the action-distribution ratio $w^{*}(a|s)$ and then recovers the true state-action ratio $w^{*}(s,a)$ through off-policy evaluation, followed by iterative self-distillation over dataset supports. The method yields monotonic improvements and achieves state-of-the-art performance on D4RL benchmarks and corrupted demonstrations, with better stability than existing Primal-RL and Dual-RL baselines. The work demonstrates that dataset refinement guided by the optimal discriminator weight can effectively bridge offline RL and imitation learning in a principled, in-sample way.
Abstract
We introduce Iterative Dual Reinforcement Learning (IDRL), a new method that takes an optimal discriminator-weighted imitation view of solving RL. Our method is motivated by a simple experiment in which we find training a discriminator using the offline dataset plus an additional expert dataset and then performing discriminator-weighted behavior cloning gives strong results on various types of datasets. That optimal discriminator weight is quite similar to the learned visitation distribution ratio in Dual-RL, however, we find that current Dual-RL methods do not correctly estimate that ratio. In IDRL, we propose a correction method to iteratively approach the optimal visitation distribution ratio in the offline dataset given no addtional expert dataset. During each iteration, IDRL removes zero-weight suboptimal transitions using the learned ratio from the previous iteration and runs Dual-RL on the remaining subdataset. This can be seen as replacing the behavior visitation distribution with the optimized visitation distribution from the previous iteration, which theoretically gives a curriculum of improved visitation distribution ratios that are closer to the optimal discriminator weight. We verify the effectiveness of IDRL on various kinds of offline datasets, including D4RL datasets and more realistic corrupted demonstrations. IDRL beats strong Primal-RL and Dual-RL baselines in terms of both performance and stability, on all datasets.
