arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2412.06566cs.LG
收藏

DEX:面向微型AI加速器上高效CNN推理的数据通道扩展方法

DEX: Data Channel Extension for Efficient CNN Inference on Tiny AI Accelerators

Nokia Bell Labs(诺基亚贝尔实验室);UNIST(蔚山国家科学技术研究院);University of Glasgow(格拉斯哥大学)

Taesik Gong, Fahim Kawsar, Chulhong Min

AI总结:

针对微型AI加速器数据内存有限需下采样输入导致CNN精度下降的问题,提出数据通道扩展方法DEX,利用闲置资源将原始图像空间信息扩展到输入通道,在不增加推理延迟的前提下平均提升精度3.5个百分点。

摘要:

微型机器学习(TinyML)旨在在小型设备上运行机器学习模型,凭借其隐私性增强、延迟降低和成本低廉的优势日益受到青睐。近年来,微型AI加速器的出现大幅提升了硬件处理能力,为TinyML领域带来了变革。这类加速器配备多个并行处理器以及每个处理器专属的内存实例,相比传统微控制器单元(MCU)可实现显著的性能提升。然而,其有限的数据内存通常要求对输入图像进行下采样,进而导致精度下降。为解决这一问题,我们提出了数据通道扩展(Data channel EXtension, DEX),这是一种在微型AI加速器上高效执行CNN的新方法。DEX通过分块均匀采样和通道维度堆叠,将原始图像中的额外空间信息整合到输入图像中,有效实现了数据在输入通道维度的扩展。通过利用未充分利用的处理器和数据内存进行通道扩展,DEX可在不增加推理延迟的前提下实现并行执行。我们在微型AI加速器上使用4种模型和4个数据集开展评估,结果表明这一简单的方法可在保持AI加速器上推理延迟不变的同时,将精度平均提升3.5个百分点。源代码可在https://github.com/Nokia-Bell-Labs/data-channel-extension获取。

英文摘要:

Tiny machine learning (TinyML) aims to run ML models on small devices and is increasingly favored for its enhanced privacy, reduced latency, and low cost. Recently, the advent of tiny AI accelerators has revolutionized the TinyML field by significantly enhancing hardware processing power. These accelerators, equipped with multiple parallel processors and dedicated per-processor memory instances, offer substantial performance improvements over traditional microcontroller units (MCUs). However, their limited data memory often necessitates downsampling input images, resulting in accuracy degradation. To address this challenge, we propose Data channel EXtension (DEX), a novel approach for efficient CNN execution on tiny AI accelerators. DEX incorporates additional spatial information from original images into input images through patch-wise even sampling and channel-wise stacking, effectively extending data across input channels. By leveraging underutilized processors and data memory for channel extension, DEX facilitates parallel execution without increasing inference latency. Our evaluation with four models and four datasets on tiny AI accelerators demonstrates that this simple idea improves accuracy on average by 3.5%p while keeping the inference latency the same on the AI accelerator. The source code is available at https://github.com/Nokia-Bell-Labs/data-channel-extension.

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

↑