arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2206.14550cs.ARcs.AIcs.LG
收藏

SALO:一种支持长序列混合稀疏注意力机制的高效空间加速器

SALO: An Efficient Spatial Accelerator Enabling Hybrid Sparse Attention Mechanisms for Long Sequences

Shanghai Jiao Tong University(上海交通大学)

Guan Shen, Jieru Zhao, Quan Chen, Jingwen Leng, Chao Li, Minyi Guo

摘要:

Transformers的注意力机制有效地从输入序列中提取相关信息。然而,自我注意序列长度的二次复杂性会带来沉重的计算和记忆负担,特别是对于长序列的任务。现有的加速器在这些任务中面临性能下降。为此,我们提出SALO,使混合稀疏注意力机制长序列。SALO包含一个数据调度器,用于将混合稀疏注意模式映射到硬件上,以及一个空间加速器,用于执行有效的注意计算。我们表明,SALO实现了17.66倍和89.33倍的加速平均相比,GPU和CPU的实现,分别在典型的工作负载,即,Longformer和ViL。

英文摘要:

The attention mechanisms of transformers effectively extract pertinent information from the input sequence. However, the quadratic complexity of self-attention w.r.t the sequence length incurs heavy computational and memory burdens, especially for tasks with long sequences. Existing accelerators face performance degradation in these tasks. To this end, we propose SALO to enable hybrid sparse attention mechanisms for long sequences. SALO contains a data scheduler to map hybrid sparse attention patterns onto hardware and a spatial accelerator to perform the efficient attention computation. We show that SALO achieves 17.66x and 89.33x speedup on average compared to GPU and CPU implementations, respectively, on typical workloads, i.e., Longformer and ViL.

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

↑