Work

On-Device Machine Learning Inference using Cross-Platform Frameworks

Year: 2024
Type: article
Abstract: Machine learning (ML) and mobile applications are two major technology trends in the past decade. Arguably, developing a successful mobile application is difficult, but ML can help with the challenges. ML enables new capabilities for an application, but there are multiple obstacles to be passed before publishing a ML feature to production. One of them is the inconstancy in mobile devices' hardware. A developer might be able to achieve fast and accurate enough inference in their own sandbox, but actual end-users might observe a bad user experience (UX) using an application due to inefficient inference because their device hardware varies from the developer's setup. Cross-platform frameworks are intended to provide consistent UX across operating systems (OSs) with a single codebase, which in turn shortens the development time compared to creating individual native applications for different OSs. Even though applications built using a cross-platform framework are generally less performant than those built with native languages, they can achieve near-native performance in certain tasks through the use of native modules. This makes it interesting to combine ML inference and cross-platform development and to compare the inference capabilities of the currently most common cross-platform frameworks: React Native and Flutter. The results of this thesis indicate that running hardware-accelerated ML inference is possible in both frameworks using open-source libraries. And the inference is efficient when it comes to execution time, especially on newer devices. But to achieve generally good inference time and accuracy across different devices without sacrificing UX, one should most likely lean towards React Native.
Language: English
Open Access status: green
OpenAlex ID: W7197534875
FWCI: 0.351
Cites:
Cited by: 2
Related to: 10