---
title: Flow Language Models (FLMs)
url: https://www.emergentmind.com/topics/flow-language-models-flms
type: topic
---

# Flow Language Models (FLMs)

Flow Language Models (FLMs) are generative language models that represent text generation as continuous transport from a simple initial distribution to a distribution of language sequences. Unlike autoregressive language models, which generate tokens sequentially, FLMs evolve an entire sequence jointly through a learned velocity field or flow map. Their intermediate states may be continuous embeddings, one-hot vectors in an ambient Euclidean space, or points on a hypersphere; discrete tokens are generally produced only at the terminal stage. The term encompasses several related but distinct systems, including latent depth-compression operators inside autoregressive Transformers, continuous flow-matching language models, latent normalizing-flow models, masked and reasoning-oriented extensions, and samplers or distillation procedures designed to make flow generation efficient.

## 1. Conceptual foundations and taxonomy

The defining object of an FLM is a time-dependent dynamical system

$$
\frac{d z_t}{dt}=u_\theta(z_t,t),
$$

which transports an initial distribution $p_0$, usually Gaussian noise, toward a terminal language distribution $p_1$. A flow-matching model trains $u_\theta$ using paired intermediate states and target velocities. For a linear interpolation,

$$
z_t=(1-t)z_0+t z_1,
$$

the target velocity is $z_1-z_0$. Generation integrates the learned field from $t=0$ to $t=1$ and decodes the terminal state into tokens.

FLMs differ from discrete diffusion language models in their treatment of intermediate states. Discrete diffusion models maintain categorical, masked, or token-valued states and commonly approximate reverse transitions by position-wise factorization. FLMs instead evolve a joint continuous sequence representation. This permits all sequence positions to interact during transport and avoids repeatedly sampling independent categorical transitions. The distinction is particularly important at finite sampling budgets, where factorized discrete transitions can lose inter-token dependencies.

The term is used at several levels of breadth:

- **Latent transport inside an autoregressive model**: the Latent Flow Transformer replaces a contiguous block of Transformer layers with a learned transport operator over hidden states, while retaining causal left-to-right decoding. It is therefore a flow-compressed autoregressive Transformer rather than a complete non-autoregressive FLM [2505.14513].
- **Continuous flow generation**: models such as FLM, ELF, FlowLM, and S-FLM transport noise to continuous representations of complete token sequences and decode only at the end [2602.16813; 2605.10938; 2605.20199; 2605.11125].
- **Continuous latent likelihood models**: TarFlowLM uses transformer-conditioned autoregressive normalizing flows over continuous token latents and retains exact change-of-variables likelihoods [2507.00425].
- **Hybrid masked-flow models**: Masked Language Flow Models combine continuous coupled denoising with discrete masking and online token promotion [2606.27617].
- **Reasoning and verification systems**: Flow Reasoning Models use self-conditioning, fixed-point stability, and preference training to turn FLMs into iterative solvers for structured tasks [2606.29150].
- **Sampling and distillation frameworks**: marginal-conditioned bridges, flow-map distillation, and fixed-point flows address the mismatch between continuous denoising dynamics and efficient discrete generation [2605.13681; 2605.20199; 2607.00714].

A related but distinct system is the LLM-grounded flow-analysis framework that aligns streamline representations with LLM embeddings. It is a multimodal flow-analysis and visualization system rather than a general-purpose FLM because it uses a pretrained LLaMA 3 model, a specialized flow encoder, a projector, and a separate retrieval module [2508.06300].

## 2. Continuous representations and flow-matching objectives

### Euclidean one-hot representations

One class of FLMs maps each token to a one-hot vector in $\mathbb R^{|\mathcal V|}$. A sequence of length $L$ becomes a matrix in $\mathbb R^{L\times |\mathcal V|}$. The forward interpolant is

$$
x_t=(1-t)x_0+t x_1,
$$

where $x_0$ is Gaussian noise and $x_1$ is the clean one-hot sequence. The model predicts the conditional clean-token distribution at each position, rather than directly regressing the full velocity. If $D_t(x)$ is the predicted clean representation, the velocity is reconstructed as

$$
b_t(x)=\frac{D_t(x)-x}{1-t}.
$$

Since each clean position is a vocabulary basis vector, $D_t(x)$ is a categorical posterior and can be trained using cross-entropy. This parameterization is better conditioned than direct velocity regression when the vocabulary dimension is large because the velocity target contains full-rank Gaussian noise.

