mlsanityData to 7 Oct 2026

HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictions

arXiv 2209.08443 ↗First posted 18 Sep 2022cs.SE cs.AI cs.DBcited by 6

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

  1. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  2. 2018Datasheets for Datasetscited by 1,371
  3. 2014Deep Learning in Neural Networks: An Overviewcited by 765
  4. 2018Speech Commands: A Dataset for Limited-Vocabulary Speech Recognitioncited by 741
  5. 2016Stealing Machine Learning Models via Prediction APIscited by 602
  6. 2017AffectNet: A Database for Facial Expression, Valence, and Arousal Computing in the Wildcited by 490
  7. 2015Deep Speech 2: End-to-End Speech Recognition in English and Mandarincited by 449
  8. 2018Knockoff Nets: Stealing Functionality of Black-Box Modelscited by 285
  9. 2020Fairness in Machine Learningcited by 194
  10. 2019Speech Model Pre-training for End-to-End Spoken Language Understandingcited by 191
  11. 2018Delayed Impact of Fair Machine Learningcited by 183
  12. 2018PRADA: Protecting against DNN Model Stealing Attackscited by 159
20 more
  1. 2016Training Deep Networks for Facial Expression Recognition with Crowd-Sourced Label Distributioncited by 158
  2. 2020PP-OCR: A Practical Ultra Lightweight OCR Systemcited by 147
  3. 2019ICDAR 2019 Robust Reading Challenge on Reading Chinese Text on Signboardcited by 127
  4. 2019ICDAR 2019 Competition on Large-scale Street View Text with Partial Labeling -- RRC-LSVTcited by 121
  5. 2021Predicting with Confidence on Unseen Distributionscited by 116
  6. 2021Understanding and Evaluating Racial Biases in Image Captioningcited by 108
  7. 2020Are Labels Always Necessary for Classifier Accuracy Evaluation?cited by 104
  8. 2021Reduced, Reused and Recycled: The Life of a Dataset in Machine Learning Researchcited by 100
  9. 2019Prediction Poisoning: Towards Defenses Against DNN Model Stealing Attackscited by 79
  10. 2021What Does Rotation Prediction Tell Us about Classifier Accuracy under Varying Testing Environments?cited by 63
  11. 2020Estimating Generalization under Distribution Shifts via Domain-Invariant Representationscited by 56
  12. 2021Mandoline: Model Evaluation under Distribution Shiftcited by 55
  13. 2021Detecting Errors and Estimating Accuracy on Unlabeled Data with Self-training Ensemblescited by 54
  14. 2017Google's Cloud Vision API Is Not Robust To Noisecited by 37
  15. 2018Model-based Pricing for Machine Learning in a Data Marketplacecited by 37
  16. 2020FrugalML: How to Use ML Prediction APIs More Accurately and Cheaplycited by 33
  17. 2015Learning Social Relation Traits from Face Imagescited by 25
  18. 2020Model Assertions for Monitoring and Improving ML Modelscited by 22
  19. 2021Did the Model Change? Efficiently Assessing Machine Learning API Shiftscited by 13
  20. 2021Efficient Online ML API Selection for Multi-Label Classification Taskscited by 11

Built on by

Cited by year

Citing papers per year: 2023: 4; 2024: 2.

6 papers.