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

Hyft:一种面向训练与推理的混合数值格式可重构Softmax加速器

Hyft: A Reconfigurable Softmax Accelerator with Hybrid Numeric Format for both Training and Inference

Tianhua Xia, Sai Qian Zhang

AI总结:

Hyft提出一种混合数值格式的可重构Softmax加速器,通过为不同非线性运算自适应选择最合适的数值格式,在训练和推理中实现硬件资源利用率降低10倍、处理延迟降低6倍,且几乎不影响Transformer精度。

摘要:

注意力机制是Transformer架构中的关键要素,对其卓越性能做出了重大贡献。在该注意力机制中,Softmax是一个不可或缺的组成部分,它使模型能够评估输入不同部分之间的相关程度。然而,先前的研究表明,由于Softmax内部的非线性运算和数据依赖性,Softmax运算会显著增加Transformer网络的处理延迟和能耗。在这项工作中,我们提出了Hyft,一种面向训练和推理的硬件高效浮点Softmax加速器。Hyft旨在通过将中间结果自适应地转换为每种特定运算最合适的数值格式,来降低Softmax中不同非线性算术运算的实现成本,从而形成具有混合数值格式的可重构加速器。评估结果表明,Hyft在硬件资源利用率上实现了显著的10倍降低,在处理延迟上实现了6倍降低,同时对Transformer精度的影响可以忽略不计。

英文摘要:

The attention mechanism is a pivotal element within the transformer architecture, making a substantial contribution to its exceptional performance. Within this attention mechanism, Softmax is an imperative component that enables the model to assess the degree of correlation between various segments of the input. Yet, prior research has shown that Softmax operations can significantly increase processing latency and energy consumption in the transformer network due to their internal nonlinear operations and data dependencies. In this work, we proposed Hyft, a hardware efficient floating point Softmax accelerator for both training and inference. Hyft aims to reduce the implementation cost of different nonlinear arithmetic operations within softmax by adaptively converting intermediate results into the most suitable numeric format for each specific operation, leading to reconfigurable accelerator with hybrid numeric format. The evaluation results highlight that Hyft achieves a remarkable 10x reduction in hardware resource utilization and a 6x reduction in processing latency, all while maintaining a negligible impact on transformer accuracy.

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

↑