Create and explore imaginative 3D worlds with our new product Dreamfield (opens in a new tab)
Papers
Topics
Authors
Recent
Search
2000 character limit reached

Flow Language Models (FLMs)

Updated 14 October 2026
  • Flow Language Models (FLMs) are continuous transport models that generate text sequences by transporting initial distributions to target language distributions through learned velocity fields or flow maps, improving on traditional autoregressive models by maintaining joint interactions among all sequence positions.
  • FLMs evolve a continuous representation of a sequence, avoiding the loss of inter-token dependencies typically found in discrete diffusion models, making them particularly effective for low sampling budgets. Examples include latent-the death-compression operators, continuous flow-matching, and latent normalizing-flow models.
  • FLMs enhance efficiency and reasoning through mechanisms like self-conditioning, fixed-point flows, and marginal-conditioned sampling, enabling tasks such as few-step structured generation and maintaining accessible alternatives in continuous states for stronger reasoning performance

Flow LLMs (FLMs) are generative LLMs that represent text generation as continuous transport from a simple initial distribution to a distribution of language sequences. Unlike autoregressive LLMs, 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 LLMs, 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

dztdt=uθ(zt,t),\frac{d z_t}{dt}=u_\theta(z_t,t),

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

zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,

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

FLMs differ from discrete diffusion LLMs 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:

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 (Zhang et al., 8 Aug 2025).

2. Continuous representations and flow-matching objectives

Euclidean one-hot representations

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

p0p_01

where p0p_02 is Gaussian noise and p0p_03 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 p0p_04 is the predicted clean representation, the velocity is reconstructed as

p0p_05

Since each clean position is a vocabulary basis vector, p0p_06 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 p0p_07 without reparameterization to p0p_08 with the proposed decoding-error schedule; the complete FLM reaches p0p_09 at 1024 sampling steps (Lee et al., 18 Feb 2026).

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 p1p_10 and converts it to a velocity:

p1p_11

The intermediate states remain unrestricted continuous embeddings, and tokenization is deferred to a shared terminal denoising-decoding network. ELF reports a generative perplexity of p1p_12 with 32 stochastic flow steps on OpenWebText, using a 105M-parameter model (Hu et al., 11 May 2026).

FlowLM adapts a pretrained continuous diffusion LLM 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 p1p_13, compared with p1p_14 for 2000-step DiffuSeq; on paraphrase generation, three-step FlowLM obtains BLEU p1p_15 (Zhang et al., 6 Apr 2026).

Hyperspherical representations

S-FLM replaces vocabulary-sized one-hot states with normalized token embeddings on the unit hypersphere p1p_16. A token is represented by

p1p_17

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:

p1p_18

S-FLM avoids materializing an p1p_19 noisy state, reducing the latent-state cost from approximately uθu_\theta0 to uθu_\theta1, apart from the vocabulary projection. On TinyGSM, top-1 velocity reaches uθu_\theta2 accuracy, compared with approximately uθu_\theta3 for the prior FLM, although autoregressive and discrete-diffusion systems remain stronger at optimized low temperature (Deschenaux et al., 11 May 2026).

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

uθu_\theta4

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 uθu_\theta5 bits per character on ROCStories, close to the GPT-J value of uθu_\theta6, but its best reported generation uses 2000 sampling steps and its 32- or 64-step performance degrades severely (Midavaine et al., 7 Jan 2026).

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 uθu_\theta7 BPC on text8 and validation perplexity uθu_\theta8 on OpenWebText, compared with uθu_\theta9 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 (Zhang et al., 1 Jul 2025).

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 LLMs (Li, 16 Apr 2026).

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 zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,0 and decode mode at zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,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 zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,2 with SDE sampling compared with zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,3 with ODE sampling (Hu et al., 11 May 2026).

Masked Language Flow Models introduce a mask embedding zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,4 and separate the sequence into clean context positions and evolving masked positions. Masked coordinates follow a Brownian bridge from zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,5 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 (Azangulov et al., 26 Jun 2026).

At inference, MLFMs alternate between continuous bridge updates and discrete token promotion. If the posterior probability of a token exceeds zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,6, that token is fixed, its embedding replaces the continuous state, and subsequent flow updates condition on the committed token. With zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,7, promotion requires confidence of at least zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,8. 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 zt=(1−t)z0+tz1,z_t=(1-t)z_0+t z_1,9 steps, it requires z1−z0z_1-z_00 denoiser evaluations, although all sequence positions can be processed in parallel. Flow maps seek to remove the numerical-integration requirement by directly learning

