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

Adaptive $Q$-Aid for Conditional Supervised Learning in Offline Reinforcement Learning

Jeonghye Kim, Suyoung Lee, Woojun Kim, Youngchul Sung

Offline Reinforcement Learning (RL) holds the promise of learning optimal policies from fixed, pre-collected datasets without requiring further, potentially costly, environment interaction. However, the field currently faces a dichotomy between two primary approaches: value-based methods and return-conditioned supervised learning (RCSL).

Value-based methods, such as Implicit Q-Learning (IQL) and Conservative Q-Learning (CQL), use dynamic programming to "stitch" together segments of different trajectories. This allows them to find a path better than any single trajectory in the dataset. Unfortunately, these methods are notoriously prone to instability and overestimation errors. On the other hand, RCSL methods, like the Decision Transformer, treat RL as a sequence modeling task, mimicking actions that lead to high returns. While highly stable and scalable, RCSL lacks this crucial "stitching" ability. If a dataset only contains mediocre trajectories, an RCSL agent can only ever be as good as the best single trajectory it has seen.

To bridge this gap, researchers have introduced Q-Aided Conditional Supervised Learning (QCS), a novel framework that combines the stability of supervised learning with the stitching power of Q-learning.

The QCS Framework and Adaptive Weighting

The core innovation of QCS is augmenting the standard RCSL loss function with a "Q-aid" term. This term encourages the policy to select actions with high predicted Q-values, effectively guiding the supervised learning process with value-based foresight.

However, simply adding a Q-function is not enough. The researchers discovered a phenomenon called Q-function over-generalization. Using Neural Tangent Kernel (NTK) analysis, they proved that when a Q-network is trained on a narrow "expert" dataset, a gradient update for one action significantly changes the values for all actions. This makes the Q-function a "flat" and unreliable signal for expert data, as it predicts high values even for bad, out-of-distribution actions.

To solve this, QCS employs an Adaptive Weighting Mechanism based on the trajectory's return:

  • For low-return (suboptimal) trajectories: The weight of the Q-aid is high. Because RCSL is uncertain here, the model relies heavily on the Q-function to help the agent "stitch" better paths together.
  • For high-return (optimal) trajectories: The weight is low. RCSL is already confident and accurate when mimicking expert data, so the model ignores the noisy, over-generalized signals from the Q-function.
Conceptual diagram of QCS: The framework relies heavily on RCSL for optimal trajectories while adaptively using Q-aid to stitch together suboptimal trajectories.

The Q-function itself is pre-trained using Implicit Q-Learning (IQL), an "in-sample" method that avoids querying actions not present in the dataset, further enhancing the overall stability of the framework.

Empirical Results: Breaking the Trajectory Ceiling

The researchers evaluated QCS on the standard D4RL benchmark, including MuJoCo Locomotion tasks, high-dimensional Adroit robotic manipulation, and the notoriously challenging AntMaze domain, which requires long-range planning and significant trajectory stitching.

QCS demonstrated superior performance across almost all tested environments. Most notably, it consistently exceeded the maximum trajectory return found in the original datasets—a definitive sign of successful stitching.

Mean normalized return across diverse benchmarks. QCS (green) consistently meets or exceeds the maximum trajectory return (dashed line), outperforming pure RCSL and value-based methods.

In the difficult AntMaze Large benchmark, QCS significantly outperformed both pure RCSL and pure value-based baselines, achieving scores nearly double those of standard Decision Transformers. In MuJoCo environments, QCS consistently achieved higher mean normalized returns than state-of-the-art methods, particularly in "Medium-Replay" datasets where data diversity is high but quality is mixed. Furthermore, unlike many value-based methods that suffer from "performance collapse" during training, QCS exhibited stable, monotonically increasing learning curves.

Limitations and Future Directions

While QCS represents a significant step forward, it does come with a pre-training overhead, as it requires training a Q-function (via IQL) before the main policy training phase. Additionally, while a simple linear decay for the adaptive weight worked well in these benchmarks, more complex tasks might benefit from sophisticated ways to evaluate Q-function certainty.

Ultimately, QCS successfully demonstrates how return can be used as a proxy for certainty, allowing models to use Q-functions as a "tutor" for poor data while ignoring them when the data is already of textbook quality. This adaptive integration pushes the limits of offline RL and opens new avenues for combining sequence modeling with dynamic programming.

Summary updated

BibTeX
@inproceedings{kim2024adaptive,
  author = {Jeonghye Kim and Suyoung Lee and Woojun Kim and Youngchul Sung},
  title = {{Adaptive $Q$-Aid for Conditional Supervised Learning in Offline Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2024},
  url = {https://openreview.net/forum?id=3HpgVs22UJ},
}
Figure