Offline RL with No OOD Actions: In-Sample Learning via Implicit Value Regularization
Haoran Xu, Li Jiang, Jianxiong Li, Zhuoran Yang, Zhaoran Wang, Victor Wai Kin Chan, Xianyuan Zhan
TL;DR
The paper introduces Implicit Value Regularization (IVR), a framework to address distributional shift in offline RL by enforcing in-sample learning through behavior-regularized backups. Building on IVR, the authors derive two practical algorithms, Sparse Q-Learning (SQL) and Exponential Q-Learning (EQL), which impose value regularization to induce sparsity or exponential weighting in the learned value function. The methods learn Q and V entirely from in-sample data and avoid querying unseen actions, achieving state-of-the-art results on challenging D4RL tasks such as AntMaze and Kitchen, and exhibiting robustness in noisy and small-data regimes. The work connects to CQL and IQL, providing a unified lens for behavior-regularized offline RL and offering a path toward more stable, data-efficient offline-to-online extensions.
Abstract
Most offline reinforcement learning (RL) methods suffer from the trade-off between improving the policy to surpass the behavior policy and constraining the policy to limit the deviation from the behavior policy as computing $Q$-values using out-of-distribution (OOD) actions will suffer from errors due to distributional shift. The recently proposed \textit{In-sample Learning} paradigm (i.e., IQL), which improves the policy by quantile regression using only data samples, shows great promise because it learns an optimal policy without querying the value function of any unseen actions. However, it remains unclear how this type of method handles the distributional shift in learning the value function. In this work, we make a key finding that the in-sample learning paradigm arises under the \textit{Implicit Value Regularization} (IVR) framework. This gives a deeper understanding of why the in-sample learning paradigm works, i.e., it applies implicit value regularization to the policy. Based on the IVR framework, we further propose two practical algorithms, Sparse $Q$-learning (SQL) and Exponential $Q$-learning (EQL), which adopt the same value regularization used in existing works, but in a complete in-sample manner. Compared with IQL, we find that our algorithms introduce sparsity in learning the value function, making them more robust in noisy data regimes. We also verify the effectiveness of SQL and EQL on D4RL benchmark datasets and show the benefits of in-sample learning by comparing them with CQL in small data regimes.
