arXiv:2610.24888cs.CLOct 2026

Manuscript Offprint

arXiv:2610.24888

Measuring Data Diversity with Embeddings: A Taxonomy and Benchmark for Diversity Measures

Cantao Su, Anna Wegmann, Esther Ploeger, Dong Nguyen

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

Abstract

Diversity is a critical property of text corpora, with direct implications for training data curation, test set design, and model generalization. However, its measurement remains fragmented and poorly understood. Existing embedding-based diversity measures vary widely in how they are computed and can yield substantially different diversity scores on the same data, yet no systematic comparison of their empirical behaviour exists. We make two contributions toward addressing this gap. First, we present a taxonomy of 21 embedding-based diversity measures, organizing them into four families based on their underlying computations. Second, we introduce EmbDivBench, a benchmark that evaluates these measures along three conceptually distinct components—variety, balance and disparity—on both simulated and natural text data. Although Mean Pairwise Distance is the most commonly used measure, our experiments show that it is outperformed by several alternatives on the three diversity components, with Graph Entropy being the best choice overall. Lastly, we distil these findings into practical recommendations for diversity measure selection.

1 Introduction

Data diversity has demonstrated practical value across multiple areas of NLP. First, diversity in training data is a driver of model capability: corpora that are more diverse have shown performance improvement across a range of tasks (Liu and Zeldes, 2023; Yadav et al., 2024; Chen et al., 2024), and can compensate for smaller data sizes (Schiller et al., 2024; Estève et al., 2026). Second, it helps to improve fairness and inclusiveness (Blodgett et al., 2018), counteract the dominance of English- and Western-centric data (Pouran Ben Veyseh et al., 2022), and reduce toxic output and bias (Chu et al., 2024; Agarwal et al., 2026; Gehman et al., 2020). Third, diversity is such an intrinsic property of hu-

Figure

Figure 1: The three components of diversity in EMB-DIVBENCH. In each panel, the left configuration has lower diversity and the right has higher diversity along the corresponding component. Variety counts the number of groups present; Balance measures how evenly points are distributed across groups; Disparity captures how far apart the groups lie in the embedding space.

man language that generating sufficiently diverse outputs is itself a user expectation (Estève et al., 2025; Lee et al., 2022).

Despite its importance, the measurement of diversity has not kept pace. First, “diversity” remains a vague and overloaded term in NLP (Nguyen and Ploeger, 2025; Estève et al., 2025): Datasets are described as “diverse” without specifying what dimension (e.g., stylistic vs. semantic) and component (e.g., variety vs. balance in Fig. 1) of diversity is meant (Zhao et al., 2024; Shaib et al., 2025; Guo et al., 2024; Nguyen and Ploeger, 2025). Outside NLP, diversity has long been decomposed into three distinct components (Fig. 1, see also §4.1)—variety (how many categories the data spans), balance (how evenly data are distributed across them), and disparity (how different the categories are from one another) (Stirling, 2007). These components have more recently been used in NLP, for example, to theoretically categorize measures into what components they are likely to be sensitive to (Estève et al., 2025). However, different measures have been named and computed inconsistently (§3.1) and used in isolation without an overview organizing the differences in how they are computed, or how they relate. We introduce a unifying taxonomy of existing embedding-based diversity measures based on how they are computed ( §\S3.2).

Second, despite the increasing use of diversity measures, the measurements themselves are rarely evaluated, with a few exceptions (e.g., Tevet and Berant 2021; Yang et al. 2025; Zhang et al. 2025a). However, systematic evaluation is crucial: otherwise, it remains unclear which measure researchers should use and whether newly proposed measures truly improve over existing ones. We introduce EMBDIVBENCH, an empirical benchmark that, contrary to previous approaches ( §2§2), tests sensitivity to variety, balance, and disparity through controlled manipulations of each component.

Among approaches to diversity measurement, embedding-based methods have become increasingly popular (Shaib et al., 2025; Guo et al., 2025; Zhu et al., 2025; Yang et al., 2025; Fan et al., 2025; Friedman and Dieng, 2023). The success of representation learning in NLP makes it possible to represent different dimensions (e.g., semantic or stylistic) of text as points in a continuous vector space (Reimers and Gurevych, 2019; Wegmann et al., 2022). Embedding-based diversity measures are thus widely applicable: diversity can be measured along many dimensions, as long as texts can be mapped to an embedding space capturing the relevant diversity dimension. Although some studies have compared diversity measures (Estève et al., 2025; Yang et al., 2025), none have provided a holistic categorization or an empirical analysis of embedding-based diversity measures. To address these gaps, we make the following contributions:

• A taxonomy ( §3§3) that surveys and classifies 21 embedding-based diversity measures into four organized families.

• EMBDIVBENCH ( §4§4), a benchmark that tests measures on the variety, balance and disparity components through two controlled complementary tiers: a simulated tier that affords exact control over each component, and a natural text tier for the semantic dimension.

• Practical recommendations ( §7§7) for diversity measure selection, on each component.

• Data and code are publicly available on GitHub 1^{1} and can be used to compare new diversity measures.

We find that disparity is the hardest component for diversity measures and that natural text is more difficult for measures than the simulated data tier. Mean Pairwise Distance—a popular embedding-based diversity measure—is outperformed by several alternatives on all three components, with Graph Entropy performing the best overall.

References (28)