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

Tailors:通过超额预订缓冲区容量加速稀疏张量代数

Tailors: Accelerating Sparse Tensor Algebra by Overbooking Buffer Capacity

Zi Yu Xue, Yannan Nellie Wu, Joel S. Emer, Vivienne Sze

AI总结:

本文提出推测性张量分块方法 overbooking 及低开销硬件机制 Tailors,通过统计方法 Swiftiles 选择可能溢出的分块大小以提高缓冲区利用率,在 22 个工作负载上相比 ExTensor 实现最高 52.7 倍加速和 22.5 倍能耗降低。

摘要:

稀疏张量代数是一类具有挑战性的工作负载,由于算术强度低且稀疏模式多变,难以加速。先前的稀疏张量代数加速器探索了对稀疏数据进行分块,以增加可利用的数据复用并提高吞吐量,但通常在给定缓冲区中按最坏情况的数据占用率分配分块大小。这严重限制了可用内存资源的利用率并降低了数据复用。其他加速器在预处理或运行时采用复杂的分块,以根据其占用率确定确切的分块大小。本文提出了一种推测性张量分块方法,称为 overbooking,通过利用稀疏张量中非零元素的分布来构建具有更大数据复用的更大分块,从而提高缓冲区利用率。为确保正确性,我们提出了一种低开销的硬件机制 Tailors,该机制在设计上能容忍数据溢出,同时确保合理的数据复用。我们证明 Tailors 可以轻松集成到现有稀疏张量代数加速器的内存层次结构中。为确保高缓冲区利用率且分块开销最小,我们引入了一种统计方法 Swiftiles 来选择分块大小,使得分块通常能容纳在缓冲区容量内,但有可能溢出,即对缓冲区进行超额预订。在一套包含 22 个稀疏张量代数工作负载的测试套件中,我们展示了我们提出的 overbooking 策略在未优化分块和优化分块的 ExTensor 上,分别实现了平均 52.7 倍和 2.3 倍的加速,以及平均 22.5 倍和 2.5 倍的能耗降低。

英文摘要:

Sparse tensor algebra is a challenging class of workloads to accelerate due to low arithmetic intensity and varying sparsity patterns. Prior sparse tensor algebra accelerators have explored tiling sparse data to increase exploitable data reuse and improve throughput, but typically allocate tile size in a given buffer for the worst-case data occupancy. This severely limits the utilization of available memory resources and reduces data reuse. Other accelerators employ complex tiling during preprocessing or at runtime to determine the exact tile size based on its occupancy. This paper proposes a speculative tensor tiling approach, called overbooking, to improve buffer utilization by taking advantage of the distribution of nonzero elements in sparse tensors to construct larger tiles with greater data reuse. To ensure correctness, we propose a low-overhead hardware mechanism, Tailors, that can tolerate data overflow by design while ensuring reasonable data reuse. We demonstrate that Tailors can be easily integrated into the memory hierarchy of an existing sparse tensor algebra accelerator. To ensure high buffer utilization with minimal tiling overhead, we introduce a statistical approach, Swiftiles, to pick a tile size so that tiles usually fit within the buffer's capacity, but can potentially overflow, i.e., it overbooks the buffers. Across a suite of 22 sparse tensor algebra workloads, we show that our proposed overbooking strategy introduces an average speedup of $52.7\times$ and $2.3\times$ and an average energy reduction of $22.5\times$ and $2.5\times$ over ExTensor without and with optimized tiling, respectively.

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

↑