Measuring Distributional Shifts in Text: The Advantage of Language Model-Based Embeddings
Not on the map. Why?
Abstract (arXiv)
An essential part of monitoring machine learning models in production is measuring input and output data drift. In this paper, we present a system for measuring distributional shifts in natural language data and highlight and investigate the potential advantage of using large language models (LLMs) for this problem. Recent advancements in LLMs and their successful adoption in different domains indicate their effectiveness in capturing semantic relationships for solving various natural language processing problems. The power of LLMs comes largely from the encodings (embeddings) generated in the hidden layers of the corresponding neural network. First we propose a clustering-based algorithm for measuring distributional shifts in text data by exploiting such embeddings. Then we study the effectiveness of our approach when applied to text embeddings generated by both LLMs and classical embedding algorithms. Our experiments show that general-purpose LLM-based embeddings provide a high sensitivity to data drift compared to other embedding methods. We propose drift sensitivity as an important evaluation metric to consider when comparing language models. Finally, we present insights and lessons learned from deploying our framework as part of the Fiddler ML Monitoring platform over a period of 18 months.
Key facts. Cited by 2 papers in the map (data through 7 Oct 2026). Builds on 16 of its 40 references that are in the map. First posted on arXiv 4 Dec 2023.
Builds on
16 of 40 references.
References · 16
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2013Distributed Representations of Words and Phrases and their Compositionalitycited by 3,462
- 2018Universal Sentence Encodercited by 485
- 2018Detecting and Correcting for Label Shift with Black Box Predictorscited by 364
- 2018Failing Loudly: An Empirical Study of Methods for Detecting Dataset Shiftcited by 240
- 2020A Unified View of Label Shift Estimationcited by 119
- 2013From Amateurs to Connoisseurs: Modeling the Evolution of User Expertise through Online Reviewscited by 107
- 2015Characterizing Concept Driftcited by 93
- 2020The iWildCam 2020 Competition Datasetcited by 86
- 2019Domain Adaptation with Asymmetrically-Relaxed Distribution Alignmentcited by 61
- 2021Who Needs MLOps: What Data Scientists Seek to Accomplish and How Can MLOps Help?cited by 37
- 2022Operationalizing Machine Learning: An Interview Studycited by 25
4 more
- 2022A Human-Centric Take on Model Monitoringcited by 9
- 2020Concept Drift Detection via Equal Intensity k-means Space Partitioningcited by 8
- 2020Towards Self-Regulating AI: Challenges and Opportunities of AI Model Governance in Financial Servicescited by 8
- 2020Relative Error Streaming Quantilescited by 4
Built on by
Citing papers per year: 2024: 1; 2025: 0; 2026: 1.
2 papers.