AdaptFlow: State-Anchored Modulation with Flow Matching for Offline Goal-Conditioned RL
Abstract
Offline goal-conditioned reinforcement learning (GCRL) aims to learn a single policy that adapts its behavior to arbitrary goals from a fixed dataset, making how to inject goal information into the policy network a central design question. While substantial effort has been devoted to improving value learning and policy extraction in GCRL, this policy-side architectural question remains comparatively underexplored. We highlight two key challenges for effective goal conditioning: (i) goals can contain task-irrelevant information; and (ii) in sequential decision making, the decision-relevant context of a fixed goal shifts as the state evolves. Motivated by these observations, we propose State-Anchored Goal Conditioning (SAGC), a modulation-based goal conditioning mechanism that derives its scale and shift parameters jointly from state and goal representations in a learned latent space. We further introduce AdaptFlow, an offline GCRL framework that instantiates SAGC within an expressive conditional flow policy. Across three representation learning objectives, SAGC improves GCIVL's average success rate over the corresponding in-context goal conditioning baseline on 13 locomotion and manipulation tasks in OGBench. With SAGC at its core, AdaptFlow outperforms or matches all baselines on 23 of 27 OGBench tasks.