REDS: Resource-Efficient Deep Subnetworks for Dynamic Resource Constraints
Graz University of Technology(格拉茨技术大学);ABB Research(ABB研究);University of Applied Sciences, FH Joanneum(应用科学大学,FH Joanneum);University of Graz(格拉茨大学);CSH Vienna(维也纳CSH)
Francesco Corti, Balz Maag, Joachim Schauer, Ulrich Pferschy, Olga Saukh
部署在边缘设备上的深度学习模型经常遇到资源变化,这种变化源于能量水平波动、时序约束或系统内其他关键任务的优先级安排。最先进的机器学习流水线生成的是与资源无关的模型,无法在运行时进行自适应。在本工作中,我们提出 Resource-Efficient Deep Subnetworks(REDS,资源高效深度子网络),以解决模型对可变资源的自适应问题。与现有最先进方法不同,REDS 通过利用神经元的置换不变性,以建设性方式使用结构化稀疏,从而支持针对硬件的优化。具体而言,REDS 通过以下方式实现计算效率:(1)跳过由一种新颖的迭代背包优化器识别出的顺序计算块;(2)通过重新排列 REDS 计算图中的操作顺序来利用数据缓存。REDS 支持边缘上频繁部署的传统深度网络,即使对于小型、简单的网络也能提供计算收益。我们在八个基准架构上评估 REDS,这些架构分别在 Visual Wake Words、Google Speech Commands、Fashion-MNIST、CIFAR-10 和 ImageNet-1K 数据集上训练,并在四个现成的移动和嵌入式硬件平台上进行测试。我们提供了理论结果和经验证据,证明 REDS 在子模型测试集准确率方面的出色表现;同时,在 Arduino Nano 33 BLE 上使用全连接网络时,REDS 对动态资源约束的自适应时间低于 40 μs。
英文摘要:
Deep learning models deployed on edge devices frequently encounter resource variability, which arises from fluctuating energy levels, timing constraints, or prioritization of other critical tasks within the system. State-of-the-art machine learning pipelines generate resource-agnostic models that are not capable to adapt at runtime. In this work, we introduce Resource-Efficient Deep Subnetworks (REDS) to tackle model adaptation to variable resources. In contrast to the state-of-the-art, REDS leverages structured sparsity constructively by exploiting permutation invariance of neurons, which allows for hardware-specific optimizations. Specifically, REDS achieves computational efficiency by (1) skipping sequential computational blocks identified by a novel iterative knapsack optimizer, and (2) taking advantage of data cache by re-arranging the order of operations in REDS computational graph. REDS supports conventional deep networks frequently deployed on the edge and provides computational benefits even for small and simple networks. We evaluate REDS on eight benchmark architectures trained on the Visual Wake Words, Google Speech Commands, Fashion-MNIST, CIFAR-10 and ImageNet-1K datasets, and test on four off-the-shelf mobile and embedded hardware platforms. We provide a theoretical result and empirical evidence demonstrating REDS' outstanding performance in terms of submodels' test set accuracy, and demonstrate an adaptation time in response to dynamic resource constraints of under 40$μ$s, utilizing a fully-connected network on Arduino Nano 33 BLE.
Towards Adaptive Deep Learning: Model Elasticity via Prune-and-Grow CNN Architectures
Vrije Universiteit Amsterdam(阿姆斯特丹自由大学);Universiteit van Amsterdam(阿姆斯特丹大学);UvA-VU Master of Science degree in Computer Science(乌得勒支大学-瓦赫宁根大学计算机科学硕士联合学位)
deepregression: a Flexible Neural Network Framework for Semi-Structured Deep Distributional Regression
LMU Munich(慕尼黑大学);Helmholtz AI(亥姆霍兹人工智能研究所);ETH Zurich(苏黎世联邦理工学院);University of Zurich(苏黎世大学);Humboldt-Universität zu Berlin(柏林洪堡大学);Helmholtz Zentrum Munich(慕尼黑亥姆霍兹中心);Flatiron Institute(弗莱提荣研究所)