SOL: Measuring Gaps between Text Distributions by Double Sliced Wasserstein Metrics

Gregor Kornhardt, Moritz Piening, Jannis Chemseddine, Gabriele Steidl
10/5/2026
cs.CLcs.LGstat.ML

No confident code implementation found for this paper. 2 possible matches can be shown below.

Abstract

Evaluating text generation requires measuring how well the generated distribution matches the data distribution. For autoregressive models, this is done by the perplexity. Diffusion and flow-based language models can only provide a likelihood bound, whose tightness differs between model families. Sample-based substitutes such as generative perplexity with entropy do not consider the distribution fit. We propose SOL, a distance between text distributions. Each sequence is represented by the empirical measure of its hidden states under a fixed transformer and the distributions of these measures are compared by the double sliced Wasserstein distance. We prove that SOL is a metric if the transformer is injective. Experiments show that SOL detects distributional failures, recovers expected model trends, and provides stable sample-based estimates. We put forward SOL to fill the gap in the current evaluation protocol used for non auto-regressive models. As a first step we use SOL to re-evaluate a variety of models trained on OpenWebText.

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. 2 weaker matches are hidden by default — 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{kornhardt2026sol,
  title  = {SOL: Measuring Gaps between Text Distributions by Double Sliced Wasserstein Metrics},
  author = {Gregor Kornhardt and Moritz Piening and Jannis Chemseddine and Gabriele Steidl},
  year   = {2026},
  eprint = {2610.06513},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2610.06513v1}
}

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/2610.06513.svg)](https://codeofpaper.com/paper/2610.06513)

Discussion