arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2112.02644cs.CVcs.MM
收藏

通过语义记忆提升移动CNN推理

Boosting Mobile CNN Inference through Semantic Memory

University of Science and Technology of China(中国科学技术大学);Damo Academy, Alibaba Group(阿里巴巴达摩院);Rose-Hulman Institute of Technology(罗斯-霍曼理工学院);Microsoft Research(微软研究院);Institute for AI Industry Research (AIR), Tsinghua University(清华大学人工智能产业研究院);State Key Laboratory of Networking and Switching Technology, Beijing University of Posts and Telecommunications(北京邮电大学网络与交换技术国家重点实验室)

Yun Li, Chen Zhang, Shihao Han, Li Lyna Zhang, Baoqun Yin, Yunxin Liu, Mengwei Xu

摘要:

人类的大脑能够通过更快的记忆编码和激活神经元的访问程序来加速对重复呈现的物体的视觉识别。我们第一次借用并提取这种能力到语义记忆设计中,即SMTM,以改善设备上的CNN推理。SMTM采用分层存储结构来充分利用感兴趣对象的长尾分布,并结合了几种新的技术来实现:(1)将高维特征映射编码为低维语义向量,以实现低成本但准确的缓存和查找;(3)自适应地调整缓存大小和语义向量以适应场景动态。SMTM是在商品CNN引擎上原型化的,并在移动CPU和GPU上运行。在大规模数据集和模型上进行的大量实验表明,SMTM可以显着加快模型推理速度,超过标准方法(高达2倍)和先前的缓存设计(高达1.5倍),精度损失可以接受。

英文摘要:

Human brains are known to be capable of speeding up visual recognition of repeatedly presented objects through faster memory encoding and accessing procedures on activated neurons. For the first time, we borrow and distill such a capability into a semantic memory design, namely SMTM, to improve on-device CNN inference. SMTM employs a hierarchical memory architecture to leverage the long-tail distribution of objects of interest, and further incorporates several novel techniques to put it into effects: (1) it encodes high-dimensional feature maps into low-dimensional, semantic vectors for low-cost yet accurate cache and lookup; (2) it uses a novel metric in determining the exit timing considering different layers' inherent characteristics; (3) it adaptively adjusts the cache size and semantic vectors to fit the scene dynamics. SMTM is prototyped on commodity CNN engine and runs on both mobile CPU and GPU. Extensive experiments on large-scale datasets and models show that SMTM can significantly speed up the model inference over standard approach (up to 2X) and prior cache designs (up to 1.5X), with acceptable accuracy loss.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