arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2107.14203stat.MLcs.AIcs.LGstat.AP
收藏

模型变了吗?有效评估机器学习API偏移

Did the Model Change? Efficiently Assessing Machine Learning API Shifts

Stanford University(斯坦福大学)

Lingjiao Chen, Tracy Cai, Matei Zaharia, James Zou

摘要:

机器学习(ML)预测API的使用越来越广泛。ML API可能会随着时间的推移而发生变化,这是由于模型更新或重新训练。这给API的使用带来了一个关键挑战,因为用户通常不清楚ML模型是否以及如何发生了变化。模型转换可能会影响下游应用程序的性能,也会产生监督问题(例如,如果需要一致性)。在本文中,我们启动了ML API移位的系统调查。我们首先量化了从2020年到2021年来自谷歌、微软、亚马逊和其他公司的流行ML API在各种数据集上的性能变化。我们发现,在我们调查的36例病例中,有12例发生了显著的模型转变。有趣的是,我们发现了几个数据集,其中API的预测随着时间的推移变得明显变差。这促使我们在更细粒度的级别上制定API偏移评估问题,即当数据分布恒定时,估计API模型的混淆矩阵如何随时间变化。使用标准随机采样来监测混淆矩阵移位可能需要大量样本,这是昂贵的,因为每个API调用都需要付费。我们提出了一个原则性的自适应采样算法,MASA,有效地估计混淆矩阵移位。与随机抽样相比,MASA可以使用多达90%的样本准确估计商业ML API中的混淆矩阵偏移。这项工作将ML API转变确定为一个需要研究的重要问题,并提供了一种具有成本效益的方法来监控此类转变。

英文摘要:

Machine learning (ML) prediction APIs are increasingly widely used. An ML API can change over time due to model updates or retraining. This presents a key challenge in the usage of the API because it is often not clear to the user if and how the ML model has changed. Model shifts can affect downstream application performance and also create oversight issues (e.g. if consistency is desired). In this paper, we initiate a systematic investigation of ML API shifts. We first quantify the performance shifts from 2020 to 2021 of popular ML APIs from Google, Microsoft, Amazon, and others on a variety of datasets. We identified significant model shifts in 12 out of 36 cases we investigated. Interestingly, we found several datasets where the API's predictions became significantly worse over time. This motivated us to formulate the API shift assessment problem at a more fine-grained level as estimating how the API model's confusion matrix changes over time when the data distribution is constant. Monitoring confusion matrix shifts using standard random sampling can require a large number of samples, which is expensive as each API call costs a fee. We propose a principled adaptive sampling algorithm, MASA, to efficiently estimate confusion matrix shifts. MASA can accurately estimate the confusion matrix shifts in commercial ML APIs using up to 90% fewer samples compared to random sampling. This work establishes ML API shifts as an important problem to study and provides a cost-effective approach to monitor such shifts.

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

↑