DiSC: 通过利用稀疏性和基于哈希分布的缓存令牌重用实现扩散模型的分辨率可扩展加速
DiSC: Resolution-Scalable Acceleration of Diffusion Models by Exploiting Sparsity and Cached Token Reuse with Hash-based Distribution
AI总结:
提出DiSC,一种利用缓存令牌重用和稀疏性掩码重用的分辨率可扩展硬件加速器,通过哈希分布实现稀疏操作的高效计算,显著提升扩散模型性能。
摘要:
基于Transformer的扩散模型提供了卓越的可扩展性和性能,但由于迭代性质以及高分辨率下自注意力的二次复杂度,导致计算开销高。在本文中,我们提出了DiSC,一种分辨率可扩展的、感知稀疏性的硬件加速器。在软件层面,DiSC引入了两种算法:缓存令牌重用(CTR)和带稀疏性掩码重用的Softmax阈值化(ST)。CTR引入了一种机制,将输入潜在差异在步骤间的空间变化转化为令牌级重用决策,有效消除冗余令牌计算。ST通过重用生成的稀疏模式来诱导注意力操作中的稀疏性,利用时间相似性避免昂贵的预测开销。这些算法共同提供了分辨率可扩展的计算优势,并产生了适度的稀疏性和混合密集-稀疏工作负载。为了高效利用这一点,我们设计了一种专门的硬件架构和统一数据流。该架构避免了专用的稀疏性处理组件;相反,通过片上存储体上的基于哈希分布,DiSC能够重用其现有计算引擎进行稀疏操作,以最小的硬件开销高效利用诱导的稀疏性。在DiT和PixArt-Sigma上的评估表明,与NVIDIA A100和H100 GPU相比,DiSC分别实现了3.47-4.74倍和2.48-3.50倍的加速,节能46.4%至68.1%。
英文摘要:
Transformer-based diffusion models offer superior scalability and performance but suffer from high computational overhead due to the iterative nature and quadratic complexity of self-attention at high resolutions. In this paper, we propose DiSC, a resolution-scalable, sparsity-aware hardware accelerator. At the software level, DiSC introduces two algorithms: Cached Token Reuse (CTR), and Softmax Thresholding with Sparsity Mask Reuse (ST). CTR introduces a mechanism that translates spatial variations in the input latent difference across steps into a token-level reuse decision, effectively eliminating redundant token computation. ST induces sparsity in attention operations by reusing a generated sparsity pattern, leveraging temporal similarity to bypass costly prediction overhead. Together, these algorithms provide resolution-scalable computational benefits and yield a moderate sparsity and hybrid dense-sparse workload. To exploit this efficiently, we design a specialized hardware architecture and unified dataflow. This architecture avoids dedicated sparsity-handling components; instead, a hash-based distribution over on-chip memory banks allows DiSC to reuse its existing compute engines for sparse operations, efficiently exploiting the induced sparsity with minimal hardware overhead. Evaluated on DiT and PixArt-Sigma, DiSC achieves 3.47-4.74x and 2.48-3.50x speedups over NVIDIA A100 and H100 GPUs, respectively, with energy savings ranging from 46.4% to 68.1%.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。