---
title: 'Text2BFM: Text-to-Executable Motion'
url: https://www.emergentmind.com/topics/text2bfm
type: topic
---

# Text2BFM: Text-to-Executable Motion

Searching arXiv for the cited Text2BFM paper and closely related text-to-motion context.
Text2BFM is a text-to-motion framework that does not generate human poses directly. Instead, it generates compact behavioral programs in the latent policy space of a pretrained Behavioral Foundation Model (BFM), and then lets that frozen BFM execute the motion. The method was introduced in "Plan, Don't Pose: Long Composite Motion Generation with Text-Aligned BFM" as the first framework that aligns natural language with pretrained BFMs for text-to-motion generation without relying on heavy end-to-end motion generators [2605.29906]. Its central premise is that language naturally describes behavioral phases and intentions such as “walk, turn, sit,” whereas pretrained BFMs provide executable motion priors in policy-latent space.

## 1. Problem formulation and motivating premise

Text2BFM targets a structural weakness of standard text-to-motion systems. Existing methods typically synthesize pose trajectories, motion tokens, or kinematic latents directly from text, which forces a single model to simultaneously perform semantic parsing of the prompt, long-horizon temporal planning, phase ordering and transitions, and low-level physically plausible motion realization [2605.29906]. The paper argues that this coupling becomes especially brittle for long, compositional prompts such as “walk forward, turn left, punch, kick, then wave,” where the system must preserve the correct order of actions across an extended sequence.

The reported failure modes of pose-first formulations include missing stages, weak compositional consistency, unstable contacts, and poor motion realism. Text2BFM addresses these failures by changing the interface between language and motion generation. Rather than mapping text into framewise joint states, it maps text into a behavioral plan space that is semantically meaningful and executable. The method explicitly treats semantic planning and motion execution as separate problems.

A recurrent misconception is to treat Text2BFM as another latent pose generator. The paper states the opposite: the framework does not generate human poses directly, and its core claim is that the latent policy space of a BFM is a better interface for long-horizon, compositional motion generation because language describes behavior more naturally than frame-by-frame joint configurations [2605.29906].

## 2. Behavioral Foundation Models as the motion interface

The architectural pivot of Text2BFM is the use of a pretrained and frozen Behavioral Foundation Model. In the paper’s formulation, the BFM supplies a latent-conditioned policy for motion execution, and its policy latents become the “language of motion.” The key insight is presented as a simple alignment: language describes behavior, and BFM latents represent executable behavior [2605.29906].

This design matters because BFMs encode motion as local behavior commands rather than framewise joint states. That representation is better suited to phase-based prompts and allows the pretrained policy to absorb much of the burden of physical realism. In the paper’s terminology, the compact program stores high-level temporal structure, while the BFM policy serves as an executable motion prior.

Given a motion trajectory $\tau = \{s_t\}_{t=1}^{T}$, the frozen BFM is used to infer a sequence of local policy latents $z_{1:T_z}$ with $T_z = T-1$. The rollout is defined as
$$
a_t \sim \pi_{\mathrm{BFM}}(a_t \mid s_t, z_t), \qquad
s_{t+1} \sim p_{\mathrm{env}}(s_{t+1} \mid s_t, a_t).
$$
To obtain training labels, the method uses the BFM backward map $B$ over a short lookahead window:
$$
z^i_t = \operatorname{Proj}_z \left( \frac{1}{H_t} \sum_{k=0}^{H_t-1} B(s^i_{t+1+k}) \right),
\qquad
H_t = \min(L, T-t).
$$
In this construction, each $z_t$ summarizes the future behavior that should unfold from state $s_t$.

A plausible implication is that Text2BFM treats behavior as the primary compositional unit and pose as a downstream consequence of policy execution. That is the conceptual basis for its claim that long-horizon prompting is better handled in policy-latent space than in pose space.

## 3. Three-stage generation pipeline

Text2BFM is organized as a three-stage pipeline that first extracts policy latents from motion, then compresses them into a shorter behavioral program, and finally generates that compact program from text.

| Stage | Representation | Function |
|---|---|---|
| A | $z_{1:T_z}$ | Extract BFM policy latents from motion |
| B | $m_{1:T_m}$ with $T_m < T_z$ | Compress policy-latent sequence with a text-aligned VBB |
| C | $m(1) \rightarrow \hat z_{1:T_z}$ | Generate compact program from text and decode for BFM rollout |

