[Paper Review] On the Replicability and Reproducibility of Deep Learning in Software Engineering
This paper investigates replicability and reproducibility challenges in deep learning (DL) for software engineering (SE), revealing that only 10.8% of 93 reviewed DL studies address these issues, and 74.2% do not share code or data. Re-running four representative models shows performance instability due to optimization randomness, convergence issues, and sensitivity to vocabulary and test data size, underscoring the urgent need for shared replication packages, stable training, and robust evaluation in SE DL research.
Deep learning (DL) techniques have gained significant popularity among software engineering (SE) researchers in recent years. This is because they can often solve many SE challenges without enormous manual feature engineering effort and complex domain knowledge. Although many DL studies have reported substantial advantages over other state-of-the-art models on effectiveness, they often ignore two factors: (1) replicability - whether the reported experimental result can be approximately reproduced in high probability with the same DL model and the same data; and (2) reproducibility - whether one reported experimental findings can be reproduced by new experiments with the same experimental protocol and DL model, but different sampled real-world data. Unlike traditional machine learning (ML) models, DL studies commonly overlook these two factors and declare them as minor threats or leave them for future work. This is mainly due to high model complexity with many manually set parameters and the time-consuming optimization process. In this study, we conducted a literature review on 93 DL studies recently published in twenty SE journals or conferences. Our statistics show the urgency of investigating these two factors in SE. Moreover, we re-ran four representative DL models in SE. Experimental results show the importance of replicability and reproducibility, where the reported performance of a DL model could not be replicated for an unstable optimization process. Reproducibility could be substantially compromised if the model training is not convergent, or if performance is sensitive to the size of vocabulary and testing data. It is therefore urgent for the SE community to provide a long-lasting link to a replication package, enhance DL-based solution stability and convergence, and avoid performance sensitivity on different sampled data.
Motivation & Objective
- To investigate the prevalence of replicability and reproducibility issues in deep learning (DL) studies within software engineering (SE).
- To assess how often DL-based SE studies share source code and data, which are essential for replication.
- To evaluate the impact of model instability, convergence, vocabulary size, and test data variation on reproducibility in DL-based SE research.
- To provide actionable recommendations for improving replicability and reproducibility in future DL-based SE studies.
Proposed method
- Conducted a systematic literature review of 93 DL studies published in 20 SE journals and conferences over the past five years.
- Analyzed the availability of replication packages (source code and data) and the extent to which studies discuss replicability and reproducibility concerns.
- Re-implemented and re-evaluated four representative DL models from top SE venues using the same protocols but different random seeds and data splits.
- Measured model performance stability across multiple runs to assess replicability, and evaluated sensitivity to vocabulary size and test data size for reproducibility.
- Used automated evaluation to minimize human bias and ensure consistent performance measurement.
- Proposed mitigation strategies such as using convergence-based training instead of fixed iterations, and incorporating robust features like abstract syntax trees to reduce data sensitivity.
Experimental results
Research questions
- RQ1To what extent do DL-based SE studies in recent years report on replicability and reproducibility issues?
- RQ2How often are source code and data shared in DL-based SE studies, and what impact does this have on replication?
- RQ3How does model instability due to random initialization and optimization affect the replicability of reported results?
- RQ4How do vocabulary size and test data size influence the reproducibility of DL model performance in SE tasks?
- RQ5What practical measures can improve the replicability and reproducibility of DL-based SE research?
Key findings
- Only 10.8% of the 93 reviewed DL-based SE studies addressed replicability or reproducibility issues, indicating widespread neglect of these scientific principles.
- 74.2% of the studies did not share source code or data, severely undermining the possibility of replication.
- Re-running four representative DL models revealed significant performance instability across runs, indicating poor replicability due to optimization randomness.
- Model performance was highly sensitive to vocabulary size and test data size, with performance varying substantially across different data splits, undermining reproducibility.
- Low convergence levels in training led to unstable and turbulent performance, further compromising reproducibility.
- The study concludes that shared replication packages, convergence monitoring, and robust evaluation are essential to improve the scientific validity of DL-based SE research.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.