Conditional straight chords, marginal vector fields, and the 20 ms control loop budget

Separating Action Throughput from Replanning Latency

In our earlier isomorphic Push-T benchmark on NVIDIA L4, 1-step Euler flow matching reached 80.0% success at 17.76 ms, while 3-step DDIM dropped to 66.0% at 39.45 ms. Moving onto physical 50 Hz (20 ms period) robot loops requires keeping two rates distinct:

  • Execution rate (e.g., 50–200 Hz joint servoing), which action chunking (HH steps per forward pass) easily amortizes;
  • Observation-to-action replanning rate (1000/Te2e1000 / T_{\text{e2e}}): a 17.76 ms forward pass leaves only 2.24 ms for camera readout, transport, and preprocessing. For reference, π0\pi_0 Appendix Table I reports 73 ms on an RTX 4090 (three cameras + prefix + 10-step flow), replanning every 0.5 s (25 actions).

Pushing true closed-loop replanning below 20 ms comes down to understanding exactly what a single Euler step drops.

What 1-Step Euler Actually Drops: Material Acceleration

Fix observation cc and consider the action-chunk ODE x˙(t)=vθ(x(t),t,c)\dot{x}(t) = v_\theta(x(t), t, c) on t∈[0,1]t \in [0, 1]. A Taylor expansion of step size hh around x(t)x(t) gives:

x(t+h)=x(t)+h vθ(x(t),t,c)+h22(∂tvθ+Jxvθ vθ)⏟aθ=Dtvθ+O(h3)x(t+h) = x(t) + h\,v_\theta(x(t), t, c) + \frac{h^2}{2}\underbrace{\big(\partial_t v_\theta + J_x v_\theta \, v_\theta\big)}_{a_\theta = D_t v_\theta} + \mathcal{O}(h^3)

Local truncation error is governed by the material derivative (total acceleration along the integral curve) aθ=Dtvθa_\theta = D_t v_\theta—even if a trajectory is geometrically straight, speed changes along tt still produce nonzero DtvθD_t v_\theta.

If the target field is LL-Lipschitz in xx, satisfies ∥Dtv∥≤M\|D_t v\| \le M along trajectories, and is approximated within uniform error δ\delta, N=1/hN = 1/h uniform Euler steps obey the global bound:

∥eN∥≤(δ+Mh2)eL−1L\|e_N\| \le \left(\delta + \frac{M h}{2}\right)\frac{e^L - 1}{L}

Once network approximation error δ\delta or sharp contact-transition stiffness LL dominates, stacking higher-order ODE stages yields diminishing returns.

Straight Training Chords vs. Curved Marginal Fields

Conditional Flow Matching (CFM) interpolates linearly between Gaussian noise x0x_0 and expert action chunks x1x_1:

xt=(1−t)x0+tx1,LCFM(θ)=E∥vθ(xt,t,c)−(x1−x0)∥22x_t = (1-t)x_0 + t x_1, \qquad \mathcal{L}_{\text{CFM}}(\theta) = \mathbb{E}\big\|v_\theta(x_t, t, c) - (x_1 - x_0)\big\|_2^2

Each individual conditional chord has constant velocity x1−x0x_1 - x_0, yet the L2L_2 loss converges to the marginal conditional expectation:

v∗(x,t,c)=E[x1−x0∣xt=x,c]v^*(x, t, c) = \mathbb{E}[x_1 - x_0 \mid x_t = x, c]

Wherever chords from distinct noise-target pairs cross at (x,t)(x, t), Bayes’ rule averages their velocities, inducing curvature (Dtv∗≠0D_t v^* \neq 0).

A closed-form bimodal counterexample makes this concrete. Let x0∼N(0,1)x_0 \sim \mathcal{N}(0, 1) and let the expert choose symmetrically between left and right routes x1∈{−a,+a}x_1 \in \{-a, +a\} with equal probability. The exact Bayes-optimal velocity field is:

v∗(x,t)=atanh⁡ ⁣(atx(1−t)2)−x1−tv^*(x, t) = \frac{a\tanh\!\big(\frac{a t x}{(1-t)^2}\big) - x}{1 - t}

At t=0t = 0, tanh⁡(0)=0\tanh(0) = 0, so v∗(x,0)=−xv^*(x, 0) = -x. Taking a single Euler step (h=1h = 1) gives:

x^1=x0+1⋅(−x0)=0\hat{x}_1 = x_0 + 1 \cdot (-x_0) = 0

Every initial noise sample collapses onto the invalid midpoint 00 (straight into the obstacle), even with an exact oracle velocity network. Trajectories only separate toward ±a\pm a after crossing the pitchfork sensitivity threshold a2t>(1−t)2a^2 t > (1-t)^2 where ∂xv∗(0,t)>0\partial_x v^*(0, t) > 0.

Practical Remedies and JVP Curvature Probing

Recovering reliable 1–2 NFE generation under multimodal ambiguity typically requires either:

  1. Reflow recoupling, replacing independent (x0,x1)(x_0, x_1) pairs with deterministic ODE couplings (x0,x^1)(x_0, \hat{x}_1) to untangle crossing chords; or
  2. Shortcut self-distillation, conditioning on finite step size dd via dyadic composition:
s(x,t,2d)≈12[s(x,t,d)+s(x+d s(x,t,d),  t+d,  d)]s(x, t, 2d) \approx \frac{1}{2}\Big[s(x, t, d) + s\big(x + d\,s(x, t, d),\; t+d,\; d\big)\Big]

Before retraining, we can measure ∥Dtvθ∥\|D_t v_\theta\| directly on a trained checkpoint without materializing full Jacobians using a single forward-mode JVP:

from torch.func import jvp

def trajectory_acceleration(field, x, t, cond):
    fn = lambda q, tau: field(q, tau, cond)
    v, acc = jvp(fn, (x, t), (field(x, t, cond), t.new_ones(t.shape)))
    return acc