[Paper Review] Offline-to-Online Reinforcement Learning via Balanced Replay and Pessimistic Q-Ensemble
This paper proposes Off2OnRL, a method for stable offline-to-online reinforcement learning that combines balanced replay and pessimistic Q-ensemble to mitigate distribution shift and bootstrap error during fine-tuning. By prioritizing near-on-policy offline samples and using multiple pessimistic Q-functions, the approach achieves superior sample efficiency and final performance on MuJoCo locomotion and vision-based robotic manipulation tasks compared to baselines.
Recent advance in deep offline reinforcement learning (RL) has made it possible to train strong robotic agents from offline datasets. However, depending on the quality of the trained agents and the application being considered, it is often desirable to fine-tune such agents via further online interactions. In this paper, we observe that state-action distribution shift may lead to severe bootstrap error during fine-tuning, which destroys the good initial policy obtained via offline RL. To address this issue, we first propose a balanced replay scheme that prioritizes samples encountered online while also encouraging the use of near-on-policy samples from the offline dataset. Furthermore, we leverage multiple Q-functions trained pessimistically offline, thereby preventing overoptimism concerning unfamiliar actions at novel states during the initial training phase. We show that the proposed method improves sample-efficiency and final performance of the fine-tuned robotic agents on various locomotion and manipulation tasks. Our code is available at: https://github.com/shlee94/Off2OnRL.
Motivation & Objective
- To address distribution shift during offline-to-online RL fine-tuning, which causes severe bootstrap error and degrades pre-trained policies.
- To stabilize policy updates in novel state-action regimes by reducing overoptimism in Q-value estimation for out-of-distribution actions.
- To improve sample efficiency and final performance in robotic reinforcement learning by effectively combining offline and online experience.
- To enable robust fine-tuning in real-world robotic settings where offline datasets may be suboptimal or mixed with random rollouts.
Proposed method
- Introduces a balanced replay scheme that prioritizes online samples while also incorporating near-on-policy transitions from the offline dataset using a learned online-ness score.
- Trains a neural network to estimate the 'online-ness' of each experience, which guides sampling to better match the distribution of online fine-tuning data.
- Employs a pessimistic Q-ensemble with multiple Q-functions trained using CQL-style regularization to reduce overoptimism in value estimates for unseen actions.
- Uses ensemble averaging of pessimistic Q-functions to provide high-resolution pessimism, stabilizing policy updates during early fine-tuning.
- Applies soft actor-critic (SAC) with the modified replay buffer and pessimistic Q-ensemble to enable stable off-policy learning.
- Leverages the Q-ensemble's discriminative ability to detect out-of-distribution transitions via AUROC, improving robustness during training.
Experimental results
Research questions
- RQ1Can a balanced replay strategy that prioritizes online and near-on-policy offline samples reduce distribution shift during offline-to-online RL?
- RQ2Does a pessimistic Q-ensemble with multiple Q-functions improve stability and performance in fine-tuning by reducing overoptimism in value estimation?
- RQ3How does the proposed method compare to standard fine-tuning baselines in terms of sample efficiency and final performance on continuous control tasks?
- RQ4Can the method generalize to image-based robotic manipulation tasks with mixed, non-expert offline data?
Key findings
- The proposed method achieves stable and consistent fine-tuning across all MuJoCo locomotion tasks and vision-based manipulation tasks, outperforming baselines in both final performance and sample efficiency.
- On robotic manipulation tasks with mixed offline data (including random rollouts), the method successfully learns the task within 40K–80K additional environment steps, while CQL-ft failed in multiple seeds due to instability.
- Balanced replay significantly improves performance compared to uniform sampling or online-only fine-tuning, even when combined with pessimistic Q-ensemble.
- The ablation study confirms that increasing the Q-ensemble size improves performance, indicating that higher-resolution pessimism leads to more stable policy updates.
- The method automatically filters out irrelevant random data during fine-tuning, as shown by decreasing proportions of random data in the replay buffer over time.
- The Q-ensemble demonstrates superior discriminative ability for detecting out-of-distribution transitions (AUROC), which correlates with stable training and improved performance.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.