Solving Continual Offline RL through Selective Weights Activation on Aligned Spaces

Jifeng Hu, Sili Huang, Li Shen, Zhejian Yang, Shengchao Hu, Shisong Tang, Hechang Chen, Yi Chang, Dacheng Tao, Lichao Sun · DOI

Introduction

Continual Offline Reinforcement Learning (CORL) aims to train agents on a sequence of static datasets without environment interaction, ensuring they master new tasks while retaining knowledge of previous ones. A significant hurdle in real-world CORL is the heterogeneity of state and action spaces across tasks—for instance, an agent might transition from a task with 10 sensors to one with 20. Standard neural architectures with fixed input/output layers struggle with these shifts. Furthermore, offline data is often multimodal and noisy, leading to interference and catastrophic forgetting when a single model attempts to learn everything sequentially.

To address these challenges, we introduce VQ-CD (Vector-Quantized Continual Diffuser), a framework that aligns diverse task spaces into a unified representation and employs parameter isolation to prevent forgetting.

The VQ-CD Framework

VQ-CD integrates the expressive power of diffusion models with structural parameter isolation. The architecture consists of two primary components designed to handle space misalignment and task interference.

Quantized Spaces Alignment (QSA)

To manage tasks with varying dimensions, VQ-CD utilizes Vector Quantization (VQ). Task-specific encoders map diverse state and action spaces into a shared, unified "codebook" space. This creates a universal internal language for the model, allowing a single diffusion backbone to process inputs from different robots or sensor configurations without architectural changes.

Selective Weights Activation (SWA)

The core of the model is a diffusion-based U-Net. To prevent tasks from overwriting each other, VQ-CD applies sparse masks to the convolution kernels. For each task, only a specific, non-overlapping subset of weights is activated. During training, the model learns task-specific features within these isolated parameters. At the end of the sequence, these task-specific weights are assembled into a single consolidated model.

The VQ-CD architecture showing the integration of Quantized Spaces Alignment and Selective Weights Activation within a diffusion-based framework.

Experimental Evaluation

We evaluated VQ-CD across 15 tasks from three major benchmarks: Ant-dir, Continual World (CW10), and a general CL setting using D4RL datasets (Hopper, Walker2d, and HalfCheetah) to simulate arbitrary state/action space differences.

Key Results and Insights

  • State-of-the-Art Performance: VQ-CD consistently outperformed 16 representative baselines, including EWC, PackNet, and CoD. In the Ant-dir benchmark, VQ-CD achieved a mean return of 558.22, significantly higher than the next best method (CoD at 478.19).
  • Elimination of Catastrophic Forgetting: As shown in the performance visualizations, VQ-CD maintains near-perfect performance on early tasks even as training progresses through a long sequence. The radar charts highlight its superior balance across multiple tasks compared to traditional methods.
  • Efficiency and Robustness: By integrating Denoising Diffusion Implicit Models (DDIM), VQ-CD achieved a 19.76x speedup in sampling during evaluation. The method also proved robust to task ordering and performed exceptionally well even with low-quality (random or medium) offline data.
Performance analysis across task sequences. The 3D plot and radar charts demonstrate VQ-CD's ability to maintain high performance across all tasks without catastrophic forgetting.

Conclusion and Future Work

VQ-CD demonstrates that aligning feature spaces through vector quantization is a powerful enabler for parameter isolation in heterogeneous CORL. While the current approach effectively eliminates forgetting, it is constrained by the fixed capacity of the underlying model. Once all weights are assigned to task masks, the model cannot learn new tasks without performance degradation. Future research will focus on dynamic capacity expansion and more sophisticated mask pruning strategies to support indefinitely long task sequences.

Summary updated

BibTeX
@inproceedings{hu2025solving,
  author = {Jifeng Hu and Sili Huang and Li Shen and Zhejian Yang and Shengchao Hu and Shisong Tang and Hechang Chen and Yi Chang and Dacheng Tao and Lichao Sun},
  title = {{Solving Continual Offline RL through Selective Weights Activation on Aligned Spaces}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=KfRfTAJpjh},
}
Figure