arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2403.06348cs.DCcs.DScs.PF
收藏

利用自适应线性化表示加速稀疏张量分解

Accelerating Sparse Tensor Decomposition Using Adaptive Linearized Representation

Jan Laukemann, Ahmed E. Helal, S. Isaac Geronimo Anderson, Fabio Checconi, Yongseok Soh, Jesmin Jahan Tithi, Teresa Ranadive, Brian J Gravelle, Fabrizio Petrini, Jee Choi

AI总结:

本文提出自适应线性化稀疏张量表示 ALTO 及配套并行张量分解算法和动态选择策略,在真实数据集上显著降低存储与同步开销并取得最高超数量级加速。

摘要:

高维稀疏数据出现在医疗保健和网络安全等许多关键应用领域。为了从海量的这些多维数据中提取有意义的洞见,科学家采用基于张量分解(TD)方法的无监督分析工具。然而,现实世界中的稀疏张量表现出高度不规则的形状和数据分布,这给高效利用现代并行处理器带来了重大挑战。本研究打破了一个普遍假设,即将稀疏张量压缩为粗粒度结构或沿特定维度/模式压缩,比将其保持为细粒度、与模式无关的形式更高效。我们提出的新型稀疏张量表示 Adaptive Linearized Tensor Order(ALTO,自适应线性化张量顺序)以紧凑格式编码张量,该格式可方便地从内存流式传输,并适合缓存和并行执行。与现有压缩张量格式不同,ALTO 构建一个张量副本,该副本既不依赖模式方向,也不依赖非零元素的不规则分布。为证明 ALTO 的有效性,我们提出一组并行 TD 算法,利用张量计算固有的数据复用,大幅减少同步开销、降低内存占用并提升并行性能。此外,我们刻画了 TD 方法在最新 Intel Xeon Scalable 处理器上的主要执行瓶颈,并引入动态自适应启发式方法,以根据稀疏张量特征自动选择最佳算法。在多种现实世界数据集上,ALTO 优于最先进方法,相较最佳的与模式无关格式实现超过一个数量级的加速。与最佳的模式专用格式相比,ALTO 实现 5.1 倍几何平均加速,而存储成本仅为其一小部分(25%)。

英文摘要:

High-dimensional sparse data emerge in many critical application domains such as healthcare and cybersecurity. To extract meaningful insights from massive volumes of these multi-dimensional data, scientists employ unsupervised analysis tools based on tensor decomposition (TD) methods. However, real-world sparse tensors exhibit highly irregular shapes and data distributions, which pose significant challenges for making efficient use of modern parallel processors. This study breaks the prevailing assumption that compressing sparse tensors into coarse-grained structures or along a particular dimension/mode is more efficient than keeping them in a fine-grained, mode-agnostic form. Our novel sparse tensor representation, Adaptive Linearized Tensor Order (ALTO), encodes tensors in a compact format that can be easily streamed from memory and is amenable to both caching and parallel execution. In contrast to existing compressed tensor formats, ALTO constructs one tensor copy that is agnostic to both the mode orientation and the irregular distribution of nonzero elements. To demonstrate the efficacy of ALTO, we propose a set of parallel TD algorithms that exploit the inherent data reuse of tensor computations to substantially reduce synchronization overhead, decrease memory footprint, and improve parallel performance. Additionally, we characterize the major execution bottlenecks of TD methods on the latest Intel Xeon Scalable processors and introduce dynamic adaptation heuristics to automatically select the best algorithm based on the sparse tensor characteristics. Across a diverse set of real-world data sets, ALTO outperforms the state-of-the-art approaches, achieving more than an order-of-magnitude speedup over the best mode-agnostic formats. Compared to the best mode-specific formats, ALTO achieves 5.1X geometric mean speedup at a fraction (25%) of their storage costs.

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

↑