Contents
- Setting and notation
- Flow matching with a latent variable
- The closed-form minimizer
- The Gaussian bridge: FreeFM
- One forecast step is a replay
- What is matched: marginals
- Well-posedness and stiffness
- Scaling by truncation
- Learning from one trajectory
- A diffusion-maps view
- What this explains
- Open questions
- References
In one paragraph: on a finite set of observed transitions, the flow matching objective has an exact minimizer: a posterior-weighted average of per-transition velocities (Theorem 3.1). For the Gaussian bridge path it is a linear term plus softmax attention over the transitions, equivalently "replay plus a score correction" (Section 4). One forecast step moves the state by an attention-weighted integral of per-transition velocities whose time integrals are exactly the stored increments: a single transition is replayed exactly for every bandwidth, and a dominant one approximately (Section 5). The field is smooth and globally Lipschitz, but its Jacobian is an attention covariance divided by $c_t^2$, which is the source of stiffness (Section 7). Truncating attention to the nearest transitions has a computable error bound (Section 8), and the construction is consistent along a single long ergodic trajectory (Section 9).
How to read this page. Statements are in boxes. The tag on each box says where it comes from: Paper marks a result of [1], numbered as in the paper where it has a number; Added here marks a small refinement or consequence that follows from the same arguments and is proved in full on this page. Proofs are hidden to keep the page readable; open them one at a time, or all at once:
1.Setting and notation
We observe a system at discrete times and collect $M$ one-step transitions, pairs of consecutive states from one trajectory or from many: $\mathcal{D}_M = \{(x_0^{(j)}, x_1^{(j)})\}_{j=1}^M \subset \mathbb{R}^d \times \mathbb{R}^d$. In practice the states are often delay-embedded vectors, as in the FreeFM Lab app. A forecast step runs a flow in an auxiliary flow time $t \in [0,1]$, which is unrelated to physical time. Nothing is assumed about how the data were generated until Section 9.
| Symbol | Meaning |
|---|---|
| $x_0^{(j)},\ x_1^{(j)}$ | a stored state and its successor (the paper writes $X_1^{(j)}, X_2^{(j)}$) |
| $\Delta^{(j)} = x_1^{(j)} - x_0^{(j)}$ | stored increment |
| $m_t^{(j)} = (1-t)\,x_0^{(j)} + t\,x_1^{(j)}$ | bridge mean |
| $c_t^2 = \sigma_{\min}^2 + \sigma^2 t(1-t)$ | bridge variance, with $\sigma_{\min} > 0$ and $\sigma \ge 0$ |
| $G_t = \dot c_t / c_t = \dfrac{\sigma^2(1-2t)}{2c_t^2}$ | scalar linear rate (the paper writes $G_t = g(t) I_d$) |
| $\alpha_j(t,z)$ | attention weight of transition $j$ at $(t,z)$; a posterior probability |
| $y_j(t) = \Delta^{(j)} - G_t\, m_t^{(j)}$ | velocity label of transition $j$ |
| $\bar a = \sum_j \alpha_j a_j$ | attention-weighted mean of vectors $a_j$ |
| $\operatorname{Cov}_\alpha(a,b) = \sum_j \alpha_j (a_j - \bar a)(b_j - \bar b)^\top$ | attention-weighted covariance |
| $\|\cdot\|$ | Euclidean norm on vectors, operator norm on matrices |
2.Flow matching with a latent variable
Flow matching (FM) [2] looks for a velocity field $v(t,z)$ whose ODE $\dot z = v(t,z)$ carries a source distribution $p_0$ to a target $p_1$ along a chosen probability path $(p_t)_{t\in[0,1]}$. Conditional flow matching (CFM) builds that path as a mixture: a latent variable $C \sim \pi$ selects a simple conditional path $p_t(\cdot \mid c)$, generated by a known conditional velocity $v(t,z\mid c)$, and $p_t = \sum_c \pi(c)\, p_t(\cdot\mid c)$. With transitions, the latent variable is the transition index.
Definition 2.1(Affine conditional path)Paper · §2.1
Let $K$ be a probability density on $\mathbb{R}^d$ and, for each $c$, let $t \mapsto m_t(c) \in \mathbb{R}^d$ and $t \mapsto s_t(c) > 0$ be $C^1$ on $[0,1]$. The affine conditional flow is $\psi_t(\xi \mid c) = m_t(c) + s_t(c)\,\xi$ with $\xi \sim K$, and its law has density
$$p_t(z \mid c) = s_t(c)^{-d}\, K\!\left(\frac{z - m_t(c)}{s_t(c)}\right).$$(We write $s_t$ for the scale to keep $\sigma$ free for the FreeFM bandwidth.)
Lemma 2.2(Velocity of an affine path)Paper · §2.1
The field $v(t,z\mid c) = a_t(c)\,z + b_t(c)$ with
$$\begin{gathered} a_t(c) = \frac{\dot s_t(c)}{s_t(c)}, \\ b_t(c) = \dot m_t(c) - a_t(c)\, m_t(c), \end{gathered}$$generates the flow: $\tfrac{d}{dt}\psi_t(\xi\mid c) = v(t, \psi_t(\xi\mid c)\mid c)$ for every $\xi$. It is the only field with this property.
Differentiate: $\tfrac{d}{dt}\psi_t(\xi\mid c) = \dot m_t + \dot s_t\, \xi$. Since $\xi = (\psi_t - m_t)/s_t$, this equals $\dot m_t + (\dot s_t/s_t)(\psi_t - m_t) = a_t\,\psi_t + b_t$. For uniqueness, note that $\xi \mapsto \psi_t(\xi\mid c)$ is a bijection of $\mathbb{R}^d$ for each $t$, so a generating field is pinned down at every point $z = \psi_t(\xi\mid c)$, that is, everywhere. ∎
Lemma 2.3(Mixtures, and why CFM and FM agree)Paper · App. B, citing [2, 12]; proof here
Let $\pi$ be a probability on a finite set $\mathcal{I}$, and suppose each $p_t(\cdot\mid c)$ is a $C^1$ density generated by $v(t,\cdot\mid c)$, in the sense that $\partial_t p_t(\cdot\mid c) + \nabla\cdot\big(p_t(\cdot\mid c)\, v(t,\cdot\mid c)\big) = 0$. Let $p_t = \sum_c \pi(c)\,p_t(\cdot\mid c)$ and, where $p_t(z) > 0$,
$$\begin{gathered} v(t,z) = \sum_{c} w_c(t,z)\, v(t,z\mid c), \\ w_c(t,z) = \frac{\pi(c)\, p_t(z\mid c)}{p_t(z)}. \end{gathered}$$- $v$ generates the mixture path: $\partial_t p_t + \nabla\cdot(p_t v) = 0$.
- Assume $\mathbb{E}\,\|v(t,Z_t\mid C)\|^2 < \infty$. For every field $v'$ with $\mathcal{L}_{\mathrm{FM}}[v'] < \infty$, $\mathcal{L}_{\mathrm{CFM}}[v'] = \mathcal{L}_{\mathrm{FM}}[v'] + \kappa$, where $\kappa$ does not depend on $v'$ and $$\begin{aligned} \mathcal{L}_{\mathrm{CFM}}[v'] &= \mathbb{E}\,\|v'(t,Z_t) - v(t,Z_t\mid C)\|^2, \\ \mathcal{L}_{\mathrm{FM}}[v'] &= \mathbb{E}\,\|v'(t,Z_t) - v(t,Z_t)\|^2, \end{aligned}$$ with $t \sim \mathcal{U}[0,1]$, $C \sim \pi$ and $Z_t \sim p_t(\cdot\mid C)$, so that $Z_t \sim p_t$. In particular the two objectives have the same minimizers.
(1) By the definition of $w_c$, $p_t v = \sum_c \pi(c)\, p_t(\cdot\mid c)\, v(\cdot\mid c)$, an identity that also holds where $p_t = 0$ because then every term vanishes. By linearity, $\partial_t p_t = \sum_c \pi(c)\,\partial_t p_t(\cdot\mid c) = -\sum_c \pi(c)\,\nabla\cdot\big(p_t(\cdot\mid c)\,v(\cdot\mid c)\big) = -\nabla\cdot(p_t v)$.
(2) Fix $t$ and expand $\|v' - v(\cdot\mid c)\|^2 = \|v' - v\|^2 + 2\langle v' - v,\, v - v(\cdot\mid c)\rangle + \|v - v(\cdot\mid c)\|^2$. Integrating against $\sum_c \pi(c)\, p_t(z\mid c)\,dz$, the cross term becomes $2\int \big\langle v' - v,\ p_t v - \sum_c \pi(c)\,p_t(\cdot\mid c)\,v(\cdot\mid c) \big\rangle\, dz = 0$ by the identity above (it is finite by Cauchy–Schwarz, since $v$ itself is square-integrable by Jensen's inequality). The first term gives the FM integrand at time $t$, and the last does not involve $v'$. Integrating over $t$ proves the claim. ∎
What it means. CFM is what one trains in practice, because the conditional velocities are known. Lemma 2.3 says its minimizer is the marginal field $v$, which really does generate the mixture path. So a perfectly expressive network trained with CFM learns $v$, and the question "what does FM learn from finite data?" reduces to computing $v$ (see also [12]).
3.The closed-form minimizer
Take the transitions as the latent variable: $C = J$ uniform on $\{1,\dots,M\}$, with an affine path for each transition (Definition 2.1 with $m_t^{(j)}, s_t^{(j)}$). The empirical CFM objective is
$$\begin{aligned} \hat{\mathcal{L}}[v'] &= \frac{1}{M}\sum_{j=1}^M \int_0^1 \ell_j(t)\, dt, \\ \ell_j(t) &= \mathbb{E}_{Z\sim p_t(\cdot\mid j)} \big\|v'(t,Z) - v(t,Z\mid j)\big\|^2 . \end{aligned}$$Theorem 3.1(Closed-form empirical FM)Paper · Theorem 1
Assume $K$ has a finite second moment (true for the Gaussian), so that $\hat{\mathcal{L}}$ is finite at the field below. Then $\hat{\mathcal{L}}$ is minimized by
$$\begin{gathered} \hat v(t,z) = \sum_{j=1}^M w_j(t,z)\,\big(a_t^{(j)} z + b_t^{(j)}\big), \\ w_j(t,z) = \frac{p_t(z\mid j)}{\sum_{k=1}^M p_t(z\mid k)}, \end{gathered}$$with $a_t^{(j)}, b_t^{(j)}$ from Lemma 2.2. Any two minimizers agree for $dt \otimes \hat p_t(z)\,dz$-almost every $(t,z)$, where $\hat p_t = \frac1M \sum_j p_t(\cdot\mid j)$. Equivalently, $\hat v(t,z) = \mathbb{E}\big[v(t,Z_t\mid J) \mid Z_t = z\big]$ and $w_j(t,z) = \mathbb{P}(J = j \mid Z_t = z)$.
Fix $t$. The integrand of $\hat{\mathcal{L}}$ at time $t$ is $\int F_z\big(v'(t,z)\big)\,dz$ with $F_z(u) = \sum_j \lambda_j(z)\,\|u - v(t,z\mid j)\|^2$ and $\lambda_j(z) = p_t(z\mid j)/M \ge 0$. If $\Lambda(z) = \sum_j \lambda_j(z) > 0$, then $F_z$ is a strictly convex quadratic in $u \in \mathbb{R}^d$ with gradient $2\sum_j \lambda_j(z)\,(u - v(t,z\mid j))$, which vanishes only at $u = \sum_j (\lambda_j/\Lambda)\, v(t,z\mid j) = \sum_j w_j(t,z)\, v(t,z\mid j)$. So for every measurable $v'$, $F_z(v'(t,z)) \ge F_z(\hat v(t,z))$ pointwise, with equality only where $v'(t,z) = \hat v(t,z)$ or $\Lambda(z) = 0$. Integrating in $z$ and $t$ gives $\hat{\mathcal{L}}[v'] \ge \hat{\mathcal{L}}[\hat v]$, with equality if and only if $v' = \hat v$ almost everywhere with respect to $dt\otimes\hat p_t(z)\,dz$ (note $\hat p_t = \Lambda$). Finally, by Bayes' rule with the uniform prior, $\mathbb{P}(J=j\mid Z_t=z) = p_t(z\mid j)/\sum_k p_t(z\mid k) = w_j(t,z)$, which gives the conditional-expectation form. ∎
What it means. A perfectly expressive FM model trained on these transitions has a known target that can be evaluated by a sum over the data, at a cost of $O(Md)$ per evaluation, with no training. The weights are Bayes posteriors: "which transition's path is most likely to pass through $z$ at time $t$?" This is what makes the paper's title question well posed. The ideal model is explicit, so any behaviour of a trained network beyond it comes from the network and its training, not from the objective. Bertrand et al. [3] make the same point for images, where closed-form samplers reproduce training examples unless they are smoothed [4, 14].
4.The Gaussian bridge: FreeFM
Definition 4.1(Gaussian bridge path)Paper · §2.3, from [5]
For transition $j$, let $Z_t^{(j)} = m_t^{(j)} + c_t\,\xi$ with $\xi \sim \mathcal{N}(0, I_d)$ and $c_t^2 = \sigma_{\min}^2 + \sigma^2 t(1-t)$. This is Definition 2.1 with $K$ the standard Gaussian and the same scale $s_t^{(j)} = c_t$ for every $j$. It starts at $\mathcal{N}(x_0^{(j)}, \sigma_{\min}^2 I_d)$, widens in the middle, and ends at $\mathcal{N}(x_1^{(j)}, \sigma_{\min}^2 I_d)$.
Proposition 4.2(The FreeFM velocity field)Paper · Proposition 1
For the Gaussian bridge path, the minimizer of Theorem 3.1 is
$$\begin{gathered} \hat v(t,z) = G_t\, z + \sum_{j=1}^M \alpha_j(t,z)\, y_j(t), \\ \alpha_j(t,z) = \frac{e^{-\|z - m_t^{(j)}\|^2 / 2c_t^2}}{\sum_{k=1}^M e^{-\|z - m_t^{(k)}\|^2 / 2c_t^2}}, \end{gathered}$$with $G_t = \sigma^2(1-2t)/(2c_t^2)$ and $y_j(t) = \Delta^{(j)} - G_t\, m_t^{(j)}$.
By Lemma 2.2, $a_t^{(j)} = \dot c_t / c_t$. Differentiating $c_t^2 = \sigma_{\min}^2 + \sigma^2 t(1-t)$ gives $2c_t\dot c_t = \sigma^2(1-2t)$, so $a_t^{(j)} = \sigma^2(1-2t)/(2c_t^2) = G_t$ for every $j$, and $b_t^{(j)} = \dot m_t^{(j)} - G_t m_t^{(j)} = \Delta^{(j)} - G_t m_t^{(j)} = y_j(t)$. Because all transitions share the scale $c_t$, the Gaussian normalizing constants $(2\pi c_t^2)^{-d/2}$ cancel in $w_j$, leaving the softmax $\alpha_j$. Theorem 3.1 then gives $\hat v = \sum_j \alpha_j (G_t z + y_j) = G_t z + \sum_j \alpha_j y_j$, since $\sum_j \alpha_j = 1$. ∎
Corollary 4.3(Replay plus a score correction)Paper · §2.3
Let $\bar m_t(z) = \sum_j \alpha_j(t,z)\, m_t^{(j)}$ and $\hat p_t = \frac1M\sum_j \mathcal{N}(m_t^{(j)}, c_t^2 I_d)$. Then
$$\begin{gathered} \hat v(t,z) = \underbrace{\sum_{j=1}^M \alpha_j(t,z)\,\Delta^{(j)}}_{\text{replay}} \;+\; \underbrace{G_t\,\big(z - \bar m_t(z)\big)}_{\text{score correction}}, \\ G_t\,\big(z - \bar m_t(z)\big) = -\frac{\sigma^2(1-2t)}{2}\,\nabla \log \hat p_t(z). \end{gathered}$$Substitute $y_j = \Delta^{(j)} - G_t m_t^{(j)}$ into Proposition 4.2 and use $\sum_j\alpha_j = 1$. For the score, write $\hat p_t(z) \propto \sum_j \pi_j(z)$ with $\pi_j(z) = \exp(-\|z - m_t^{(j)}\|^2/2c_t^2)$. Then $\nabla \log \hat p_t = \sum_j \pi_j \nabla\log\pi_j \big/ \sum_k \pi_k = -\sum_j \alpha_j (z - m_t^{(j)})/c_t^2 = -(z - \bar m_t)/c_t^2$. Multiplying by $-G_t c_t^2 = -\sigma^2(1-2t)/2$ gives the identity. ∎
Proposition 4.4(The two limits)Paper · §2.3 (informal); precise version here
- Vanishing correction. As $\sigma \to 0$ with $\sigma_{\min}$ fixed, $\sup_t |G_t| \le \sigma^2/(2\sigma_{\min}^2) \to 0$ and $\hat v(t,z) \to \sum_j \alpha_j^{0}(t,z)\,\Delta^{(j)}$, where $\alpha^0$ is the softmax with fixed bandwidth $\sigma_{\min}$: kernel-weighted replay.
- Hard replay. Let $\sigma_{\min}, \sigma \to 0$ with $\sigma/\sigma_{\min} = r$ fixed. Then $G_t$ does not change, and at any $(t,z)$ with a unique nearest bridge mean $m_t^{(j^*)}$, $\hat v(t,z) \to \Delta^{(j^*)} + G_t\,(z - m_t^{(j^*)})$: the conditional velocity of the nearest bridge alone.
(1) $|G_t| = \sigma^2|1-2t|/(2c_t^2) \le \sigma^2/(2\sigma_{\min}^2)$ because $c_t \ge \sigma_{\min}$ and $|1-2t| \le 1$. The weights depend continuously on $c_t^2 \to \sigma_{\min}^2$. Use Corollary 4.3, where the correction is at most $|G_t|\,\|z - \bar m_t\|$ and $\bar m_t$ stays bounded.
(2) With $\sigma = r\sigma_{\min}$, $G_t = r^2(1-2t)/\big(2(1 + r^2 t(1-t))\big)$ is independent of $\sigma_{\min}$. The softmax temperature $2c_t^2 = 2\sigma_{\min}^2(1 + r^2 t(1-t)) \to 0$. Since the minimizer of $j\mapsto\|z - m_t^{(j)}\|$ is unique, $\alpha_j \to \mathbf{1}\{j = j^*\}$. Writing $\hat v = \sum_j \alpha_j\,\big(\Delta^{(j)} + G_t(z - m_t^{(j)})\big)$ gives the limit. ∎
What it means. This makes "trajectory replay" precise. The first term averages stored one-step moves by similarity; the second nudges particles against ($t < \tfrac12$) and then along ($t > \tfrac12$) the score of the bridge mixture. The bandwidths interpolate between nearest-neighbour replay and kernel-smoothed replay. They are exactly the two numbers FreeFM Lab chooses from data.
5.One forecast step is a replay
To forecast from a state $x$, FreeFM draws $Z_0 \sim \mathcal{N}(x, \sigma_{\min}^2 I_d)$, solves $\dot Z_t = \hat v(t, Z_t)$ on $[0,1]$, and takes $Z_1$ as a sample of the next state. Repeating this with many particles gives an ensemble. This section describes the one-step map exactly. Write $h(t,z) = \sum_j \alpha_j(t,z)\,y_j(t)$, so that $\hat v = G_t z + h$.
Proposition 5.1(Duhamel representation)Paper · App. E
The linear part has fundamental solution $\Phi(t,s) = c_t / c_s$, and every solution satisfies
$$Z_t = \frac{c_t}{c_0}\, Z_0 + \int_0^t \frac{c_t}{c_s}\, h(s, Z_s)\, ds .$$In particular, since $c_0 = c_1 = \sigma_{\min}$: $\;Z_1 = Z_0 + \displaystyle\int_0^1 \frac{\sigma_{\min}}{c_s}\, h(s,Z_s)\,ds$.
Since $G_t = \dot c_t/c_t = \tfrac{d}{dt}\log c_t$, $\exp\int_s^t G_r\,dr = c_t/c_s$. Then $\tfrac{d}{dt}(Z_t/c_t) = \big(\dot Z_t - G_t Z_t\big)/c_t = h(t,Z_t)/c_t$. Integrating from $0$ to $t$ and multiplying by $c_t$ gives the formula. ∎
Theorem 5.2(Exact replay identity)Added here, from App. E
Let $\tilde m_s^{(j)} = (\sigma_{\min}/c_s)\, m_s^{(j)}$. Every solution satisfies
$$Z_1 - Z_0 = \sum_{j=1}^M \int_0^1 \alpha_j(s, Z_s)\, \dot{\tilde m}_s^{(j)}\, ds,$$and the intrinsic velocities integrate to the stored increments: $\int_0^1 \dot{\tilde m}_s^{(j)}\, ds = \Delta^{(j)}$.
By the quotient rule, $\dot{\tilde m}_s^{(j)} = \sigma_{\min}\big(\dot m_s^{(j)} c_s - m_s^{(j)}\dot c_s\big)/c_s^2 = (\sigma_{\min}/c_s)\big(\Delta^{(j)} - G_s m_s^{(j)}\big) = (\sigma_{\min}/c_s)\,y_j(s)$. Hence $(\sigma_{\min}/c_s)\,h(s,z) = \sum_j \alpha_j(s,z)\,\dot{\tilde m}_s^{(j)}$, and Proposition 5.1 gives the first identity. For the second, $\tilde m_1^{(j)} - \tilde m_0^{(j)} = (\sigma_{\min}/c_1)\,x_1^{(j)} - (\sigma_{\min}/c_0)\,x_0^{(j)} = x_1^{(j)} - x_0^{(j)}$, because $c_0 = c_1 = \sigma_{\min}$. ∎
The paper's co-moving form of Proposition 5.1 (App. E) already contains the first identity in disguise; the two observations that make it explicit are $\Phi(1,0) = c_1/c_0 = 1$ and $\int_0^1 \dot{\tilde m}_s^{(j)}\,ds = \Delta^{(j)}$.
Corollary 5.3(A dominant transition is replayed)Added here
- If $M = 1$, then for every $\sigma \ge 0$: $Z_1 = Z_0 + \Delta^{(1)}$, and $Z_t - m_t^{(1)} = (c_t/\sigma_{\min})\,(Z_0 - x_0^{(1)})$ for all $t$. So $\mathcal{N}(x_0^{(1)}, \sigma_{\min}^2 I_d)$ is carried exactly onto $\mathcal{N}(x_1^{(1)}, \sigma_{\min}^2 I_d)$.
- For general $M$ and any $j$, $$\begin{aligned} \big\|Z_1 - Z_0 - \Delta^{(j)}\big\| \le \int_0^1 &\big(1 - \alpha_j(s,Z_s)\big) \\ &\times \max_k \big\|\dot{\tilde m}_s^{(k)} - \dot{\tilde m}_s^{(j)}\big\|\, ds . \end{aligned}$$
(1) With $M=1$, $\alpha_1 \equiv 1$ and Theorem 5.2 gives $Z_1 - Z_0 = \Delta^{(1)}$. Also $\tfrac{d}{dt}(Z_t - m_t^{(1)}) = G_t Z_t + \Delta^{(1)} - G_t m_t^{(1)} - \Delta^{(1)} = G_t\,(Z_t - m_t^{(1)})$, so $Z_t - m_t^{(1)} = (c_t/c_0)(Z_0 - m_0^{(1)})$ by Proposition 5.1.
(2) By Theorem 5.2 and $\sum_k \alpha_k = 1$, $Z_1 - Z_0 - \Delta^{(j)} = \int_0^1 \big(\sum_k \alpha_k \dot{\tilde m}_s^{(k)} - \dot{\tilde m}_s^{(j)}\big)\,ds = \int_0^1 \sum_{k\ne j} \alpha_k\,\big(\dot{\tilde m}_s^{(k)} - \dot{\tilde m}_s^{(j)}\big)\,ds$. Take norms and use $\sum_{k \ne j}\alpha_k = 1 - \alpha_j$. ∎
Corollary 5.4(No mid-path spread: a convex combination of increments)Paper · App. E
If $\sigma = 0$, then $Z_1 = Z_0 + \sum_j \beta_j\, \Delta^{(j)}$ with $\beta_j = \int_0^1 \alpha_j(s, Z_s)\,ds \ge 0$ and $\sum_j \beta_j = 1$.
With $\sigma = 0$, $c_s \equiv \sigma_{\min}$, so $\tilde m_s^{(j)} = m_s^{(j)}$ and $\dot{\tilde m}_s^{(j)} = \Delta^{(j)}$ is constant in $s$. Theorem 5.2 gives the formula, and $\sum_j \beta_j = \int_0^1 \sum_j \alpha_j\, ds = 1$. ∎
Proposition 5.5(Translation equivariance)Added here
If every stored state is shifted by $a \in \mathbb{R}^d$, the new field satisfies $\hat v_a(t, z + a) = \hat v(t,z)$, so the one-step map commutes with translations. Consequently the identity of Theorem 5.2 also holds with $\tilde m_s^{(j)}$ replaced by $(\sigma_{\min}/c_s)(m_s^{(j)} - a)$, for any $a$; when $\sigma > 0$, the per-transition terms depend on $a$, but their sum does not.
Shifting changes $m_t^{(j)} \mapsto m_t^{(j)} + a$ and leaves $\Delta^{(j)}$ unchanged. The weights depend only on $z - m_t^{(j)}$, so they are unchanged at $z + a$, and $G_t(z+a) + \sum_j \alpha_j\big(\Delta^{(j)} - G_t(m_t^{(j)} + a)\big) = \hat v(t,z)$. For the second claim, the two versions of the integrand differ by $\sum_j\alpha_j \tfrac{d}{ds}\big(\sigma_{\min}/c_s\big)(-a) = -a\,\tfrac{d}{ds}(\sigma_{\min}/c_s)$, whose integral over $[0,1]$ is $-a\,(\sigma_{\min}/c_1 - \sigma_{\min}/c_0) = 0$. Each $\tilde m^{(j)}$ still integrates to $\Delta^{(j)}$ by the same computation as before. When $\sigma > 0$, $\sigma_{\min}/c_s$ is not constant, so individual terms change with $a$. ∎
What Section 5 says about forecasting. A FreeFM step moves the current state by stored moves, weighted by attention along the path. When one transition dominates throughout, the step replays its increment almost exactly, for any $\sigma$ (Corollary 5.3). With $\sigma = 0$ the step is literally a convex combination of stored increments (Corollary 5.4). Two consequences:
- Old moves, new places. Increments are added to the current state, so forecasts can leave the range of the data (in FreeFM Lab, the Beijing PM2.5 example can dip below zero). FreeFM cannot, however, produce a kind of move it has never seen. That is why the app checks whether the current state is familiar.
- Credit to past moments. The app's "Why this forecast?" view averages the attention weights over integration steps and particles. For $\sigma = 0$ that is the Euler approximation of the $\beta_j$ of Corollary 5.4, averaged over particles. The app always uses $\sigma > 0$, where these averages summarise the weights in Theorem 5.2; Proposition 5.5 shows that an exact per-transition split is then not canonical, so the view is a summary, not an exact decomposition.
6.What is matched: marginals
FM is a regression onto conditional expectations, which is a deterministic version of Markovian projection. For Itô processes the classical statement is Gyöngy's theorem [6]: the one-time marginals of $dX_t = b_t\,dt + \Sigma_t\,dW_t$ (with adapted, possibly non-Markov coefficients) are reproduced by a Markov diffusion with drift $\mathbb{E}[b_t\mid X_t = x]$ and diffusion matrix $\mathbb{E}[\Sigma_t\Sigma_t^\top \mid X_t = x]$, under nondegeneracy and integrability conditions. The zero-noise version is what FM uses.
Proposition 6.1(Deterministic Markovian projection)Paper · App. B, made precise here
Let $(X_t)_{t\in[0,1]}$ have absolutely continuous paths with $\mathbb{E}\|X_0\| < \infty$ and $\mathbb{E}\int_0^1 \|\dot X_t\|\,dt < \infty$. Let $\mu_t$ be the law of $X_t$, and let $v$ be Borel with $v(t, X_t) = \mathbb{E}[\dot X_t \mid X_t]$ almost surely, for almost every $t$.
- $(\mu_t)$ solves the continuity equation $\partial_t \mu_t + \nabla\cdot(\mu_t v) = 0$ weakly.
- If moreover $v$ is continuous and Lipschitz in $x$, uniformly in $t$, and $Y$ solves $\dot Y_t = v(t, Y_t)$ with $Y_0 \sim \mu_0$, then $Y_t \sim \mu_t$ for all $t \in [0,1]$.
(1) For $\varphi \in C_c^\infty(\mathbb{R}^d)$, absolute continuity gives $\varphi(X_t) - \varphi(X_0) = \int_0^t \nabla\varphi(X_s)\cdot\dot X_s\,ds$. Since $\nabla\varphi$ is bounded and $\dot X$ is integrable, we may take expectations and use Fubini and the tower property: $\int\varphi\,d\mu_t - \int\varphi\,d\mu_0 = \int_0^t \mathbb{E}\big[\nabla\varphi(X_s)\cdot\mathbb{E}[\dot X_s\mid X_s]\big]\,ds = \int_0^t\!\!\int \nabla\varphi\cdot v(s,\cdot)\,d\mu_s\,ds$. This is the weak form of the continuity equation, and $\int_0^1\!\int\|v\|\,d\mu_s\,ds \le \mathbb{E}\int_0^1\|\dot X_s\|\,ds < \infty$.
(2) The same computation with $\dot Y_s = v(s,Y_s)$ shows that the laws $\nu_t$ of $Y_t$ solve the same equation, with $\nu_0 = \mu_0$. Both families are narrowly continuous in $t$, since the paths are continuous, and have finite first moments, since $v$ has linear growth. For a velocity field that is Lipschitz in $x$ uniformly in $t$, the continuity equation has a unique such solution for a given initial law: the push-forward of $\mu_0$ by the flow [7, §8.1]. Hence $\nu_t = \mu_t$. ∎
Corollary 6.2(FreeFM transports the start mixture onto the end mixture)Paper · App. B, via [12]; proof here
Draw $J$ uniformly from $\{1,\dots,M\}$ and $Z_0 \sim \mathcal{N}(x_0^{(J)}, \sigma_{\min}^2 I_d)$. The solution of $\dot Z_t = \hat v(t, Z_t)$ satisfies $Z_t \sim \hat p_t$ for every $t$. In particular $Z_1 \sim \frac1M\sum_j \mathcal{N}(x_1^{(j)}, \sigma_{\min}^2 I_d)$.
Let $X_t = m_t^{(J)} + c_t\,\xi$ with $\xi \sim \mathcal{N}(0,I_d)$ independent of $J$, so $X_t \sim \hat p_t$ and $\dot X_t = \Delta^{(J)} + \dot c_t\,\xi$, which is integrable. Given $J = j$ and $X_t = z$, we have $\xi = (z - m_t^{(j)})/c_t$, so $\dot X_t = \Delta^{(j)} + G_t(z - m_t^{(j)})$. By Bayes' rule, $\mathbb{P}(J = j\mid X_t = z) = \alpha_j(t,z)$. Hence $\mathbb{E}[\dot X_t\mid X_t = z] = \hat v(t,z)$. The field $\hat v$ is continuous and Lipschitz in $z$ uniformly in $t$ (Theorem 7.5), so Proposition 6.1 applies. ∎
What it means. The proof shows directly that the FreeFM field is the Markovian projection of the bridge mixture. What is guaranteed is the matching of one-time marginals, not of pairs. A particle that starts near $x_0^{(j)}$ need not end near $x_1^{(j)}$; Section 5 is what controls that. A forecast also starts from a single Gaussian $\mathcal{N}(x, \sigma_{\min}^2 I_d)$, not from the whole start mixture, so Corollary 6.2 describes what the field is built to do rather than giving a forecasting guarantee. Finally, iterating the step gives a Markov chain on the state space. When the observed dynamics are not Markov in the raw coordinates, delay embedding restores a Markov state; this is why the Lab uses delays.
7.Well-posedness and stiffness
Lemma 7.1(Gradient of the attention weights)Paper · App. D
$$\nabla_z \alpha_j(t,z) = \frac{\alpha_j(t,z)}{c_t^2}\,\big(m_t^{(j)} - \bar m_t(z)\big).$$With $\pi_j = \exp(-\|z - m_t^{(j)}\|^2/2c_t^2)$ and $\alpha_j = \pi_j/\sum_k\pi_k$, the quotient rule gives $\nabla\alpha_j = \alpha_j\big(\nabla\log\pi_j - \sum_k\alpha_k\nabla\log\pi_k\big)$. Substituting $\nabla\log\pi_j = -(z - m_t^{(j)})/c_t^2$ gives the result. ∎
Proposition 7.2(Exact Jacobian)Added here, from App. D
$$\begin{aligned} \nabla_z \hat v(t,z) &= G_t\, I_d + \frac{1}{c_t^2}\operatorname{Cov}_\alpha\!\big(y(t), m_t\big) \\ &= G_t\big(I_d - c_t^{-2}\operatorname{Cov}_\alpha(m_t, m_t)\big) \\ &\quad + c_t^{-2}\operatorname{Cov}_\alpha(\Delta, m_t), \end{aligned}$$where the covariances use the weights $\alpha_j(t,z)$.
By Lemma 7.1, $\nabla_z h = \sum_j y_j\,(\nabla\alpha_j)^\top = c_t^{-2}\sum_j\alpha_j\, y_j\,(m_t^{(j)} - \bar m_t)^\top$. Because $\sum_j\alpha_j(m_t^{(j)} - \bar m_t) = 0$, we may replace $y_j$ by $y_j - \bar y$, which gives $c_t^{-2}\operatorname{Cov}_\alpha(y, m_t)$. Add $\nabla_z(G_t z) = G_t I_d$. The second form follows from $y_j = \Delta^{(j)} - G_t m_t^{(j)}$ and bilinearity of the covariance. ∎
Theorem 7.3(Lipschitz bound)Paper · Prop. 2, sharpened here
Let $\rho_m(t)$ and $\rho_\Delta$ be the radii of the smallest balls containing $\{m_t^{(j)}\}_j$ and $\{\Delta^{(j)}\}_j$. Then
$$\begin{aligned} \operatorname{Lip}_z \hat v(t,\cdot) &\le \sup_z \|\nabla_z\hat v(t,z)\| \\ &\le |G_t| + \frac{\rho_\Delta\,\rho_m(t) + |G_t|\,\rho_m(t)^2}{c_t^2} \\ &\le |G_t| + \frac{\rho_\Delta\,\rho_m(t)}{c_t^2} + \frac{\sigma^2 \rho_m(t)^2}{2c_t^4}. \end{aligned}$$If $\|\Delta^{(j)}\| \le R_1$ and $\|m_t^{(j)}\| \le R_m$ for all $j$, the middle bound is at most $|G_t| + (2R_1R_m + 2|G_t|R_m^2)/c_t^2$, the form in the paper. For fixed $\sigma$, the bound is $O(c_t^{-4})$ as $c_t\to 0$.
The first inequality is the mean value theorem on the convex set $\mathbb{R}^d$. For unit vectors $u, w$ and weights $\alpha$, Cauchy–Schwarz gives $u^\top \operatorname{Cov}_\alpha(a,b)\,w = \sum_j\alpha_j\,\big(u\cdot(a_j - \bar a)\big)\big(w\cdot(b_j - \bar b)\big) \le \big(\sum_j\alpha_j\|a_j - \bar a\|^2\big)^{1/2}\big(\sum_j\alpha_j\|b_j - \bar b\|^2\big)^{1/2}$. The weighted mean minimizes the weighted squared deviation, so $\sum_j\alpha_j\|a_j - \bar a\|^2 \le \sum_j\alpha_j\|a_j - p\|^2 \le \max_j\|a_j - p\|^2$ for every $p$. Choosing $p$ as the centre of the smallest enclosing ball gives $\rho_a^2$. Hence $\|\operatorname{Cov}_\alpha(\Delta, m_t)\| \le \rho_\Delta\rho_m$ and $\|\operatorname{Cov}_\alpha(m_t,m_t)\| \le \rho_m^2$, and Proposition 7.2 with the triangle inequality gives the middle bound. Next, $|G_t| = \sigma^2|1-2t|/(2c_t^2) \le \sigma^2/(2c_t^2)$. Finally, $\rho_\Delta \le R_1$ and $\rho_m \le R_m$ (take $p = 0$), and the paper's constants are larger by a factor of two. ∎
Proposition 7.4(Step size for the linear part)Added here
$\max_{t\in[1/2,1]} |G_t| = \sigma^2/(2\sigma_{\min}^2)$, attained at $t = 1$. Hence forward Euler with step $\Delta t \le 4\sigma_{\min}^2/\sigma^2$ is stable for the contracting linear part $\dot z = G_t z$, $t \ge \tfrac12$: the amplification factor $1 + \Delta t\,G_t$ lies in $[-1, 1]$ there.
For $t \in [\tfrac12, 1]$, $|G_t| = \sigma^2(2t-1)/\big(2(\sigma_{\min}^2 + \sigma^2 t(1-t))\big)$. The numerator increases and the denominator decreases in $t$, so the maximum is at $t=1$, where it equals $\sigma^2/(2\sigma_{\min}^2)$. If $\Delta t\,|G_t| \le 2$ and $G_t \le 0$, then $1 + \Delta t\, G_t \in [-1,1]$. ∎
What it means. Proposition 7.2 locates the stiffness. If attention concentrates on one transition, the covariances vanish and the Jacobian is just $G_t I_d$, the single-bridge flow of Corollary 5.3. Anything larger needs attention to be split across transitions, and grows with how far apart their bridge means are relative to $c_t$ and how different their increments are: a particle "between" two past moments that move differently. The radii $\rho$, unlike the norms $R$, do not change when the data are shifted, which matches Proposition 5.5. For $t < \tfrac12$ the linear part expands, but so does the exact flow, so that growth is not a numerical artefact. Proposition 7.4 is a simple sufficient condition for the linear part only; the attention term can add stiffness of its own (Theorem 7.3).
Theorem 7.5(Global well-posedness)Paper · App. E, extended here
Let $\sigma_{\min} > 0$. Then $\hat v$ is $C^\infty$ on $[0,1]\times\mathbb{R}^d$, Lipschitz in $z$ uniformly in $t$, and of linear growth. For every $Z_0$ the ODE $\dot Z_t = \hat v(t,Z_t)$ has a unique solution on $[0,1]$. The one-step map $Z_0 \mapsto Z_1$ is a $C^\infty$ diffeomorphism of $\mathbb{R}^d$ with Lipschitz constant at most $\exp\int_0^1 L_t\,dt$, where $L_t$ is the bound of Theorem 7.3.
Since $c_t \ge \sigma_{\min} > 0$ and $c_t^2$ is a polynomial in $t$, the weights $\alpha_j$ and $G_t$, and hence $\hat v$, are $C^\infty$ in $(t,z)$. Theorem 7.3 with $c_t \ge \sigma_{\min}$ bounds $L_t$ uniformly in $t$. Linear growth holds because $\|\hat v(t,z)\| \le |G_t|\,\|z\| + \max_j\|y_j(t)\|$, and both coefficients are bounded on $[0,1]$. The global Picard–Lindelöf theorem gives a unique solution on $[0,1]$ for every initial value. Grönwall's inequality gives $\|Z_1 - Z_1'\| \le e^{\int_0^1 L_t\,dt}\,\|Z_0 - Z_0'\|$. Solving backwards in time from $t = 1$ inverts the map, and smooth dependence on initial data for smooth fields [15] makes both directions $C^\infty$. ∎
What it means. Each forecast step is a well-defined, invertible, smooth map: distinct particles never merge in a single step, although the cloud can contract strongly. The theorem says nothing about iterating the step. A multi-step rollout can still drift or blow up for a poor choice of bandwidths, which is why FreeFM Lab checks multi-step stability before accepting a pair $(\sigma_{\min}, \sigma)$.
8.Scaling by truncation
Evaluating $\hat v$ costs $O(Md)$. Since the weights decay like Gaussians in distance, one can keep only a set $I$ of transitions, for example the $R$ nearest, and renormalize: $\hat v_I(t,z) = G_t z + \sum_{j\in I}\alpha_j y_j \big/ S_I$, where $S_I = \sum_{j\in I}\alpha_j(t,z)$.
Proposition 8.1(Truncation error)Paper · Prop. 3, sharpened here
$$\begin{aligned} \big\|\hat v(t,z) - \hat v_I(t,z)\big\| &= (1 - S_I)\,\big\|\bar y_{I^c} - \bar y_I\big\| \\ &\le (1 - S_I)\,\operatorname{diam}\{y_j(t)\}_j \\ &\le 2\max_j\|y_j(t)\|\,(1 - S_I), \end{aligned}$$where $\bar y_I$ and $\bar y_{I^c}$ are the $\alpha$-weighted averages of the labels inside and outside $I$ (the middle terms are zero if $S_I = 1$). The last bound is the one in the paper.
The linear terms cancel, so the error is $\|h - \bar y_I\|$. Split $h = S_I\,\bar y_I + (1 - S_I)\,\bar y_{I^c}$; then $h - \bar y_I = (1 - S_I)(\bar y_{I^c} - \bar y_I)$. Both averages lie in the convex hull of $\{y_j\}$, so their distance is at most its diameter, which is at most $2\max_j\|y_j\|$. ∎
Corollary 8.2(A computable bound on the discarded mass)Added here
Let $d_{(1)} \le \dots \le d_{(M)}$ be the sorted distances $\|z - m_t^{(j)}\|$ and $I$ the $R$ nearest transitions. Then
$$\begin{aligned} 1 - S_I &\le \sum_{k=R+1}^{M} \exp\!\Big(-\frac{d_{(k)}^2 - d_{(1)}^2}{2c_t^2}\Big) \\ &\le (M - R)\,\exp\!\Big(-\frac{d_{(R+1)}^2 - d_{(1)}^2}{2c_t^2}\Big). \end{aligned}$$Because all transitions share $c_t$, the $R$ largest weights belong to the $R$ nearest means. With $\pi_j = \exp(-d_j^2/2c_t^2)$, each weight satisfies $\alpha_j = \pi_j/\sum_k\pi_k \le \pi_j/\pi_{(1)} = \exp(-(d_j^2 - d_{(1)}^2)/2c_t^2)$. Sum over the transitions outside $I$, and bound each term by the largest of them. ∎
Corollary 8.3(From velocity error to forecast error)Added here (Grönwall)
Let $Z$ solve the exact ODE and let $\tilde Z$ be absolutely continuous with $\dot{\tilde Z}_t = \hat v_{I(t)}(t, \tilde Z_t)$ for almost every $t$, where the kept set $I(t)$ may change with time. Let $\varepsilon(t) = \|\hat v(t,\tilde Z_t) - \hat v_{I(t)}(t,\tilde Z_t)\|$, which Proposition 8.1 and Corollary 8.2 bound. Then
$$\begin{aligned} \|Z_1 - \tilde Z_1\| \le{} &e^{\int_0^1 L_t\,dt}\,\|Z_0 - \tilde Z_0\| \\ &+ \int_0^1 e^{\int_s^1 L_r\,dr}\,\varepsilon(s)\,ds . \end{aligned}$$Let $e = Z - \tilde Z$. Almost everywhere, $\dot e = \big[\hat v(t,Z) - \hat v(t,\tilde Z)\big] + \big[\hat v(t,\tilde Z) - \hat v_{I}(t,\tilde Z)\big]$, so the absolutely continuous function $\|e_t\|$ satisfies $\tfrac{d}{dt}\|e_t\| \le L_t\|e_t\| + \varepsilon(t)$ almost everywhere. Grönwall's inequality gives the bound. ∎
What it means. Top-$R$ attention costs $O(Rd)$ per evaluation, after a nearest-neighbour search. Corollary 8.2 gives a certificate from the distances that search returns anyway. Corollary 8.3 shows the effect on the forecast is controlled, though the factor $e^{\int L}$ with $L_t = O(c_t^{-4})$ is very pessimistic: it shows the error is controlled, not how small it is in practice.
9.Learning from one long trajectory
Transitions along one trajectory are dependent, not i.i.d. Ergodic theory covers this case. Let $(X_\tau)_{\tau\in\mathbb{Z}}$ be a strictly stationary and ergodic process in $\mathbb{R}^d$ and $Y_\tau = (X_\tau, X_{\tau+1})$. Take the bank to be the first $T$ transitions $Y_0,\dots,Y_{T-1}$.
Theorem 9.1(Ergodic consistency of the FM loss)Paper · App. B
Let $\ell_\theta(x_0, x_1) = \mathbb{E}_{t,\xi}\big\|v_\theta\big(t, (1-t)x_0 + t x_1 + s_t\xi\big) - (x_1 - x_0) - \dot s_t\,\xi\big\|^2$ be the per-transition FM loss of a model $v_\theta$, with $t \sim \mathcal{U}[0,1]$ and $\xi \sim \mathcal{N}(0, I_d)$. If $\mathbb{E}|\ell_\theta(Y_0)| < \infty$, then for fixed $\theta$, $\frac1T\sum_{\tau=0}^{T-1}\ell_\theta(Y_\tau) \to \mathbb{E}\,\ell_\theta(Y_0)$ almost surely.
Work on path space with the left shift $\vartheta$, which preserves the law of the process by stationarity. With $H(\omega) = \ell_\theta(X_0(\omega), X_1(\omega))$, we have $\ell_\theta(Y_\tau) = H(\vartheta^\tau\omega)$. Birkhoff's ergodic theorem [10] gives convergence of the averages to $\mathbb{E}[H\mid\mathcal{I}]$, where $\mathcal{I}$ is the invariant $\sigma$-field. Ergodicity makes $\mathcal{I}$ trivial, so the limit is $\mathbb{E}H$. ∎
This is a statement for one fixed $\theta$; convergence of minimizers would need uniformity over $\theta$. For FreeFM there is nothing to minimize, and the field itself converges:
Proposition 9.2(Convergence of the closed-form field)Added here
Assume $\mathbb{E}\|X_0\| < \infty$, and let $\hat v_T$ be the FreeFM field built from the first $T$ transitions. For each fixed $(t,z)$, almost surely,
$$\hat v_T(t,z) \to v^\star(t,z) = \frac{\mathbb{E}\big[\phi_t(z;Y_0)\,u_t(z;Y_0)\big]}{\mathbb{E}\big[\phi_t(z;Y_0)\big]},$$where $\phi_t(z;Y) = \exp\big(-\|z - m_t(Y)\|^2/2c_t^2\big)$ and $u_t(z;Y) = \Delta(Y) + G_t\,(z - m_t(Y))$. This $v^\star$ is the population version of Theorem 3.1: the same pointwise argument, with the empirical law of transitions replaced by the law of $Y_0$, shows it minimizes the population CFM objective.
Both numerator and denominator of $\hat v_T = \sum_\tau \phi_t(z;Y_\tau)\,u_t(z;Y_\tau)\big/\sum_\tau\phi_t(z;Y_\tau)$ are $T$ times ergodic averages. The function $\phi_t$ lies in $(0,1]$. Using $\sup_{r\ge 0} r\,e^{-r^2/2c^2} = c\,e^{-1/2}$, $\|\phi_t u_t\| \le \|\Delta(Y)\| + |G_t|\,c_t\,e^{-1/2}$, which is integrable because $\mathbb{E}\|\Delta(Y_0)\| \le 2\,\mathbb{E}\|X_0\|$. Birkhoff's theorem (as in Theorem 9.1) gives almost sure convergence of both averages. The denominator's limit $\mathbb{E}\phi_t(z;Y_0)$ is positive because $\phi_t > 0$, so the ratio converges. ∎
What it means. One long trajectory is enough, but more data converges to the population smoothed field at fixed bandwidth, not to the true dynamics. Removing that smoothing bias requires the bandwidth to shrink as the bank grows, at a rate that balances variance; this is open (Section 12).
10.A diffusion-maps view
Let $\varphi_t = c_t/\sigma_{\min} = \Phi(t,0)$ and use the co-moving variable $Y_t = Z_t/\varphi_t$ and the intrinsic means $\tilde m_t^{(j)} = m_t^{(j)}/\varphi_t$ (the same $\tilde m$ as in Theorem 5.2).
Proposition 10.1(Kernel equivariance and intrinsic labels)Paper · App. E
- $\alpha_j(t, \varphi_t y) = \hat w_j(t,y) := \operatorname{softmax}_j\!\big(-\|y - \tilde m_t^{(j)}\|^2/2\sigma_{\min}^2\big)$: in co-moving coordinates the bandwidth is constant, equal to $\sigma_{\min}$.
- $y_j(t)/\varphi_t = \dot{\tilde m}_t^{(j)}$.
- $\dot Y_t = \sum_j \hat w_j(t, Y_t)\,\dot{\tilde m}_t^{(j)}$.
(1) $\|\varphi_t y - m_t^{(j)}\|^2 = \varphi_t^2\,\|y - \tilde m_t^{(j)}\|^2$ and $c_t^2/\varphi_t^2 = \sigma_{\min}^2$. (2) $\dot{\tilde m}_t^{(j)} = (\sigma_{\min}/c_t)\,y_j(t)$, computed in the proof of Theorem 5.2. (3) $\dot\varphi_t/\varphi_t = G_t$, so $\dot Y_t = (\dot Z_t - G_t Z_t)/\varphi_t = h(t,Z_t)/\varphi_t = \sum_j\alpha_j(t,Z_t)\,y_j(t)/\varphi_t$; apply (1) and (2). ∎
What it means. In the co-moving frame, FreeFM evaluates a row-stochastic Gaussian kernel (diffusion-map) operator [8] at fixed bandwidth $\sigma_{\min}$, through its Nyström extension, on vector-valued labels $\dot{\tilde m}^{(j)}$, along the trajectory and without any eigendecomposition. Its weights are a Nadaraya–Watson estimator [11] of the label at the query point. The intrinsic cloud $\tilde m_t$ is the bank contracted by the factor $\sigma_{\min}/c_t$, most strongly at $t = \tfrac12$. So $\sigma$ acts like extra smoothing mid-path: the same bandwidth relative to a smaller cloud. (The contraction is towards the origin, which is an arbitrary point by Proposition 5.5.) The same nearest-neighbour geometry underlies empirical dynamic modelling [9]. FreeFM gives a continuous-time, probabilistic version whose velocity is known in closed form.
11.What this explains in the experiments
The paper evaluates FreeFM on the dysts benchmark [13]: 135 chaotic systems of dimension 3 to 6, sampled at
100 points per Lyapunov time. Each run conditions on 312 points and forecasts the next 500 (five Lyapunov times). On
average over the systems, FreeFM has lower sMAPE and longer valid prediction time than seven trained baselines, lower CRPS
than a trained vanilla flow matching model, and better long-run attractor statistics (correlation dimension and KL
divergence). The paper's appendix adds real-world datasets. Read through the results above, the following
interpretations are natural. They are consistent with the theory but are not theorems.
| Observation | Where it comes from |
|---|---|
| Competitive with trained models, with no training | Theorem 3.1: a trained FM model approximates $\hat v$; FreeFM uses $\hat v$ itself. |
| Good long-run attractor statistics | Theorem 5.2 and Corollary 6.2: steps are built from observed moves, and the field maps the bank's start distribution onto its end distribution, so rollouts tend to stay near the data's invariant set. |
| Weak under distribution shift; can leave the data range | Theorem 5.2: moves come from stored increments added to the current state. New kinds of moves are impossible; old moves in new places are possible. |
| Needs small steps when $\sigma_{\min}$ is small | Theorem 7.3 and Proposition 7.4: Lipschitz constants grow like $c_t^{-4}$; the linear part alone needs $\Delta t \le 4\sigma_{\min}^2/\sigma^2$. |
| Cost grows with the bank | Section 8: $O(Md)$ per evaluation, reducible to $O(Rd)$ with a certified error. |
| Works from a single trajectory | Theorem 9.1 and Proposition 9.2. |
The same results explain three features of FreeFM Lab. The familiarity check exists because of Theorem 5.2. "Why this forecast?" displays the weights of Corollary 5.4. The multi-step stability check exists because Theorem 7.5 covers one step only.
12.Open questions
- Bandwidth rates. If $c_t$ shrinks as $M$ grows, does the one-step law converge to the true transition kernel, and at what rate in the embedding dimension? Proposition 9.2 is the fixed-bandwidth starting point.
- Error over many steps. How do one-step errors compound over a rollout, relative to the system's Lyapunov exponents? Theorem 7.5 controls a single step only.
- Other paths. Section 5 ties replay to the Gaussian bridge. Which conditional paths keep a closed-form field but produce moves that are not recombinations of stored increments, for example locally linear ones?
- Calibration. Which choice of $(\sigma_{\min}, \sigma)$ makes forecast bands calibrated, and can it be characterised without a validation search?
Back to the main post: FreeFM: Forecasting Dynamical Systems Without Training a Neural Network explains the same ideas with animations and experiments. You can also run FreeFM on your own data in FreeFM Lab.
References
- S. H. Lim, S. Lin, M. W. Mahoney, N. B. Erichson. Is Flow Matching Just Trajectory Replay for Sequential Data? arXiv:2602.08318, 2026. Code: github.com/shoelim/FreeFM.
- Y. Lipman, R. T. Q. Chen, H. Ben-Hamu, M. Nickel, M. Le. Flow Matching for Generative Modeling. arXiv:2210.02747, ICLR 2023.
- Q. Bertrand, A. Gagneux, M. Massias, R. Emonet. On the Closed-Form of Flow Matching: Generalization Does Not Arise from Target Stochasticity. arXiv:2506.03719, 2025.
- C. Scarvelis, H. S. de Ocáriz Borde, J. Solomon. Closed-Form Diffusion Models. arXiv:2310.12395, 2023.
- S. H. Lim, Y. Wang, A. Yu, E. Hart, M. W. Mahoney, X. S. Li, N. B. Erichson. Elucidating the Design Choice of Probability Paths in Flow Matching for Forecasting. Transactions on Machine Learning Research, 2025.
- I. Gyöngy. Mimicking the One-Dimensional Marginal Distributions of Processes Having an Itô Differential. Probability Theory and Related Fields 71(4):501–516, 1986.
- L. Ambrosio, N. Gigli, G. Savaré. Gradient Flows in Metric Spaces and in the Space of Probability Measures. Birkhäuser, 2nd ed., 2008.
- R. R. Coifman, S. Lafon. Diffusion Maps. Applied and Computational Harmonic Analysis 21(1):5–30, 2006.
- G. Sugihara, R. M. May. Nonlinear Forecasting as a Way of Distinguishing Chaos from Measurement Error in Time Series. Nature 344:734–741, 1990.
- R. Durrett. Probability: Theory and Examples. Cambridge University Press, 5th ed., 2019.
- E. A. Nadaraya. On Estimating Regression. Theory of Probability & Its Applications 9(1):141–142, 1964.
- L. Kunkel, M. Trabs. On the Minimax Optimality of Flow Matching through the Connection to Kernel Density Estimation. arXiv:2504.13336, 2025.
- W. Gilpin. Chaos as an Interpretable Benchmark for Forecasting and Data-Driven Modelling. arXiv:2110.05266, 2021.
- Z. Li, H. Hu, S. H. Lim, X. Li, F. Gao, E. Diao, Z. Ding, M. Vazirgiannis, H. Boström. A Kinetic-Energy Perspective of Flow Matching. arXiv:2602.07928, 2026.
- P. Hartman. Ordinary Differential Equations. SIAM Classics in Applied Mathematics, 2nd ed., 2002.