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

训练可复制的深度学习模型

Towards Training Reproducible Deep Learning Models

Centre for Software Excellence, Huawei Canada(华为加拿大软件卓越中心);Huawei Technologies(华为技术有限公司);York University(约克大学)

Boyuan Chen, Mingzhi Wen, Yong Shi, Dayi Lin, Gopi Krishnan Rajbahadur, Zhen Ming, Jiang

摘要:

复制是人工智能(AI)中越来越受关注的问题,特别是在深度学习(DL)领域。能够重现DL模型对于基于AI的系统至关重要,因为它与培训、测试、调试和审计等各种任务密切相关。然而,由于软件中的随机性等问题(例如,DL算法)和硬件中的非确定性(例如,GPU)。有各种做法可以缓解上述一些问题。但是,其中许多方法要么太具有侵入性,要么只能用于特定的使用上下文。在本文中,我们提出了一种系统的方法来训练可重复的DL模型。我们的方法包括三个主要部分:(1)一组全面评估两个不同领域的DL模型的可再现性的通用标准,(2)利用记录和重放技术来减轻软件相关随机性和配置文件和补丁技术来控制硬件相关非确定性的统一框架,以及(3)再现性指南,解释了对DL模型进行可再现训练过程的原理和缓解策略。案例研究结果表明,我们的方法可以成功地复制六个开源和一个商业DL模型。

英文摘要:

Reproducibility is an increasing concern in Artificial Intelligence (AI), particularly in the area of Deep Learning (DL). Being able to reproduce DL models is crucial for AI-based systems, as it is closely tied to various tasks like training, testing, debugging, and auditing. However, DL models are challenging to be reproduced due to issues like randomness in the software (e.g., DL algorithms) and non-determinism in the hardware (e.g., GPU). There are various practices to mitigate some of the aforementioned issues. However, many of them are either too intrusive or can only work for a specific usage context. In this paper, we propose a systematic approach to training reproducible DL models. Our approach includes three main parts: (1) a set of general criteria to thoroughly evaluate the reproducibility of DL models for two different domains, (2) a unified framework which leverages a record-and-replay technique to mitigate software-related randomness and a profile-and-patch technique to control hardware-related non-determinism, and (3) a reproducibility guideline which explains the rationales and the mitigation strategies on conducting a reproducible training process for DL models. Case study results show our approach can successfully reproduce six open source and one commercial DL models.

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

↑