Interoperability in Deep Learning: A User Survey and Failure Analysis of ONNX Model Converters
Open Access
- 11 September 2024
- conference paper
- Published by Association for Computing Machinery (ACM)
- p. 1466-1478
Abstract
Software engineers develop, fine-tune, and deploy deep learning (DL) models using a variety of development frameworks and runtime environments. DL model converters move models between frameworks and to runtime environments. Conversion errors compromise model quality and disrupt deployment. However, the failure characteristics of DL model converters are unknown, adding risk when using DL interoperability technologies. This paper analyzes failures in DL model converters. We survey software engineers about DL interoperability tools, use cases, and pain points (N=92). Then, we characterize failures in model converters associated with the main interoperability tool, ONNX (N=200 issues in PyTorch and TensorFlow). Finally, we formulate and test two hypotheses about structural causes for the failures we studied. We find that the node conversion stage of a model converter accounts for ∼75% of the defects and 33% of reported failure are related to semantically incorrect models. The cause of semantically incorrect models is elusive, but models with behaviour inconsistencies share operator sequences. Our results motivate future research on making DL interoperability software simpler to maintain, extend, and validate. Research into behavioural tolerances and architectural coverage metrics would be fruitful.Keywords
This publication has 40 references indexed in Scilit:
- Challenges and practices of deep learning model reengineering: A case study on computer visionEmpirical Software Engineering, 2024
- Bug characterization in machine learning-based systemsEmpirical Software Engineering, 2023
- Threats to validity in software engineering research: A critical reflectionInformation and Software Technology, 2023
- Pre-trained models: Past, present and futureAI Open, 2021
- A survey of deep learning techniques for autonomous drivingJournal of Field Robotics, 2019
- Regexes are Hard: Decision-Making, Difficulties, and Risks in Programming Regular Expressions2019
- Survey Research in Software Engineering: Problems and Mitigation StrategiesIEEE Access, 2018
- Personal Opinion Surveys2008
- Selecting Empirical Methods for Software Engineering Research2008
- Experimentation in Software Engineering2000