In Stage A, the method derives a full policy-latent trajectory from motion using the frozen BFM and its backward map. This creates training targets in the same latent policy space that the BFM can execute.

In Stage B, Text2BFM introduces a text-aligned variational behavioral bottleneck (VBB) that compresses the full policy-latent sequence into a shorter latent program $m_{1:T_m}$, where $T_m < T_z$ [2605.29906]. The encoder defines a Gaussian posterior,
$$
q_{\phi}(m_{1:T_m}\mid z_{1:T_z}) =
\mathcal{N}\!\left(
\mu_{\phi}(z_{1:T_z}),
\operatorname{diag}\!\big(\sigma_{\phi}^{2}(z_{1:T_z})\big)
\right),
$$
and a sampled compact program is decoded back into policy latents:
$$
\hat z_{1:T_z} = D_{\theta}(m_{1:T_m}).
$$
The function of this bottleneck is not merely compression. It is trained to preserve the information needed to reconstruct executable BFM latents while aligning the representation with text.

In Stage C, the model trains a lightweight conditional generator in the compact space using Transformer-based flow matching. Given a target compact program $m$, it samples noise $\epsilon \sim \mathcal{N}(0,I)$ and interpolates linearly:
$$
m(r) = (1-r)\epsilon + r m, \qquad r \sim \mathcal{U}(0,1).
$$
The flow model $v_{\eta}$ is trained with
$$
\mathcal{L}_{\mathrm{FM}} =
\mathbb{E}_{\epsilon,m,r,Y}
\left[
\left\| v_{\eta}(m(r), r, Y) - (m-\epsilon) \right\|_2^2
\right].
$$
At inference, the method samples $m(0)\sim\mathcal{N}(0,I)$, solves
$$
\frac{dm(r)}{dr} = v_{\eta}(m(r), r, Y), \qquad r\in[0,1],
$$
obtains $m(1)$, decodes it into policy latents,
$$
\hat z_{1:T_z} = D_{\theta}(m(1)),
$$
and rolls out the frozen BFM policy with those latents.

The design principle is explicit: semantic planning happens in the compact behavioral program space $m$, and motion execution happens in the frozen BFM policy space via decoded policy latents $\hat z$. Text2BFM therefore never asks the text generator to produce full motion directly [2605.29906].

## 4. Bottleneck objective and semantic alignment

The VBB is trained by combining reconstruction, KL regularization, and semantic alignment. The reconstruction objective includes both latent reconstruction and a policy-level term:
$$
\mathcal{L}_{\mathrm{rec}} =
\frac{1}{T_z}\sum_{t=1}^{T_z}\|z_t-\hat z_t\|_2^2
+
\frac{\lambda_\pi}{T_z}\sum_{t=1}^{T_z}
D_{\mathrm{KL}}
\Big(
\pi_{\mathrm{BFM}}(\cdot \mid s_t,\hat z_t)
\;\|\;
\pi_{\mathrm{BFM}}(\cdot \mid s_t,z_t)
\Big).
$$

The latent space is regularized against a standard Gaussian prior:
$$
\mathcal{L}_{\mathrm{KL}} =
D_{\mathrm{KL}}
\Big(
q_{\phi}(m_{1:T_m}\mid z_{1:T_z})
\;\|\;
\mathcal{N}(0,I)
\Big).
$$

To make the bottleneck language-discriminative, motion program tokens and text tokens are projected into a shared normalized space,
$$
\tilde m_{i,t} = \frac{P_m(m_{i,t})}{\|P_m(m_{i,t})\|_2},
\qquad
\tilde y_{j,k} = \frac{P_y(y_{j,k})}{\|P_y(y_{j,k})\|_2},
$$
and a bidirectional contrastive loss is applied:
$$
\mathcal{L}_{\mathrm{sem}} =
\frac{1}{2}\left(\mathcal{L}_{m\rightarrow Y} + \mathcal{L}_{Y\rightarrow m}\right).
$$
The full bottleneck objective is
$$
\mathcal{L}_{\mathrm{VBB}} =
\mathcal{L}_{\mathrm{rec}}
+
\beta \mathcal{L}_{\mathrm{KL}}
+
\lambda_{\mathrm{sem}}\mathcal{L}_{\mathrm{sem}}.
$$

