Mobile Foundation Model as Firmware

Jinliang Yuan, Chen Yang, Dongqi Cai, Shihe Wang, Xin Yuan +7 more
8/28/2023
cs.AI

No official code found. Best implementation: UbiquitousLearning/MobileFM (30 stars, last commit 2024-03-05).

Abstract

In today's landscape, smartphones have evolved into hubs for hosting a multitude of deep learning models aimed at local execution. A key realization driving this work is the notable fragmentation among these models, characterized by varied architectures, operators, and implementations. This fragmentation imposes a significant burden on the comprehensive optimization of hardware, system settings, and algorithms. Buoyed by the recent strides in large foundation models, this work introduces a pioneering paradigm for mobile AI: a collaborative management approach between the mobile OS and hardware, overseeing a foundational model capable of serving a broad spectrum of mobile AI tasks, if not all. This foundational model resides within the NPU and remains impervious to app or OS revisions, akin to firmware. Concurrently, each app contributes a concise, offline fine-tuned "adapter" tailored to distinct downstream tasks. From this concept emerges a concrete instantiation known as \sys. It amalgamates a curated selection of publicly available Large Language Models (LLMs) and facilitates dynamic data flow. This concept's viability is substantiated through the creation of an exhaustive benchmark encompassing 38 mobile AI tasks spanning 50 datasets, including domains such as Computer Vision (CV), Natural Language Processing (NLP), audio, sensing, and multimodal inputs. Spanning this benchmark, \sys unveils its impressive performance. It attains accuracy parity in 85\% of tasks, demonstrates improved scalability in terms of storage and memory, and offers satisfactory inference speed on Commercial Off-The-Shelf (COTS) mobile devices fortified with NPU support. This stands in stark contrast to task-specific models tailored for individual applications.

View on arXivView PDF

Code Implementations(1)

One-size-fits-all model for mobile AI, a novel paradigm for mobile AI in which the OS and hardware co-manage a foundation model that is capable of addressing most, if not all, mobile AI tasks.

306Shell, PythonNov 24, 20232 years ago

Cite this paper

@article{yuan2023mobile,
  title  = {Mobile Foundation Model as Firmware},
  author = {Jinliang Yuan and Chen Yang and Dongqi Cai and Shihe Wang and Xin Yuan and Zeling Zhang and Xiang Li and Dingge Zhang and Hanzi Mei and Xianqing Jia and Shangguang Wang and Mengwei Xu},
  year   = {2023},
  eprint = {2308.14363},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.14363v3}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.14363.svg)](https://codeofpaper.com/paper/2308.14363)

Discussion