arXiv:2507.07149cs.NIcs.LG2025-07中稿 · MobiSys 2025被引 4

让手机端训练神经网络更省内存更快

DAF: An Efficient End-to-End Dynamic Activation Framework for on-Device DNN Training

  • 通过系统级优化实现动态激活压缩
  • 内存占用降低22.9倍,训练速度提升3.2倍
  • 适合资源受限设备上的深度学习训练

近年来,移动和边缘设备上的深度神经网络(DNN)在线训练发展迅速,对高效激活压缩的需求日益迫切。由于激活在训练过程中占主导内存使用并参与梯度计算,如何在不损失精度的前提下压缩激活成为关键挑战。现有动态激活量化方法虽理论上可节省内存,但实际部署受限于计算开销和内存碎片问题。为此,我们提出DAF(Dynamic Activation Framework),通过系统级优化实现可扩展、高效的设备端训练。DAF通过针对移动端与边缘SoC内存层级设计的混合归约操作、协同CPU-GPU位打包机制,以及重要性感知的分页内存管理策略,有效解决核心系统瓶颈。这些优化共同实现内存与时间双重效率提升,无需牺牲模型训练精度。在多种嵌入式与移动端平台上的实验表明,DAF实现了最高达22.9倍的内存减少和3.2倍的速度提升,为资源受限环境提供了可扩展且实用的解决方案。

原文摘要 · Abstract (English)

Recent advancements in on-device training for deep neural networks have underscored the critical need for efficient activation compression to overcome the memory constraints of mobile and edge devices. As activations dominate memory usage during training and are essential for gradient computation, compressing them without compromising accuracy remains a key research challenge. While existing methods for dynamic activation quantization promise theoretical memory savings, their practical deployment is impeded by system-level challenges such as computational overhead and memory fragmentation. To address these challenges, we introduce DAF, a Dynamic Activation Framework that enables scalable and efficient on-device training through system-level optimizations. DAF achieves both memory- and time-efficient dynamic quantization training by addressing key system bottlenecks. It develops hybrid reduction operations tailored to the memory hierarchies of mobile and edge SoCs, leverages collaborative CPU-GPU bit-packing for efficient dynamic quantization, and implements an importance-aware paging memory management scheme to reduce fragmentation and support dynamic memory adjustments. These optimizations collectively enable DAF to achieve substantial memory savings and speedup without compromising model training accuracy. Evaluations on various deep learning models across embedded and mobile platforms demonstrate up to a $22.9\times$ reduction in memory usage and a $3.2\times$ speedup, making DAF a scalable and practical solution for resource-constrained environments.

神经网络训练内存优化边缘计算

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。