Table of Contents
Towards Training Your Language Flow Model from Scratch
Flow models are typically trained with a squared error objective that quietly assumes a Gaussian observation model on the data. While that suits images, audio and video well, it is fundamentally misspecified when the underlying distribution is discrete or otherwise departs from Gaussianity. Variational flow matching (VFM) replaces the Gaussian observation model with a categorical one and trains flow models with a cross-entropy objective instead. Despite its theoretical promise, leveraging VFM for natural language modeling remains far from straightforward.
In this work, we give a scalable recipe for training language flow models from scratch, shaped around the noise threshold where a corrupted embedding starts revealing its token. With this recipe, we train an 8B language flow model that we call FLUNG (FLUx + laNGuage) on roughly 1T tokens of open-source data. FLUNG matches open-source discrete diffusion models of similar size across math, code, instruction following, and general chat while holding up under parallel decoding.
Performance Highlights
Language models usually buy speed with quality. While autoregressive models emit one token per forward pass, discrete diffusion can emit several at once. However, in a matched 1B comparison, they lose quality faster than a flow model as more tokens are decoded per step (Figure 7).
FLUNG denoises blocks of 128 tokens and generates 2 tok/fwd at 64 steps per block and up to 6.5 tok/fwd at 32 steps with early stopping. Against the teacher model, it cuts the number of forward passes by up to 13Γ.
As seen in Table 1, among open-source discrete diffusion models, FLUNG 8B matches or exceeds prior baselines across math, code, and instruction following. In particular, compared to iLLaDA 8B1, our model trails on MATH but matches or leads on GSM8K and coding benchmarks. On the open-ended chat benchmark MT-Bench under the same judge, FLUNG 8B performs on par with LLaDA2 and Dream3 and lags behind LLaDA 1.54 and iLLaDA 8B. Notably, most baselines generate one token per forward pass, whereas FLUNG 8B generates about two at 64 steps per block and about four at 32 steps while preserving most of the quality. Stopping a block early once its readout has stabilized raises this to 4.8 and 6.5 tokens per forward pass.
Compared to the concurrent Sigma 8B5, our model tolerates more aggressive parallel decoding. Sigmaβs performance degrades sharply from two to 3.6 tokens per forward pass. At two tokens per forward pass, Sigma outperforms FLUNG 8B on math and code, largely because it is warm-started from a strong autoregressive model and keeps an auxiliary autoregressive loss. In contrast, FLUNG 8B is pre-trained without autoregressive initialization or an auxiliary autoregressive loss. Finally, compared to autoregressive baselines trained on much larger budgets such as OLMo 3 7B6, our model still trails behind on most benchmarks by a clear gap.
| Model | Tok. | tok/fwd | GSM8K | MATH | HumanEval | HumanEval+ | MBPP | MBPP+ | IFEval | MT-Bench |
|---|---|---|---|---|---|---|---|---|---|---|
| Autoregressive | ||||||||||
| LLaMA3 8B7 | 15T | 1 | 67.5* | 29.6 | 57.9* | 54.9* | 55.0* | 60.8* | 49.7 | 7.02* |
| OLMo 3 7B6 | 6.1T | 1 | 92.6* | 87.3 | 83.5* | 80.5* | 68.6* | 60.2 | 85.6 | 8.14* |
| Discrete diffusion | ||||||||||
| LLaDA 8B2 | 2.3T | 1 | 79.1* | 31.9 | 40.9* | 36.0* | 41.0* | 50.5* | 62.2 | 5.81* |
| LLaDA 1.5 8B4 | 2.3T | 1 | 79.9* | 42.6 | 41.5* | 37.8* | 40.8* | 49.5* | 66.2 | 6.01* |
| iLLaDA 8B-thinking1 | 12T | 1 | 89.0 | 56.7 | 65.9 | 54.3* | 58.0 | 41.0* | 55.3* | 6.69* |
| Dream 7B3 | 18.6T | 1 | 81.0 | 39.2 | 58.5* | 53.0* | 57.2* | 60.3* | 62.5 | 5.84* |
| d1-LLaDA 8B8 | 2.3T | 2 | 82.1 | 40.2β | 37.8 | β | 44.7 | β | β | β |
| STP 8B9 | 2.3T | 2 | 81.0 | 36.2β | β | β | β | β | β | β |
| ReFusion 7B10 | 18T | β | 80.2 | 46.4 | 68.9 | β | 61.6 | β | β | β |
| Flow | ||||||||||
| Sigma 8B (8 / 4 steps)5 | β«2.3T | 2/3.6 | 89.2/68.1* | 68.8/32.3* | 75.0/63.4* | 72.4/61.0* | 58.9/49.9* | 63.3/56.3* | 45.2/33.1* | 4.69/2.30* |
| FLUNG 8B (64 steps) / +ES | 1T | 2/4.8 | 88.9/87.9 | 51.0/50.5 | 71.7/70.7 | 67.1/65.7 | 57.7/56.5 | 62.7/60.8 | 76.3/76.0 | 5.78/5.68 |
| FLUNG 8B (32 steps) / +ES | 1T | 4/6.5 | 89.1/88.5 | 50.3/49.7 | 70.5/70.3 | 65.9/65.7 | 56.8/56.1 | 62.5/61.9 | 76.1/75.6 | 5.64/5.71 |
Denoising Sneak Peek
FLUNG writes a response one 128-token block at a time. Every position of the block starts as Gaussian noise and is denoised jointly. It keeps refining its prediction at each step until the block is committed. Then, the next block starts from the prompt plus everything committed so far. FLUNG also supports early stopping where it commits the block being denoised if its argmax has not changed for consecutive steps.
The player below replays real traces from FLUNG 8B for six prompts, one tab each. Every frame is one denoising step: the live block shows the current argmax at each position, highlighted where it just changed, and the strip above it shows all 128 positions of the block. Short answers settle in a single block; the quartic solution takes four, and the multi-turn coding conversation is written turn by turn.
From Image Flows to Language Flows
Continuous diffusion for text dates back to Diffusion-LM11, CDCD12 and Plaid13. LangFlow14 later learned a Gumbel noise schedule and used self-conditioning15, and RePlaid16 found that continuous diffusion can scale on par with discrete diffusion. A continuous state also makes these models distillable into flow maps17181920, which skip ahead along the sampling trajectory and so promise larger speed-ups.
Very recently and concurrently with our work, Sigma5 scaled continuous diffusion over learned token embeddings to 8B parameters. However, they warm-started from a pre-trained autoregressive model and trained with an auxiliary autoregressive loss. Moreover, their diffusion loss was a mean-squared error that is prone to collapsing the token embeddings14. Indeed, they observed a collapse to a few effective dimensions and countered it with a uniformity regularizer adding complexity to training. In contrast, FLUNG has a simpler objective and is trained from scratch with a cross-entropy loss at every noise level, which is the natural choice for categorical data. Apart from this effort, prior models trained from scratch remained small21, and larger ones such as TESS 222 were adapted from autoregressive models.
FLUNG embeds each token and treats the stacked embeddings as a continuous state. Training is similar to prior continuous language diffusion work 1418 and the noisy state follows the linear (rectified-flow) path between clean embeddings and Gaussian noise2324:
A bidirectional transformer reads the noisy state and the noise level and predicts a categorical distribution over the vocabulary at every position, trained with cross-entropy against the clean tokens25. The expected embedding under that distribution defines the velocity that transports noise to data. Sampling integrates from pure noise at t = 1 to t = 0 and decodes each position by the argmax of its readout at the last step.
Text is generated semi-autoregressively in blocks of 128 tokens. Within a block, all positions are denoised jointly, so the number of network forward passes per block sets the cost.
Findings
The image recipe fails for language
Our starting point was the image-diffusion setup26 where the flow time comes from a logit-normal distribution, and the learned embedding table is left unconstrained, as is usual in language models. Without a constraint, the squared norm of the embedding rows grows 8Γ, in line with CDCD's12 finding that free embeddings grow until denoising is trivial. Thus, token recovery, the share of noised positions whose readout argmax is the clean token, reaches about 0.71 at t = 0.9, where the input is almost pure noise. At the same time, the cross-entropy there drops from 7.6 to 0.6, leaving the categorical task little gradient over most of the noise range. In sampling, the same effect appears in early commitment as the share of positions whose argmax flips from one Euler step to the next peaks near t = 1 and is close to zero below t = 0.85.
The embedding scale sets how hard denoising is
Normalizing embeddings is standard in continuous language models since it is an easy fix for the embedding norm explosion.
Unlike prior work, FLUNG keeps a learned embedding table but rescales every row to a fixed norm c:
Prior work normalizes to the typical norm of a Gaussian sample, c = (CDCD12, LangFlow14). RePlaid16 uses unit-norm rows with a learned noise schedule, and spherical approaches2728 replace the Gaussian noise with noise on the unit sphere. FLUNG keeps Gaussian noise and treats c as a free constant. Proposition 1 of the paper gives the decodability boundary t* as
Below t* the noisy input is trivially decodable, and above it, the model has to rely on the language prior. The embedding dimension barely moves t*, so one scale works across model sizes. For this setup (|V| = 151,936, de = 768), c = puts the boundary at t* β 0.85, whereas c = 1.2 puts it at t* β 0.19. In Figure 5b, we verifies this by decoding noisy embeddings to their nearest vertex for both scales, recovery collapses within a narrow band around t*, both for random unit rows and for the learned embeddings. Thus, c = confines informative training signal to the narrow band [t*, 1].
Training should focus where tokens become decodable
The hard part of the task, where the readout has to combine partial evidence with the language prior, sits at and just above t*. FLUNG therefore samples t from a logit-normal body centered there plus two thin uniform tails (s = 0.40, Ξ±hi = Ξ±lo = 0.05, thi = 0.55, tlo = 0.2) and moves the body with t* when c changes (Figure 6a). Under this schedule at c = 1.2, recovery at t = 0.9 holds at about 0.04 throughout training, rather than rising to 0.71 as in Figure 4b. A learned schedule in the style of LangFlow14, implemented in the same model, scores below the fixed schedule at c = , and both are well behind c = 1.2, the best scale in the ablation.
FLUNG also uses Self-Flow29 with its default settings. With probability 0.25, a position is noised at a second level (the dual timestep). A cosine loss, weighted 0.8, pulls the student's features after 30% of the blocks toward an EMA teacher's features after 70% of the blocks, and the teacher only sees the cleaner input.
Flows hold up better under parallel decoding
Trained under identical conditions at 1B, the flow model gives up much less quality than masked or uniform-noise discrete diffusion as decoding gets more parallel.
The comparison uses four 1B models: an autoregressive Llama-3-style baseline (AR), masked diffusion with LLaDA's objective2 (MDM), the same model with uniform-noise corruption (UDM), and a VFM trained with the FLUNG recipe. All four use the same transformer (24 blocks, width 1,536, 24 heads) and were trained on the same data. The diffusion models generate blocks of 128 tokens where MDM and UDM decode with confidence thresholding30 at Ο = 0.9 and the VFM uses a stochastic mean velocity sampler.
In parallel decoding, the main reason to use diffusion language models, FLUNG loses far less than either discrete model, leading on five of seven tasks at four tokens per step and on all seven at eight.
Scaling to 8B from Scratch
FLUNG 8B is trained from the ground up on open-source data only, with no pre-trained embeddings, language encoders or autoregressive models for initialization. The only external component we used was the Qwen3 tokenizer31.
To handle prompts, answers of any length and stopping, FLUNG generates semi-autoregressively, as in block diffusion32. Each training document appears twice, once clean and once noised, under block-causal attention. Specifically, we make the first block hold a random number of tokens r βΌ U{1, β¦, C} so prompts of every length during sampling end exactly on a block boundary seen during training.
| Setting | Pre-training | Mid-training | SFT |
|---|---|---|---|
| Model | 34 Γ 3584, 56 heads, 8B excl. embedding and head | ||
| Block size C | 32 | 32 | 128 |
| Positions per sequence | 4096 | 10,240 | 16,384 |
| Training budget | 0.82T tokens | 200B tokens | 4.7B supervised tokens |
| Learning rate | 3Γ10β»β΄, warmupβstableβdecay | 1.5Γ10β»β΄ β 0, linear | 2Γ10β»β΅, warmupβstableβdecay |
| EMA decay | 0.9999 | 0.9999 | 0.999 |
| Self-conditioning p | 0.5 | 0.5 | 0.5 |
| Self-flow | on | off | off |
Pre-training runs 500k steps with 32-token blocks on about 0.82T tokens, at up to 2048 tokens per sequence. Mid-training raises the sequence length to 5120 and adds 200B tokens for about 1T tokens in total.
SFT & Distillation
SFT starts from the mid-trained checkpoint and uses 4.7B tokens of chat data spanning code, math, science and general instruction following. Blocks grow to C = 128 tokens from here on.
The SFT teacher spends 256 forward passes per 128-token block since it relies on self-conditioning guidance at Ο = 1.5. Guidance distillation first trains a student to produce the guided prediction in one pass, which halves the cost per step. On all four math and code benchmarks it is within seed noise of the teacher. Flow-map distillation1718 then trains a second student from the guidance-distilled one. It caches the teacher's 128-step trajectory and learns to jump from a grid node ti straight to a later node tj, conditioned on the target time and trained with a KL divergence to the teacher's prediction at its last step into tj:
At 64 steps the distilled model retains most of the teacher's quality, and fewer steps trade quality for speed.
Post-Training
FLUNG post-trains the distilled model with reinforcement learning in two stages, using its cross-entropy energy in place of the intractable log-likelihood that DPO and GRPO rely on.
The energy. A flow model has no tractable log-likelihood. Therefore, we use its energy, i.e., its loss evaluated on a given answer, as a proxy. To compute the energy for a given answer y, we first split it into its B blocks of C = 128 tokens, noise each block's embeddings to a level drawn from the sampling grid. The energy is the average cross-entropy of its readout:
All blocks are scored in one parallel forward pass, each conditioned on the prompt and its clean preceding blocks. A low energy means the model reconstructs y easily from noise, so βEΞΈ(y) stands in for log ΟΞΈ(y), following the one-step estimate of d18 and the loss difference of Diffusion-DPO33.
Stage 1, DPO. For each prompt, a chosen and a rejected answer are mined from the model's own samples and graded by unit tests, a reference answer or an LLM judge. Like Diffusion-DPO33, which swaps the policy-reference log-likelihood ratio for a difference of training losses, FLUNG uses its energy E instead and adds an anchor on the chosen answer:
Without the anchor, DPO was unstable and suffered from likelihood displacement34. The offline stage lifts the seven-benchmark code and math mean from 41.4 to 50.8 and also improves instruction following and chat.
Stage 2, GRPO. Offline pairs stop reflecting the policy's answers as it drifts from the reference. Thus, reaching the best performance with DPO alone would need repeated rounds of resampling. Instead, an online stage samples a group of rollouts per prompt after each gradient step and scores them with unit tests, reference answers, constraint checkers or an LLM judge. As in the offline stage, the energy replaces the log-likelihood, log ΟΞΈ(y) β βEΞΈ(y), and the KL penalty is the k3 estimator applied to the energy drift from the reference:
Here Ai is the advantage of rollout i, and k(d) = exp(d) β d β 1 with weight Ξ· penalizes energy drift from the reference. This proved more stable and simpler to tune than Flow-GRPO35, which relies on per-step likelihoods of an SDE sampler. Online RL improves on the offline stage on every metric: the code and math mean reaches 56.8, IFEval goes from 68.6 to 77.1, and both chat scores rise. Factuality gains most, because the model learns to abstain instead of guessing: wrong SimpleQA answers fall from 97% to 34%, fabricated answers about fictitious entities from 100% to 10%, and almost every false premise is corrected.
Outlook
In this work, we lay out an end-to-end recipe for training language flow models from scratch and use it to train FLUNG 8B on roughly 1T tokens. Across the full lifecycle, from pre-training design and noise schedules to flow-map distillation, sampling behavior, and RL post-training, we show that a language flow model can match open-source discrete diffusion models across a broad set of benchmarks while holding up under more aggressive parallel decoding. Closing the remaining gap to strong autoregressive models will take further work, but our results are genuinely encouraging: continuous diffusion is already flexible and versatile enough to support the full modern post-training stack while keeping the benefits of parallel decoding and continuous refinement. We believe this paradigm has much more room to grow, and we are particularly excited about what it can unlock for unified multimodal models that can understand, plan, and generate.
References
- Shen Nie, Qiyang Min, Shaoxuan Xu, et al. Improved Large Language Diffusion Models. arXiv preprint arXiv:2606.25331, 2026.
- Shen Nie, Fengqi Zhu, Zebin You, et al. Large language diffusion models. NeurIPS, 2025.
- Jiacheng Ye, Zhihui Xie, Lin Zheng, et al. Dream 7b: Diffusion large language models. arXiv preprint arXiv:2508.15487, 2025.
- Fengqi Zhu, Rongzhen Wang, Shen Nie, et al. LLaDA 1.5: Variance-Reduced Preference Optimization for Large Language Diffusion Models. ACL, 2026.
- Zhihan Yang, Wei Guo, Jean-Marie Lemercier, et al. Large Language Continuous Diffusion Models. arXiv preprint arXiv:2610.02665, 2026.
- Team Olmo, Allyson Ettinger, Amanda Bertsch, et al. Olmo 3. arXiv preprint arXiv:2512.13961, 2025.
- Aaron Grattafiori, Abhimanyu Dubey, Abhinav Jauhri, et al. The Llama 3 Herd of Models. arXiv preprint arXiv:2407.21783, 2024.
- Siyan Zhao, Devaansh Gupta, Qinqing Zheng, et al. d1: Scaling Reasoning in Diffusion Large Language Models via Reinforcement Learning. NeurIPS, 2025.
- Jiawei Liu, Xiting Wang, Yuanyuan Zhong, et al. Efficient and Stable Reinforcement Learning for Diffusion Language Models. arXiv preprint arXiv:2602.08905, 2026.
- Jia-Nan Li, Jian Guan, Wei Wu, et al. ReFusion: A Diffusion Large Language Model with Parallel Autoregressive Decoding. ICLR, 2026.
- Xiang Lisa Li, John Thickstun, Ishaan Gulrajani, et al. Diffusion-LM Improves Controllable Text Generation. NeurIPS, 2022.
- Sander Dieleman, Laurent Sartran, Arman Roshannai, et al. Continuous diffusion for categorical data. arXiv preprint arXiv:2211.15089, 2022.
- Ishaan Gulrajani, Tatsunori B. Hashimoto. Likelihood-Based Diffusion Language Models. NeurIPS, 2023.
- Yuxin Chen, Chumeng Liang, Hangke Sui, et al. LangFlow: Continuous Diffusion Rivals Discrete in Language Modeling. NeurIPS, 2026.
- Ting Chen, Ruixiang Zhang, Geoffrey Hinton. Analog Bits: Generating Discrete Data using Diffusion Models with Self-Conditioning. ICLR, 2023.
- Zhihan Yang, Wei Guo, Shuibai Zhang, et al. Continuous Diffusion Scales Competitively with Discrete Diffusion for Language. NeurIPS, 2026.
- Daan Roos, Oscar Davis, Floor Eijkelboom, et al. Categorical flow maps. ICML, 2026.
- Peter Potaptchik, Jason Yim, Adhi Saravanan, et al. Discrete flow maps. arXiv preprint arXiv:2604.09784, 2026.
- Chanhyuk Lee, Jaehoon Yoo, Manan Agarwal, et al. Flow map language models: One-step language modeling via continuous denoising. NeurIPS, 2026.
- Jaehoon Yoo, Wonjung Kim, Floor Eijkelboom, et al. Self-conditioned Flow Map Language Models via Fixed-point Flows. arXiv preprint arXiv:2607.00714, 2026.
- Oscar Davis, Anastasiia Filippova, Pierre Ablin, et al. Scaling Categorical Flow Maps. arXiv preprint arXiv:2605.07820, 2026.
- Jaesung Tae, Hamish Ivison, Sachin Kumar, et al. TESS 2: A Large-Scale Generalist Diffusion Language Model. Proceedings of the 63rd Annual Meeting of the Association for Computational Linguistics (Volume 1: Long Papers), 2025.
- Xingchao Liu, Chengyue Gong, Qiang Liu. Flow Straight and Fast: Learning to Generate and Transfer Data with Rectified Flow. ICLR, 2023.
- Yaron Lipman, Ricky T. Q. Chen, Heli Ben-Hamu, et al. Flow Matching for Generative Modeling. ICLR, 2023.
- Floor Eijkelboom, Grigory Bartosh, Christian A Naesseth, et al. Variational flow matching for graph generation. NeurIPS, 2024.
- Patrick Esser, Sumith Kulal, Andreas Blattmann, et al. Scaling rectified flow transformers for high-resolution image synthesis. ICML, 2024.
- Jannis Chemseddine, Gregor Kornhardt, Gabriele Steidl. Spherical Flows for Sampling Categorical Data. NeurIPS, 2026.
- Justin Deschenaux, Caglar Gulcehre. Language Modeling with Hyperspherical Flows. TMLR, 2026.
- Hila Chefer, Patrick Esser, Dominik Lorenz, et al. Self-Supervised Flow Matching for Scalable Multi-Modal Synthesis. ICML, 2026.
- Chengyue Wu, Hao Zhang, Shuchen Xue, et al. Fast-dLLM: Training-free Acceleration of Diffusion LLM by Enabling KV Cache and Parallel Decoding. ICLR, 2026.
- An Yang, Anfeng Li, Baosong Yang, et al. Qwen3 Technical Report. arXiv preprint arXiv:2505.09388, 2025.
- Marianne Arriola, Aaron Gokaslan, Justin T. Chiu, et al. Block Diffusion: Interpolating Between Autoregressive and Diffusion Language Models. ICLR, 2025.
- Bram Wallace, Meihua Dang, Rafael Rafailov, et al. Diffusion Model Alignment Using Direct Preference Optimization. CVPR, 2024.
- Noam Razin, Sadhika Malladi, Adithya Bhaskar, et al. Unintentional Unalignment: Likelihood Displacement in Direct Preference Optimization. ICLR, 2025.
- Jie Liu, Gongye Liu, Jiajun Liang, et al. Flow-GRPO: Training Flow Matching Models via Online RL. NeurIPS, 2025.
Citation
Paper: arXiv:2612.06003.
@article{abdessaied2026flung,
title = {Towards Training Your Language Flow Model from Scratch},
author = {Adnen Abdessaied and Ravichandra Addanki and Axel Sauer and Dustin Podell and Robin Rombach},
journal = {arXiv preprint arXiv:2612.06003},
year = {2026}
}