When Annotators Disagree, Topology Explains: Mapper, a Topological Tool for Exploring Text Embedding Geometry and Ambiguity
Nisrine Rair, Alban Goupil, Valeriu Vrabie, Emmanuel Chochoy
TL;DR
This work addresses the challenge of annotator disagreement and ambiguity in NLP by applying Mapper, a topological data analysis tool, to the embedding space of RoBERTa-Large on the MD-Offense dataset. It demonstrates that fine-tuning reorganizes embeddings into modular, non-convex regions that align with model predictions, while most connected components achieve high prediction purity even when human labels disagree. The study introduces topology-based metrics—Component Purity, Edge Agreement, and Majority Match—to quantify structure and demonstrates robustness across lenses and models, highlighting region-level decision behavior over pointwise certainty. These insights offer a complementary diagnostic to scalar metrics, with potential to guide proactive modeling strategies and annotation practices in subjective NLP tasks.
Abstract
Language models are often evaluated with scalar metrics like accuracy, but such measures fail to capture how models internally represent ambiguity, especially when human annotators disagree. We propose a topological perspective to analyze how fine-tuned models encode ambiguity and more generally instances. Applied to RoBERTa-Large on the MD-Offense dataset, Mapper, a tool from topological data analysis, reveals that fine-tuning restructures embedding space into modular, non-convex regions aligned with model predictions, even for highly ambiguous cases. Over $98\%$ of connected components exhibit $\geq 90\%$ prediction purity, yet alignment with ground-truth labels drops in ambiguous data, surfacing a hidden tension between structural confidence and label uncertainty. Unlike traditional tools such as PCA or UMAP, Mapper captures this geometry directly uncovering decision regions, boundary collapses, and overconfident clusters. Our findings position Mapper as a powerful diagnostic tool for understanding how models resolve ambiguity. Beyond visualization, it also enables topological metrics that may inform proactive modeling strategies in subjective NLP tasks.
