Efficient Online ML API Selection for Multi-Label Classification Tasks
Not on the map. Why?
Abstract (arXiv)
Multi-label classification tasks such as OCR and multi-object recognition are a major focus of the growing machine learning as a service industry. While many multi-label prediction APIs are available, it is challenging for users to decide which API to use for their own data and budget, due to the heterogeneity in those APIs' price and performance. Recent work shows how to select from single-label prediction APIs. However the computation complexity of the previous approach is exponential in the number of labels and hence is not suitable for settings like OCR. In this work, we propose FrugalMCT, a principled framework that adaptively selects the APIs to use for different data in an online fashion while respecting user's budget. The API selection problem is cast as an integer linear program, which we show has a special structure that we leverage to develop an efficient online API selector with strong performance guarantees. We conduct systematic experiments using ML APIs from Google, Microsoft, Amazon, IBM, Tencent and other providers for tasks including multi-label image classification, scene text recognition and named entity recognition. Across diverse tasks, FrugalMCT can achieve over 90% cost reduction while matching the accuracy of the best single API, or up to 8% better accuracy while matching the best API's cost.
Key facts. Cited by 11 papers in the map (data through 7 Oct 2026). Builds on 12 of its 63 references that are in the map. First posted on arXiv 18 Feb 2021.
Builds on
12 of 63 references.
References · 12
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2018The Open Images Dataset V4: Unified image classification, object detection, and visual relationship detection at scalecited by 542
- 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
- 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 Complexity-Aware Cascades for Deep Pedestrian Detectioncited by 18
- 2017Boosted Cascaded Convnets for Multilabel Classification of Thoracic Diseases in Chest Radiographscited by 18
- 2019CascadeML: An Automatic Neural Network Architecture Evolution and Training Algorithm for Multi-label Classificationcited by 3
- 2017A multi-criteria approach to approximate solution of multiple-choice knapsack problemcited by 2
Built on by
Citing papers per year: 2022: 1; 2023: 1; 2024: 4; 2025: 2; 2026: 3.
11 papers.
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2024A Unified Approach to Routing and Cascading for LLMscited by 71
- 2024MetaLLM: A High-performant and Cost-efficient Dynamic Framework for Wrapping LLMscited by 39
- 2025CARROT: A Cost Aware Rate Optimal Routercited by 34
- 2025Adaptive LLM Routing under Budget Constraintscited by 21
- 2024Are LLMs Correctly Integrated into Software Systems?cited by 13
- 2022HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictionscited by 6
- 2024OCCAM: Towards Cost-Efficient and Accuracy-Aware Classification Inferencecited by 3
- 2026MemSpec: Memory-Aware Runtime for Adaptive Draft Scheduling in Speculative Decoding on Edge Devicescited by 0
- 2026Multinomial Subset Routing with Sum-Max Rewards and Operational Constraintscited by 0
- 2026Optimal Model Activation Policies for Inference Networks of Large Language Modelscited by 0
- 2026Multinomial Subset Routing with Sum-Max Rewards and Operational Constraints17 Aug 2026
- 2026MemSpec: Memory-Aware Runtime for Adaptive Draft Scheduling in Speculative Decoding on Edge Devices11 Aug 2026
- 2026Optimal Model Activation Policies for Inference Networks of Large Language Models7 Jul 2026
- 2025Adaptive LLM Routing under Budget Constraints28 Aug 2025
- 2025CARROT: A Cost Aware Rate Optimal Router5 Feb 2025
- 2024A Unified Approach to Routing and Cascading for LLMs14 Oct 2024
- 2024MetaLLM: A High-performant and Cost-efficient Dynamic Framework for Wrapping LLMs15 Jul 2024
- 2024Are LLMs Correctly Integrated into Software Systems?6 Jul 2024
- 2024OCCAM: Towards Cost-Efficient and Accuracy-Aware Classification Inference6 Jun 2024
- 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