arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2203.02536cs.DS
收藏

超越时间复杂度:矩阵乘法的数据移动复杂度分析

Beyond Time Complexity: Data Movement Complexity Analysis for Matrix Multiplication

Wesley Smith, Aidan Goldfarb, Chen Ding

摘要:

数据移动正在成为各种应用程序领域计算的时间和能源成本的主要贡献者。然而,时间复杂度不足以分析数据移动。这项工作扩展了数据移动距离,最近提出的内存感知算法分析框架,通过1)证明其假设符合微架构趋势,2)将其应用于矩阵乘法的六种变体,以及3)显示它能够渐近区分具有相同时间复杂度但不同内存行为的算法,以及相同算法的局部优化与非优化版本。在此过程中,我们试图通过结合渐进时间复杂度所使用的操作计数分析与分层存储器结构所导致的每次操作数据移动成本来桥接理论和实践。此外,本文还首次推导出了LRU缓存系统上递归矩阵乘法失败率曲线的完全精确、完全解析的形式。我们的研究结果表明,数据移动距离框架是一个强大的工具,工程师和算法设计师去理解层次记忆的算法含义。

英文摘要:

Data movement is becoming the dominant contributor to the time and energy costs of computation across a wide range of application domains. However, time complexity is inadequate to analyze data movement. This work expands upon Data Movement Distance, a recently proposed framework for memory-aware algorithm analysis, by 1) demonstrating that its assumptions conform with microarchitectural trends, 2) applying it to six variants of matrix multiplication, and 3) showing it to be capable of asymptotically differentiating algorithms with the same time complexity but different memory behavior, as well as locality optimized vs. non-optimized versions of the same algorithm. In doing so, we attempt to bridge theory and practice by combining the operation count analysis used by asymptotic time complexity with per-operation data movement cost resulting from hierarchical memory structure. Additionally, this paper derives the first fully precise, fully analytical form of recursive matrix multiplication's miss ratio curve on LRU caching systems. Our results indicate that the Data Movement Distance framework is a powerful tool going forward for engineers and algorithm designers to understand the algorithmic implications of hierarchical memory.

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

↑