SOL: Measuring Gaps between Text Distributions by Double Sliced Wasserstein Metrics
Gregor Kornhardt, Moritz Piening, Jannis Chemseddine, Gabriele Steidl
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.
Create a lesson
Metadata
- Categories
- cs.CL, cs.LG, stat.ML
Related papers
EASE: Entropy-Adaptive Distribution Shaping for Evading AI-generated Text Detectors
Shared title terminologycs.CLJicheng Zhou, Kahim Wong, Jialong Wang et al.
Residual Cross-Model Narrative Convergence under Shared Prompts: Auditing Prompt Controls and Narrative Measurement
Shared title terminologycs.CLMehdy Sedaghat Payam
Open-Source FUTO Keyboard Layouts and Predictive Text for a Few Endangered Languages
Shared title terminologycs.CLMika Hämäläinen, Jack Rueter, Khalid Alnajjar
Focus On Facts: Stylistically Invariant and Factually Sensitive Text Embeddings
Shared title terminologycs.CLMaximus Adeola
FOL-Proof: Verifying LLM Text-to-Logic Translations via Deterministic Semantics
Shared title terminologycs.CLYisrael Clark, Guy Katz
SALSA: Sampling Adversarial Suffixes from Learned Distributions for LLM Safety Assessment
Shared title terminologycs.CLShivank Rajput, Himanshu Singh, A. V. Subramanyam