HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictions
Not on the map. Why?
Abstract (arXiv)
Commercial ML APIs offered by providers such as Google, Amazon and Microsoft have dramatically simplified ML adoption in many applications. Numerous companies and academics pay to use ML APIs for tasks such as object detection, OCR and sentiment analysis. Different ML APIs tackling the same task can have very heterogeneous performance. Moreover, the ML models underlying the APIs also evolve over time. As ML APIs rapidly become a valuable marketplace and a widespread way to consume machine learning, it is critical to systematically study and compare different APIs with each other and to characterize how APIs change over time. However, this topic is currently underexplored due to the lack of data. In this paper, we present HAPI (History of APIs), a longitudinal dataset of 1,761,417 instances of commercial ML API applications (involving APIs from Amazon, Google, IBM, Microsoft and other providers) across diverse tasks including image tagging, speech recognition and text mining from 2020 to 2022. Each instance consists of a query input for an API (e.g., an image or text) along with the API's output prediction/annotation and confidence scores. HAPI is the first large-scale dataset of ML API usages and is a unique resource for studying ML-as-a-service (MLaaS). As examples of the types of analyses that HAPI enables, we show that ML APIs' performance change substantially over time--several APIs' accuracies dropped on specific benchmark datasets. Even when the API's aggregate performance stays steady, its error modes can shift across different subtypes of data between 2020 and 2022. Such changes can substantially impact the entire analytics pipelines that use some ML API as a component. We further use HAPI to study commercial APIs' performance disparities across demographic subgroups over time. HAPI can stimulate more research in the growing field of MLaaS.
Key facts. Cited by 6 papers in the map (data through 7 Oct 2026). Builds on 32 of its 82 references that are in the map. First posted on arXiv 18 Sep 2022.
Builds on
32 of 82 references.
References · 32
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2018Datasheets for Datasetscited by 1,371
- 2014Deep Learning in Neural Networks: An Overviewcited by 765
- 2018Speech Commands: A Dataset for Limited-Vocabulary Speech Recognitioncited by 741
- 2016Stealing Machine Learning Models via Prediction APIscited by 602
- 2017AffectNet: A Database for Facial Expression, Valence, and Arousal Computing in the Wildcited by 490
- 2015Deep Speech 2: End-to-End Speech Recognition in English and Mandarincited by 449
- 2018Knockoff Nets: Stealing Functionality of Black-Box Modelscited by 285
- 2020Fairness in Machine Learningcited by 194
- 2019Speech Model Pre-training for End-to-End Spoken Language Understandingcited by 191
- 2018Delayed Impact of Fair Machine Learningcited by 183
- 2018PRADA: Protecting against DNN Model Stealing Attackscited by 159
20 more
- 2016Training Deep Networks for Facial Expression Recognition with Crowd-Sourced Label Distributioncited by 158
- 2020PP-OCR: A Practical Ultra Lightweight OCR Systemcited by 147
- 2019ICDAR 2019 Robust Reading Challenge on Reading Chinese Text on Signboardcited by 127
- 2019ICDAR 2019 Competition on Large-scale Street View Text with Partial Labeling -- RRC-LSVTcited by 121
- 2021Predicting with Confidence on Unseen Distributionscited by 116
- 2021Understanding and Evaluating Racial Biases in Image Captioningcited by 108
- 2020Are Labels Always Necessary for Classifier Accuracy Evaluation?cited by 104
- 2021Reduced, Reused and Recycled: The Life of a Dataset in Machine Learning Researchcited by 100
- 2019Prediction Poisoning: Towards Defenses Against DNN Model Stealing Attackscited by 79
- 2021What Does Rotation Prediction Tell Us about Classifier Accuracy under Varying Testing Environments?cited by 63
- 2020Estimating Generalization under Distribution Shifts via Domain-Invariant Representationscited by 56
- 2021Mandoline: Model Evaluation under Distribution Shiftcited by 55
- 2021Detecting Errors and Estimating Accuracy on Unlabeled Data with Self-training Ensemblescited by 54
- 2017Google's Cloud Vision API Is Not Robust To Noisecited by 37
- 2018Model-based Pricing for Machine Learning in a Data Marketplacecited by 37
- 2020FrugalML: How to Use ML Prediction APIs More Accurately and Cheaplycited by 33
- 2015Learning Social Relation Traits from Face Imagescited by 25
- 2020Model Assertions for Monitoring and Improving ML Modelscited by 22
- 2021Did the Model Change? Efficiently Assessing Machine Learning API Shiftscited by 13
- 2021Efficient Online ML API Selection for Multi-Label Classification Taskscited by 11
Built on by
Citing papers per year: 2023: 4; 2024: 2.
6 papers.
- 2023How is ChatGPT's behavior changing over time?cited by 265
- 2023The Shaky Foundations of Clinical Foundation Models: A Survey of Large Language Models and Foundation Models for EMRscited by 29
- 2023Model Extraction Attacks Revisitedcited by 21
- 2024Causal Evaluation of Language Modelscited by 18
- 2023Ecosystem-level Analysis of Deployed Machine Learning Reveals Homogeneous Outcomescited by 10
- 2024Questionable practices in machine learningcited by 3
- 2024Questionable practices in machine learning17 Jul 2024
- 2024Causal Evaluation of Language Models1 May 2024
- 2023Model Extraction Attacks Revisited8 Dec 2023
- 2023How is ChatGPT's behavior changing over time?18 Jul 2023
- 2023Ecosystem-level Analysis of Deployed Machine Learning Reveals Homogeneous Outcomes12 Jul 2023
- 2023The Shaky Foundations of Clinical Foundation Models: A Survey of Large Language Models and Foundation Models for EMRs22 Mar 2023