Doubly Mild Generalization for Offline Reinforcement Learning
About
Offline Reinforcement Learning (RL) suffers from the extrapolation error and value overestimation. From a generalization perspective, this issue can be attributed to the over-generalization of value functions or policies towards out-of-distribution (OOD) actions. Significant efforts have been devoted to mitigating such generalization, and recent in-sample learning approaches have further succeeded in entirely eschewing it. Nevertheless, we show that mild generalization beyond the dataset can be trusted and leveraged to improve performance under certain conditions. To appropriately exploit generalization in offline RL, we propose Doubly Mild Generalization (DMG), comprising (i) mild action generalization and (ii) mild generalization propagation. The former refers to selecting actions in a close neighborhood of the dataset to maximize the Q values. Even so, the potential erroneous generalization can still be propagated, accumulated, and exacerbated by bootstrapping. In light of this, the latter concept is introduced to mitigate the generalization propagation without impeding the propagation of RL learning signals. Theoretically, DMG guarantees better performance than the in-sample optimal policy in the oracle generalization scenario. Even under worst-case generalization, DMG can still control value overestimation at a certain level and lower bound the performance. Empirically, DMG achieves state-of-the-art performance across Gym-MuJoCo locomotion tasks and challenging AntMaze tasks. Moreover, benefiting from its flexibility in both generalization aspects, DMG enjoys a seamless transition from offline to online learning and attains strong online fine-tuning performance.
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Offline Reinforcement Learning | hopper medium | Normalized Score100.6 | 52 | |
| Offline Reinforcement Learning | walker2d medium | Normalized Score92.4 | 51 | |
| Offline Reinforcement Learning | walker2d medium-replay | Normalized Score89.7 | 50 | |
| Offline Reinforcement Learning | hopper medium-replay | Normalized Score101.9 | 44 | |
| Offline Reinforcement Learning | halfcheetah medium | Normalized Score54.9 | 43 | |
| Offline Reinforcement Learning | halfcheetah medium-replay | Normalized Score51.4 | 43 | |
| Offline Reinforcement Learning | D4RL AntMaze | AntMaze Umaze Return92.4 | 39 | |
| Offline Reinforcement Learning | Walker2d medium-expert | Normalized Score114.4 | 31 | |
| Offline Reinforcement Learning | Hopper medium-expert | Normalized Score110.4 | 24 | |
| Offline Reinforcement Learning | D4RL Walker2d expert | Mean Normalized Score114.7 | 22 |