Abstract
In offline reinforcement learning, a policy learns to maximize cumulative rewards with a fixed collection of data. Towards conservative strategy, current methods choose to regularize the behavior policy or learn a lower bound of the value function. However, exorbitant conservation tends to impair the policy's generalization ability and degrade its performance, especially for the mixed datasets. In this paper, we propose the method of reducing conservativeness oriented reinforcement learning. On the one hand, the policy is trained to pay more attention to the minority samples in the static dataset to address the data imbalance problem. On the other hand, we give a tighter lower bound of value function than previous methods to discover potential optimal actions. Consequently, our proposed method is able to tackle the skewed distribution of the provided dataset and derive a value function closer to the expected value function. Experimental results demonstrate that our proposed method outperforms the state-of-the-art methods in D4RL offline reinforcement learning evaluation tasks and our own designed mixed datasets.
Introduction
Offline Reinforcement Learning (RL) involves training agents on fixed, pre-collected datasets without environment interaction. A primary challenge is extrapolation error, where agents overestimate the value of actions not well-represented in the data. To mitigate this, algorithms like Conservative Q-Learning (CQL) learn a lower bound of the value function. However, excessive conservativeness can lead to two major issues:
- Data Imbalance: In mixed datasets where expert trajectories are rare (e.g., 10% expert, 90% random), standard methods often over-regularize toward the mediocre majority, "drowning out" high-quality samples.
- Exorbitant Conservativeness: Pessimism about unseen actions may prevent the agent from selecting potentially optimal actions that deviate from the average behavior in the dataset.
This paper proposes a framework to reduce conservativeness by identifying rare, high-quality samples through clustering and applying a tighter value function lower bound.
Methods
The proposed approach consists of three main components designed to balance stability and performance:
Unsupervised Clustering and Resampling
Since offline datasets lack quality labels, the authors employ K-means clustering on $(state, action, reward)$ transitions to identify "minority" clusters. These clusters often isolate rare expert trajectories from the bulk of random or mediocre data.
As shown in the table above, the clustering method effectively separates random data (Cluster 1) from expert data (Cluster 2). Following identification, a reweighting scheme based on the "effective number of samples" ensures the training process pays sufficient attention to these rare but valuable samples.
Tighter Lower Bound
The method introduces a new objective with a baseline $\delta(s)$ based on the Pearson $\chi^2$ divergence between the learned and behavior policies. This provides a tighter lower bound than CQL, allowing the agent more flexibility to explore promising actions slightly outside the main distribution.
The sensitivity to the $\delta$ parameter is illustrated in the learning curves. A well-tuned $\delta$ allows the agent to achieve significantly higher returns by reducing unnecessary pessimism.
Uncertainty Correction
To maintain stability while amplifying minority samples, the authors apply stricter penalties to out-of-distribution (OOD) actions specifically in data-sparse regions.
Experimental Results
The method was evaluated on standard D4RL benchmarks and custom mixed datasets. Key results include:
- Mixed Data Performance: In the "Walker2d-medium-replay" task, the proposed method achieved a score of 46.2, nearly doubling CQL’s 26.7.
- Robustness to Skewed Distributions: In custom datasets with 90% random data, the method maintained high performance, whereas baseline performance plummeted as the ratio of random data increased.
- Hopper-Medium: The method achieved a score of 96.8, significantly outperforming CQL's 58.0, demonstrating its ability to extract optimal behavior from mediocre datasets.
Conclusion and Future Work
By addressing data imbalance and reducing exorbitant conservativeness, this method enables more effective offline RL. Key limitations include sensitivity to the cluster count ($k$) and the need for more sophisticated representations in high-dimensional environments. Future work will focus on automating hyperparameter tuning for $\delta$ and $k$.
Summary updated