Spherical Flows for Sampling Categorical Data

Jannis Chemseddine, Gregor Kornhardt, Gabriele Steidl
5/7/2026
stat.MLcs.CLcs.LG

No confident code implementation found for this paper.

Abstract

We study the problem of learning generative models for discrete sequences in a continuous embedding space. Whereas prior approaches typically operate in Euclidean space or on the probability simplex, we instead work on the sphere $\mathbb S^{d-1}$.

Show full abstract

There the von Mises-Fisher (vMF) distribution induces a natural noise process and admits a closed-form conditional score. The conditional velocity is in general intractable. Exploiting the radial symmetry of the vMF density we reduce the continuity equation on $\mathbb S^{d-1}$ to a scalar ODE in the cosine similarity, whose unique bounded solution determines the velocity. The marginal velocity and marginal score on $(\mathbb S^{d-1})^L$ both decompose into posterior-weighted tangent sums that differ only by per-token scalar weights. This gives access to both ODE and predictor-corrector (PC) sampling. The posterior is the only learned object, trained by a cross-entropy loss. Experiments compare the vMF path against geodesic and Euclidean alternatives. The vMF path especially in combination with PC sampling significantly improves results on Sudoku, language modeling, and mathematical reasoning.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{chemseddine2026spherical,
  title  = {Spherical Flows for Sampling Categorical Data},
  author = {Jannis Chemseddine and Gregor Kornhardt and Gabriele Steidl},
  year   = {2026},
  eprint = {2605.05629},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2605.05629v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2605.05629.svg)](https://codeofpaper.com/paper/2605.05629)

Discussion