The FLM introduced in “One-step Language Modeling via Continuous Denoising” uses this formulation and a decoding-error-based time reparameterization. Uniform time is replaced by a schedule that concentrates training samples and numerical integration steps where token-resolution error decreases rapidly. On LM1B, the reported generative perplexity improves from $149.18$ without reparameterization to $106.98$ with the proposed decoding-error schedule; the complete FLM reaches $96.91$ at 1024 sampling steps [2602.16813].

### Continuous embedding representations

Other FLMs operate in lower-dimensional continuous embedding spaces. ELF uses frozen contextual T5-small embeddings, a 128-dimensional bottleneck, and a Transformer denoiser. It predicts the clean embedding $x$ and converts it to a velocity:

$$
v_\theta(z_t,t)=\frac{x_\theta(z_t,t)-z_t}{1-t}.
$$

The intermediate states remain unrestricted continuous embeddings, and tokenization is deferred to a shared terminal denoising-decoding network. ELF reports a generative perplexity of $24.08$ with 32 stochastic flow steps on OpenWebText, using a 105M-parameter model [2605.10938].

FlowLM adapts a pretrained continuous diffusion language model rather than training a flow model from scratch. It replaces the original diffusion trajectory with a linear interpolation, retains clean-data prediction, and uses an average-velocity update toward the predicted clean embedding. The adaptation yields nearly straight trajectories and supports one- to five-step generation. On question generation, five-step FlowLM obtains BLEU $0.1596$, compared with $0.1527$ for 2000-step DiffuSeq; on paraphrase generation, three-step FlowLM obtains BLEU $0.2001$ [2605.20199].

### Hyperspherical representations

S-FLM replaces vocabulary-sized one-hot states with normalized token embeddings on the unit hypersphere $\mathbb S^{d-1}$. A token is represented by

$$
\hat e_v=\frac{e_v}{\|e_v\|_2}.
$$

Noise is introduced by spherical linear interpolation between a random point on the sphere and the clean token embedding. The corresponding velocity is tangent to the sphere and uses the logarithmic map:

$$
u_{t|1}(z_t\mid z_1)
=
\frac{\dot\alpha_t}{1-\alpha_t}\log_{z_t}(z_1).
$$

S-FLM avoids materializing an $L\times|\mathcal V|$ noisy state, reducing the latent-state cost from approximately $O(L|\mathcal V|)$ to $O(Ld)$, apart from the vocabulary projection. On TinyGSM, top-1 velocity reaches $18.0\%$ accuracy, compared with approximately $0.3\%$ for the prior FLM, although autoregressive and discrete-diffusion systems remain stronger at optimized low temperature [2605.11125].

### Learned forward paths and autoregressive latent flows

Neural Flow Diffusion Models learn the corruption process itself rather than imposing a fixed schedule. Their continuous latent state is generated through

$$
z_t=F_\varphi(\epsilon,t,E_\varphi(x)),
$$

where both the mean and variance depend on the input sequence. The model jointly learns the embedding, forward trajectory, and reverse predictor. NFDM reaches an ELBO of $3.12$ bits per character on ROCStories, close to the GPT-J value of $3.05$, but its best reported generation uses 2000 sampling steps and its 32- or 64-step performance degrades severely [2601.16220].

TarFlowLM takes a likelihood-based alternative. It encodes each token as a Gaussian component, models the latent sequence with transformer-conditioned autoregressive normalizing flows, and uses mixture-CDF or mixture-Rosenblatt transformations. Its Mix-d configuration reaches $1.30$ BPC on text8 and validation perplexity $22.64$ on OpenWebText, compared with $17.54$ for a conventional Transformer autoregressive baseline. It supports alternating flow directions, block-wise generation, and hierarchical decoding while preserving invertibility and exact continuous likelihood evaluation [2507.00425].

## 3. Architecture, conditioning, and generation

A conventional continuous FLM consists of a sequence encoder or embedding table, a bidirectional denoising network, a time-conditioning mechanism, and a terminal decoder. The denoiser receives the current continuous state and time and predicts either a clean representation, token probabilities, a velocity, or a finite-time flow map. The terminal decoder maps the final representation to vocabulary logits.

Most continuous FLMs use bidirectional processing because all positions are evolved jointly. This contrasts with autoregressive Transformers, whose causal attention and left-to-right decoding impose sequential dependence. In YAN, the latent flow is conditioned on a source sequence, and a lightweight decoder produces all target tokens in parallel. Its Transformer and Mamba variants use approximately 200M parameters and operate as non-autoregressive conditional language models [2604.15009].

