FrugalML:如何更准确、更便宜地使用ML预测API
FrugalML: How to Use ML Prediction APIs More Accurately and Cheaply
摘要:
收费提供的预测API是一个快速增长的行业,也是机器学习即服务的重要组成部分。虽然有许多这样的服务可用,但其价格和性能的异质性使得用户难以决定将哪个API或API组合用于自己的数据和预算。我们通过提出FrugalML来解决这一挑战,FrugalML是一个原则性的框架,它联合学习每个API在不同数据上的优势和劣势,并进行有效的优化,以自动识别最佳顺序策略,从而在预算限制内自适应地使用可用的API。我们的理论分析表明,可以利用公式中的自然稀疏性来使FrugalML高效。我们使用来自Google、Microsoft、Amazon、IBM、Baidu和其他提供商的ML API进行了系统的实验,用于面部情感识别、情感分析和语音识别等任务。在各种任务中,FrugalML可以实现高达90%的成本降低,同时匹配最佳单个API的准确性,或者在匹配最佳API成本的同时提高高达5%的准确性。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。