Did the Model Change? Efficiently Assessing Machine Learning API Shifts
Not on the map. Why?
Abstract (arXiv)
Machine learning (ML) prediction APIs are increasingly widely used. An ML API can change over time due to model updates or retraining. This presents a key challenge in the usage of the API because it is often not clear to the user if and how the ML model has changed. Model shifts can affect downstream application performance and also create oversight issues (e.g. if consistency is desired). In this paper, we initiate a systematic investigation of ML API shifts. We first quantify the performance shifts from 2020 to 2021 of popular ML APIs from Google, Microsoft, Amazon, and others on a variety of datasets. We identified significant model shifts in 12 out of 36 cases we investigated. Interestingly, we found several datasets where the API's predictions became significantly worse over time. This motivated us to formulate the API shift assessment problem at a more fine-grained level as estimating how the API model's confusion matrix changes over time when the data distribution is constant. Monitoring confusion matrix shifts using standard random sampling can require a large number of samples, which is expensive as each API call costs a fee. We propose a principled adaptive sampling algorithm, MASA, to efficiently estimate confusion matrix shifts. MASA can accurately estimate the confusion matrix shifts in commercial ML APIs using up to 90% fewer samples compared to random sampling. This work establishes ML API shifts as an important problem to study and provides a cost-effective approach to monitor such shifts.
Key facts. Cited by 13 papers in the map (data through 7 Oct 2026). Builds on 15 of its 39 references that are in the map. First posted on arXiv 29 Jul 2021.
Builds on
15 of 39 references.
References · 15
- 2020WILDS: A Benchmark of in-the-Wild Distribution Shiftscited by 1,366
- 2020Beyond Accuracy: Behavioral Testing of NLP models with CheckListcited by 979
- 2018Speech Commands: A Dataset for Limited-Vocabulary Speech Recognitioncited by 741
- 2017AffectNet: A Database for Facial Expression, Valence, and Arousal Computing in the Wildcited by 490
- 2018Detecting and Correcting for Label Shift with Black Box Predictorscited by 364
- 2013Challenges in Representation Learning: A report on three machine learning contestscited by 301
- 2019Speech Model Pre-training for End-to-End Spoken Language Understandingcited by 191
- 2019Regularized Learning for Domain Adaptation under Label Shiftscited by 118
- 2020From ImageNet to Image Classification: Contextualizing Progress on Benchmarkscited by 90
- 2018AudioMNIST: Exploring Explainable Artificial Intelligence for Audio Analysis on a Simple Benchmarkcited by 72
- 2020Masked Face Recognition Dataset and Applicationcited by 66
- 2020FrugalML: How to Use ML Prediction APIs More Accurately and Cheaplycited by 33
3 more
- 2015Learning Social Relation Traits from Face Imagescited by 25
- 2020Active Learning under Label Shiftcited by 23
- 2020Model Assertions for Monitoring and Improving ML Modelscited by 22
Built on by
Citing papers per year: 2021: 1; 2022: 2; 2023: 5; 2024: 1; 2025: 2; 2026: 2.
13 papers.
Sort:
By area:
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2023How is ChatGPT's behavior changing over time?cited by 265
- 2022Estimating and Explaining Model Performance When Both Covariates and Labels Shiftcited by 19
- 2023Ecosystem-level Analysis of Deployed Machine Learning Reveals Homogeneous Outcomescited by 10
- 2025Log Probability Tracking of LLM APIscited by 8
- 2022HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictionscited by 6
- 2026Token-Efficient Change Detection in LLM APIscited by 4
- 2023The Rise of Open Science: Tracking the Evolution and Perceived Value of Data and Methods Link-Sharing Practicescited by 3
- 2024Towards Trustworthy Machine Learning in Production: An Overview of the Robustness in MLOps Approachcited by 3
- 2025Toward building next-generation Geocoding systems: a systematic reviewcited by 1
- 2021Using sequential drift detection to test the API economycited by 0
- 2023Automatic and Efficient Customization of Neural Networks for ML Applicationscited by 0
1 more
- 2026Who Is Behind the Harness? Fingerprinting LLMs through Agentic Behavior23 Sep 2026
- 2026Token-Efficient Change Detection in LLM APIs11 Feb 2026
- 2025Log Probability Tracking of LLM APIs3 Dec 2025
- 2025Toward building next-generation Geocoding systems: a systematic review24 Mar 2025
- 2024Towards Trustworthy Machine Learning in Production: An Overview of the Robustness in MLOps Approach28 Oct 2024
- 2023Automatic and Efficient Customization of Neural Networks for ML Applications7 Oct 2023
- 2023The Rise of Open Science: Tracking the Evolution and Perceived Value of Data and Methods Link-Sharing Practices4 Oct 2023
- 2023How is ChatGPT's behavior changing over time?18 Jul 2023
- 2023Ecosystem-level Analysis of Deployed Machine Learning Reveals Homogeneous Outcomes12 Jul 2023
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance9 May 2023
- 2022HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictions18 Sep 2022
- 2022Estimating and Explaining Model Performance When Both Covariates and Labels Shift18 Sep 2022
1 more
- 2021Using sequential drift detection to test the API economy9 Nov 2021
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2023How is ChatGPT's behavior changing over time?cited by 265
- 2022Estimating and Explaining Model Performance When Both Covariates and Labels Shiftcited by 19
- 2023Ecosystem-level Analysis of Deployed Machine Learning Reveals Homogeneous Outcomescited by 10
- 2025Log Probability Tracking of LLM APIscited by 8
- 2022HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictionscited by 6
- 2026Token-Efficient Change Detection in LLM APIscited by 4
- 2023The Rise of Open Science: Tracking the Evolution and Perceived Value of Data and Methods Link-Sharing Practicescited by 3
- 2024Towards Trustworthy Machine Learning in Production: An Overview of the Robustness in MLOps Approachcited by 3
- 2025Toward building next-generation Geocoding systems: a systematic reviewcited by 1
- 2021Using sequential drift detection to test the API economycited by 0
- 2023Automatic and Efficient Customization of Neural Networks for ML Applicationscited by 0
- 2026Token-Efficient Change Detection in LLM APIs11 Feb 2026
- 2025Log Probability Tracking of LLM APIs3 Dec 2025
- 2025Toward building next-generation Geocoding systems: a systematic review24 Mar 2025
- 2024Towards Trustworthy Machine Learning in Production: An Overview of the Robustness in MLOps Approach28 Oct 2024
- 2023Automatic and Efficient Customization of Neural Networks for ML Applications7 Oct 2023
- 2023The Rise of Open Science: Tracking the Evolution and Perceived Value of Data and Methods Link-Sharing Practices4 Oct 2023
- 2023How is ChatGPT's behavior changing over time?18 Jul 2023
- 2023Ecosystem-level Analysis of Deployed Machine Learning Reveals Homogeneous Outcomes12 Jul 2023
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performance9 May 2023
- 2022HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictions18 Sep 2022
- 2022Estimating and Explaining Model Performance When Both Covariates and Labels Shift18 Sep 2022
- 2021Using sequential drift detection to test the API economy9 Nov 2021