z1−z0z_1-z_01

The distilled Flow Map LLM FMLM reaches one-step generative perplexity z1−z0z_1-z_02 on LM1B and z1−z0z_1-z_03 on OpenWebText, with the paper reporting that one-step FMLM exceeds the quality of competing eight-step systems under the evaluated conditions (Lee et al., 18 Feb 2026).

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 z1−z0z_1-z_04–z1−z0z_1-z_05 have a reported Recoupling Ratio of z1−z0z_1-z_06 for the sampled batch, whereas layers z1−z0z_1-z_07–z1−z0z_1-z_08 have z1−z0z_1-z_09. This motivates compressing middle Transformer layers rather than early or late layers (Wu et al., 20 May 2025).

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 t=0t=00 to t=0t=01 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 t=0t=02 when replacing layers t=0t=03–t=0t=04 and t=0t=05 when replacing layers t=0t=06–t=0t=07 (Wu et al., 20 May 2025).

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

t=0t=08

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 t=0t=09–t=1t=10 relative to the smaller autoregressive baselines and approximately t=1t=11 relative to LLaDA at 1000 diffusion steps (Li, 16 Apr 2026).

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 (Deschenaux et al., 11 May 2026, Hu et al., 11 May 2026).

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:

t=1t=12

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 (Azangulov et al., 13 May 2026).

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

t=1t=13

If this map is contractive, it converges to a fixed point t=1t=14 satisfying

t=1t=15

The fixed-point denoiser induces an autonomous flow velocity,

t=1t=16

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 FMLMt=1t=17 reports one-step generative perplexity t=1t=18 with entropy t=1t=19 on OpenWebText, and two-step generative perplexity R∣V∣\mathbb R^{|\mathcal V|}0 with entropy R∣V∣\mathbb R^{|\mathcal V|}1 (Yoo et al., 1 Jul 2026).

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 R∣V∣\mathbb R^{|\mathcal V|}2 on Sudoku-Shah and R∣V∣\mathbb R^{|\mathcal V|}3 on Zebra, while FlowDPO suppresses self-mined confident wrong completions during training (Helbling et al., 28 Jun 2026).

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 R∣V∣\mathbb R^{|\mathcal V|}4, compared with R∣V∣\mathbb R^{|\mathcal V|}5 for SMDM and R∣V∣\mathbb R^{|\mathcal V|}6 for a similarly sized autoregressive baseline. Their GSM8K accuracy is R∣V∣\mathbb R^{|\mathcal V|}7, below the reported SMDM and LLaMA-2 results, demonstrating that instruction following and mathematical reasoning do not necessarily improve together (Azangulov et al., 26 Jun 2026).

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 LLMs” 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 (Bai et al., 7 Oct 2026).

Interventions support this interpretation. On Sudoku, removing non-top-1 candidate information reduces later recovery of correct digits. At denoising step R∣V∣\mathbb R^{|\mathcal V|}8 on Maze15, a decoder operating on the raw continuous state reaches path-cell F1 R∣V∣\mathbb R^{|\mathcal V|}9, compared with LL0 for a Top-2 representation and LL1 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 LL2M-parameter FLM reaches LL3 sequence accuracy at 64 denoising steps, whereas MDLM requires LL4M parameters, a reported reduction of LL5. At one step, the same matched FLM obtains LL6 sequence accuracy compared with LL7 for MDLM. On Maze20 with 258.81M parameters, FLM reaches LL8 at one step and LL9 at four steps, compared with p0p_000 and p0p_001 for MDLM (Bai et al., 7 Oct 2026).

The advantage is task-dependent. On Sudoku-Extreme, FLM reaches p0p_002 at one step and p0p_003 at two steps, while enhanced discrete samplers eventually become stronger; at 256 steps, MDLM with confidence remasking reaches p0p_004, compared with p0p_005 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 (Deschenaux et al., 11 May 2026).

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 (Midavaine et al., 7 Jan 2026, Hu et al., 11 May 2026, Zhang et al., 6 Apr 2026, Li, 16 Apr 2026).

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 (Azangulov et al., 13 May 2026).
  • 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.

Topic to Video (Beta)

No one has generated a video about this topic yet.

Whiteboard

No one has generated a whiteboard explanation for this topic yet.

Follow Topic

Get notified by email when new papers are published related to Flow Language Models (FLMs).