arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2405.10426cs.LGcs.AIcs.CL
收藏

无电池嵌入式系统上预训练模型的内存高效型能量自适应推理

Memory-efficient Energy-adaptive Inference of Pre-Trained Models on Batteryless Embedded Systems

University of Trento(特伦托大学);Worcester Polytechnic Institute(伍斯特理工学院);Ege University(埃ge大学);Georgia Institute of Technology(佐治亚理工学院)

Pietro Farina, Subrata Biswas, Eren Yıldız, Khakim Akhunov, Saad Ahmed, Bashima Islam, Kasım Sinan Yıldırım

AI总结:

针对无电池嵌入式系统内存受限、能量动态变化的问题,提出FreeML框架,通过新型压缩技术和单分支早退机制,实现预训练DNN的内存高效能量自适应推理,大幅降低模型体积与内存开销,精度损失极小。

摘要:

无电池系统频繁面临断电问题,需要额外的运行时缓冲区来维持推理进度,仅能留出可存储超小型深度神经网络(DNN)的内存空间。此外,要让这类模型在推理过程中响应随机的能量收集动态变化,需要在推理精度、延迟和能量开销之间取得平衡。近期的压缩研究大多聚焦于时间和内存优化,却往往忽略能量动态变化,或是会大幅降低预训练DNN的精度。现有的能量自适应推理工作需要修改预训练模型的架构,且内存开销显著。因此,在内存极度受限的无电池设备上实现预训练DNN的能量自适应且高精度推理,比传统微控制器场景更具挑战性。针对这些问题,我们提出了FreeML框架,用于优化预训练DNN模型,使其能在无电池系统上实现内存高效的能量自适应推理。FreeML包含两部分:(1)一种新型压缩技术,可同时降低模型占用空间和运行时内存需求,使模型能在内存极度受限的无电池平台上运行;(2)首个采用单出口分支覆盖所有退出点的早退机制,可随时终止推理,以极低的内存开销实现模型的能量自适应。我们的实验表明,FreeML最多可将模型体积缩小95倍,支持自适应推理的同时内存开销降低2.03-19.65倍,与现有最优方法相比,仅带来可忽略的精度下降,同时具备显著的时间和能耗优势。

英文摘要:

Batteryless systems frequently face power failures, requiring extra runtime buffers to maintain inference progress and leaving only a memory space for storing ultra-tiny deep neural networks (DNNs). Besides, making these models responsive to stochastic energy harvesting dynamics during inference requires a balance between inference accuracy, latency, and energy overhead. Recent works on compression mostly focus on time and memory, but often ignore energy dynamics or significantly reduce the accuracy of pre-trained DNNs. Existing energy-adaptive inference works modify the architecture of pre-trained models and have significant memory overhead. Thus, energy-adaptive and accurate inference of pre-trained DNNs on batteryless devices with extreme memory constraints is more challenging than traditional microcontrollers. We combat these issues by proposing FreeML, a framework to optimize pre-trained DNN models for memory-efficient and energy-adaptive inference on batteryless systems. FreeML comprises (1) a novel compression technique to reduce the model footprint and runtime memory requirements simultaneously, making them executable on extremely memory-constrained batteryless platforms; and (2) the first early exit mechanism that uses a single exit branch for all exit points to terminate inference at any time, making models energy-adaptive with minimal memory overhead. Our experiments showed that FreeML reduces the model sizes by up to $95 \times$, supports adaptive inference with a $2.03-19.65 \times$ less memory overhead, and provides significant time and energy benefits with only a negligible accuracy drop compared to the state-of-the-art.

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

↑