Introduction
Offline reinforcement learning (RL) presents a significant challenge: learning an optimal policy from a static, pre-collected dataset without the ability to interact further with the environment. The central obstacle in this setting is distributional shift. When an agent evaluates an action that is underrepresented in the training data—an out-of-distribution (OOD) action—standard value functions (Q-values) tend to produce over-optimistic estimates. This optimism leads the agent to prefer risky, poorly understood actions, often resulting in catastrophic failure during deployment.
To mitigate this, researchers employ pessimism, a strategy that penalizes the agent for choosing actions where uncertainty is high. While effective, current methods for quantifying uncertainty—such as large ensembles of neural networks—are computationally prohibitive and memory-intensive. This paper introduces Diverse Randomized Value Functions (DRVF), a novel approach that achieves state-of-the-art performance with significantly lower computational overhead by ensuring diversity within a small ensemble.
Methodology
DRVF addresses the limitations of traditional ensembles through three integrated components designed to provide robust uncertainty quantification and provable pessimism.
1. Approximate Bayesian Posterior
Instead of relying on standard deterministic neural networks, DRVF utilizes Bayesian Neural Networks (BNNs), specifically applying the Bayesian framework to the last layer of the value function. This allows the model to maintain a distribution over possible Q-values, providing a more principled basis for uncertainty estimation than simple point estimates.
2. Repulsive Regularization
The core innovation of DRVF is a repulsive regularization term added to the loss function. Traditional ensembles often suffer from "mode collapse," where individual members converge to identical predictions, rendering the ensemble's variance useless as an uncertainty metric. DRVF’s repulsive force explicitly pushes different Q-function samples apart for OOD actions. By maximizing the diversity of predictions in regions where data is scarce, the algorithm ensures that the uncertainty bounds remain wide and informative.
3. Pessimistic Q-Learning
During the policy update phase, DRVF samples multiple Q-values from the posterior and applies a Lower Confidence Bound (LCB). By taking the minimum of these samples, the algorithm effectively "punishes" the agent for selecting OOD actions. This ensures the learned policy remains cautious and stays within the support of the training data.
Theoretical Foundation
Beyond empirical performance, the authors provide a theoretical justification for DRVF. They demonstrate that under linear Markov Decision Process (MDP) assumptions, this approach recovers the "provably efficient" LCB-penalty. This mathematical grounding ensures that the diversity-driven pessimism is not just a heuristic but a theoretically sound method for achieving efficiency in offline RL.
Empirical Results
Performance and Efficiency
The researchers evaluated DRVF on the standard D4RL benchmarks, including Gym-MuJoCo tasks (HalfCheetah, Walker2d, Hopper) and AntMaze navigation tasks. DRVF consistently matched or outperformed top-tier baselines such as CQL, IQL, and EDAC. For instance, in the halfcheetah-medium task, DRVF achieved a score of 69.2, compared to 47.0 for CQL.
More importantly, DRVF demonstrated remarkable efficiency. While previous state-of-the-art methods like SAC-N require ensembles of 50 or more networks to be effective, DRVF achieves superior results with only 2 to 5 ensemble members. This reduction leads to a massive decrease in parameter count; in the hopper environment, DRVF reached state-of-the-art levels with only 1.5M parameters, whereas SAC-N required 135.8M parameters.
Uncertainty Mapping
Visualization via t-SNE confirmed that DRVF’s uncertainty estimates align accurately with OOD regions. Unlike previous methods like PBRL, which occasionally failed to flag OOD expert actions as uncertain, DRVF’s repulsive term successfully "stretches" uncertainty bounds in data-sparse regions, making the pessimism more reliable for policy optimization.
Conclusion and Future Work
DRVF represents a significant step forward in making offline RL both robust and computationally accessible. By prioritizing the diversity of value functions over the sheer quantity of ensemble members, it achieves high performance with a fraction of the memory and processing power.
Future research directions include extending DRVF to model-based RL to further improve sample efficiency and exploring online fine-tuning to see how these diverse value functions adapt when the agent begins interacting with the environment. Additionally, optimizing sampling times could further enhance performance in complex, sparse-reward environments like AntMaze.
Summary updated