FrugalML: How to Use ML Prediction APIs More Accurately and Cheaply
Not on the map. Why?
Abstract (arXiv)
Prediction APIs offered for a fee are a fast-growing industry and an important part of machine learning as a service. While many such services are available, the heterogeneity in their price and performance makes it challenging for users to decide which API or combination of APIs to use for their own data and budget. We take a first step towards addressing this challenge by proposing FrugalML, a principled framework that jointly learns the strength and weakness of each API on different data, and performs an efficient optimization to automatically identify the best sequential strategy to adaptively use the available APIs within a budget constraint. Our theoretical analysis shows that natural sparsity in the formulation can be leveraged to make FrugalML efficient. We conduct systematic experiments using ML APIs from Google, Microsoft, Amazon, IBM, Baidu and other providers for tasks including facial emotion recognition, sentiment analysis and speech recognition. Across various tasks, FrugalML can achieve up to 90% cost reduction while matching the accuracy of the best single API, or up to 5% better accuracy while matching the best API's cost.
Key facts. Cited by 33 papers in the map (data through 7 Oct 2026). First posted on arXiv 12 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 8; 2022: 1; 2023: 5; 2024: 8; 2025: 4; 2026: 7.
33 papers.
Sort:
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 633
- 2023Large Language Model Routing with Benchmark Datasetscited by 166
- 2021Towards Unbiased and Accurate Deferral to Multiple Expertscited by 71
- 2023Fusing Models with Complementary Expertisecited by 45
- 2024What is the Role of Small Models in the LLM Era: A Surveycited by 41
- 2024MetaLLM: A High-performant and Cost-efficient Dynamic Framework for Wrapping LLMscited by 39
- 2025CARROT: A Cost Aware Rate Optimal Routercited by 34
- 2025Optimizing Model Selection for Compound AI Systemscited by 34
- 2024Towards Optimizing the Costs of LLM Usagecited by 33
- 2021Data Pricing in Machine Learning Pipelinescited by 17
- 2024Agreement-Based Cascading for Efficient Inferencecited by 16
21 more
- 2021MLDemon: Deployment Monitoring for Machine Learning Systemscited by 14
- 2021Creating Training Sets via Weak Indirect Supervisioncited by 14
- 2021Did the Model Change? Efficiently Assessing Machine Learning API Shiftscited by 13
- 2025Intelligence per Watt: Measuring Intelligence Efficiency of Local AIcited by 13
- 2021Efficient Online ML API Selection for Multi-Label Classification Taskscited by 11
- 2022HAPI: A Large-scale Longitudinal Dataset of Commercial ML API Predictionscited by 6
- 2021Active Assessment of Prediction Services as Accuracy Surface Over Attribute Combinationscited by 5
- 2023Mondrian: Prompt Abstraction Attack Against Large Language Models for Cheaper API Pricingcited by 4
- 2024CascadeServe: Unlocking Model Cascades for Inference Servingcited by 4
- 2024OCCAM: Towards Cost-Efficient and Accuracy-Aware Classification Inferencecited by 3
- 2025Optimizing Large Language Models: Metrics, Energy Efficiency, and Case Study Insightscited by 3
- 2026RouteNLP: Closed-Loop LLM Routing with Conformal Cascading and Distillation Co-Optimizationcited by 2
- 2021Cocktail: Leveraging Ensemble Learning for Optimized Model Serving in Public Cloudcited by 1
- 2024Real-time Adapting Routing (RAR): Improving Efficiency Through Continuous Learning in Software Powered by Layered Foundation Modelscited by 1
- 2026Uncertainty-Aware Sequential Decision Rules for Event-Triggered LLM Invocation in Streaming Systemscited by 1
- 2023Automatic and Efficient Customization of Neural Networks for ML Applicationscited by 0
- 2026How Often Should a Recommender Call an LLM? Value-Weighted Routing, Monitoring, and Seasonal Robustnesscited by 0
- 2026Multinomial Subset Routing with Sum-Max Rewards and Operational Constraintscited by 0
- 2026Discovering Translation-Worthy Languages with E-Valuescited by 0
- 2026Optimal Model Activation Policies for Inference Networks of Large Language Modelscited by 0
- 2026Certified Predictive Value-of-Advice Gating for Cost-Aware Language-Model Guidance in Reinforcement Learningcited by 0
- 2026Discovering Translation-Worthy Languages with E-Values6 Sep 2026
- 2026Certified Predictive Value-of-Advice Gating for Cost-Aware Language-Model Guidance in Reinforcement Learning26 Aug 2026
- 2026Multinomial Subset Routing with Sum-Max Rewards and Operational Constraints17 Aug 2026
- 2026How Often Should a Recommender Call an LLM? Value-Weighted Routing, Monitoring, and Seasonal Robustness27 Jul 2026
- 2026Optimal Model Activation Policies for Inference Networks of Large Language Models7 Jul 2026
- 2026Uncertainty-Aware Sequential Decision Rules for Event-Triggered LLM Invocation in Streaming Systems27 Jun 2026
- 2026RouteNLP: Closed-Loop LLM Routing with Conformal Cascading and Distillation Co-Optimization26 Apr 2026
- 2025Intelligence per Watt: Measuring Intelligence Efficiency of Local AI11 Nov 2025
- 2025Optimizing Large Language Models: Metrics, Energy Efficiency, and Case Study Insights7 Apr 2025
- 2025Optimizing Model Selection for Compound AI Systems20 Feb 2025
- 2025CARROT: A Cost Aware Rate Optimal Router5 Feb 2025
- 2024Real-time Adapting Routing (RAR): Improving Efficiency Through Continuous Learning in Software Powered by Layered Foundation Models14 Nov 2024
21 more
- 2024What is the Role of Small Models in the LLM Era: A Survey10 Sep 2024
- 2024MetaLLM: A High-performant and Cost-efficient Dynamic Framework for Wrapping LLMs15 Jul 2024
- 2024Agreement-Based Cascading for Efficient Inference2 Jul 2024
- 2024RouteLLM: Learning to Route LLMs with Preference Data26 Jun 2024
- 2024CascadeServe: Unlocking Model Cascades for Inference Serving20 Jun 2024
- 2024OCCAM: Towards Cost-Efficient and Accuracy-Aware Classification Inference6 Jun 2024
- 2024Towards Optimizing the Costs of LLM Usage29 Jan 2024
- 2023Automatic and Efficient Customization of Neural Networks for ML Applications7 Oct 2023
- 2023Fusing Models with Complementary Expertise2 Oct 2023
- 2023Large Language Model Routing with Benchmark Datasets27 Sep 2023
- 2023Mondrian: Prompt Abstraction Attack Against Large Language Models for Cheaper API Pricing7 Aug 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
- 2021Creating Training Sets via Weak Indirect Supervision7 Oct 2021
- 2021Data Pricing in Machine Learning Pipelines18 Aug 2021
- 2021Active Assessment of Prediction Services as Accuracy Surface Over Attribute Combinations14 Aug 2021
- 2021Did the Model Change? Efficiently Assessing Machine Learning API Shifts29 Jul 2021
- 2021Cocktail: Leveraging Ensemble Learning for Optimized Model Serving in Public Cloud9 Jun 2021
- 2021MLDemon: Deployment Monitoring for Machine Learning Systems28 Apr 2021
- 2021Towards Unbiased and Accurate Deferral to Multiple Experts25 Feb 2021
- 2021Efficient Online ML API Selection for Multi-Label Classification Tasks18 Feb 2021
- 2023FrugalGPT: How to Use Large Language Models While Reducing Cost and Improving Performancecited by 791
- 2024RouteLLM: Learning to Route LLMs with Preference Datacited by 633
- 2023Large Language Model Routing with Benchmark Datasetscited by 166
- 2021Towards Unbiased and Accurate Deferral to Multiple Expertscited by 71
- 2023Fusing Models with Complementary Expertisecited by 45
- 2024What is the Role of Small Models in the LLM Era: A Surveycited by 41
- 2024MetaLLM: A High-performant and Cost-efficient Dynamic Framework for Wrapping LLMscited by 39
- 2025CARROT: A Cost Aware Rate Optimal Routercited by 34
- 2025Optimizing Model Selection for Compound AI Systemscited by 34
- 2024Towards Optimizing the Costs of LLM Usagecited by 33
- 2021Data Pricing in Machine Learning Pipelinescited by 17
- 2024Agreement-Based Cascading for Efficient Inferencecited by 16
12 most cited of 33 All 33 (JSON)
- 2026Discovering Translation-Worthy Languages with E-Values6 Sep 2026
- 2026Certified Predictive Value-of-Advice Gating for Cost-Aware Language-Model Guidance in Reinforcement Learning26 Aug 2026
- 2026Multinomial Subset Routing with Sum-Max Rewards and Operational Constraints17 Aug 2026
- 2026How Often Should a Recommender Call an LLM? Value-Weighted Routing, Monitoring, and Seasonal Robustness27 Jul 2026
- 2026Optimal Model Activation Policies for Inference Networks of Large Language Models7 Jul 2026
- 2026Uncertainty-Aware Sequential Decision Rules for Event-Triggered LLM Invocation in Streaming Systems27 Jun 2026
- 2026RouteNLP: Closed-Loop LLM Routing with Conformal Cascading and Distillation Co-Optimization26 Apr 2026
- 2025Intelligence per Watt: Measuring Intelligence Efficiency of Local AI11 Nov 2025
- 2025Optimizing Large Language Models: Metrics, Energy Efficiency, and Case Study Insights7 Apr 2025
- 2025Optimizing Model Selection for Compound AI Systems20 Feb 2025
- 2025CARROT: A Cost Aware Rate Optimal Router5 Feb 2025
- 2024Real-time Adapting Routing (RAR): Improving Efficiency Through Continuous Learning in Software Powered by Layered Foundation Models14 Nov 2024
12 newest of 33 All 33 (JSON)