arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.06457cs.LGeess.SP
收藏

BitStopper: 一种通过阶段融合和提前终止的高效Transformer注意力加速器

BitStopper: An Efficient Transformer Attention Accelerator via Stage-fusion and Early Termination

School of Integrated Circuits Tsinghua University Beijing, China(集成电路学院清华大学北京中国);School of Integrated Circuits Tsinghua University Beijing, China Shanghai Artificial Intelligence Laboratory Shanghai, China(集成电路学院清华大学北京中国上海人工智能实验室上海中国)

Huizheng Wang, Hongbin Wang, Shaojun Wei, Yang Hu, Shouyi Yin

AI总结:

BitStopper通过阶段融合和提前终止技术,提升Transformer注意力加速器的效率和能效。

摘要:

基于注意力机制的大语言模型(LLMs)已改变了现代人工智能应用,但自注意力的二次成本带来了显著的计算和内存开销。动态稀疏(DS)注意力缓解了这一问题,但其硬件效率受到附加预测阶段和大量内存交通的限制。为了解决这些限制,本文提出了BitStopper,一种细粒度的算法-架构协同设计,无需稀疏预测器。首先,提出了一种位串行启用阶段融合(BESF)机制,通过逐步终止琐碎的token并合并预测阶段到执行阶段,以重用和最小化内存访问。其次,开发了一种轻量且自适应的token选择(LATS)策略,与位级稀疏推测协同工作。第三,采用位级异步处理(BAP)策略,以提高按需位粒度内存获取期间的计算利用率。最后,设计了一种详细的架构,将理论复杂度减少转化为实际性能提升。广泛的评估表明,与最先进的(SOTA)Transformer加速器相比,BitStopper在Sanger和SOFA上分别实现了2.03倍和1.89倍的速度提升,同时在能效方面分别提高了2.4倍和2.1倍。

英文摘要:

Attention-based large language models (LLMs) have transformed modern AI applications, but the quadratic cost of self-attention imposes significant compute and memory overhead. Dynamic sparsity (DS) attention mitigates this, yet its hardware efficiency is limited by the added prediction stage and the heavy memory traffic it entails. To address these limitations, this paper proposes BitStopper, a fine-grained algorithm-architecture co-design that operates without a sparsity predictor. First, a bit-serial enable stage fusion (BESF) mechanism is proposed to reuse and minimize the memory access by progressively terminating trivial tokens and merging the prediction stage into the execution stage. Second, a lightweight and adaptive token selection (LATS) strategy is developed to work in concert with the bit-level sparsity speculation. Third, a bit-level asynchronous processing (BAP) strategy is employed to improve compute utilization during the on-demand bit-grained memory fetching. Finally, an elaborate architecture is designed to translate the theoretical complexity reduction into practical performance improvement. Extensive evaluations demonstrate that, compared to state-of-the-art (SOTA) Transformer accelerators, BitStopper achieves 2.03x and 1.89x speedups over Sanger and SOFA, respectively, while delivering 2.4x and 2.1x improvements in energy efficiency.

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

↑