Towards Training Reproducible Deep Learning Models
arXiv:2202.02326 · doi:10.1145/3510003.3510163
Abstract
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.
References in corpus (8)
- TensorFlow: A system for large-scale machine learning
- Deep Speech 2: End-to-End Speech Recognition in English and Mandarin
- Model Cards for Model Reporting
- A Survey of Deep Learning Techniques for Autonomous Driving
- DeepGauge: Multi-Granularity Testing Criteria for Deep Learning Systems
- Toward Trustworthy AI Development: Mechanisms for Supporting Verifiable Claims
- How Many Random Seeds? Statistical Power Analysis in Deep Reinforcement Learning Experiments
- Building a Reproducible Machine Learning Pipeline
Cited by in corpus (4)
- Studying the Impact of TensorFlow and PyTorch Bindings on Machine Learning Software Quality
- A Survey on Stability of Learning with Limited Labelled Data and its Sensitivity to the Effects of Randomness
- Confronting the Reproducibility Crisis: A Case Study of Challenges in Cybersecurity AI
- Attention is Not Always What You Need: Towards Efficient Classification of Domain-Specific Text