Ensemble Successor Representations for Task Generalization in Offline-to-Online Reinforcement Learning
Changhong Wang, Xudong Yu, Chenjia Bai, Qiaosheng Zhang, Zhen Wang
TL;DR
The paper tackles reward generalization in offline-to-online RL where offline data come from a single task and online adaptation must reach new tasks with the same dynamics but different rewards. It introduces ESR-O2O, an ensemble-based framework that learns multiple successor representations $\psi_k$ and ensemble critics $Q_k$ from offline data, and uses online fine-tuning with fixed representations while optimizing a policy that maximizes the minimum ensemble value: $\pi(\cdot|s)=\arg\max_a \min_k Q_k(s,a)$. A theoretical bound on the online fine-tuning sub-optimality is presented: $|Q_j^{\pi_j^*}- Q_j^{\pi}| \leq \|w_j\|_{\infty}\|\psi^{\pi_j^*}-\hat{\psi}\|_1 + \|\hat{\psi}\|_{\infty}\|w_j-w^{\pi}\|_1$, highlighting the roles of representation and reward approximation errors. Empirically, ESR-O2O achieves superior generalization across diverse tasks (e.g., Quadruped, Walker, Reach, MetaWorld, AntMaze), especially under large reward gaps, while showing robustness to offline data coverage and providing meaningful ablations on ensemble components.
Abstract
In Reinforcement Learning (RL), training a policy from scratch with online experiences can be inefficient because of the difficulties in exploration. Recently, offline RL provides a promising solution by giving an initialized offline policy, which can be refined through online interactions. However, existing approaches primarily perform offline and online learning in the same task, without considering the task generalization problem in offline-to-online adaptation. In real-world applications, it is common that we only have an offline dataset from a specific task while aiming for fast online-adaptation for several tasks. To address this problem, our work builds upon the investigation of successor representations for task generalization in online RL and extends the framework to incorporate offline-to-online learning. We demonstrate that the conventional paradigm using successor features cannot effectively utilize offline data and improve the performance for the new task by online fine-tuning. To mitigate this, we introduce a novel methodology that leverages offline data to acquire an ensemble of successor representations and subsequently constructs ensemble Q functions. This approach enables robust representation learning from datasets with different coverage and facilitates fast adaption of Q functions towards new tasks during the online fine-tuning phase. Extensive empirical evaluations provide compelling evidence showcasing the superior performance of our method in generalizing to diverse or even unseen tasks.
