Boosting Offline Reinforcement Learning via Data Rebalancing
About
Offline reinforcement learning (RL) is challenged by the distributional shift between learning policies and datasets. To address this problem, existing works mainly focus on designing sophisticated algorithms to explicitly or implicitly constrain the learned policy to be close to the behavior policy. The constraint applies not only to well-performing actions but also to inferior ones, which limits the performance upper bound of the learned policy. Instead of aligning the densities of two distributions, aligning the supports gives a relaxed constraint while still being able to avoid out-of-distribution actions. Therefore, we propose a simple yet effective method to boost offline RL algorithms based on the observation that resampling a dataset keeps the distribution support unchanged. More specifically, we construct a better behavior policy by resampling each transition in an old dataset according to its episodic return. We dub our method ReD (Return-based Data Rebalance), which can be implemented with less than 10 lines of code change and adds negligible running time. Extensive experiments demonstrate that ReD is effective at boosting offline RL performance and orthogonal to decoupling strategies in long-tailed classification. New state-of-the-arts are achieved on the D4RL benchmark.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| hopper locomotion | D4RL hopper medium-replay | Normalized Score101 | 56 | |
| walker2d locomotion | D4RL walker2d medium-replay | Normalized Score79.5 | 53 | |
| Locomotion | D4RL walker2d-medium-expert | Normalized Score110.5 | 47 | |
| Locomotion | D4RL Halfcheetah medium | Normalized Score47.6 | 44 | |
| Locomotion | D4RL Walker2d medium | Normalized Score78.6 | 44 | |
| hopper locomotion | D4RL Hopper medium | Normalized Score66 | 38 | |
| hopper locomotion | D4RL hopper-medium-expert | Normalized Score101 | 38 | |
| Locomotion | D4RL halfcheetah-medium-expert | Normalized Score92.6 | 37 | |
| Locomotion | D4RL HalfCheetah Medium-Replay | Normalized Score0.443 | 33 | |
| Locomotion | D4RL halfcheetah-random-expert | Normalized Score42.4 | 5 |