Black Forest Labs' FLUNG 8B: a language flow model trained from scratch, distilled to 13x speed-up

Towards Training Your Language Flow Model from Scratch

Adnen Abdessaied, Ravichandra Addanki, Axel Sauer, Dustin Podell, Robin Rombach

cs.CL

2026-12-04

Black Forest Labs trains FLUNG 8B, a variational flow matching language model from scratch on 1T open tokens, matching discrete diffusion baselines and distilling to 13x speed-ups.

What problem this solves

Autoregressive models emit one token at a time, and decoding speed is the ceiling. Discrete diffusion (the masked-diffusion line behind LLaDA and Dream) generates several tokens per step, but every emitted token is irrevocable, so early mistakes accumulate. A third route, variational flow matching (VFM), embeds tokens in a continuous space, adds Gaussian noise, and denoises with a categorical readout; every position stays revisable until the final step. That property also lets it inherit the distillation machinery of continuous flows and push sampling costs way down.

Before this work the route was a proof of concept: small models, narrow evaluations (translation, summarization, unconditional sample quality), no evidence it could serve as a general-purpose language model. Black Forest Labs, the team behind Stable Diffusion and FLUX, answers with FLUNG 8B: open data only, no pre-trained initialization (the sole external piece is a Qwen3 tokenizer), weights released.

Method

The paper first diagnoses why the image-flow recipe collapses on language. Unconstrained embedding row norms grow 8x during training, which inflates the effective signal-to-noise ratio at every noise level: at t = 0.9, nearly pure noise, token recovery still reaches 0.71 and the cross-entropy falls from 7.6 to 0.6, so most of the noise range offers no gradient. At sampling time the model commits prematurely; the argmax only changes above t = 0.85.

The fix is threefold:

In the ablations, LangFlow-style learned noise schedules score below the fixed schedule at the same radius, and both fall well short of c = 1.2.

Generation is semi-autoregressive in the block-diffusion style: blocks of fixed size are denoised in parallel, blocks proceed left to right. One twist: the first block's length is drawn uniformly from 1 to C during training, so prompts of any length end on a boundary the model has seen. The 8B model trains on 0.82T tokens, then 200B tokens of mid-training at 5,120 context, then SFT on 4.7B tokens.

Distillation runs in two stages: a student first learns to reproduce the teacher's self-conditioned guided prediction in a single pass (the teacher needs 256 passes per 128-token block), halving per-step cost; flow-map distillation then has the student jump between distant nodes of the cached teacher trajectory. RL has two stages too: DPO uses the cross-entropy energy as a log-likelihood proxy with an anchor term against likelihood displacement, and the online stage runs GRPO-style updates with the negative energy as proxy, rewarded by unit tests, reference answers, or an LLM judge.

Results

Pre-trained models, head to head (FLUNG saw 1T tokens):

ModelTokensGSM8KMATHHumanEvalMBPP
FLUNG 8B1T74.2439.7441.5035.64
LLaDA 8B2.3T70.3431.4435.4040.04
Dream 7B18.6T77.2839.6457.9056.24

With 1T versus 18.6T tokens, FLUNG matches Dream on MATH (Dream is also initialized from Qwen2.5). On code the gap to Dream is large, and it loses MBPP to LLaDA.

The stronger evidence is the controlled 1B comparison with identical data, tokenizer, and budget. The autoregressive model leads every diffusion variant on all seven tasks. At one token per step, VFM and masked diffusion are even (23.3 vs 24.1 average). At four tokens per step VFM takes five of seven tasks; at eight, all seven. Slow degradation under parallelism is the core advantage over discrete diffusion.

At inference, 64 steps yield about two tokens per forward pass and 32 steps about four; early stopping (drop a block once its argmax holds for four consecutive steps) lifts this to 4.8 and 6.5, while most diffusion baselines sit at one. The distilled sampler needs up to 13x fewer forward passes, and the guidance-distilled student tracks its teacher (GSM8K 42.9 vs 43.3, HumanEval 81.8 vs 82.3). The two RL stages lift the seven-benchmark code/math mean from 41.4 through 50.8 to 56.8, with the online stage raising IFEval from 68.6 to 77.1. Factuality gains are the largest: wrong SimpleQA answers fall from 97% to 34%, fabrications about fictitious entities from 100% to 10%.

The concurrent Sigma 8B is stronger on math and code at two tokens per pass (warm-started from an autoregressive model, with an auxiliary AR loss), but degrades sharply by 3.6; FLUNG decays far more gracefully. Against OLMo 3 7B, a clear gap remains on most benchmarks.

Why it matters

This is the first language flow model to run the full pipeline, from pre-training to online RL, at general-purpose 8B scale with an entirely open recipe. The decodability-boundary analysis transfers on its own: it turns the failure of the image recipe into a computable quantity, giving later work a principled handle on embedding radius and noise schedule instead of a blind sweep. For practitioners, 6.5 tokens per forward pass with quality mostly intact is a real throughput gain, and the energy-proxy recipe shows DPO and GRPO both work without a tractable likelihood. The framing still matters: FLUNG matches discrete diffusion, not autoregression.

Limitations

The paper lists four. Semi-autoregressive training stores every document twice, clean and noisy, roughly doubling training compute per supervised token relative to AR. Sampling still denoises fixed-size blocks; adaptive block sizes are left to future work. The 1T-token budget is far below modern scale, so how close flow models can get at matched compute is untested. And the embedding-scale ablation does not fully separate the radius c from schedule parameterization, with the uniform tails held fixed in t.

Two more from this read. The 13x figure counts forward passes against the model's own full sampler, not throughput against AR baselines. And the advantage is conditional: FLUNG trails LLaDA 1.5 and iLLaDA on MT-Bench and Sigma at low parallelism; the edge appears when parallel decoding gets aggressive.

Terms

Source

What people are saying

Related papers

All paper explainers