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

QoS-Nets:自适应近似神经网络推理

QoS-Nets: Adaptive Approximate Neural Network Inference

Infineon Technologies(英飞凌科技);Center for Advancing Electronics Dresden (cfaed)(德累斯顿先进电子中心)

Elias Trommer, Bernd Waschneck, Akash Kumar

AI总结:

QoS-Nets通过灵活复用近似乘法器并支持重训练,使神经网络能在运行时动态调整操作点以平衡精度与资源消耗,在MobileNetV2上实现15.3%-42.8%功耗节省且参数仅增2.75%。

摘要:

为了在运行时改变神经网络应用的算术资源消耗,本工作提出了灵活复用近似乘法器进行神经网络层计算的方法。我们引入了一种搜索算法,该算法从更大的搜索空间中选择用户定义大小的近似乘法器子集,并支持重训练以最大化任务性能。与以往工作不同,我们的方法能够输出不止一种将近似乘法器实例静态分配给各层的方案。这些不同的操作点使系统能够通过增减精度和资源消耗来逐步适应不断变化环境条件下的服务质量(QoS)。QoS-Nets通过在运行时将选定的近似乘法器实例重新分配给各层来实现这一点。为了将多个操作点与重训练相结合,我们提出了一种微调方案,在操作点之间共享大部分参数,每个操作点仅需少量额外参数。在MobileNetV2上的评估中,QoS-Nets为三个不同操作点选择了四个近似乘法器实例。这些操作点使乘法功耗节省15.3%至42.8%,Top-5精度损失在0.3至2.33个百分点之间。通过我们的微调方案,三个操作点仅使模型参数量增加2.75%。

英文摘要:

In order to vary the arithmetic resource consumption of neural network applications at runtime, this work proposes the flexible reuse of approximate multipliers for neural network layer computations. We introduce a search algorithm that chooses an appropriate subset of approximate multipliers of a user-defined size from a larger search space and enables retraining to maximize task performance. Unlike previous work, our approach can output more than a single, static assignment of approximate multiplier instances to layers. These different operating points allow a system to gradually adapt its Quality of Service (QoS) to changing environmental conditions by increasing or decreasing its accuracy and resource consumption. QoS-Nets achieves this by reassigning the selected approximate multiplier instances to layers at runtime. To combine multiple operating points with the use of retraining, we propose a fine-tuning scheme that shares the majority of parameters between operating points, with only a small amount of additional parameters required per operating point. In our evaluation on MobileNetV2, QoS-Nets is used to select four approximate multiplier instances for three different operating points. These operating points result in power savings for multiplications between 15.3% and 42.8% at a Top-5 accuracy loss between 0.3 and 2.33 percentage points. Through our fine-tuning scheme, all three operating points only increase the model's parameter count by only 2.75%.

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

↑