Offline RL with No OOD Actions: In-Sample Learning via Implicit Value Regularization
About
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.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Offline Reinforcement Learning | D4RL antmaze-umaze (diverse) | Normalized Score50.8 | 74 | |
| Offline Reinforcement Learning | D4RL Adroit pen (human) | Normalized Return44.3 | 53 | |
| Offline Reinforcement Learning | D4RL Adroit pen (cloned) | Normalized Return46.9 | 53 | |
| Offline Reinforcement Learning | antmaze medium-play | Score80.2 | 44 | |
| Offline Reinforcement Learning | D4RL MuJoCo halfcheetah-medium-expert | Normalized Score90.6 | 43 | |
| Offline Reinforcement Learning | D4RL MuJoCo hopper-medium-expert | Normalized Score105.5 | 36 | |
| Offline Reinforcement Learning | D4RL MuJoCo halfcheetah-medium-replay | Normalized Score0.472 | 36 | |
| Offline Reinforcement Learning | D4RL MuJoCo walker2d-medium-expert | Normalized Score110.2 | 36 | |
| Offline Reinforcement Learning | D4RL Locomotion medium, medium-replay, medium-expert v2 | Score (HalfCheetah, Medium)48.3 | 34 | |
| Offline Reinforcement Learning | MuJoCo hopper D4RL (medium-replay) | Normalized Return99.7 | 26 |