arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2203.06673cs.LGcs.AIcs.AR
收藏

FlexBlock:灵活的DNN训练加速器,支持多模式块浮点

FlexBlock: A Flexible DNN Training Accelerator with Multi-Mode Block Floating Point Support

DGIST(大邱庆北科学技术院);KAIST(韩国科学技术院)

Seock-Hwan Noh, Jahyun Koo, Seunghyun Lee, Jongse Park, Jaeha Kung

摘要:

训练深度神经网络(DNN)是一项计算成本高昂的工作,即使使用高性能GPU也可能需要数周或数月的时间。作为对这一挑战的补救措施,社区已经开始探索在训练过程中使用更有效的数据表示,例如,块浮点(BFP)。然而,基于BFP的DNN加速器的先前工作依赖于特定的BFP表示,使得它们的通用性较差。本文建立在算法观察的基础上,我们可以通过利用多个BFP精度来加速训练,而不会影响最终达到的准确性。在这个算法机会的支持下,我们开发了一个灵活的DNN训练加速器,称为FlexBlock,它支持三种不同的BFP精度模式,激活,权重和梯度张量可能不同。虽然一些先前的工作提出了DNN加速器的多精度支持,但它们不仅关注推理,而且在考虑训练时,它们的核心利用率在固定精度和特定层类型下是次优的。相反,FlexBlock的设计方式是,通过将数据以分层方式映射到其计算单元,可以实现i)各种层类型和ii)三种BFP精度的高核心利用率。我们使用CIFAR,ImageNet和WMT14数据集上的知名DNN评估FlexBlock架构的有效性。因此,与其他训练加速器相比,FlexBlock的训练速度显著提高了1.5~5.3倍,能源效率平均提高了2.4~7.0倍,与全精度训练相比,精度损失较小。

英文摘要:

Training deep neural networks (DNNs) is a computationally expensive job, which can take weeks or months even with high performance GPUs. As a remedy for this challenge, community has started exploring the use of more efficient data representations in the training process, e.g., block floating point (BFP). However, prior work on BFP-based DNN accelerators rely on a specific BFP representation making them less versatile. This paper builds upon an algorithmic observation that we can accelerate the training by leveraging multiple BFP precisions without compromising the finally achieved accuracy. Backed up by this algorithmic opportunity, we develop a flexible DNN training accelerator, dubbed FlexBlock, which supports three different BFP precision modes, possibly different among activation, weight, and gradient tensors. While several prior works proposed such multi-precision support for DNN accelerators, not only do they focus only on the inference, but also their core utilization is suboptimal at a fixed precision and specific layer types when the training is considered. Instead, FlexBlock is designed in such a way that high core utilization is achievable for i) various layer types, and ii) three BFP precisions by mapping data in a hierarchical manner to its compute units. We evaluate the effectiveness of FlexBlock architecture using well-known DNNs on CIFAR, ImageNet and WMT14 datasets. As a result, training in FlexBlock significantly improves the training speed by 1.5~5.3x and the energy efficiency by 2.4~7.0x on average compared to other training accelerators and incurs marginal accuracy loss compared to full-precision training.

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

↑