arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2102.09127cs.LGcs.AIcs.DSmath.OC
收藏

用于多标签分类任务的高效在线ML API选择

Efficient Online ML API Selection for Multi-Label Classification Tasks

Stanford University(斯坦福大学)

Lingjiao Chen, Matei Zaharia, James Zou

摘要:

OCR和多对象识别等多标签分类任务是机器学习作为服务行业不断发展的主要焦点。虽然有许多多标签预测API可用,但由于这些API的价格和性能的异质性,用户决定使用哪个API来处理自己的数据和预算是一个挑战。最近的工作展示了如何从单标签预测API中进行选择。然而,先前方法的计算复杂度在标签数量上是指数的,因此不适合于OCR等设置。在这项工作中,我们提出了FrugalMCT,一个原则性的框架,自适应地选择API用于不同的数据在一个在线的方式,同时尊重用户的预算。API选择问题被转换为一个整数线性规划,我们显示了一个特殊的结构,我们利用它来开发一个高效的在线API选择器,具有很强的性能保证。我们使用来自Google,Microsoft,Amazon,IBM,Tencent和其他提供商的ML API进行系统的实验,包括多标签图像分类,场景文本识别和命名实体识别。在不同的任务中,FrugalMCT可以实现90%以上的成本降低,同时匹配最好的单个API的准确性,或高达8%的准确性,同时匹配最好的API的成本。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