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

Train Once, Get a Family: State-Adaptive Balances for Offline-to-Online Reinforcement Learning

Shenzhi Wang, Qisen Yang, Jiawei Gao, Matthieu Gaetan Lin, Hao Chen, Liwei Wu, Ning Jia, Shiji Song, Gao Huang

Introduction

Reinforcement Learning (RL) agents often struggle when transitioning from "offline" pre-training (learning from a fixed dataset) to "online" fine-tuning (interacting with the real environment). This transition frequently triggers a distributional shift: the agent encounters states it didn't see in the training data, leading to overconfident, erroneous value estimates and a subsequent "dip" in performance.

To prevent this, researchers typically use policy constraints—mathematical "leashes" that keep the agent's behavior close to the offline data. However, existing methods usually apply a single, global balance coefficient (a "one-size-fits-all" approach) across the entire dataset. This is suboptimal because data quality varies significantly by state; in some states, the recorded data is expert-level (where the agent should be conservative and imitate), while in others, the data is poor (where the agent should be "radical" and explore).

FamO2O (Family Offline-to-Online RL) introduces a state-adaptive trade-off between policy improvement and policy constraints. By training a "family" of policies with varying degrees of conservatism during the offline phase, the agent can dynamically select the optimal balance for each specific state during online fine-tuning, achieving state-of-the-art results on the D4RL benchmark.

Methods: The FamO2O Framework

The authors propose FamO2O, a framework that replaces the fixed global balance with a state-adaptive one. It consists of two primary components:

FamO2O Framework and Performance
  1. Universal Model ($\pi_u$): Instead of training one policy, the authors train a "family" of policies. This model is conditioned on both the state and a balance coefficient ($\beta$). During offline pre-training, $\beta$ is randomly sampled, teaching the model how to behave at various levels of conservatism vs. radicalism.
  2. Balance Model ($\pi_b$): This model learns to map a specific state to the ideal balance coefficient. During online fine-tuning, it uses environment feedback (Q-values) to pick the "family member" from the Universal Model that is most likely to maximize future returns for that specific state.

Theoretically, the paper proves that point-wise constraints (constraining the policy at each state) provide a higher performance upper bound than the standard distributional constraints (constraining the average behavior) used in prior work.

Key Insights and Ideas

  • "Train Once, Get a Family": The Universal Model is a highly efficient way to capture a spectrum of behaviors without needing to train multiple separate networks.
  • State-Wise Adaptivity is Essential: FamO2O naturally chooses conservative coefficients where it has high-quality guidance and radical coefficients where the data is noisy or unhelpful.
  • Point-wise vs. Distributional: The move from global constraints to state-specific constraints is the key theoretical driver. By allowing the "leash" to be tighter or looser depending on the state, the agent can exploit high-quality data while ignoring "trash" data.
  • Plug-and-Play Versatility: FamO2O isn't a standalone algorithm but a framework. The authors successfully integrated it with different base algorithms, including AWR-style methods (IQL, AWAC) and non-AWR methods (CQL).

Experimental Results

The framework was evaluated on the standard D4RL benchmark, including Locomotion tasks (Hopper, HalfCheetah, Walker2d) and AntMaze tasks. FamO2O achieved state-of-the-art performance, showing statistically significant improvements over vanilla baselines:

  • AntMaze Performance: On the challenging AntMaze tasks, FamO2O significantly boosted AWAC's total score from 124.7 to 243.7 and IQL's from 428.7 to 478.3.
  • Generalization: The method consistently improved performance regardless of whether the base algorithm was IQL, AWAC, or CQL.
  • Robustness: Sensitivity analysis showed that FamO2O is relatively insensitive to the specific range of balance coefficients chosen, making it easier to tune than traditional methods.

Limitations and Future Work

  • Scope of Evaluation: While FamO2O was tested on several representative algorithms, a vast array of other offline-to-online algorithms remain unexamined.
  • Online Dependency: The current framework relies on online feedback to train the Balance Model effectively; its utility in purely offline settings (where no environment interaction is allowed) is currently limited.
  • Future Directions: The authors suggest extending this adaptive design to Large Language Models (LLMs) acting as agents, where balancing "imitation" of training text with "exploration" of task goals is a major challenge.

Summary updated

BibTeX
@inproceedings{wang2023train,
  author = {Shenzhi Wang and Qisen Yang and Jiawei Gao and Matthieu Gaetan Lin and HAO CHEN and Liwei Wu and Ning Jia and Shiji Song and Gao Huang},
  title = {{Train Once, Get a Family: State-Adaptive Balances for Offline-to-Online Reinforcement Learning}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=vtoY8qJjTR},
}
Figure