Offline Meta-Reinforcement Learning with Flow-Based Task Inference and Adaptive Correction of Feature Overgeneralization
Min Wang, Xin Li, Mingzhong Wang, Hasnaa Bennis
TL;DR
FLORA tackles two core challenges in offline meta-reinforcement learning: inferring complex, multimodal task distributions and mitigating extrapolation errors caused by feature overgeneralization. It introduces flow-based task inference (FTI) to capture rich task structures and adaptive correction of overgeneralization (ACO) to regulate decomposed Q-values through epistemic uncertainty and return-based feedback, all within a decoupled dynamics-reward representation $Q^{\pi}(s,a,\mathbf{z})=\psi^{\pi}(s,a,\mathbf{z})^\mathsf{T}W(\mathbf{z})$. The method uses a chain of invertible flows for task representation, double-feature learners for uncertainty estimation, a distributional TD target, and a KL-regularized policy objective to guarantee improvement; these components collectively yield rapid adaptation and superior meta-policy performance. Empirically, FLORA outperforms strong baselines on challenging Meta-World and MuJoCo tasks, with ablations confirming the critical roles of FTI and ACO in handling OOD actions and maintaining stable learning.
Abstract
Offline meta-reinforcement learning (OMRL) combines the strengths of learning from diverse datasets in offline RL with the adaptability to new tasks of meta-RL, promising safe and efficient knowledge acquisition by RL agents. However, OMRL still suffers extrapolation errors due to out-of-distribution (OOD) actions, compromised by broad task distributions and Markov Decision Process (MDP) ambiguity in meta-RL setups. Existing research indicates that the generalization of the $Q$ network affects the extrapolation error in offline RL. This paper investigates this relationship by decomposing the $Q$ value into feature and weight components, observing that while decomposition enhances adaptability and convergence in the case of high-quality data, it often leads to policy degeneration or collapse in complex tasks. We observe that decomposed $Q$ values introduce a large estimation bias when the feature encounters OOD samples, a phenomenon we term ''feature overgeneralization''. To address this issue, we propose FLORA, which identifies OOD samples by modeling feature distributions and estimating their uncertainties. FLORA integrates a return feedback mechanism to adaptively adjust feature components. Furthermore, to learn precise task representations, FLORA explicitly models the complex task distribution using a chain of invertible transformations. We theoretically and empirically demonstrate that FLORA achieves rapid adaptation and meta-policy improvement compared to baselines across various environments.
