Work

Towards Reliable, Production-Ready Deep Learning and Deep Reinforcement Learning Systems

Year: 2023
Type: dissertation
Abstract: We stand on the verge of a new technological revolution powered by Artificial Intelligence (AI) that is reshaping industries and altering our daily lives. In recent years, there have been notable advancements in Deep Learning (DL) and Deep Reinforcement Learning (DRL), the most sought-after subfields of AI. These advancements have led to significant accomplish- ments in several domains like robotics, medicine, and transportation. Furthermore, the ac- cessibility of affordable computational power and the rapid expansion of data are key factors for the development of cutting-edge DL and DRL models. However, producing profit through Machine Learning (ML) requires more than simply developing the finest ML model; it ne- cessitates the operationalization of a holistic ML system that performs reliably and adapts to changes in the business's dynamics. This need for operationalization has highlighted the necessity for a discipline focusing on delivering ML to production. Machine Learning Oper- ations (MLOps) has attracted significant interest in the field of ML engineering owing to its notable improvements in software quality and time to market. MLOps is an ML engineering methodology that formalizes and automates the various stages of the ML lifecycle, with the objective of unifying ML development and operations. Current industry reports emphasize the struggles of ML firms, especially those leveraging DL and DRL, in applying MLOps principles, and transitioning from a proof-of-concept solution to a reliable, production-ready ML system. This is attributed to the current slow, manual, and challenging operationalization of ML systems, which urges more dedication and attention from both academia and industry. Several challenges hinder the seamless productionization of ML in real-world applications, spanning all phases of the ML operationalization lifecycle, including model validation, deployment, and monitoring. Indeed, there is a significant lack of tools, guidelines, and research, that are specifically focused on the deployment phase of DL and DRL. Academia and business are primarily concerned with the development phase of ML systems, with minimal focus on deployment. The scarcity of research on DRL-specific de- ployment challenges has left practitioners uninformed of potential issues they may encounter while deploying DRL-based systems. Furthermore, there is still a reliance on traditional, of- ten ineffective, procedures for assessing the reliability of post-training compression strategies, such as quantization. In real-world production settings, these traditional reliability assess- ment techniques affect model validation, posing a hurdle in accurately gauging the model's behavior. In addition, the phenomenon of data drift, the alteration in the data distribution over time in operational settings, continues to pose a significant obstacle to in-production ML monitoring. This can lead to a notable deterioration in the model performance. When this condition is not promptly identified and resolved, it can significantly increase opera- tional costs and downtime. Considering the aforementioned challenges, it's paramount to further apply MLOps principles relative to each ML operationalization phase and enhance the reliability and production-readiness of DL and DRL systems. In this thesis, we are interested in contributing to three key aspects covering distinct phases within the ML operationalization lifecycle. Our aim is to address challenges that arise throughout the model deployment, validation, and monitoring phases. This targeted ap- proach allows for a more in-depth examination of the challenges that ML practitioners face as they transition from proof-of-concept to reliable, production-ready systems. First, we tackle model deployment. More precisely, we contribute to improving our understanding of practical challenges encountered by developers when deploying DRL systems by conducting an empirical study on Stack Overflow (SO), the world's largest forum for developers. In this study, we reviewed SO posts about DRL deployment, investigated the current state, and highlighted the challenges associated with deploying DRL systems. Then, we look into the frequency and difficulty of these challenges. Next, we examined the reliability of Deep Neural Network (DNN) quantization techniques with the aim of uncovering the real impact of these techniques in production settings. We propose DiverGet, a search-based testing approach to evaluate the real impact of quantization methods. DiverGet aims to detect difference-inducing inputs that cause behavioral disagreements between an original DNN and its quantized version, thereby enabling a comprehensive evaluation of the influence of quantization approaches. Finally, our third study dives into model monitoring, focusing on the phenomenon of data drifts in DRL (also known as environmental drift). Environmen- tal drift is able to cause a degradation in the predictive performance of the DRL system in production. Continual learning (CL) is currently the go-to solution for healing DRL systems after environmental drifts. However, due to CL's inefficiencies such as catastrophic forgetting and slow convergence, CL can result in long or even failed healing cycles. To alleviate this issue, we introduced Dr.DRL, a new DRL self-healing approach that incorporates an inten- tional forgetting mechanism. Dr.DRL is designed to systematically prioritize the adaptation of a DRL agent's problem-solving abilities in real-world production settings in the presence of environmental drift. Our approach purposefully resets the DRL system's minor behaviors in order to emphasize the adaptation of the major behavior, hence enhancing the speed of self-healing. The range of research questions presented in this study spans the entire ML operationalization lifecycle, addressing challenges ranging from model validation to model monitoring. Our study aims to relieve the burden of ML operationalization for ML practitioners and serve as a foundation for the ML community to build on, toward more reliable and production-ready DL and DRL systems.
Author: Haj Yahmed, Ahmed
Language: French
Open Access status: green
OpenAlex ID: W7053166617
Cites: 151
Cited by:
Related to: 10