NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Posterior Refinement: Fast Language Generation via Any-Order Flow Maps

Manan Agarwal, Sheel Shah, Chanhyuk Lee, Jaehoon Yoo, Jerry Huang, Seunghoon Hong, Aditi Raghunathan, Jinwoo Kim, Nicholas M. BoffiarXiv 2026

TL;DR

This paper introduces FMLM+, a generative framework that combines the rapid, few-step generation of Flow Map Language Models with the flexible, any-order text editing capabilities of Masked Diffusion Models. By leveraging a novel inference strategy called Posterior Refinement, the model evaluates token consistency against the entire generated sequence after the fact, allowing it to adaptively self-correct errors. The result is a non-autoregressive language model that matches or exceeds strong diffusion baselines while requiring up to 32× fewer function evaluations.

What Problem Does This Paper Address?

Standard autoregressive (AR) language models generate text token-by-token from left to right. While highly effective, this sequential bottleneck makes inference slow and computationally expensive for long sequences.

Non-autoregressive (NAR) alternatives, like Masked Diffusion Models (MDMs), attempt to generate multiple tokens in parallel. However, MDMs suffer from factorization error—because they predict tokens independently at each step, their outputs often collapse or become incoherent when generating large blocks of text simultaneously. Conversely, Flow Map Language Models (FMLMs) solve this by modeling the joint transport of the entire sequence, enabling high-quality generation in very few steps (even a single step). Unfortunately, FMLMs lack the flexibility of MDMs; they cannot easily keep a subset of good tokens and regenerate the rest, which is a crucial primitive for iterative text refinement.

Methods

The authors bridge this gap with FMLM+, which equips continuous flow maps with masking-style noise schedules.

  1. FMLM+ Training: FMLM+ lifts the standard FMLM noising process to a masking-style design. During training, a random subset of tokens is kept completely clean (acting as context), while the rest are corrupted with continuous Gaussian noise. The model learns to jointly transport the noisy tokens back to their clean one-hot representations.
  2. Posterior Refinement (PR): Because FMLM+ predicts the entire sequence jointly, it can score the global consistency of each token a posteriori (conditioned on the full draft). At inference time, the model generates a complete candidate sequence in parallel, identifies low-confidence tokens (where the model's categorical distribution has high rounding error), re-masks/re-noises only those problematic tokens, and regenerates them.
  3. Leveraging Pretrained MDMs: To avoid training from scratch, the authors show that the MDM objective is a boundary case of the FMLM+ objective. They accelerate training by initializing FMLM+ weights directly from pretrained MDMs and using the MDM as a distillation teacher.
Figure 2: Posterior Refinement with FMLM+. By evaluating token consistency against the full generated sequence, FMLM+ effectively identifies its own errors. Crucially, incorrect tokens consistently form a subset of low-confidence generations, allowing Posterior Refinement to reliably filter and revise errors.

Datasets

The authors evaluated FMLM+ across four diverse benchmarks:

  • TinyStories: A dataset of short, synthetic stories used for unconditional language generation.
  • OpenWebText: An open-source replication of the WebText corpus used to train GPT-2, testing longer-range unconditional generation.
  • TinyGSM / GSM8K: Grade-school math word problems used to evaluate conditional reasoning capabilities.
  • Sudoku: A structured constraint satisfaction task used to test generation under strict multi-modal rules.

Key Insights and Ideas

  • A Priori vs. A Posteriori Confidence: Traditional MDMs rely on a priori confidence—they estimate how certain a token is based only on the currently unmasked context, without knowing what will be generated elsewhere. FMLM+ unlocks a posteriori confidence, evaluating how well a token fits into the entire completed draft.
  • Disentangling Uncertainty: MDMs often conflate aleatoric uncertainty (inherent randomness in the data) with epistemic uncertainty (the model's internal confusion). FMLM+ trajectories naturally surface true epistemic uncertainty, concentrating low-confidence scores precisely around decision boundaries and errors.
FMLM+ captures epistemic uncertainty near decision boundaries, whereas a-priori methods remain flat.
  • Mechanistic Weight Adaptation: Surprisingly, initializing FMLM+ with an MDM trained on discrete [MASK] tokens works exceptionally well for continuous Gaussian noise. The authors discovered that the model's adaptive layer normalization (adaLN) automatically maps pure Gaussian noise at $t=0$ onto the exact internal representations the teacher model used for [MASK] tokens.

Key Results

FMLM+ with Posterior Refinement consistently shifts the speed-quality tradeoff curve for non-autoregressive generation:

  • Massive Speedups: On the GSM8K reasoning benchmark, FMLM+ achieved 19.0% accuracy using just 32 Number of Function Evaluations (NFEs), outperforming the discrete MDLM baseline which required 1024 NFEs to achieve 18.0% accuracy.
  • Constraint Satisfaction: On Hard Sudoku puzzles, FMLM+ achieved 71.2% accuracy with only 4 NFEs, completely bypassing the catastrophic quality collapse that standard diffusion models experience when sampling multiple tokens at once.
  • Language Modeling Quality: On OpenWebText and TinyStories, FMLM+ matched or surpassed the generation perplexity of competitive continuous and discrete diffusion baselines while utilizing 8× to 32× fewer evaluation steps.
Figure 1: Iterative refinement. FMLM+ unlocks self-correction capabilities, outper- forming all diffusion baselines with 1024 func- tion evaluations using as few as 32 rounds of Posterior Refinement.

Limitations and Future Work

While promising, the authors note several limitations:

  • Scale: The experiments were conducted on a relatively small scale with smaller models and partially synthetic datasets. Testing scalability on billion-parameter models is an open next step.
  • Rigid Commits: The current implementation of Posterior Refinement holds high-confidence tokens fixed once they are committed. If the model makes an early high-confidence error, it cannot currently backtrack and undo it.
  • Flow Variants: The method relies strictly on a progressive self-distillation objective; alternative flow formulations (like Lagrangian or Mean Flow variants) remain unexplored.

Summary updated

BibTeX
@misc{agarwal2026posterior,
  author = {Manan Agarwal and Sheel Shah and Chanhyuk Lee and Jaehoon Yoo and Jerry Huang and Seunghoon Hong and Aditi Raghunathan and Jinwoo Kim and Nicholas M. Boffi},
  title = {{Posterior Refinement: Fast Language Generation via Any-Order Flow Maps}},
  year = {2026},
  eprint = {2606.24773},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.24773},
}
Figure