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

面向Transformer加速器的基于Tile的自适应驻留数据高效复用方法

An Efficient Data Reuse with Tile-Based Adaptive Stationary for Transformer Accelerators

Institute of Electronics, National Yang Ming Chiao Tung University(国立阳明交通大学电子研究所)

Tseng-Jen Li, Tian-Sheuan Chang

AI总结:

针对Transformer加速器中线性投影的外部存储器访问瓶颈,提出基于Tile的自适应驻留方案,按输入序列长度选择驻留策略,减少EMA超过97%,兼容多种优化技术。

摘要:

基于Transformer的模型已成为计算机视觉和自然语言处理等多个领域的实际骨干架构。然而,随着这些模型规模的扩大,权重和激活值的外部存储器访问(EMA)因其能耗显著高于内部计算而成为关键瓶颈。尽管大多数先前工作专注于优化自注意力机制,但很少关注线性投影期间的数据传输优化,而其中的EMA成本同样重要。在本文中,我们提出了基于Tile的自适应驻留(TAS)方案,该方案根据输入序列长度,在Tile粒度上选择输入驻留或权重驻留。我们的实验结果表明,与传统驻留方案相比,TAS可以将EMA显著减少超过97%,同时兼容各种注意力优化技术和硬件加速器。

英文摘要:

Transformer-based models have become the \textit{de facto} backbone across many fields, such as computer vision and natural language processing. However, as these models scale in size, external memory access (EMA) for weight and activations becomes a critical bottleneck due to its significantly higher energy consumption compared to internal computations. While most prior work has focused on optimizing the self-attention mechanism, little attention has been given to optimizing data transfer during linear projections, where EMA costs are equally important. In this paper, we propose the Tile-based Adaptive Stationary (TAS) scheme that selects the input or weight stationary in a tile granularity, based on the input sequence length. Our experimental results demonstrate that TAS can significantly reduce EMA by more than 97\% compared to traditional stationary schemes, while being compatible with various attention optimization techniques and hardware accelerators.

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

↑