Language Modeling with Hyperspherical Flows
Discrete Diffusion Language Models have progressed rapidly as an alternative to Autoregressive (AR) models, motivated by their ability to generate tokens in parallel. However, for tractability, discrete diffusion models sample from a factorized distribution, which is less expressive than the AR factorization. Recent Flow Language Models (FLMs) apply continuous flows to language, transporting noise to data with a deterministic ODE that avoids factorized sampling. FLMs operate on one-hot vectors whose dimension scales with the vocabulary size, making FLMs costly to train. Moreover, since all distinct one-hot vectors are equidistant in ℓ 2 , adding Gaussian noise has no clear semantic interpretation (unlike images, where Gaussian noise progressively degrades structure). We introduce S-FLM, a latent FLM on the hypersphere. S-FLM generates sequences by rotating vectors on S d−1 along a velocity field learned with Cross-Entropy, avoiding the overhead of materializing one-hot vectors. Previous FLMs match AR in Generative Perplexity (Gen. PPL), but samples with high likelihood are not necessarily correct in verifiable domains such as math and code. S-FLM substantially improves over prior FLMs on large-vocabulary reasoning, increasing the GSM8K accuracy from less than 1% to 12-18%, depending on the decoding strategy. S-FLM matches discrete diffusion models (MDLM and Duo) under standard-temperature sampling (T = 1), but a gap remains under optimized low-temperature (T = 0.1) decoding. Our code is available at https://github.com/jdeschena/s-flm.
Language_Modeling_with_Hyperspherical_Flows_2605.11125.pdf
Main Document
Accepted version
openaccess
CC BY
1.18 MB
Adobe PDF
d7252f3a1d8bd8307e2fcca06bd84e0f