arXiv:2610.33811cs.AIOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.33811

Rectified Language Flow

Baiyu Su, Runlong Liao, Lizhang Chen, Qiang Liu

Baiyu Su ∗^{*}, Runlong Liao ∗^{*}, Lizhang Chen †^{\dagger}, Qiang Liu

The University of Texas at Austin

Continuous-state flow and diffusion models offer a promising approach to fast, parallel language generation, but matching the generation quality of autoregressive models remains challenging. We present Rectified Language Flow (ReLF), a language model that generates text by transporting noise to token embeddings using rectified flow. ReLF combines several complementary design choices: fixed token embeddings constructed with Hellinger–SVD, self-conditioning guidance trained with cross-entropy, and regularized reflow for few-step generation. We further introduce singular logits, which combine an analytically computed term that drives commitment to a valid token embedding as noise vanishes with a bounded neural residual that learns contextual token preferences. With 64 function evaluations on OpenWebText, ReLF achieves lower generative perplexity than autoregressive baselines at matched diversity across all three model sizes tested, while also outperforming prior continuous flow methods in this setting. After two reflow rounds, ReLF still outperforms autoregressive baselines with 16 function evaluations while generating 1,024-token sequences 15–19× faster at batch size 1.

Figure

(a) 64 NFE

Batch 64 (throughput)

(b) Wall-clock speedup

Figure 1 | (a) Quality–diversity Pareto frontiers for ReLF and ELF [1] at 64 NFE, with AR baselines; curves are traced by varying guidance scale for flows and temperature for AR. ReLF improves both metrics over same-size ELF models. ReLF-Large reaches Generative PPL 17.3 at entropy 5.51, close to real text (17.3, 5.49). (b) Wall-clock speedup over same-size AR models for 1,024-token generation on one GPU. With 16 NFE after two reflow rounds, ReLF achieves lower Generative PPL than these AR models at similar entropy.

∗^{*}Equal contribution. †^{\dagger}Correspondence: ☑ lzchen@utexas.edu

Website

1. Introduction

Parallel text generation can reduce the sequential cost of autoregressive (AR) decoding. Flow and diffusion models take two approaches: discrete-state models update token identities, whereas continuous-state models evolve real-valued representations decoded into tokens. Discrete approaches have attracted substantial attention through large-scale diffusion language modeling [2–4]. Building on early continuous text diffusion [5, 6], continuous-state approaches are also gaining momentum, with recent developments in embedding-space modeling and few-step generation [1, 7].

Continuous formulations are attractive for two reasons. First, they are flexible: all positions evolve jointly before committing to tokens, so a model transforming noise across the whole sequence can, in principle, capture inter-token dependencies in a single evaluation, the basis for one-step generation [7]. Second, they inherit image, audio, and video generation tools, namely ODE/SDE samplers, guidance, and trajectory straightening, for controlling generation and accelerating sampling [8, 9].

However, turning these advantages into effective language models raises three design challenges: learning continuous dynamics from categorical supervision; reliably recovering tokens at the flow's end; and designing token embeddings whose geometry supports corruption and denoising. Prior work explored auxiliary objectives [5, 6], encoder–decoder networks [10], and vocabulary-sized simplex representations [7, 11]. We seek a simple continuous-flow formulation that addresses them while generating high-quality, diverse text with few function evaluations.

Results. We present Rectified Language Flow (ReLF), a rectified-flow language model that generates token sequences along continuous embedding trajectories from noise. ReLF predicts a token posterior at each position and is trained only with cross-entropy. The velocity field is computed from the posterior-weighted mean of the token embeddings. Our OpenWebText experiments show:

• Generation quality at 64 function evaluations. ReLF outperforms same-size AR baselines and Embedded Language Flows (ELF) [1] across all evaluated model sizes. ReLF-Small achieves a generative perplexity of 24.1 at an entropy of 5.45 nats, compared with 27.7 at 5.43 for AR-Small. ReLF-Large reaches 17.3 at 5.51, matching the generative perplexity of real OpenWebText text (17.3 at 5.49).

• Faster generation through reflow. We further apply reflow [8] to reduce the number of function evaluations. After two rounds, ReLF still outperforms same-size AR models with just 16 function evaluations. It then generates 1,024-token sequences 15–19× faster than these AR baselines at batch size 1 (Figure 1(b)).

• Generation quality at 8 function evaluations. With only 8 function evaluations, ReLF-Medium achieves a generative perplexity of 42.7, compared with 66.4 for ELF+PD, a progressively distilled ELF model, both at entropy 5.42.

Methods. ReLF learns continuous dynamics from categorical supervision by training token posteriors with cross-entropy (Section 2). Four components then address reliable token recovery, embedding geometry, and high-quality generation with few function evaluations:

• Singular logits. As noise vanishes, token posteriors approach point masses, requiring unbounded logit differences. Our singular logits capture this divergence analytically through a reference posterior, so the network learns only a bounded residual of contextual token preferences. This guarantees that the modeled posterior converges to a one-hot distribution and the trajectory to a token embedding (Section 3.1).

• Embedding geometry for language flows. Token embeddings define the geometry of corruption and denoising. Our fixed, frequency-weighted Hellinger–SVD embeddings place tokens with similar contexts nearby. Their dimension is a free hyperparameter, which we find important for generation quality (Section 3.2).

Figure

Figure 2 | ReLF architecture. From the noisy state ZtZ_t and self-conditioning input CC, the Transformer outputs residual logits fθf_\theta, added to singular logits log⁡rt\log r_t. X^1\widehat{X}_1 is a probability-weighted mean of token embeddings, fed back via stop-gradient sg as the next CC (dashed).

• Logit-space self-conditioning guidance. Self-conditioning guidance extrapolates between predictions with and without the previous clean estimate, which prior work does in continuous state space [1, 12]. We instead extrapolate in logit space, so the guided prediction remains a token distribution, learnable through cross-entropy alone with one function evaluation per step (Section 3.3).

• Regularized reflow. Regularized reflow retrains the model on its own noise-token couplings and interpolates its weights back toward the base model, straightening the flow for few-step generation while controlling drift (Section 3.4).

References (74)