[Paper Review] An Empirical Study on Deployment Faults of Deep Learning Based Mobile Applications
This paper presents the first comprehensive empirical study on deployment faults in deep learning-based mobile applications (mobile DL apps), analyzing 304 real-world faults from Stack Overflow and GitHub. It proposes a fine-grained taxonomy of 23 fault symptom categories and identifies recurring fix strategies, offering actionable insights for developers and researchers to improve model deployment reliability on mobile devices using frameworks like TensorFlow Lite and Core ML.
Deep Learning (DL) is finding its way into a growing number of mobile software applications. These software applications, named as DL based mobile applications (abbreviated as mobile DL apps) integrate DL models trained using large-scale data with DL programs. A DL program encodes the structure of a desirable DL model and the process by which the model is trained using training data. Due to the increasing dependency of current mobile apps on DL, software engineering (SE) for mobile DL apps has become important. However, existing efforts in SE research community mainly focus on the development of DL models and extensively analyze faults in DL programs. In contrast, faults related to the deployment of DL models on mobile devices (named as deployment faults of mobile DL apps) have not been well studied. Since mobile DL apps have been used by billions of end users daily for various purposes including for safety-critical scenarios, characterizing their deployment faults is of enormous importance. To fill the knowledge gap, this paper presents the first comprehensive study on the deployment faults of mobile DL apps. We identify 304 real deployment faults from Stack Overflow and GitHub, two commonly used data sources for studying software faults. Based on the identified faults, we construct a fine-granularity taxonomy consisting of 23 categories regarding to fault symptoms and distill common fix strategies for different fault types. Furthermore, we suggest actionable implications and research avenues that could further facilitate the deployment of DL models on mobile devices.
Motivation & Objective
- To address the lack of understanding regarding deployment faults in deep learning-based mobile applications (mobile DL apps), which are increasingly used in safety-critical and everyday scenarios.
- To identify and characterize real-world deployment faults in mobile DL apps, focusing on issues arising during model deployment on mobile devices using frameworks like TensorFlow Lite and Core ML.
- To construct a fine-grained, hierarchical taxonomy of fault symptoms to capture the diversity of deployment issues.
- To distill common fix strategies for each fault symptom category to guide developers and inform tool development.
- To provide actionable implications and research directions for improving the reliability and robustness of mobile DL app deployment.
Proposed method
- Collected 304 real deployment faults from Stack Overflow and GitHub, two widely used developer forums and issue trackers.
- Conducted manual analysis to extract fault symptoms and classify them into a hierarchical taxonomy of 23 symptom categories.
- Mapped each fault to its root cause and fix strategy through qualitative inspection of developer discussions and code changes.
- Focused on two major mobile deployment frameworks: TensorFlow Lite and Core ML, to ensure relevance to current industry practices.
- Used a mixed-methods approach combining qualitative symptom categorization with pattern extraction of fix strategies.
- Released scripts and data to support reproducibility and future research.

Experimental results
Research questions
- RQ1What are the most common symptoms of deployment faults in mobile DL apps?
- RQ2How are these deployment faults categorized in terms of their underlying symptoms?
- RQ3What are the most frequent fix strategies used by developers to resolve these deployment faults?
- RQ4How do fault symptoms and fix strategies vary across different mobile deployment frameworks (e.g., TF Lite vs. Core ML)?
- RQ5What actionable insights can be derived for improving automated fault detection and debugging tools in mobile DL app development?
Key findings
- The study identified 304 real deployment faults from Stack Overflow and GitHub, highlighting the prevalence of deployment issues in mobile DL apps.
- A fine-grained taxonomy of 23 fault symptom categories was constructed, revealing the broad spectrum of deployment challenges, including model compatibility, inference errors, and hardware-specific issues.
- Common fix strategies were identified, such as model quantization, architecture adjustments, and framework-specific configuration changes, which are frequently applied to resolve symptoms.
- Symptoms like 'model fails to load' and 'inference results are incorrect' were among the most frequently reported, indicating critical reliability concerns.
- The study found that deployment faults are more complex and harder to resolve than general DL program faults, as evidenced by increasing question volume and difficulty on Stack Overflow.
- The results suggest that automated tools for deployment fault detection and diagnosis are needed, especially for mobile-specific constraints like memory and CPU limitations.

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.