NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Rebalancing Return Coverage for Conditional Sequence Modeling in Offline Reinforcement Learning

Wensong Bai, Chufan Chen, Yichao Fu, Qihang Xu, Chao Zhang, Hui QianNeurIPS 2025

Introduction: The Distributional Shift in Offline RL

Offline Reinforcement Learning (RL) aims to learn optimal policies from static, pre-collected datasets without requiring further interaction with the environment. A highly popular approach in this domain is Conditional Sequence Modeling (CSM), famously exemplified by the Decision Transformer (DT). Instead of predicting traditional value functions, CSM treats RL as a supervised learning task, essentially asking: "Given this history of states and a target return, what action should I take?"

However, real-world datasets are notoriously imbalanced. They are often saturated with suboptimal, low-return trajectories ("junk") and contain very few expert, high-return trajectories ("gems"). When a model trained on this skewed data is asked to achieve a high return during inference, it suffers from a distributional shift. It is forced to operate in a high-performance regime it rarely encountered during training. While researchers have attempted empirical "rebalancing" tricks like oversampling good trajectories, the theoretical understanding of why these methods work—and how to optimize them—has remained limited.

The RVDT Algorithm

To address this, researchers introduce the Return-rebalanced Value-regularized Decision Transformer (RVDT). RVDT improves upon the standard Decision Transformer by integrating three key mechanisms:

  1. Explicit Rebalancing (Expert KL Regularizer): The algorithm first trains a small "expert" network via simple imitation learning on the top $\rho\%$ of the dataset. During main training, a KL-divergence penalty is added to force the agent's policy to stay close to this expert. The authors prove this is mathematically equivalent to a sophisticated form of weighted trajectory sampling.
  2. Implicit Rebalancing (Value-regularized Guidance): Borrowing from the "QT" algorithm, RVDT integrates a Q-value regularizer. This provides a "nudge" toward actions that lead to higher future rewards, which is especially critical when expert data is scarce.
  3. Stochastic Policy Modeling: Unlike the original DT, which is typically deterministic, RVDT uses a Gaussian distribution to model actions, allowing it to better capture the multi-modal nature of complex tasks.

Key Insights: The Coverage Duality

A core theoretical contribution of this work is the concept of Coverage Duality. The paper reveals that successful offline RL requires two distinct types of data coverage:

  • Expert-level coverage: Teaches the model what "good" behavior looks like.
  • Full-spectrum coverage: Exposes the model to a wide range of returns, helping it understand the consequences of mistakes and how to recover from suboptimal states.

Over-filtering a dataset to include only the best data actually harms the model's robustness. By using a KL regularizer against an expert policy, RVDT achieves a "soft" dataset filtering—allowing the model to learn from the entire dataset while prioritizing the gradients of high-quality behaviors. Furthermore, implicit (Q-value) and explicit (expert imitation) rebalancing act synergistically. Q-values struggle in sparse-reward tasks, but expert trajectories provide clear signals exactly where Q-values fail.

Key Results

RVDT was rigorously evaluated on the D4RL benchmark, the industry standard for offline RL, encompassing Gym MuJoCo locomotion, Adroit robotic hand manipulation, Kitchen multi-task manipulation, and Maze2D/AntMaze navigation tasks.

State-of-the-Art Performance: RVDT outperformed almost all representative baselines—including CQL, IQL, and the original DT—across the majority of D4RL tasks.

Performance comparison of RVDT against baseline algorithms on the D4RL benchmark.

Robustness to Imbalance: One of RVDT's standout features is its sample efficiency and resilience to data scarcity. Even in "low-data" regimes where expert data constituted only 15% of the training set, RVDT's rebalancing mechanism allowed it to maintain near-expert performance levels, whereas baseline methods saw significant performance drops.

Performance of RVDT compared to baselines under varying proportions of expert data.

Additionally, in Maze2D tasks, RVDT demonstrated a superior ability to "stitch" together fragmented sub-trajectories to solve long-horizon navigation problems, significantly outperforming the previous state-of-the-art.

Limitations and Future Work

While highly effective, RVDT does come with a computational overhead. Training an additional expert network and a value network increases total training time by roughly 10-20% compared to simpler models. Furthermore, the framework is currently strictly offline and relies heavily on having clear "return" labels for trajectories—a metric that can be subjective or difficult to define in domains like healthcare or autonomous driving. Future work will explore extending this framework to online fine-tuning and utilizing alternative quality metrics for environments where standard returns are ill-defined.

Summary updated

BibTeX
@inproceedings{bai2025rebalancing,
  author = {Wensong Bai and Chufan Chen and Yichao Fu and Qihang Xu and Chao Zhang and Hui Qian},
  title = {{Rebalancing Return Coverage for Conditional Sequence Modeling in Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=yGf8DSwR09},
}
Figure