Optimistic Task Inference for Behavior Foundation Models
Thomas Rupf, Marco Bagatella, Marin Vlastelica, Andreas Krause
International Conference on Learning Representations 2026 · Oral
Overview
This talk introduces OptiBFM, a novel algorithm designed to enable Behavior Foundation Models (BFMs) to perform task inference in an online, interactive setting without requiring explicit reward labels. BFMs represent a significant advancement in reinforcement learning, leveraging unsupervised pre-training to learn a diverse set of behaviors that can be adapted rapidly, often in a zero-shot manner, to new tasks. However, a critical bottleneck in their practical deployment has been the assumption that the target reward function is known and available for projection into the model's latent space, which is frequently not the case in real-world scenarios due to complex reward structures, reliance on human feedback, or proprietary data.

Key moments
- 0:00 Introduction to Behavior Foundation Models (BFMs)
- 2:18 The core problem: Reward inference without labeled data
- 3:50 Introducing OptiBFM as an online RL solution
- 4:00 How OptiBFM works: optimism with confidence sets
- 5:05 Theoretical guarantees: sublinear regret bound for OptiBFM
- 6:00 Experimental results: OptiBFM outperforms baselines
- 7:00 Q&A: Minimizing queries for reward labels
Optimistic Task Inference for Behavior Foundation Models
Speakers: Thomas Rupf, Marco Bagatella, Marin Vlastelica, Andreas Krause
Conference: ICLR 2026
YouTube: https://slideslive.com/39062149
Overview
This talk introduces OptiBFM, a novel algorithm designed to enable Behavior Foundation Models (BFMs) to perform task inference in an online, interactive setting without requiring explicit reward labels. BFMs represent a significant advancement in reinforcement learning, leveraging unsupervised pre-training to learn a diverse set of behaviors that can be adapted rapidly, often in a zero-shot manner, to new tasks. However, a critical bottleneck in their practical deployment has been the assumption that the target reward function is known and available for projection into the model's latent space, which is frequently not the case in real-world scenarios due to complex reward structures, reliance on human feedback, or proprietary data.
The work presented by Thomas Rupf and his co-authors at ICLR directly addresses this limitation. By reframing the inference problem as an online reinforcement learning challenge, OptiBFM allows the agent to actively explore its environment and infer the underlying reward function through interaction. This approach combines the structural benefits of pre-trained BFMs with principles of optimism in the face of uncertainty, drawing parallels to contextual linear bandits, to efficiently recover optimal policies.
The significance of OptiBFM lies in its potential to unlock the full capabilities of BFMs for real-world applications where reward functions are often implicit, dynamic, or costly to define explicitly. By demonstrating strong theoretical guarantees and superior empirical performance over traditional baselines, OptiBFM offers a robust solution for deploying powerful, pre-trained behavior models in complex and reward-agnostic environments, thereby pushing the boundaries of general-purpose reinforcement learning systems.
Background
▶ Watch: Introduction to Behavior Foundation Models (BFMs) (0:00)
The past few years have witnessed the rise of foundation models across various AI domains, characterized by their paradigm of unsupervised pre-training followed by zero-shot or fast adaptation to downstream tasks. In reinforcement learning (RL), this concept manifests as Behavior Foundation Models (BFMs). BFMs are designed to learn a family of policies that are approximately optimal for any reward function they might encounter, all without relying on explicit reward labels during their initial pre-training phase. Instead, pre-training is conducted using only transition or dynamics information, regardless of its inherent quality.
During the pre-training phase, BFMs learn a feature basis that aims to span as many potential reward functions as possible. Complementing this, they also learn a critic based on successor features. This combination allows them to train a latent-conditioned policy capable of optimizing for any reward function representable within their learned feature space. At inference time, the power of BFMs lies in their ability to directly map a given reward function to an approximately optimal policy without any further training or environment interaction, classifying them as zero-shot reinforcement learning methods.
Recent advancements have seen BFMs scaled significantly. The "BFM zero" paper, for instance, demonstrated their application to humanoid control on real hardware, enabling complex behaviors like walking and lying down. Furthermore, other works like TD-CHEPPA have shown BFMs learning directly from raw pixel inputs, highlighting their versatility and scalability.
Despite these impressive capabilities, a fundamental challenge persists: standard BFM inference critically relies on the availability of a labeled dataset with rewards to project the desired reward function into the learned feature span, thereby determining the appropriate latent for the policy. This requirement often proves impractical. Reward functions might not be available in a functional form (e.g., when learning from pixels or intricate human feedback), or they might involve expensive API calls. Moreover, in scenarios where the BFM is pre-trained by a private entity, the necessary inference dataset might simply not be accessible. This gap between the pre-training capabilities and the practical inference requirements forms the core problem that OptiBFM seeks to resolve, by allowing BFMs to infer their task online without explicit reward labels.
Key Findings
▶ Watch: Introducing OptiBFM as an online RL solution (3:50)
The central finding of this research is the development of OptiBFM, an innovative algorithm that enables Behavior Foundation Models (BFMs) to perform online task inference without the need for a pre-defined, labeled reward dataset. By reframing the problem of identifying the target reward function as an online reinforcement learning challenge, OptiBFM allows the agent to actively interact with the environment and efficiently learn about the reward signal.
Key contributions and findings include:
- Online Task-Aware Interaction: OptiBFM moves BFM inference from an offline, reward-label-dependent process to an online, interactive one. The agent learns the reward function and consequently the optimal policy by observing rewards in the transitions it encounters, bridging a critical gap in BFM deployment.
- Combination of Online Linear Regression and UCB-Style Optimism: The algorithm leverages the inherent structure of BFMs, specifically their feature basis and successor features. It employs online linear regression on the feature basis to maintain a confidence set over possible reward functions (and thus the latent space). This is combined with a UCB-style optimism principle, specifically applied to the full return of a policy, using successor features to estimate multi-step returns, rather than just single-step rewards.
- Strong Theoretical Guarantees: OptiBFM provides theoretical guarantees, establishing a sublinear regret bound in episodic MDPs. This implies that the method can asymptotically recover the same performance as offline inference, a significant theoretical result for online task inference in this context. While a minor gap exists between the proof's assumption (constant policy execution per episode) and practical implementation, the theoretical foundation is robust.
- Rapid Empirical Convergence: In practical evaluations on the DeepMind Control Suite, OptiBFM demonstrated remarkable efficiency, recovering the performance of offline task inference in at most five episodes across various environments and reward functions. This significantly outperforms baselines such as random latent exploration and a policy gradient method (LOLA) that treats the BFM as a black box.
- Enhanced Data Efficiency and Adaptability: Further experiments revealed that the data collected by OptiBFM is more task-informative, meaning less data is required to gain more insight into the task. Additionally, the framework shows promise for extension to non-stationary rewards, allowing BFMs to adapt to reward functions that change over time, further broadening their applicability.
In essence, OptiBFM provides a robust, theoretically grounded, and empirically effective solution for deploying BFMs in real-world scenarios where explicit reward functions are unknown or costly to obtain, thereby making these powerful models more practical and accessible.
Technical Deep Dive
▶ Watch: How OptiBFM works: optimism with confidence sets (4:00)
At its core, OptiBFM builds upon the foundational architecture of Behavior Foundation Models (BFMs) to enable online task inference. A BFM is pre-trained without explicit reward labels, focusing on learning a general representation of behaviors. This pre-training involves two main components:
- Learning a feature basis (denoted as $\phi$) that aims to span a wide range of possible reward functions. This allows for a compact representation of diverse task objectives.
- Learning a critic based on successor features (denoted as $\psi$). Successor features are state-action features that, when linearly combined with a reward weight vector, yield the expected discounted sum of future rewards (the Q-value). This structure is crucial for evaluating multi-step returns.
Together, these components facilitate the training of a latent-conditioned policy that can generate approximately optimal actions for any reward function whose representation falls within the learned feature space.
The standard BFM inference process assumes that a specific reward function for a downstream task is known. This reward function is then "projected" into the span of the learned feature basis $\phi$. The resulting weight vector from this projection serves as the latent input for the pre-trained policy, allowing it to execute the desired behavior in a zero-shot manner. The critical limitation, as identified by the authors, is the prerequisite of this explicit reward function and a labeled dataset for this projection.
OptiBFM addresses this by transforming the task inference into an online reinforcement learning problem where the agent learns the reward function through interaction. The method operates in episodes, where the agent executes a policy, observes transitions and rewards, and then updates its understanding of the unknown reward function.
The technical mechanism of OptiBFM can be broken down into two main components:
- Online Linear Regression for Confidence Set over Rewards:
- OptiBFM uses online linear regression on the feature basis $\phi$ to keep track of a confidence set of reward functions that are consistent with all the observations seen so far.
- Each time the agent observes a reward $r_t$ at a state $s_t$ after taking action $a_t$, it gathers a new data point. The observed reward is assumed to be a linear function of the feature basis: $r_t = \mathbf{w}^T \phi(s_t, a_t) + \epsilon$, where $\mathbf{w}$ is the unknown true reward weight vector and $\epsilon$ is noise.
- By continuously performing linear regression, the algorithm maintains a posterior distribution or a confidence region (e.g., an ellipsoid) over the possible values of $\mathbf{w}$.
- Since the reward functions are embedded in the latent space of the BFM, this effectively translates into a confidence set on the latent space itself, representing the set of plausible latent vectors for the policy.
- UCB-Style Optimism with Successor Features:
- Given the confidence set on the latent space, OptiBFM then employs an optimistic strategy. However, instead of being optimistic with respect to single-step rewards (as in traditional bandits), it is optimistic with respect to the full return of the policy.
- This is where the successor features $\psi$ become crucial. Successor features allow the algorithm to estimate the expected future return of a policy for a given reward weight vector $\mathbf{w}$ without needing to re-evaluate the entire policy rollout. Specifically, the Q-value for a policy $\pi$ and reward weights $\mathbf{w}$ can be expressed as $Q^{\pi}(s,a) = \mathbf{w}^T \mathbb{E}[\sum_{k=0}^\infty \gamma^k \phi(s_k, a_k) | s_0=s, a_0=a, \pi]$. The expected sum of discounted features is precisely what successor features capture.
- Within the current confidence set for $\mathbf{w}$, OptiBFM selects the latent vector (corresponding to a reward function) that maximizes the estimated total return, given the current successor features. This is the "optimistic" choice.
- The algorithm shares conceptual similarities with contextual linear bandits but with a key distinction: it utilizes two different sets of features. The features $\phi$ are used for estimating the reward function and maintaining the confidence set, while the successor features $\psi$ (which are also often related to $\phi$ but represent cumulative feature sums) are used for acting optimistically with respect to multi-step returns.
The authors were able to establish theoretical guarantees for OptiBFM. They proved a sublinear regret bound for the method in episodic MDPs. This means that as the number of episodes increases, OptiBFM's cumulative performance loss relative to an optimal policy (if the reward function were known from the start) grows sublinearly, implying that it eventually recovers the same performance as offline inference. A practical detail mentioned is that for the proof, they assumed the policy executed by OptiBFM remains constant over each episode, leveraging Markovianity. Despite this theoretical simplification, the method performs robustly in practice.
Experimental Setup & Results
▶ Watch: Experimental results: OptiBFM outperforms baselines (6:00)
To validate the effectiveness of OptiBFM, the authors conducted comprehensive experiments primarily using the DeepMind Control Suite. This widely recognized benchmark provides a diverse set of continuous control tasks, enabling a thorough evaluation of the algorithm's performance.
The experimental setup involved:
- Behavior Foundation Model (BFM) Pre-training: The BFMs themselves were pre-trained using a standard dataset commonly employed for BFM research. The specific algorithm used for training the BFM was the forward-backward algorithm, known for its efficacy in learning successor features and latent-conditioned policies.
- Task Inference Evaluation: For each environment within the DeepMind Control Suite, OptiBFM's online task inference capabilities were tested against four different reward functions. This multi-task evaluation strategy allowed for a robust assessment of the algorithm's ability to adapt to varying objectives within the same environment. The results presented in the talk were summary plots, aggregating performance across these four tasks for conciseness, with full details available in the accompanying paper.
The performance of OptiBFM was compared against two primary baselines:
- Random Latents: This baseline involved simply executing policies corresponding to randomly sampled latent vectors. As expected, this approach performed poorly across all tasks and environments, demonstrating the necessity of a structured inference mechanism.
- LOLA (Latent-Optimized Learning Agent): This baseline represents a policy gradient method that treats the BFM as a black box. It attempts to update the latent vector (viewed as policy parameters) using a standard policy gradient approach based on observed rewards. While more sophisticated than random exploration, LOLA was significantly slower at improving performance. In the 10 episodes considered for the experiments, it made limited progress, highlighting the inefficiency of a black-box approach when the underlying BFM structure is ignored.
The results unequivocally demonstrated the superior performance of OptiBFM:
- Rapid Recovery of Offline Performance: OptiBFM consistently managed to recover the performance achieved by offline task inference (where the reward function is known upfront) in at most five episodes across all tested environments and reward functions. This rapid convergence is a critical advantage for practical deployment, minimizing the interaction time required to achieve optimal behavior.
- Data Efficiency: The paper includes further experiments on data efficiency, showing that the data collected by OptiBFM is more "task-informative." This means that with fewer environmental interactions and less observed data, OptiBFM is able to learn more about the underlying task and converge to a good policy more effectively than the baselines.
- Adaptability to Non-Stationary Rewards: A significant finding for real-world applicability is that the OptiBFM framework can be extended to handle non-stationary rewards—reward functions that change over time. This capability further enhances the robustness and versatility of BFMs in dynamic environments.
During the Q&A, an interesting point regarding labeling cost was raised. The speaker mentioned that the paper's appendix explores a mechanism where the algorithm can estimate whether a new sample or reward label would be informative before requesting it, potentially minimizing expensive oracle queries. This selective querying approach, leveraging the $\phi$ features, could significantly reduce the number of reward labels needed, with experiments showing only around 500 reward labels requested over 30 episodes, demonstrating a clear path towards cost-effective deployment.
Practical Implications
▶ Watch: Q&A: Minimizing queries for reward labels (7:00)
The introduction of OptiBFM carries profound practical implications for the deployment and utility of Behavior Foundation Models (BFMs) across various domains, particularly for practitioners, infrastructure teams, model builders, and deployers in the ML/systems space.
Firstly, OptiBFM addresses a critical bottleneck: the reliance on an explicitly defined or pre-labeled reward function for BFM inference. In many real-world scenarios, reward functions are inherently complex, implicit, or costly to obtain. Examples include:
- Learning from pixels: Where the desired behavior is visually demonstrated but no explicit reward signal is available.
- Human feedback: Tasks where rewards are derived from subjective human evaluations, which are often noisy and expensive to collect in large quantities.
- Proprietary APIs or black-box systems: Where the internal reward mechanism is inaccessible, or querying it incurs significant costs.
- Intricate reward functions: Tasks requiring highly specific and multi-faceted objectives that are difficult to hand-engineer.
By enabling online task inference, OptiBFM allows BFMs to be deployed in these previously challenging settings. Instead of requiring a static, labeled dataset at inference time, the agent can actively interact with its environment, observe rewards (even sparse or noisy ones), and dynamically infer the underlying task objective. This dramatically expands the applicability of BFMs beyond controlled laboratory settings to more open-ended and real-world problems.
For model builders and deployers, this translates to a significant reduction in the burden of reward engineering and data labeling. The ability to achieve high performance in just a few episodes (e.g., five episodes as shown in experiments) means that initial deployment and adaptation to new, unseen tasks can be much faster and less resource-intensive. This accelerates the development cycle and reduces the time-to-market for BFM-powered agents.
Infrastructure teams might find value in the data efficiency of OptiBFM. The algorithm's ability to extract more task-informative data from fewer interactions implies less computational overhead for data collection and processing. Furthermore, the potential to adapt to non-stationary rewards means that BFM systems can be more robust to changes in environmental objectives or user preferences over time, reducing the need for frequent re-training or manual recalibration.
A key practical consideration is the tradeoff between online interaction cost and offline labeling cost. While OptiBFM requires online interaction, the discussion around selective reward querying in the paper's appendix highlights a path to minimize the number of explicit reward labels requested from an oracle. This could be crucial in scenarios where interaction time is cheap but human labeling or API calls are expensive, allowing deployers to optimize their resource allocation.
However, some limitations and tradeoffs exist. The theoretical proof assumes a constant policy over an episode, which might not strictly hold in practice, though empirical results demonstrate robustness. The computational cost of maintaining and querying the confidence set, especially in very high-dimensional latent spaces, could also be a factor, although the linear regression approach is generally efficient. Despite these, OptiBFM significantly lowers the barrier to entry for utilizing powerful pre-trained BFMs in dynamic and reward-agnostic environments, marking a substantial step towards more autonomous and adaptable AI agents.
Key Takeaways
- BFMs are powerful zero-shot RL models but traditionally require explicit reward functions for inference, limiting real-world application.
- OptiBFM enables online task inference for BFMs, allowing agents to learn reward functions through interaction rather than relying on labeled datasets.
- The algorithm combines online linear regression on the BFM's feature basis to maintain a confidence set over reward functions and UCB-style optimism applied to full returns via successor features.
- Theoretical guarantees include sublinear regret, meaning OptiBFM can recover offline inference performance over time in episodic MDPs.
- Empirically, OptiBFM rapidly converges, achieving offline performance in as few as five episodes on the DeepMind Control Suite, significantly outperforming black-box baselines.
- OptiBFM enhances data efficiency and can be extended to handle non-stationary rewards, making BFMs more robust and adaptable for complex, dynamic environments.
About the Speaker(s)
The talk on "Optimistic Task Inference for Behavior Foundation Models" was presented by Thomas Rupf, with contributions from co-authors Marco Bagatella, Marin Vlastelica, and Andreas Krause. While specific biographical details were not provided in the transcript, their research focuses on advanced topics in machine learning, particularly in reinforcement learning and the development of foundation models. Their work, as evidenced by this presentation at ICLR, contributes to pushing the boundaries of how AI agents can learn and adapt to complex tasks in environments where explicit reward signals are scarce or unavailable, bridging the gap between theoretical capabilities and practical deployment challenges. The collective expertise of the team is clearly directed towards enhancing the utility and robustness of pre-trained models for real-world autonomous systems.
Reviews
→ Top-rated talks at International Conference on Learning Representations 2026
All talks from International Conference on Learning Representations 2026