Improving Generalization and Robustness in Offline Reinforcement Learning via Boundary-Aware Data Augmentation
Organizations: School of Computer Science, Tongji University, China
Abstract
Current offline reinforcement learning (ORL) algorithms tend to overfit the training dataset and exhibit poor in-distribution generalization and robustness performance when deployed to real environments, thus compromising their effectiveness. Existing methods typically enhance in-distribution generalization and robustness by leveraging regularization techniques widely used in computer vision. However, due to the high sensitivity of low-level physical signals to distributional shifts, these methods still suffer from notable limitations in in-distribution generalization and robustness, making it difficult to achieve stable performance in complex environments. To address this issue, we theoretically analyze the error bounds of the behavior policy and action-value function trained with random episode interpolation, revealing that the error scales positively correlated with the distance between states. Based on this insight, we propose a method called oundary-ware ata ugmentation (BADA), which leverages neighboring states to construct interpolation boundaries, enabling the generation of synthetic data that more faithfully preserves the original data distribution. We first conduct qualitative studies in a toy environment, showing that BADA generates mixed samples that preserve desirable policy smoothness while accurately reconstructing multimodal value distributions. Extensive experiments on limited offline datasets further demonstrate that BADA attains state-of-the-art performance across diverse benchmarks.
Figures & tables
| Method | 10% (100K samples) | 100% | ||||||||
| ANQ | Mixup | M-Mixup | RAD- | S4RL- | K-Mixup | PAN | TBADA | SBADA | ANQ | |
| halfcheetah-r | 21.7 | 2.2 0.2 | 26.0 0.5 | 19.5 0.3 | 22.7 1.1 | 19.4 0.7 | 20.2 0.7 | 22.7 0.8 | 23.0 1.2 | 25.1 |
| hopper-r | 14.3 | 3.6 0.3 | 14.5 5.7 | 17.5 5.7 | 8.1 2.8 | 4.8 2.0 | 4.2 2.0 | 19.6 7.1 | 21.4 5.9 | 31.3 |
| walker2d-r | -0.2 | 1.9 1.1 | -0.3 0.0 | -0.2 0.0 | -0.2 0.0 | -0.2 0.0 | -0.2 0.5 | 2.6 2.8 | -3.1 3.0 | -0.2 |
| halfcheetah-m | 40.5 | 41.6 0.4 | 9.8 8.5 | 37.5 6.3 | 20.0 8.6 | -0.1 0.6 | 30.5 13.2 | 41.8 7.9 | 40.7 8.3 | 61.3 |
| hopper-m | 66.4 | 52.4 1.2 | 0.7 0.0 | 53.9 3.5 | 89.7 3.5 | 51.0 2.7 | 79.9 4.0 | 77.5 7.4 | 85.3 5.4 | 94.2 |
| Method | Specification | halfcheetah-medium | hopper-medium | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Proportion | 1% | 2% | 4% | 100% | 1% | 2% | 4% | 100% | |
| training samples | 9990 | 19980 | 39960 | 999000 | 10000 | 20000 | 40000 | 1000000 | |
| TD3BC | Vanilla | 2.2 | 31.7 | 47.2 | 48.0 | 14.2 | 34.1 | 42.0 | 59.0 |
| +TBADA | 3.9 0.3 | 39.0 0.8 | 48.2 0.2 | 47.8 0.1 | 19.7 1.1 | 48.6 3.0 | 50.6 2.3 | 58.9 1.9 | |
| +SBADA | 2.8 0.6 | 36.0 1.4 | 47.5 0.5 | 48.2 0.2 | 22.1 1.4 | 53.6 3.5 | 57.1 2.5 | 59.6 1.9 | |
| IQL | Vanilla | 23.8 | 33.6 | 40.9 | 47.1 | 33.3 | 38.9 | 48.0 | 66.2 |
| Method | Specification | ||||
|---|---|---|---|---|---|
| TD3BC | Vanilla | 90.8 | 55.5 | 42.2 | 37.5 |
| +RAD- | 81.2 3.4 | 53.9 2.5 | 41.7 2.3 | 36.3 2.8 | |
| +S4RL- | 89.1 1.7 | 57.1 2.3 | 43.5 2.0 | 37.7 1.2 | |
| +TBADA | 90.6 1.2 | 52.5 3.8 | 42.9 1.9 | 38.0 1.3 | |
| +SBADA | 91.7 1.5 | 56.8 2.7 | 44.6 1.4 | 39.1 0.4 | |
| IQL | Vanilla | 86.8 | 55.8 | 42.0 | 35.4 |
| Stage | Specification | ANQ | ANQ+TBADA | ANQ+SBADA |
|---|---|---|---|---|
| Initialization | GPU memory | 0 | 0 | 2054M |
| Consumption time | 9s | 9s | 15s | |
| Training | GPU memory | 454M | 456M | 816M |
| Consumption time | 6.8h | 7.1h | 7.4h |
Appendix figures & tables9 assets
Supplementary material from the paper’s appendix.
Appendix
| Hyperparameter | Value | |
| BADA | Augmentation choice | TBADA/SBADA |
| Augmentation intensity | 0.2 | |
| TD3BC | Behavior cloning scaling factor | 2.5 |
| Optimizer | Adam [ 15 ] | |
| Critic learning rate | 3e-4 | |
| Actor learning rate | 3e-4 |
| Hyperparameter | Value | ||
| BADA | Augmentation choice | TBADA/SBADA | |
| Augmentation intensity | 0.2 | ||
| IQL | Shared | Optimizer | Adam [ 15 ] |
| Value learning rate | 3e-4 | ||
| Critic learning rate | 3e-4 | ||
| Actor learning rate | 3e-4 |
| Hyperparameter | Value | |
| BADA | Augmentation choice | TBADA/SBADA |
| Augmentation intensity | 0.2 | |
| CQL | Optimizer | Adam [ 15 ] |
| Critic learning rate | 3e-4 | |
| Actor learning rate | 1e-4 | |
| Alpha learning rate | 1e-4 |
| Hyperparameter | Value | |
| BADA | Augmentation choice | TBADA/SBADA |
| Augmentation intensity | 0.2 | |
| ANQ | Optimizer | Adam [ 15 ] |
| Critic learning rate | ||
| Actor learning rate | with cosine schedule | |
| Discount factor | 0.99 for Gym, 0.995 for Antmaze |
| Hyperparameter | Value | ||
| BADA | Augmentation choice | TBADA/SBADA | |
| Augmentation intensity | 0.2 | ||
| MOBILE | Shared | Optimizer | Adam [ 15 ] |
| The number of critics | 2 | ||
| Critic learning rate | 3e-4 | ||
| Actor learning rate | 1e-4 |
| Environment | Task | Penalty coefficient | Rollout length |
|---|---|---|---|
| Gym | halfcheetah-random | 0.5 | 5 |
| hopper-random | 0.1 | 5 | |
| walker2d-random | 2.0 | 5 | |
| halfcheetah-medium | 0.5 | 5 | |
| hopper-medium | 1.5 | 5 | |
| walker2d-medium | 1.0 | 5 |
| Method | TD3BC | IQL | ANQ | MOBILE | ||||||||
| Vanilla | +TBADA | +SBADA | Vanilla | +TBADA | +SBADA | Vanilla | +TBADA | +SBADA | Vanilla | +TBADA | +SBADA | |
| halfcheetah-r | 11.3 | 12.5 0.3 | 13.0 0.2 | 11.2 | 11.4 0.5 | 12.1 0.3 | 25.1 | 28.8 4.0 | 25.7 0.2 | 39.0 | 40.3 0.1 | 42.1 0.2 |
| hopper-r | 8.1 | 8.5 0.1 | 8.6 0.3 | 7.9 | 7.7 0.0 | 8.2 0.0 | 31.3 | 31.0 0.2 | 30.8 0.1 | 30.9 | 34.4 0.2 | 31.3 0.1 |
| walker2d-r | 1.5 | 2.6 1.1 | 1.7 1.4 | 5.9 | 6.8 0.1 | 7.3 0.1 | -0.2 | -0.2 0.0 | -0.2 0.0 | 18.3 | 21.7 0.1 | 21.5 0.0 |
| halfcheetah-m | 48.1 | 47.8 0.1 | 48.2 0.2 | 47.1 | 47.1 0.1 | 47.2 0.1 | 61.3 | 63.0 0.3 | 61.5 1.2 | 74.5 | 75.4 1.3 | 75.0 1.6 |
| hopper-m | 58.9 | 58.9 1.9 | 59.6 1.9 | 66.2 | 68.1 2.7 | 66.3 1.9 | 94.2 | 95.7 2.6 | 100.2 0.7 | 106.5 | 106.8 0.4 | 107.2 0.9 |
| Method | TD3BC | IQL | ANQ | ||||||
|---|---|---|---|---|---|---|---|---|---|
| Vanilla | +TBADA | +SBADA | Vanilla | +TBADA | +SBADA | Vanilla | +TBADA | +SBADA | |
| ant-u | 78.4 | 80.2 8.7 | 81.7 8.8 | 87.2 | 88.8 6.1 | 87.6 6.7 | 94.4 | 95.0 0.8 | 95.4 0.6 |
| ant-ud | 71.2 | 72.0 6.3 | 73.8 6.7 | 66.0 | 63.8 3.7 | 64.0 6.3 | 74.7 | 73.7 3.1 | 79.9 1.6 |
| ant-mp | 10.5 | 10.3 0.4 | 10.3 0.3 | 71.4 | 72.4 1.9 | 76.2 1.7 | 72.8 | 71.7 2.5 | 71.5 2.0 |
| ant-md | 3.0 | 3.3 0.4 | 3.3 0.6 | 69.7 | 71.4 1.7 | 70.1 1.6 | 50.3 | 50.8 17.3 | 46.6 16.7 |
| ant-lp | 0.2 | 0.2 0.0 | 0.2 0.0 | 39.5 | 44.3 3.5 | 44.6 4.3 | 51.9 | 49.6 6.1 | 51.1 3.5 |
Offline RL
Offline reinforcement learning learns decision-making policies from fixed datasets without interacting with the environment during training.
See all 298 papers