增强部署时代码分析与优化预测模型的鲁棒性
Enhancing Deployment-Time Predictive Model Robustness for Code Analysis and Optimization
AI总结:
本文提出开源库Prom,通过统计评估识别易误预测样本并利用反馈增量学习,在部署时提升代码分析与优化模型鲁棒性,实验显示可识别平均96%的误预测并使模型性能恢复至训练阶段水平。
摘要:
监督机器学习技术在代码分析与优化问题中已展现出有前景的结果。然而,基于学习的解决方案可能较为脆弱,因为硬件或应用工作负载的细微变化——例如面对新的CPU架构或代码模式——可能危及决策准确性,最终削弱模型的鲁棒性。我们提出了Prom,这是一个开源库,用于在部署期间增强预测模型对此类变化的鲁棒性和性能。Prom通过使用统计评估来识别容易发生误预测的测试样本,并利用这些样本的反馈来改进已部署的模型。我们通过将Prom应用于5个代码分析与优化任务中的13个代表性机器学习模型来展示其效果。我们广泛的评估表明,Prom能够成功识别平均96%(最高100%)的误预测。通过增量学习对最多5%的Prom识别样本进行重新标注,Prom可以帮助已部署模型达到与其模型训练阶段相当的性能。
英文摘要:
Supervised machine learning techniques have shown promising results in code analysis and optimization problems. However, a learning-based solution can be brittle because minor changes in hardware or application workloads -- such as facing a new CPU architecture or code pattern -- may jeopardize decision accuracy, ultimately undermining model robustness. We introduce Prom, an open-source library to enhance the robustness and performance of predictive models against such changes during deployment. Prom achieves this by using statistical assessments to identify test samples prone to mispredictions and using feedback on these samples to improve a deployed model. We showcase Prom by applying it to 13 representative machine learning models across 5 code analysis and optimization tasks. Our extensive evaluation demonstrates that Prom can successfully identify an average of 96% (up to 100%) of mispredictions. By relabeling up to 5% of the Prom-identified samples through incremental learning, Prom can help a deployed model achieve a performance comparable to that attained during its model training phase.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。