arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.20198cs.AReess.SP
收藏

为稀疏注意力设计空间架构:通过跨阶段分片的STAR加速器

Designing Spatial Architectures for Sparse Attention: STAR Accelerator via Cross-Stage Tiling

School of Integrated Circuits, Tsinghua University(清华大学集成电路学院);Shanghai AI Lab(上海人工智能实验室)

Huizheng Wang, Taiquan Wei, Hongbin Wang, Zichuan Wang, Xinru Tang, Zhiheng Yue, Shaojun Wei, Yang Hu, Shouyi Yin

AI总结:

STAR加速器通过跨阶段分片技术提升Transformer推理效率,实现9.2倍速度和71.2倍能效,同时优化多核架构以处理超长序列。

摘要:

大型语言模型(LLMs)依赖自注意力机制进行上下文理解,需要高吞吐量的推理和大规模令牌并行(LTPP)。现有的动态稀疏加速器在LTPP场景下表现不佳,因为其优化是阶段隔离的。重新审视端到端的稀疏加速流程,我们发现了一个被忽视的机会:跨阶段协调可以显著减少冗余计算和内存访问。我们提出了STAR,一种针对Transformer推理在LTPP下的跨阶段计算和内存高效算法-硬件协同设计。STAR引入了基于零的稀疏性预测,使用对数域加法-only操作以最小化预测开销。它进一步采用分布式排序和由协调分片策略引导的排序更新FlashAttention机制,从而实现更高效的内存效率和延迟。这些优化由专用的STAR加速器架构支持,实现了比A100高9.2倍的速度提升和71.2倍的能量效率,且在能量和面积效率方面超越了现有最佳加速器。此外,我们部署了STAR到多核空间架构上,优化数据流和执行调度以处理超长序列。架构评估显示,与基线设计相比,空间-STAR实现了20.1倍的吞吐量提升。

英文摘要:

Large language models (LLMs) rely on self-attention for contextual understanding, demanding high-throughput inference and large-scale token parallelism (LTPP). Existing dynamic sparsity accelerators falter under LTPP scenarios due to stage-isolated optimizations. Revisiting the end-to-end sparsity acceleration flow, we identify an overlooked opportunity: cross-stage coordination can substantially reduce redundant computation and memory access. We propose STAR, a cross-stage compute- and memory-efficient algorithm-hardware co-design tailored for Transformer inference under LTPP. STAR introduces a leading-zero-based sparsity prediction using log-domain add-only operations to minimize prediction overhead. It further employs distributed sorting and a sorted updating FlashAttention mechanism, guided by a coordinated tiling strategy that enables fine-grained stage interaction for improved memory efficiency and latency. These optimizations are supported by a dedicated STAR accelerator architecture, achieving up to 9.2$\times$ speedup and 71.2$\times$ energy efficiency over A100, and surpassing SOTA accelerators by up to 16.1$\times$ energy and 27.1$\times$ area efficiency gains. Further, we deploy STAR onto a multi-core spatial architecture, optimizing dataflow and execution orchestration for ultra-long sequence processing. Architectural evaluation shows that, compared to the baseline design, Spatial-STAR achieves a 20.1$\times$ throughput improvement.

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

↑