emb-diversity: A Tool for Embedding-Based Measurement of Data Diversity
Cantao Su, Menan Velayuthan, Esther Ploeger, Dong Nguyen, Anna Wegmann
Abstract
There is growing evidence that data diversity is crucial for developing fair and robust NLP models. However, current approaches to measure diversity remain inconsistent and fragmented: While there exist a number of tools for measuring the lexical diversity of texts, researchers lack standardized tools for quantifying diversity based on embeddings. Embedding-based diversity measures are highly flexible: They work with any embedding model and any data that can be embedded, and are thus applicable to many notions of diversity. With emb-diversity, we provide a comprehensive embedding-based diversity measurement tool, spanning a broad range of measures. We demonstrate its potential for several use cases: measuring the stylistic, semantic, language and speaker diversity of datasets. https://github.com/nlpsoc/emb-diversity/
Create a lesson
Related papers
Failure Broadens, Success Sharpens: Continual Adaptation of Tool-Use Agents Across Diverse Tasks with Dual-Polarity Memory
Shared title terminologycs.CLTianmai M. Zhang, Hoda Shajari, Amr Hendy et al.
Generating Schema-Aligned Synthetic Dialogues and Measuring Their Diversity
Shared title terminologycs.CLKonrad Stolte, Toni Fetzer
Are Diversity Metrics Measuring Diversity? A Capability-Controlled Audit of Majority-Vote Gain in LLM Ensembles
Shared title terminologycs.CLDonghwan Kim
Diverse Alternative Reasoning Traces for Hard Math Problems
Shared title terminologycs.CLLukas Aichberger, Adam Golinski, Arno Blaas et al.
VulnSafe: Measuring Vulnerability-Aware Relational Safety in Large Language Models
Shared title terminologycs.CLJiaming Luo, Jiacheng Ji, Haoan Jin et al.
MINE: A Training-Free Defense against Indirect Prompt Injection via Mutual Information and Embedding Variance
Shared title terminologycs.CLTruong Phan, Ngoc-Quan Pham, Dat Quoc Nguyen