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 = de\sqrt{d_e}de (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 ded_ede barely moves t, so one scale works across model sizes. For this setup (|V| = 151,936, de = 768), c = de\sqrt{d_e}de 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 = de\sqrt{d_e}de 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 = de\sqrt{d_e}de, 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.