[论文解读] Compute and Energy Consumption Trends in Deep Learning Inference
本文分析了推理计算量(FLOPs)和DNN能耗如何随模型发展而演变,结果显示硬件与算法进步在高性能模型中缓解了能耗增长,尽管对于最前沿模型仍存在指数趋势。
The progress of some AI paradigms such as deep learning is said to be linked to an exponential growth in the number of parameters. There are many studies corroborating these trends, but does this translate into an exponential increase in energy consumption? In order to answer this question we focus on inference costs rather than training costs, as the former account for most of the computing effort, solely because of the multiplicative factors. Also, apart from algorithmic innovations, we account for more specific and powerful hardware (leading to higher FLOPS) that is usually accompanied with important energy efficiency optimisations. We also move the focus from the first implementation of a breakthrough paper towards the consolidated version of the techniques one or two year later. Under this distinctive and comprehensive perspective, we study relevant models in the areas of computer vision and natural language processing: for a sustained increase in performance we see a much softer growth in energy consumption than previously anticipated. The only caveat is, yet again, the multiplicative factor, as future AI increases penetration and becomes more pervasive.
研究动机与目标
- 评估推理能耗是否随模型规模和性能呈指数级增长。
- 区分训练与推理成本,以聚焦实际部署的能耗。
- 评估硬件改进与算法进步如何随时间影响能效。
- 提供一个全面、公开可获取的CV与NLP模型、FLOPs与硬件指标数据集。
提出的方法
- 汇总来自文献与仓库的CV和NLP模型推理FLOPs。
- 整理2010–2021年的硬件数据(Nvidia GPU),以估计FLOPs/Watt。
- 用FLOPs/Watt估算前向一次的能耗(FLOPs除以FLOPs/Watt)。
- 通过绘制GFLOPs与性能的关系来区分模型进展(准确率)与计算。
- 分析ImageNet(CV)与GLUE(NLP)基准的趋势。
实验结果
研究问题
- RQ1推理能耗是否随模型性能呈指数增长,还是效率提升随时间缓解增长?
- RQ2硬件改进与模型算法创新如何相互作用,影响每次推理的能耗?
- RQ3是否存在在CV与NLP模型中效率出现停滞或加速的关键时期?
- RQ4随着时间推移,模型大小(FLOPs)与实际部署中的准确性之间的关系如何?
- RQ5每次推理的能耗与人类能耗基准及更广泛的能源使用趋势相比如何?
主要发现
- 在最先进模型中,能耗随FLOPs呈指数增长,但多模型的效率提升与硬件专用化在较长时间段内缓解了这一增长。
- 算法改进(如高效架构)使在FLOPs并未成比例增加的情况下仍可获得更高的准确率。
- 硬件进步(GPU/加速器)提升FLOPs/Watt,出现显著的效率跃升(如2018年T4混合精度)。
- 在CV中,具有相似FLOPs的早期模型在后期取得更高的准确率,表明除了原始计算之外还有算法进展。
- 在NLP中,GLUE分数提升伴随GFLOPs上升,但出现了许多高效模型(MobileBERT、SqueezeBERT),在性能与计算之间取得平衡。
- 前向一次的估计能耗(焦耳)增长速度低于FLOPs,因为硬件效率提高,但最前沿模型仍显示能源快速增长。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。