MNN: A Universal and Efficient Inference Engine

Xiaotang Jiang, Huan Wang, Yiliu Chen, Ziqi Wu, Lichuan Wang +7 more
2/27/2020
cs.CVcs.DCcs.LG

Official code: alibaba/MNN (16,553 stars, C++, Apache-2.0, last commit 2026-11-17).

Abstract

Deploying deep learning models on mobile devices draws more and more attention recently. However, designing an efficient inference engine on devices is under the great challenges of model compatibility, device diversity, and resource limitation.

Show full abstract

To deal with these challenges, we propose Mobile Neural Network (MNN), a universal and efficient inference engine tailored to mobile applications. In this paper, the contributions of MNN include: (1) presenting a mechanism called pre-inference that manages to conduct runtime optimization; (2)deliveringthorough kernel optimization on operators to achieve optimal computation performance; (3) introducing backend abstraction module which enables hybrid scheduling and keeps the engine lightweight. Extensive benchmark experiments demonstrate that MNN performs favorably against other popular lightweight deep learning frameworks. MNN is available to public at: https://github.com/alibaba/MNN.

View on arXivView PDF

Code Implementations(1)

alibaba/MNNOfficial100%
Apache-2.0

MNN: A blazing-fast, lightweight inference engine battle-tested by Alibaba, powering high-performance on-device LLMs and Edge AI.

16,5532,536C++, PythonApr 15, 20192 weeks agoApache-2.0
armconvolutiondeep-learningembedded-devicesllm+6 more

Similar Papers

Cite this paper

@article{jiang2020mnn,
  title  = {MNN: A Universal and Efficient Inference Engine},
  author = {Xiaotang Jiang and Huan Wang and Yiliu Chen and Ziqi Wu and Lichuan Wang and Bin Zou and Yafeng Yang and Zongyang Cui and Yu Cai and Tianhang Yu and Chengfei Lv and Zhihua Wu},
  year   = {2020},
  eprint = {2002.12418},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.12418}
}

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/2002.12418.svg)](https://codeofpaper.com/paper/2002.12418)

Discussion