arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2104.10350cs.LGcs.CY
收藏

碳排放与大型神经网络训练

Carbon Emissions and Large Neural Network Training

Google(谷歌);University of California, Berkeley(加州大学伯克利分校)

David Patterson, Joseph Gonzalez, Quoc Le, Chen Liang, Lluis-Miquel Munguia, Daniel Rothchild, David So, Maud Texier, Jeff Dean

摘要:

机器学习(ML)的计算需求最近增长迅速,这带来了许多成本。估计能源成本有助于衡量其对环境的影响,并找到更环保的战略,但如果没有详细的信息,这是具有挑战性的。我们计算了最近几个大型模型的能源使用和碳足迹-T5,Meena,GShard,Switch Transformer和GPT-3-并改进了早期的神经架构搜索估计,发现了进化的Transformer。我们强调了以下提高能源效率和二氧化碳当量排放(CO2 e)的机会:大型但稀疏激活的DNN可以消耗大型密集DNN的1/10的能量,而不会牺牲准确性,尽管使用了同样多甚至更多的参数。地理位置对ML工作负载调度很重要,因为无碳能源的比例和产生的CO2 e变化约为5 - 10倍,即使在同一国家和同一组织内也是如此。我们现在正在优化大型模型的训练地点和时间。特定的数据中心基础设施很重要,因为云计算中心的能效比典型的数据中心高出约1.4- 2倍,而其中面向ML的加速器的效率比现成的系统高出约2- 5倍。值得注意的是,DNN、数据中心和处理器的选择可以将碳足迹减少约100- 1000倍。这些大的因素也使得追溯能源成本的估计变得困难。为了避免计算错误,我们认为需要大量计算资源的ML论文应该在实际应用中明确能源消耗和CO2 e。我们正在努力在未来的研究中提高能源使用和CO2 e的透明度。为了帮助减少ML的碳足迹,我们认为能源使用和CO2 e应该是评估模型的关键指标,我们正在与MLPerf开发人员合作,将训练和推理期间的能源使用纳入这个行业标准基准。

英文摘要:

The computation demand for machine learning (ML) has grown rapidly recently, which comes with a number of costs. Estimating the energy cost helps measure its environmental impact and finding greener strategies, yet it is challenging without detailed information. We calculate the energy use and carbon footprint of several recent large models-T5, Meena, GShard, Switch Transformer, and GPT-3-and refine earlier estimates for the neural architecture search that found Evolved Transformer. We highlight the following opportunities to improve energy efficiency and CO2 equivalent emissions (CO2e): Large but sparsely activated DNNs can consume <1/10th the energy of large, dense DNNs without sacrificing accuracy despite using as many or even more parameters. Geographic location matters for ML workload scheduling since the fraction of carbon-free energy and resulting CO2e vary ~5X-10X, even within the same country and the same organization. We are now optimizing where and when large models are trained. Specific datacenter infrastructure matters, as Cloud datacenters can be ~1.4-2X more energy efficient than typical datacenters, and the ML-oriented accelerators inside them can be ~2-5X more effective than off-the-shelf systems. Remarkably, the choice of DNN, datacenter, and processor can reduce the carbon footprint up to ~100-1000X. These large factors also make retroactive estimates of energy cost difficult. To avoid miscalculations, we believe ML papers requiring large computational resources should make energy consumption and CO2e explicit when practical. We are working to be more transparent about energy use and CO2e in our future research. To help reduce the carbon footprint of ML, we believe energy usage and CO2e should be a key metric in evaluating models, and we are collaborating with MLPerf developers to include energy usage during training and inference in this industry standard benchmark.

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

↑