LizTail:采用分段可重构脉动阵列统一形状适配与空间并行性
LizTail: Unifying Shape Adaptation and Spatial Parallelism with Segment-Reconfigurable Systolic Arrays
AI总结:
LizTail是一种多模式分段可重构脉动阵列,通过预定义边界实现形状适配与空间并行性统一,在CNN推理和LLM解码上较类TPU阵列实现显著加速并降低EDP,已开源。
摘要:
脉动阵列被广泛用于加速神经网络推理,但固定二维阵列难以适配CNN和基于Transformer的大语言模型在矩阵几何形状及可用并行度上的巨大差异。这种不匹配在瘦矩阵、小批量自回归解码以及包含多个独立分区的算子中尤为严重,导致处理单元(PE)利用率低和重复的空间折叠。现有可重构阵列通常仅改进形状适配或分布式执行,而通过细粒度路由同时支持两者会产生大量互连、缓冲和控制开销。我们提出LizTail(命名自蜥蜴自割尾巴,其中预定义的断裂平面允许分段脱离并保持独立活动,类似LizTail的预定义重构边界),这是一种多模式脉动阵列,通过将128×128阵列划分为32个规则的128×4分段并仅在预定义端点添加连接,实现受约束的分段级重构。所得基底支持修剪、通过180°折返连接的长路径扩展,以及分布式执行(其中每个子阵列自身可被修剪或扩展)。差异化PE数据路径和分段感知CEB/SIB缓冲提供了所需的计算和数据传递灵活性,无需无限制的PE级路由。硬件约束映射器选择执行组织、数据流、任务分区和分块。在代表性工作负载上,与类TPU阵列相比,LizTail在CNN推理上实现5.02倍的几何平均加速,在LLM解码上实现25.67倍的几何平均加速,同时EDP降低多达38.23倍。LizTail已在该URL开源。
英文摘要:
Systolic arrays are widely used to accelerate neural-network inference, yet fixed two-dimensional arrays struggle with the substantial diversity in both matrix geometry and available parallelism across CNNs and Transformer-based large language models. This mismatch is particularly severe for skinny matrices, small-batch autoregressive decoding, and operators containing multiple independent partitions, leading to low processing-element (PE) utilization and repeated spatial folding. Existing reconfigurable arrays typically improve either shape adaptation or distributed execution, whereas supporting both through fine-grained routing incurs considerable interconnect, buffering, and control overheads. We present LizTail (named after lizard tail autotomy, where predefined fracture planes allow segments to detach and remain independently active, analogous to LizTail's predefined reconfiguration boundaries), a multi-mode systolic array that enables constrained segment-level reconfiguration by partitioning a $128\times128$ array into 32 regular $128\times4$ segments and adding connectivity only at predefined endpoints. The resulting substrate supports trimming, long-path extension through $180^\circ$ turn-back connections, and distributed execution in which each subarray can itself be trimmed or extended. Differentiated PE datapaths and segment-aware CEB/SIB buffers provide the required compute and data-delivery flexibility without unrestricted PE-level routing. A hardware-constrained mapper selects the execution organization, dataflow, task partition, and tiling. Across representative workloads, LizTail achieves geometric-mean speedups of $5.02\times$ on CNN inference and $25.67\times$ on LLM decoding over a TPU-like array, while reducing EDP by up to $38.23\times$. LizTail is open-sourced at https://github.com/kmjbwxa/LizTail.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。