Year: 2024
Type: dissertation
Abstract: l'avenir ABSTRACT: Machine Learning (ML) has rapidly become a fundamental technology, driving a diverse array of applications from everyday smartphone utilities to large-scale, safety-critical systems. As ML continues to expand into various domains, the demand for reliable ML-based systems has grown more pressing. However, the distinct nature of ML systems, which differ fundamentally from traditional software systems, introduces unique challenges in the reliability assessment of ML-based systems. This thesis addresses these challenges by focusing on four critical aspects of ML-based systems: understanding the nature of ML-specific bugs which is a necessity for developing reliability assessment techniques, identifying development challenges in specialized ML domains that affect the reliability of ML-based software, implementing a standard benchmark of bugs, a critical requirement for the reliability assessment process, and advancing fault localization techniques. The first essential step in devising effective reliability assessment techniques for ML-based systems is to understand the nature of ML bugs. To this end, we conducted a detailed investigation of 386 reported issues from the top 300 GitHub repositories that use popular ML frameworks such as Keras, TensorFlow, and PyTorch. Our study reveals that nearly half of these reported issues pertain specifically to ML components, with ML bugs exhibiting distinct characteristics, such as increased complexity and higher fixing costs, compared to non-ML bugs. Building on this foundational analysis, we then explored challenges specific to the quality assurance of ML-based systems, with a particular focus on reinforcement learning (RL). RL, a subfield of ML, has seen limited examination in the literature despite its growing adoption in industry. To investigate these challenges, we analyzed 927 DRL-related posts on Stack Overflow (SO) and developed a taxonomy of common challenges in DRL application development. This taxonomy, validated by a survey of 65 DRL developers, highlights that Comprehension, API usage, and Design problems are the most prevalent challenges, while Parallel processing and DRL libraries/frameworks are identified as the most complex. These findings underscore the critical need for tools and resources to address these challenges and enhance the quality of DRL-based systems. Supporting the development of such tools necessitates a standard benchmark of bugs for evaluating the performance of these techniques and enabling standardized comparisons. Thus, the third part of this thesis investigates the reproducibility and verifiability of bugs in MLbased systems, leading to the development of a benchmark called Defect4ML. Defect4ML comprises 100 reproducible ML bugs sourced from GitHub repositories of ML-based applivi cations and ML-related SO posts, utilizing the two most common ML frameworks, Keras and TensorFlow. This benchmark meets standard criteria such as relevance, reproducibility, fairness, verifiability, and usability. Leveraging this benchmark, we developed a novel system-level fault localization approach based on Knowledge Graphs (KG) to address faults across the entire DL development pipeline, including data preprocessing, model training, and system deployment. Our approach, validated against existing methods such as DeepLocalize, and autoTrainer, demonstrates superior performance by providing a ranked list of faults and their probable root causes, offering a comprehensive solution for ensuring the reliability of ML-based systems. In summary, this thesis makes significant contributions to the field of ML-based systems by (1) characterizing the unique nature of bugs in ML components, (2) identifying and categorizing development challenges in DRL, (3) creating the Defect4ML benchmark for ML-based system bugs, and (4) proposing an innovative fault localization approach that spans the entire DL development pipeline. Together, these contributions advance the understanding and reliability of ML-based systems, paving the way for more robust and trustworthy applications in the future.
Author: Morovati, Mohammadmehdi
Institution: Polytechnique Montréal
Language: French
Subfield: Software
Field: Computer Science
Domain: Physical Sciences
Open Access status: green
OpenAlex ID: W7052417730
