Rethinking Mobile AI Ecosystem in the LLM Era

Jinliang Yuan, Chen Yang, Dongqi Cai, Shihe Wang, Xin Yuan, Zeling Zhang, Xiang Li, Dingge Zhang, Hanzi Mei, Xianqing Jia, Shangguang Wang, Mengwei Xu · DOI

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. 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 M4. 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. M4 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.

Introduction: The Fragmentation Crisis

The current mobile AI landscape is defined by extreme fragmentation. As mobile applications increasingly integrate deep learning for diverse tasks—ranging from optical character recognition (OCR) to complex gesture recognition—they typically deploy specialized, task-specific models. This approach leads to massive architectural diversity, with hundreds of different mathematical operators across various models.

This fragmentation creates significant challenges for hardware efficiency. Mobile Neural Processing Units (NPUs) are designed for high-speed execution but typically support only a limited subset of AI operators. Empirical analysis of "in-the-wild" models reveals a stark compatibility gap: only a small fraction of these models can run entirely on modern NPUs, forcing most to fall back to slower CPU or GPU execution.

NPU compatibility gap: Only 8% of popular mobile models can run entirely on modern NPUs.

M4: A Unified Foundation Model Paradigm

To overcome these inefficiencies, we propose M4 (Mobile Multimodal Multi-path Model). M4 shifts the paradigm by treating the AI model as "firmware"—a central, highly optimized system service managed by the mobile OS and hardware.

Architecture

M4 employs a unified N-1-M design (Multiple Inputs, One Backbone, Multiple Outputs):

  • N Encoders: Specialized modules process various modalities, including Vision (ViT), Text (CLIP), Audio (Whisper), and IMU sensing data.
  • 1 Backbone: A "narrow waist" reasoning engine based on a pre-trained LLM (specifically LLaMA-7B) aligns disparate data types into a unified latent space.
  • M Generators: Decoders produce final outputs, such as text, classification labels, or images.
The M4 architecture: A unified N-1-M design for multimodal mobile AI tasks.

AI as Firmware

In this model, apps do not provide entire neural networks. Instead, they contribute lightweight LoRA (Low-Rank Adaptation) adapters—tiny files (often <10MB) that fine-tune the shared backbone for specific downstream tasks. This approach drastically reduces redundant storage and memory usage across the system.

Evaluation and Key Insights

We validated the M4 paradigm using eAIBench, a comprehensive edge-oriented benchmark comprising 38 tasks and 50 datasets across five modalities.

Accuracy and Scalability

M4 achieved comparable or superior accuracy in 85% of the tested datasets compared to state-of-the-art task-specific models. Beyond accuracy, M4 offers superior system-level scalability. While the initial footprint of the 9.2B parameter model is large, it becomes more storage-efficient than traditional methods once a device hosts more than 15 different AI tasks, as the marginal cost of adding a new task is limited to a small adapter.

Operator Consolidation

A critical advantage of the M4 approach is the reduction in operator complexity. While 50 specialized models collectively required 156 different mathematical operators, M4 requires only 39. This consolidation simplifies the design requirements for future NPUs, enabling hardware manufacturers to focus optimization on a smaller, more manageable set of primitives, potentially unlocking significant speedups.

Conclusion

The M4 paradigm offers a sustainable path forward for the mobile AI ecosystem. By consolidating fragmented models into a unified, firmware-like foundation model, we can achieve better hardware utilization, improved system scalability, and simplified optimization. As mobile hardware continues to evolve with increased RAM and specialized NPU support for transformer architectures, the "AI as Firmware" approach is poised to become the standard for mobile intelligence.

Summary updated

BibTeX
@inproceedings{yuan2024rethinking,
  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},
  title = {{Rethinking Mobile AI Ecosystem in the LLM Era}},
  booktitle = {MobiCom},
  year = {2024},
  doi = {10.1145/3636534.3649361},
}
Figure