面向边缘系统高效 Transformer 的脉动阵列与结构化剪枝协同设计
Systolic Arrays and Structured Pruning Co-design for Efficient Transformers in Edge Systems
AI总结:
本文提出融合算法优化、系统仿真与硬件设计的协同设计框架,通过匹配结构化剪枝块与脉动阵列维度,在边缘 Transformer 语音识别和翻译任务中实现最高44%加速且QoS损失很小。
摘要:
在边缘设备上高效部署资源密集型 Transformer 需要跨栈优化。因此,我们研究结构化剪枝与脉动加速之间的相互关系,使剪枝块的尺寸与脉动阵列维度相匹配。在该设置下,可以跳过剪枝权重块的计算,从而减少运行时间和能耗,但可能影响服务质量(QoS)。为评估脉动阵列尺寸与稀疏性机会之间的权衡,我们提出了一种新颖的协同设计框架,集成算法优化、系统仿真和硬件设计。以使用 Transformer 的语音识别和机器翻译为案例研究,我们分析了跨栈配置选择如何影响性能指标。结果表明,在具有脉动阵列加速的系统上,结构化剪枝能够有效提升性能,同时维持较高的 QoS 水平。在标准 LibriSpeech 数据集上,结构化剪枝和量化带来了最高 44% 的全系统加速,而词错误率仅下降 1.4%。
英文摘要:
Efficient deployment of resource-intensive transformers on edge devices necessitates cross-stack optimization. We thus study the interrelation between structured pruning and systolic acceleration, matching the size of pruned blocks with the systolic array dimensions. In this setting, computations of pruned weight blocks can be skipped, reducing run-time and energy consumption, but potentially impacting quality of service (QoS). To evaluate the trade-offs between systolic array size and sparsity opportunities, we present a novel co-design framework that integrates algorithmic optimization, system simulation, and hardware design. Targeting speech recognition and machine translation using transformers as case study, we analyze how configuration choices across the stack affect performance metrics. Results demonstrate that structured pruning on systems featuring systolic array acceleration can effectively increase performance, while maintaining high QoS levels. Up to 44% system-wide speedups due to structured pruning and quantization were measured, with only 1.4% word error rate degradation on the standard LibriSpeech dataset.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。