[Paper Review] Challenges and Obstacles Towards Deploying Deep Learning Models on Mobile Devices
This paper identifies key challenges in deploying deep learning models on mobile and edge devices due to framework and hardware incompatibilities, particularly around unsupported layers. It proposes four practical solutions—layer replacement, model retraining, post-processing adaptation, and custom layer implementation—with empirical validation showing minimal accuracy loss after conversion, enabling broader model portability across heterogeneous platforms.
From computer vision and speech recognition to forecasting trajectories in autonomous vehicles, deep learning approaches are at the forefront of so many domains. Deep learning models are developed using plethora of high-level, generic frameworks and libraries. Running those models on the mobile devices require hardware-aware optimizations and in most cases converting the models to other formats or using a third-party framework. In reality, most of the developed models need to undergo a process of conversion, adaptation, and, in some cases, full retraining to match the requirements and features of the framework that is deploying the model on the target platform. Variety of hardware platforms with heterogeneous computing elements, from wearable devices to high-performance GPU clusters are used to run deep learning models. In this paper, we present the existing challenges, obstacles, and practical solutions towards deploying deep learning models on mobile devices.
Motivation & Objective
- To identify and analyze the primary technical barriers in deploying deep learning models on mobile and edge devices.
- To examine the incompatibility issues between trained models, deep learning frameworks, and target hardware platforms.
- To propose and evaluate practical, industry-tested solutions for model conversion and adaptation across heterogeneous computing environments.
- To provide actionable guidelines for deploying models on mobile platforms with limited framework and hardware support.
Proposed method
- Categorizing model deployment challenges into four distinct scenarios based on layer incompatibility and required adaptation steps.
- Implementing layer replacement using equivalent operations (e.g., replacing Subtract with Add using negative constants) without retraining.
- Performing model retraining after architectural modifications, such as replacing ConvTranspose with a sequence of Conv, Reshape, and Transpose layers.
- Applying post-processing techniques to offload unsupported trailing layers (e.g., Softmax) from the model graph to external computation.
- Developing custom layers in both source and target frameworks when standard replacements are infeasible, ensuring cross-framework compatibility.
- Validating solutions through real-world model conversions, measuring accuracy retention and performance across diverse hardware platforms.
Experimental results
Research questions
- RQ1What are the primary causes of incompatibility when deploying pre-trained deep learning models on mobile and edge devices?
- RQ2How can unsupported layers in deep learning models be effectively replaced or adapted without significant loss in model accuracy?
- RQ3In what scenarios is model retraining necessary versus when can post-processing or layer replacement suffice?
- RQ4What are the trade-offs between implementing custom layers versus modifying model architecture during deployment?
- RQ5How effective are practical conversion strategies in maintaining model performance across heterogeneous mobile hardware platforms?
Key findings
- Model conversion via layer replacement with equivalent operations (e.g., Add with negative weights for Subtract) preserves model accuracy without requiring retraining.
- Rebuilding unsupported layers such as ConvTranspose using sequences of Conv, Reshape, and Transpose layers enables successful deployment after retraining, with accuracy close to the baseline model.
- Post-processing of incompatible trailing layers (e.g., Softmax) is feasible when multiple outputs are available, reducing the need for model modification.
- Custom layer implementation in both source and target frameworks is a viable but costly alternative when other methods are not feasible or efficient.
- The proposed solutions effectively bridge the gap between research models and production deployment on mobile and edge devices with minimal performance degradation.
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.