Zero-Shot Adaptation of Behavioral Foundation Models to Unseen Dynamics
Maksim Bobrin, Ilya Zisman, Alexander Nikulin, Vladislav Kurenkov, Dmitry Dylov
TL;DR
The paper tackles zero-shot adaptation in Behavioral Foundation Models by addressing a key limitation of Forward-Backward representations: interference across unseen dynamics due to dynamics-agnostic successor measures. It introduces Belief-FB (BFB), a transformer-based belief estimator that conditions FB on an inferred context $h$, and Rotation-FB (RFB), which further partitions latent policy directions via a context-aligned von Mises–Fisher prior to reduce interference; this yields a bound on the worst-case error that is independent of the number of training dynamics. Empirically, BFB and RotFB outperform baselines on both seen and unseen dynamics across discrete and continuous CMDPs, with ablations showing the importance of context inference, trajectory length, and dataset diversity. The work advances practical zero-shot RL in settings with changing dynamics and partial observability, with potential impact on robotics and other real-world adaptive control tasks.
Abstract
Behavioral Foundation Models (BFMs) proved successful in producing policies for arbitrary tasks in a zero-shot manner, requiring no test-time training or task-specific fine-tuning. Among the most promising BFMs are the ones that estimate the successor measure learned in an unsupervised way from task-agnostic offline data. However, these methods fail to react to changes in the dynamics, making them inefficient under partial observability or when the transition function changes. This hinders the applicability of BFMs in a real-world setting, e.g., in robotics, where the dynamics can unexpectedly change at test time. In this work, we demonstrate that Forward-Backward (FB) representation, one of the methods from the BFM family, cannot distinguish between distinct dynamics, leading to an interference among the latent directions, which parametrize different policies. To address this, we propose a FB model with a transformer-based belief estimator, which greatly facilitates zero-shot adaptation. We also show that partitioning the policy encoding space into dynamics-specific clusters, aligned with the context-embedding directions, yields additional gain in performance. These traits allow our method to respond to the dynamics observed during training and to generalize to unseen ones. Empirically, in the changing dynamics setting, our approach achieves up to a 2x higher zero-shot returns compared to the baselines for both discrete and continuous tasks.
