An Empirical Study on Bugs Inside PyTorch: A Replication Study

Sharon Chee Yin Ho, Vahid Majdinasab, Mohayeminul Islam, Diego Elias Costa, Emad Shihab, Foutse Khomh, Sarah Nadi, Muhammad Raza

Research output: Chapter in Book/Report/Conference proceedingConference contribution

Abstract

Software systems are increasingly relying on deep learning components, due to their remarkable capability of identifying complex data patterns and powering intelligent behaviour. A core enabler of this change in software development is the availability of easy-to-use deep learning libraries. Libraries like PyTorch and TensorFlow empower a large variety of intelligent systems, offering a multitude of algorithms and configuration options, applicable to numerous domains of systems. However, bugs in those popular deep learning libraries also may have dire consequences for the quality of systems they enable; thus, it is important to understand how bugs are identified and fixed in those libraries.Inspired by a study of Jia et al., which investigates the bug identification and fixing process at TensorFlow, we characterize bugs in the PyTorch library, a very popular deep learning framework. We investigate the causes and symptoms of bugs identified during PyTorch's development, and assess their locality within the project, and extract patterns of bug fixes. Our results highlight that PyTorch bugs are more like traditional software projects bugs, than related to deep learning characteristics. Finally, we also compare our results with the study on TensorFlow, highlighting similarities and differences across the bug identification and fixing process.

Original languageEnglish (US)
Title of host publicationProceedings - 2023 IEEE International Conference on Software Maintenance and Evolution, ICSME 2023
PublisherInstitute of Electrical and Electronics Engineers Inc.
Pages220-231
Number of pages12
ISBN (Electronic)9798350327830
DOIs
StatePublished - 2023
Event39th IEEE International Conference on Software Maintenance and Evolution, ICSME 2023 - Bogota, Colombia
Duration: Oct 1 2023Oct 6 2023

Publication series

NameProceedings - 2023 IEEE International Conference on Software Maintenance and Evolution, ICSME 2023

Conference

Conference39th IEEE International Conference on Software Maintenance and Evolution, ICSME 2023
Country/TerritoryColombia
CityBogota
Period10/1/2310/6/23

Keywords

  • Bug Analysis
  • Deep Learning
  • Empirical Study
  • PyTorch
  • Software Library Defect

ASJC Scopus subject areas

  • Software
  • Safety, Risk, Reliability and Quality

Fingerprint

Dive into the research topics of 'An Empirical Study on Bugs Inside PyTorch: A Replication Study'. Together they form a unique fingerprint.

Cite this