Abstract
The ability to compare the semantic similarity between text corpora is important in a variety of natural language processing applications. However, standard methods for evaluating these metrics have yet to be established. We propose a set of automatic and interpretable measures for assessing the characteristics of corpus-level semantic similarity metrics, allowing sensible comparison of their behavior. We demonstrate the effectiveness of our evaluation measures in capturing fundamental characteristics by evaluating them on a collection of classical and state-of-the-art metrics. Our measures revealed that recently-developed metrics are becoming better in identifying semantic distributional mismatch while classical metrics are more sensitive to perturbations in the surface text levels.
Introduction
In the era of Large Language Models (LLMs), evaluating the quality and similarity of generated text against human reference data is a critical task. While sentence-level metrics like BLEU or ROUGE focus on specific string overlaps, corpus-level metrics aim to compare the statistical distributions of entire datasets. These metrics are essential for understanding model behavior, detecting data drift, and ensuring diversity in generation. However, the field lacks a standardized framework to evaluate these "evaluators." Traditional validation relies on correlation with human judgments, which are expensive, subjective, and difficult to scale to the aggregate level of a corpus. This work introduces a principled, automatic framework to benchmark corpus-level metrics on their accuracy, robustness, and interpretability.
Methodology: Known Similarity Corpora (KSC)
To evaluate metrics without human intervention, we propose the construction of Known Similarity Corpora (KSC). This method involves taking two distinct base corpora, $A$ and $B$, and creating a sequence of intermediate corpora by mixing them in mathematically controlled proportions. For example, a sequence might range from 100% of $A$ to 100% of $B$ in 10% increments. Because the mixing ratio is known, we can define a "ground truth" distance that any reliable metric should follow.
Evaluation Measures
Using the KSC framework, we define several key traits to assess metric performance:
- Monotonicity: The metric score should increase consistently as the corpora become more compositionally different.
- Separability: The metric must clearly distinguish between different levels of mixing.
- Linearity: A fixed change in the mixing ratio (e.g., 10%) should ideally result in a proportional change in the metric score.
- Accuracy (Interval Containment): We define accuracy based on set theory. If the mixing range of one pair of corpora is a subset of another, the metric distance for the first pair must be smaller than the second.
- Robustness: We test how metrics handle variations in sample size and class imbalance between the reference and target corpora.
Experimental Setup
We evaluated a suite of metrics categorized into three types: Lexicographical (e.g., CHI-squared, ZIPF), Distributional (e.g., FID, MAUVE, PR, DC), and Discriminative (e.g., CLASSIFIER, IRPR). These were tested across four diverse datasets of short user utterances: ATIS (flight bookings), Yahoo (non-factoid questions), CLINC150 (intent detection), and Banking77 (banking queries).
Key Results and Insights
Our evaluation framework reveals distinct behaviors across metric families. Distributional metrics, which operate in embedding spaces (like BERT or GPT-2), generally outperformed lexicographical metrics in identifying semantic mismatches.
The Dominance of MAUVE
As shown in the comparative analysis, MAUVE emerged as the superior metric across almost all categories, including accuracy, monotonicity, and linearity. Unlike asymmetric metrics like Precision-Recall (PR) or Density-Coverage (DC), MAUVE handles sample size imbalances gracefully and provides a more reliable signal of semantic similarity.
Surface vs. Semantics
Classical metrics like CHI-squared are highly sensitive to surface-level perturbations (e.g., specific word counts), making them useful for detecting literal changes but less effective for capturing shifts in underlying meaning. Conversely, modern distributional metrics are better at identifying when the "gist" of a corpus has changed, even if the vocabulary remains similar.
The Naturalness Paradox
Using Increasingly Fine-tuned Corpora (IFC), we observed that as a model specializes in a target domain, its semantic distance to that domain decreases. However, the ZIPF metric (measuring word frequency distributions) often showed the text becoming less natural. This suggests that high semantic accuracy can sometimes come at the cost of the statistical "naturalness" of the language.
Conclusion
This framework provides a rigorous way to select the right tool for text corpus evaluation. While MAUVE is currently the most robust choice for semantic comparison, the choice of metric should be informed by the specific needs of the task—whether that is sensitivity to surface text or robustness to sample size. Future work will extend this evaluation to long-form documents and explore the impact of different underlying embedding models on metric performance.
Summary updated