TL;DR
Autoregressive language models generate text one token at a time, which is slow. Flow-based models can generate many tokens in parallel and be distilled for massive speed-ups, but until now they have mostly been proofs of concept rather than general-purpose language models. This paper introduces FLUNG 8B, a language flow model trained from scratch on 1 trillion open-source tokens that matches open-source discrete diffusion models on math, code, and instruction following—while generating up to 6.5 tokens per forward pass and distilling to a $13\times$ speed-up.
What Problem Does This Paper Address?
Flow matching and diffusion models dominate image, audio, and video generation, where data lives on continuous manifolds. Language, however, is discrete. Applying standard continuous flow recipes (like mean-squared error loss) directly to text embeddings causes the embeddings to collapse or makes the denoising task trivial.
Variational Flow Matching (VFM) fixes the objective by replacing the Gaussian observation model with a categorical one—predicting a distribution over vocabulary tokens at every noise level. Unlike autoregressive or masked discrete diffusion models, which commit irrevocably to tokens once emitted, a VFM model can revise every token in a sequence right up until the final step. Yet scaling VFM to a general-purpose 8B language model from scratch—without warm-starting from an autoregressive model—remained an open challenge.
Methods
The authors diagnose why naively porting image-flow recipes to language fails, and build a scalable recipe around four key pieces:
- Taming Embedding Norms & The Decodability Boundary: When token embeddings are left unconstrained, their squared norms grow $8\times$ during training. This inflates the signal-to-noise ratio (SNR) so much that even at $t = 0.9$ (almost pure noise), the model can trivially recover 71% of the tokens, causing cross-entropy loss to collapse and sampling to lock in prematurely.
Normalizing embeddings to a fixed radius $c$ stops the explosion, but prior work used $c = \sqrt{d_e}$, which still places the decodability boundary $t^\star$ (the noise level where nearest-vertex decoding breaks down) at $t^\star \approx 0.85$. By shrinking the radius to $c = 1.2$, the authors push $t^\star$ down to $\approx 0.19$, creating a wide, informative training band. They pair this with a logit-normal noise schedule centered on $t^\star$ (plus thin uniform tails) and Self-Flow (a dual-timestep EMA teacher loss).
- Semi-Autoregressive Block Training: Sequences are generated in blocks of $C$ tokens ($C=32$ in pre-training, $C=128$ in SFT) with block-causal attention. A variable first block ($r \sim \mathcal{U}\{1, \dots, C\}$) ensures that prompts of any length align with block boundaries seen during training.
- Two-Stage Distillation: The SFT teacher needs 256 forward passes per 128-token block. The authors first apply guidance distillation to halve the cost per step, then flow-map distillation to jump directly between distant timesteps—achieving up to a $13\times$ speed-up.
- Offline + Online RL: Because flow models lack tractable log-likelihoods, the authors use the model's cross-entropy energy as a proxy. They post-train with offline DPO (stabilized with an anchor loss) followed by online GRPO-style policy optimization.
Datasets
- Pre-training & Ablations: 360M-parameter ablations used 10.5B tokens of FineWeb-Edu. FLUNG 8B was pre-trained on ~0.82T open-source tokens, then mid-trained on 200B tokens primarily from the Dolmino collection (with pre-training replay).
- Supervised Fine-Tuning (SFT): 4.7B tokens of chat-formatted data covering code, math, science, and general instruction following.
- Evaluation: Generative benchmarks including GSM8K, MATH, HumanEval/HumanEval+, MBPP/MBPP+, IFEval, MT-Bench, SimpleQA, and PopQA, plus MAUVE and generative perplexity (GPT-2 Large) for ablations.
Key Insights and Ideas
- Normalization alone isn't enough; radius matters: Fixing embedding norms to $\sqrt{d_e}$ still leaves the model operating in a narrow, capacity-starved noise band. Shrinking the radius to $c=1.2$ forces the model to rely on its language prior rather than memorizing noisy inputs.
- Continuous flows handle parallel decoding better than discrete diffusion: In a controlled 1B-scale comparison with identical data and compute, FLUNG matches masked diffusion (MDM) at 1 token per step, but pulls ahead on 5 of 7 tasks at 4 tokens/step and all 7 tasks at 8 tokens/step.
- Online RL unlocks factuality: Using the negative cross-entropy energy as a log-likelihood proxy for online GRPO doesn't just boost math and code—it teaches the model calibrated abstention, slashing wrong SimpleQA answers from 97% to 33.6%.
Key Results
- Competitive with Discrete Diffusion, Faster Decoding: On 8B-scale benchmarks, FLUNG 8B matches or beats open-source discrete diffusion baselines (LLaDA 8B, LLaDA 1.5, Dream 7B) across math, code, and instruction following, while generating 2 to 4 tokens per forward pass (and 4.8 to 6.5 tokens/pass with early stopping).
- RL Gains: Post-training raises the 7-benchmark code/math mean from 41.4% (distilled) to 50.8% (DPO) to 56.8% (online RL), and boosts IFEval from 54.3% to 77.1%.
- Gap to Autoregressive: Despite these gains, FLUNG 8B still trails strong autoregressive models trained on much larger budgets, such as OLMo 3 7B.
Limitations and Future Work
- 2× Training Compute: Semi-autoregressive training packs both a clean context copy and a noisy supervised copy of every document, roughly doubling training compute per supervised token compared to autoregressive models.
- Fixed Block Sizes at Inference: While the first block varies, subsequent generation still uses fixed-size blocks; letting the model dynamically choose block sizes could improve efficiency.
- Scale & Schedule Search: FLUNG 8B was trained on 1T tokens (far less than frontier AR models), and the authors note that an independent grid search over $(c, \mu)$ might recover similar quality at $c = \sqrt{d_e}$.
Summary updated