FrugalML: How to Use ML Prediction APIs More Accurately and Cheaply

06/12/2020
by   Lingjiao Chen, et al.
20

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 accuracy of the best single API, or up to 5 best API's cost.

READ FULL TEXT
02/18/2021

FrugalMCT: Efficient Online ML API Selection for Multi-Label Classification Tasks

Multi-label classification tasks such as OCR and multi-object recognitio...
07/29/2021

Did the Model Change? Efficiently Assessing Machine Learning API Shifts

Machine learning (ML) prediction APIs are increasingly widely used. An M...
03/29/2022

Improving the Learnability of Machine Learning APIs by Semi-Automated API Wrapping

A major hurdle for students and professional software developers who wan...
12/05/2018

Blockchain Enabled Trustless API Marketplace

There has been an unprecedented surge in the number of service providers...
09/17/2019

Enterprise API Security and GDPR Compliance: Design and Implementation Perspective

With the advancements in the enterprise-level business development, the ...
03/28/2020

Security Analysis of the Open Banking Account and Transaction API Protocol

To counteract the lack of competition and innovation in the financial se...

Code Repositories

FrugalML

This is the repository holding code and data for "FrugalML: How to Use ML Prediction APIs More Accurately and Cheaply".


view repo