The paper also gives a rate–distortion interpretation of this construction: the bottleneck preserves executable structure while forcing the representation to become compact and semantically aligned [2605.29906]. In that reading, semantic alignment is not an auxiliary convenience; it is part of the compression mechanism that makes the latent program useful for language-conditioned planning.

A second misconception is that compression alone explains the method’s behavior. The ablations indicate otherwise: average pooling performs poorly because it destroys temporal ordering, and the full text-aligned VBB is best, showing that both compression and language alignment matter.

## 5. Reported performance, compositional evaluation, and ablations

The paper reports several advantages for Text2BFM. Because generation occurs in the compact latent program space rather than in pose space or long token sequences, sampling is cheaper. The flow model uses only 16 Euler steps, compared with a diffusion baseline using 50 steps in the same latent space [2605.29906]. The frozen BFM is also claimed to improve physical grounding, temporal coherence, and contact-rich behavior relative to direct pose prediction.

On HumanML3D and KIT-ML, Text2BFM achieves the best retrieval-style metrics: highest R-Precision and best MultiModal Distance on both benchmarks [2605.29906]. The paper notes, however, that FID is not always best because the frozen BFM introduces a domain bias: generated motions can deviate from the real-motion distribution even when they are semantically strong and executable. This caveat is important because it separates semantic fidelity and executability from distribution matching.

For longer prompts with 3 or 4 stages, the evaluation uses Order Accuracy, MM-Dist, and Transition smoothness. The paper introduces a compositional variant, Text2BFM-Compose, that generates one compact program per clause and concatenates decoded BFM latents with overlap blending:
$$
\hat z^{\mathrm{comp}}_{1:T}
=
\hat z^{(1)}_{1:T_1}
\oplus
\hat z^{(2)}_{1:T_2}
\oplus
\cdots
\oplus
\hat z^{(N)}_{1:T_N},
$$
with overlap blending
$$
\tilde z_o
=
(1-\rho_o)\hat z^{(n)}_{T_n-O+o}
+
\rho_o \hat z^{(n+1)}_{o},
\qquad
\rho_o=\frac{o}{O+1}.
$$
For 3-stage prompts, Order Acc. improves from 0.395 for Text2BFM to 0.671 for Text2BFM-Compose. For 4-stage prompts, it improves from 0.322 to 0.509 [2605.29906]. These results are presented as evidence that modular behavioral programs are better for long-horizon composition.

The ablation suite isolates several design effects. Comparisons include average pooling, no compression, VBB without semantic loss, and the full text-aligned VBB. The paper also studies $4\times$, $8\times$, and $16\times$ compression, reporting that moderate compression preserves latent reconstruction and action similarity well, while very aggressive compression degrades policy fidelity. In the learned behavioral latent space, flow matching yields better FID, better MultiModal Distance, and far fewer sampling steps, whereas diffusion gives slightly better R-Precision. The method chooses flow matching for efficiency.

## 6. Limitations, scope, and relation to adjacent text-to-motion work

Text2BFM inherits the morphology, action space, simulator dynamics, and bias of the pretrained BFM [2605.29906]. If a requested motion lies outside the BFM latent space, generation can fail. The paper also states that comparisons are not perfectly equal-data because the BFM was pretrained on a different dataset. Rare motions, acrobatics, and object interactions remain challenging, and long compositions with 4 stages are still difficult.

These limitations constrain how the method should be interpreted. The framework is not a universal language-to-motion engine; it is a language-to-executable-behavior planner whose capabilities are bounded by the behavioral prior it uses. A plausible implication is that Text2BFM trades some openness of output space for stability and executability.

In the broader text-to-motion landscape, related work has argued that natural-language prompts often imply latent intent rather than explicit actions. TAAT, for example, reframes the task from action-text-to-motion to arbitrary-text-to-motion and emphasizes semantic ambiguity and one-to-many mappings for scene texts [2404.14745]. This suggests a broader research trend: moving away from direct text-to-pose regression toward intermediate behavioral abstractions. Within that trajectory, Text2BFM is distinctive in making the intermediate representation an executable BFM latent program rather than an action label sequence or a direct motion token stream.

The paper’s one-sentence summary captures its design succinctly: Text2BFM turns text-to-motion into text-to-executable-behavior planning, using a compact text-aligned latent program to describe the motion and a frozen BFM to perform the actual motion [2605.29906].

Source: https://www.emergentmind.com/topics/text2bfm