Redundancy Elimination in Distributed Matrix Computation
Zihao Chen, Baokun Han, Chen Xu, Weining Qian, Aoying Zhou
Abstract
As matrix computation becomes increasingly prevalent in large-scale data analysis, distributed matrix computation solutions have emerged. These solutions support query interfaces of linear algebra expressions, which often contain redundant subexpressions, i.e., common and loop-constant subexpressions. Hence, existing compilers rewrite queries to eliminate such redundancy. However, due to the large search space, they fail to find all redundant subexpressions, especially for matrix multiplication chains. Furthermore, redundancy elimination may change the original execution order of operators, and have negative impacts. To reduce the large search space and avoid the negative impacts, we propose automatic elimination and adaptive elimination, respectively. In particular, automatic elimination adopts a block-wise search that exploits the properties of matrix computation for speed-up. Adaptive elimination employs a cost model and a dynamic programming-based method to generate efficient plans for redundancy elimination. Finally, we implement ReMac atop SystemDS, eliminating redundancy in distributed matrix computation. In our experiments, ReMac is able to generate efficient execution plans at affordable overhead costs, and outperforms state-of-the-art solutions by an order of magnitude.
Ask about this paper
Your agent reads all of it.
Lune indexed this paper to the last equation, along with the top-tier papers that cite it. Ask a question and the answer quotes them.
Builds on4
- Cerebro: A Data System for Optimized Deep Learning Model SelectionSupun Nakandala, Yuhao Zhang, Arun KumarVLDB 2020 · 61 citations
- LIMA: Fine-grained Lineage Tracing and Reuse in Machine Learning SystemsArnab Phani, Benjamin Rath, Matthias BoehmSIGMOD 2021 · 30 citations
- Efficient Control Flow in Dataflow Systems: When Ease-of-Use Meets High PerformanceGábor E. Gévay, Tilmann Rabl, Sebastian Breß, Lorand Madai-Tahy et al.ICDE 2021 · 10 citations
- SPORES: Sum-Product Optimization via Relational Equality Saturation for Large Scale Linear AlgebraYisu Remy Wang, Shana Hutchison, Dan Suciu, Bill Howe et al.VLDB 2020
Related papers
- Hybrid Evaluation for Distributed Iterative Matrix ComputationZihao Chen, Chen Xu, Juan Soto, Volker Markl et al.SIGMOD 2021 · 2 citations
- Redundant Array Computation EliminationZixuan Wang, Liang Yuan, Xianmeng Jiang, Kun Li et al.PLDI 2026
- Generalized Sub-Query Fusion for Eliminating Redundant I/O from Big-Data QueriesPartho Sarthi, Kaushik Rajan, Akash Lal, Abhishek Modi et al.OSDI 2020 · 5 citations
- PreVision: An Out-of-Core Matrix Computation System with Optimal Buffer ReplacementKyoseung Koo, Sohyun Kim, Wonhyeon Kim, Yoojin Choi et al.SIGMOD 2024 · 3 citations
- SPALM: A Sparsity-Pattern-Adaptive Library for MatricesJunyoung Kim, Kenneth A. RossSIGMOD 2026