Flow conditioning can be extended beyond source sequences. ELF uses self-conditioning, classifier-free guidance, and a shared denoiser-decoder. The same network operates in denoise mode for $t<1$ and decode mode at $t=1$. Classifier-free guidance combines conditional and unconditional vector fields, while training-time guidance allows a single inference pass. ELF reports that stochastic SDE-inspired sampling improves few-step quality relative to deterministic ODE sampling: at 64 steps, its generative perplexity is $19.72$ with SDE sampling compared with $26.62$ with ODE sampling [2605.10938].

Masked Language Flow Models introduce a mask embedding $m$ and separate the sequence into clean context positions and evolving masked positions. Masked coordinates follow a Brownian bridge from $m$ to their clean token embedding, whereas unmasked coordinates remain fixed. This produces a continuous flow conditioned on an arbitrary subset of clean tokens and supports prefix conditioning, infilling, and response generation [2606.27617].

At inference, MLFMs alternate between continuous bridge updates and discrete token promotion. If the posterior probability of a token exceeds $1-\varepsilon$, that token is fixed, its embedding replaces the continuous state, and subsequent flow updates condition on the committed token. With $\varepsilon=0.05$, promotion requires confidence of at least $0.95$. This mechanism combines joint continuous denoising with the conditional context supplied by resolved tokens.

The generation cost of an FLM is determined by the number of function evaluations rather than the sequence length alone. If an Euler solver uses $N$ steps, it requires $N$ denoiser evaluations, although all sequence positions can be processed in parallel. Flow maps seek to remove the numerical-integration requirement by directly learning

$$
X_{s,t}(x_s)=x_t.
$$

The distilled Flow Map Language Model FMLM reaches one-step generative perplexity $104.37$ on LM1B and $129.32$ on OpenWebText, with the paper reporting that one-step FMLM exceeds the quality of competing eight-step systems under the evaluated conditions [2602.16813].

## 4. Coupling, multimodality, and flow geometry

A central issue in FLMs is the preservation of dependencies among possible trajectories. If multiple source-target pairs pass through similar intermediate states, a single regression field may observe conflicting velocity targets. Squared-error flow matching averages them, producing a direction that may point toward a low-density region or incorrectly recouple source states with target states.

The Latent Flow Transformer identifies this problem in latent hidden-state distillation. It defines a Recoupling Ratio by comparing teacher pairings with an Optimal Transport pairing. Lower values indicate closer source-target alignment and fewer flow crossings. In Pythia-410M, layers $6$–$18$ have a reported Recoupling Ratio of $0$ for the sampled batch, whereas layers $0$–$6$ have $R=0.53$. This motivates compressing middle Transformer layers rather than early or late layers [2505.14513].

Flow Walking addresses paired-trajectory ambiguity by training a multi-step transport operator against endpoint reconstruction. Instead of regressing a local velocity at one interpolation point, it numerically walks from $x_0$ to $x_1$ through randomly selected intermediate times and minimizes the final endpoint error. With three training steps, Flow Walking produces curved trajectories that avoid intersections more effectively than standard flow matching. In Pythia-410M, Flow Walking achieves teacher-logit KL $0.254$ when replacing layers $6$–$12$ and $0.736$ when replacing layers $6$–$18$ [2505.14513].

MoE-FM generalizes this idea by modeling the conditional velocity distribution with multiple locally specialized vector fields:

$$
q_\psi(u^*\mid z_t,t)
=
\sum_{k=1}^K
\pi_k^\psi(z_t,t)
\mathcal N(u^*;u_{k,t}^\psi(z_t),\sigma^2I).
$$

A router selects or weights experts according to the current latent state and time. This avoids the mean-vector-field bias of vanilla flow matching when the conditional velocity distribution is multimodal. YAN uses six experts, token-level routing, and frozen expert selection over a trajectory. With approximately three Euler steps, it reports generation quality competitive with autoregressive and diffusion baselines, as well as measured inference-time ratios of approximately $40$–$50$ relative to the smaller autoregressive baselines and approximately $10^3$ relative to LLaDA at 1000 diffusion steps [2604.15009].

The geometry of the representation is therefore not an implementation detail. One-hot vectors make every pair of distinct tokens equally distant, while learned contextual embeddings and hyperspherical embeddings impose more structured relationships. S-FLM’s spherical geometry gives each token a direction and defines noise through geodesic rotation rather than Euclidean Gaussian displacement. ELF’s ablations similarly favor frozen contextual embeddings over non-contextual, Gaussian, jointly learned, or randomly initialized alternatives [2605.11125; 2605.10938].

