arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2508.12906cs.LG
收藏

SparseMap:一种基于进化策略的稀疏张量加速器框架

SparseMap: A Sparse Tensor Accelerator Framework Based on Evolution Strategy

School of Software Engineering, Xi’an Jiaotong University(软件工程学院,西安交通大学)

Boran Zhao, Haiming Zhai, Zihang Yuan, Hetian Liu, Tian Xia, Wenzhe Zhao, Pengju Ren

AI总结:

针对稀疏张量加速器设计中映射与稀疏策略分离优化导致次优结果的问题,本文提出基于进化策略的SparseMap框架,通过联合优化映射与稀疏策略并改进遗传编码和进化算子,在庞大设计空间中高效搜索到更优加速器设计方案。

摘要:

机器学习和大数据领域对稀疏张量代数(SpTA)日益增长的需求推动了各种稀疏张量加速器的发展。然而,现有的大多数手工设计加速器仅限于特定场景,当场景变化时,调整大量设计因素既耗时又困难。因此,自动化设计SpTA加速器至关重要。尽管如此,以往的工作仅单独关注映射(即在空间和时间上对通信和计算进行分块)或稀疏策略(即绕过零元素以提高效率),由于缺乏对两者的综合考虑,导致设计结果并非最优。迫切需要一种联合优化两者的统一框架。然而,将映射和稀疏策略整合会导致设计空间出现组合爆炸(例如,对于工作负载$P_{32 \ imes 64} \ imes Q_{64 \ imes 48} = Z_{32 \ imes 48}$,设计空间可高达$O(10^{41})$)。如此庞大的搜索空间使得大多数传统优化方法(如粒子群优化、强化学习和蒙特卡洛树搜索)效率低下。为应对这一挑战,我们提出了一个基于进化策略的稀疏张量加速器优化框架,称为SparseMap。SparseMap在同时考虑映射和稀疏策略的基础上构建了更全面的设计空间。我们引入了一系列针对遗传编码和进化算子的增强措施,使SparseMap能够高效探索庞大且多样的设计空间。我们将SparseMap与先前的工作和经典优化方法进行了定量比较,结果表明SparseMap能够持续找到更优的解决方案。

英文摘要:

The growing demand for sparse tensor algebra (SpTA) in machine learning and big data has driven the development of various sparse tensor accelerators. However, most existing manually designed accelerators are limited to specific scenarios, and it's time-consuming and challenging to adjust a large number of design factors when scenarios change. Therefore, automating the design of SpTA accelerators is crucial. Nevertheless, previous works focus solely on either mapping (i.e., tiling communication and computation in space and time) or sparse strategy (i.e., bypassing zero elements for efficiency), leading to suboptimal designs due to the lack of comprehensive consideration of both. A unified framework that jointly optimizes both is urgently needed. However, integrating mapping and sparse strategies leads to a combinatorial explosion in the design space(e.g., as large as $O(10^{41})$ for the workload $P_{32 \times 64} \times Q_{64 \times 48} = Z_{32 \times 48}$). This vast search space renders most conventional optimization methods (e.g., particle swarm optimization, reinforcement learning and Monte Carlo tree search) inefficient. To address this challenge, we propose an evolution strategy-based sparse tensor accelerator optimization framework, called SparseMap. SparseMap constructing a more comprehensive design space with the consideration of both mapping and sparse strategy. We introduce a series of enhancements to genetic encoding and evolutionary operators, enabling SparseMap to efficiently explore the vast and diverse design space. We quantitatively compare SparseMap with prior works and classical optimization methods, demonstrating that SparseMap consistently finds superior solutions.

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

↑