arXiv

Language Modeling with Hyperspherical Flows

Title: Language Modeling with Hyperspherical Flows

Abstract:

Discrete diffusion models have emerged as a compelling alternative to autoregressive (AR) systems, largely due to their capacity for parallel text generation. However, to maintain computational tractability, these models typically sample from factorized distributions, a constraint that reduces their expressive power compared to AR approaches. To address this, recent Flow Language Models (FLMs) employ continuous flows to transport noise to data via deterministic ordinary differential equations (ODEs), thereby bypassing the limitations of factorized sampling. Despite this advantage, standard FLMs operate on one-hot vectors, the dimensionality of which grows with vocabulary size, resulting in significant training costs. Furthermore, because all distinct one-hot embeddings are equidistant in $\ell_2$ space, introducing Gaussian noise lacks a meaningful semantic interpretation—unlike in image processing, where such noise gradually degrades structural integrity.

To overcome these challenges, we introduce $\mathbb{S}$-FLM, a latent FLM operating within a hypersphere. This approach generates sequences by rotating vectors along a velocity field learned via cross-entropy, effectively eliminating the computational burden of materializing one-hot vectors. While existing FLMs achieve Generative Perplexity (Gen. PPL) comparable to AR models, high-likelihood samples do not always yield correct results in verifiable domains like code and mathematics. $\mathbb{S}$-FLM significantly enhances the performance of continuous flow language models in large-vocabulary reasoning tasks. It narrows the performance gap with masked diffusion models under standard-temperature sampling ($T=1$), although a disparity persists under optimized low-temperature decoding ($T=0.1$).


Source: arXiv Generated at: 2026-06-02 00:00:00 UTC

Related Articles

Law’s Billable Hour Is Being Shredded by AI
Bloomberg

Law’s Billable Hour Is Being Shredded by AI

AI is dismantling the billable hour by automating routine legal tasks. This technological shift threatens the traditiona...

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026
Bloomberg

Iran War: Trump Tries to Stop Israel’s Lebanon Push | The Opening Trade 6/2/2026

SoftBank in Early Talks to Back $800 Million Agile Robots Round
Bloomberg

SoftBank in Early Talks to Back $800 Million Agile Robots Round

SoftBank is in early talks to back Agile Robots’ $800 million funding round. The Japanese tech giant is currently in pre...

Amundi Is Diversifying Risk Via Commodity Currencies, Gold
Bloomberg

Amundi Is Diversifying Risk Via Commodity Currencies, Gold

Amundi diversifies risk by investing in commodity-linked currencies and gold. This strategy hedges against market volati...

Reuters

Marvell Technology surges after Nvidia's Huang calls it 'next trillion-dollar company'

Marvell Technology shares surged after Nvidia CEO Jensen Huang labeled the firm the “next trillion-dollar company.”

Russia Says It Found Foreign Spyware on Top Officials’ Phones
Bloomberg

Russia Says It Found Foreign Spyware on Top Officials’ Phones

Russia’s FSB claims to have discovered foreign spyware on senior officials’ phones. Moscow attributes the intrusion to h...