## 5. Sampling, decoding, and distillation

### Conditional-mean versus posterior-predictive sampling

A standard FLM denoiser predicts token-wise posterior marginals. Their weighted embedding average is generally not a valid discrete sequence. Marginal-Conditioned Bridges identify this as a fundamental sampling issue: a conditional-mean sampler bridges toward a fractional simplex-valued endpoint, whereas the posterior-predictive sampler first samples a valid one-hot endpoint and then applies the analytic Ornstein–Uhlenbeck bridge.

The marginal-conditioned bridge samples each position from its FLM categorical posterior, constructs a valid one-hot sequence, and samples the next state from an endpoint-conditioned OU bridge. It uses the same number of model evaluations as the baseline sampler and supports temperature and nucleus sampling. Under exact posterior marginals, its factorization error is exactly the conditional multi-information among token positions:

$$
\operatorname{KL}(q_t\|q_t^I)
=
I(X_{0,1};\ldots;X_{0,L}\mid X_t).
$$

Thus, the method preserves token-wise posterior-predictive marginals while discarding residual cross-position dependence caused by replacing the joint posterior with a product of marginals [2605.13681].

### Self-conditioning and fixed-point flows

Self-conditioning supplies the denoiser with a previous clean-data estimate. Repeated application at a fixed flow state defines an iteration

$$
z^{j+1}=\hat D_t(x,z^j).
$$

If this map is contractive, it converges to a fixed point $z^\star$ satisfying

$$
z^\star=\hat D_t(x,z^\star).
$$

The fixed-point denoiser induces an autonomous flow velocity,

$$
b_t^\star(x)=\frac{D_t^\star(x)-x}{1-t},
$$

which defines an ordinary ODE and therefore a valid flow map. Self-conditioned sampling can be interpreted as one warm-started fixed-point iteration per flow step. Fixed-point distillation compresses the inner refinement iterations, while flow-map distillation compresses the outer flow-time trajectory. The resulting FMLM$^\star$ reports one-step generative perplexity $112.52$ with entropy $5.37$ on OpenWebText, and two-step generative perplexity $94.74$ with entropy $5.45$ [2607.00714].

### Verification and reasoning

Flow Reasoning Models use the flow dynamics as an internal verifier. A candidate solution is re-noised and re-solved; if it returns to itself, it is treated as dynamically stable. Stability-based selection reaches approximately $100\%$ on Sudoku-Shah and $95.9\%$ on Zebra, while FlowDPO suppresses self-mined confident wrong completions during training [2606.29150].

The method separates generator coverage from verifier selection. A stability verifier can select a correct candidate only if at least one correct candidate is generated. This distinction is important for structured tasks because naïve FLM sampling may converge confidently to globally inconsistent answers even when the model can recognize stable correct solutions.

Masked Language Flow Models address a related limitation by promoting confident tokens into clean context during generation. Their reported MT-Bench first-turn score is $2.27$, compared with $1.60$ for SMDM and $1.57$ for a similarly sized autoregressive baseline. Their GSM8K accuracy is $31.24\%$, below the reported SMDM and LLaMA-2 results, demonstrating that instruction following and mathematical reasoning do not necessarily improve together [2606.27617].

## 6. Reasoning, efficiency, and empirical evidence

FLMs are particularly competitive in few-step structured generation when continuous states preserve alternatives that discrete intermediate states would discard. The theoretical analysis in “Efficient Reasoning with Flow Language Models” decomposes the continuous state into a time-weighted superposition of complete candidate sequences. Earlier candidate support accumulates in the trajectory, and the current hard argmax can omit information that remains available to the Transformer through the continuous state [2610.09416].

Interventions support this interpretation. On Sudoku, removing non-top-1 candidate information reduces later recovery of correct digits. At denoising step $k=4$ on Maze15, a decoder operating on the raw continuous state reaches path-cell F1 $0.8080$, compared with $0.6614$ for a Top-2 representation and $0.5929$ for a hard token representation. The experiments do not establish that every retained alternative is useful, but they indicate that continuous states can preserve information that benefits later reasoning.

On Maze15, an $88.25$M-parameter FLM reaches $95\%$ sequence accuracy at 64 denoising steps, whereas MDLM requires $139.00$M parameters, a reported reduction of $36.5\%$. At one step, the same matched FLM obtains $95.9\%$ sequence accuracy compared with $49.8\%$ for MDLM. On Maze20 with 258.81M parameters, FLM reaches $71.4\%$ at one step and $91.3\%$ at four steps, compared with $35.6\%$ and $48.2\%$ for MDLM [2610.09416].

The advantage is task-dependent. On Sudoku-Extreme, FLM reaches $21.0\%$ at one step and $36.7\%$ at two steps, while enhanced discrete samplers eventually become stronger; at 256 steps, MDLM with confidence remasking reaches $62.3\%$, compared with $46.0\%$ for FLM. S-FLM similarly improves prior continuous FLMs on mathematical reasoning but remains below autoregressive and discrete-diffusion models under optimized low-temperature decoding [2605.11125].

For general text generation, reported results are heterogeneous. ELF obtains strong few-step generative perplexity on OpenWebText, FlowLM performs competitively on question generation and paraphrase, and FMLM achieves one-step results that exceed competing few-step discrete-diffusion models under the evaluated metrics. NFDM substantially narrows the likelihood gap with autoregressive modeling but does not achieve fast few-step sampling. YAN reports strong downstream results with approximately three flow steps but relies on latent regularization, task-specific fine-tuning, and oracle target lengths [2601.16220; 2605.10938; 2605.20199; 2604.15009].

Efficiency claims require careful qualification. FLMs replace token-by-token autoregressive computation or long diffusion chains with parallel sequence evaluations, but every flow step still requires a full neural-network forward pass. Guidance may require additional evaluations, bridge sampling introduces stochastic computation, and continuous states can be expensive at large sequence lengths or vocabulary sizes. Reported speedups are empirical and depend on hardware, batch size, sequence length, sampling budget, model size, and implementation.

## 7. Limitations, controversies, and research directions

FLMs do not automatically provide exact likelihoods, fast generation, or superior reasoning. Their principal limitations include:

- **Continuous-to-discrete mismatch**: continuous trajectories must eventually be quantized, and terminal decoding errors can produce repetitions, malformed outputs, or globally inconsistent solutions.
- **Factorized posterior limitations**: token-wise denoisers do not represent the full joint posterior. Marginal-conditioned bridges quantify the resulting loss through conditional multi-information, while richer joint endpoint models remain an open direction [2605.13681].
- **Representation dependence**: one-hot states are vocabulary-sized and geometrically weak; learned embeddings can collapse or be difficult to organize; hyperspherical states reduce latent cost but retain vocabulary-projection cost.
- **Solver dependence**: Euler integration error, step-count sensitivity, and sampler-specific behavior remain central. Some systems require 32, 64, 1024, or even 2000 steps for their strongest reported results.
- **Training cost**: flow models may require large teacher passes, learned forward processes, distillation, multiple fixed-point iterations, or large-scale continuous-state training.
- **Evaluation ambiguity**: generative perplexity measured by an external autoregressive model can reward repetition or fluency without guaranteeing correctness. Entropy, sequence accuracy, executable-task success, and task-specific verification are therefore necessary complementary metrics.
- **Reasoning scope**: strong results on mazes, Sudoku, or structured puzzles do not establish superior open-ended reasoning or general-purpose language modeling.
- **Scaling uncertainty**: many experiments use models from approximately 100M to 342M parameters, while broader deployment at billion-parameter scale, longer contexts, and large vocabularies remains unresolved.
- **Stability assumptions**: fixed-point flows require approximate contractivity, and reasoning systems assume that correct solutions are more dynamically stable than incorrect ones. Neither property is guaranteed for arbitrary tasks.
- **Autoregressive alternatives remain competitive**: latent depth compression preserves autoregressive decoding, while fully non-autoregressive FLMs face quality, sampling, and conditional-generation challenges.

Several research directions recur across the literature. These include improved coupling-aware flow matching, mixture or sparse-expert vector fields, learned and adaptive time schedules, spherical or semantically structured latent spaces, posterior-predictive sampling, masked-flow hybrids, flow-map and fixed-point distillation, adaptive step allocation, speculative decoding, and hardware-aware implementations. Other directions include training from scratch, scaling beyond current model sizes, reducing dependence on pretrained diffusion or autoregressive teachers, learning richer joint endpoint distributions, and combining continuous candidate superposition with discrete verification.

The emerging view is that FLMs are not a single architecture but a family of continuous transport approaches for language. Their strongest common property is the ability to maintain a jointly evolving sequence state before discrete commitment. Their principal research challenge is to convert that representational flexibility into reliable, efficient, and scalable generation without losing the global dependencies, verifiable correctness, and controllability provided by autoregressive or discrete methods.

Source: https://www.emergentmind.com/topics/flow-language-models-flms