Proceedings of the VLDB Endowment · 2020 · 55 citations · 34 references
ComputingComputer ScienceAlgorithmsCompilersOptimizationCompiler ConstructionConstraint SatisfactionOptimization For Machine LearningRelational AlgebraCode Generation By Rewrite RulesCompile-time OptimizationExecution Cost AnalysisGreedy HeuristicsRewrite SystemsSaturationSparse Linear Algebra
Machine learning algorithms are commonly specified in linear algebra (LA). LA expressions can be rewritten into more efficient forms, by taking advantage of input properties such as sparsity , as well as program properties such as common subexpressions and fusible operators. The complex interaction among these properties' impact on the execution cost poses a challenge to optimizing compilers. Existing compilers resort to intricate heuristics that complicate the codebase and add maintenance cost, but fail to search through the large space of equivalent LA expressions to find the cheapest one. We introduce a general optimization technique for LA expressions, by converting the LA expressions into Relational Algebra (RA) expressions, optimizing the latter, then converting the result back to (optimized) LA expressions. The rewrite rules we design in this approach are complete, meaning that any equivalent LA expression is covered in the search space. The challenge is the major size of the search space, and we address this by adopting and extending a technique used in compilers, called equality saturation. Our optimizer, SPORES, uses rule sampling to quickly cover vast portions of the search space; it then uses a constraint solver to extract the optimal plan from the covered space, or alternatively uses a greedy algorithm to shorten compile time. We integrate SPORES into SystemML and validate it empirically across a spectrum of machine learning tasks; SPORES can derive all existing hand-coded optimizations in SystemML, and perform new optimizations that lead to up to 10X speedup.
34
Access path selection in a relational database management system
Patricia G. Selinger, M. M. Astrahan, Donald D. Chamberlin et al. · 1979 · 2.2K citations
A survey and comparison of peer-to-peer overlay network schemes
Eng Keong Lua, Jon Crowcroft, Marcelo Pias et al. · IEEE Communications Surveys & Tutorials · 2005 · 1.5K citations
Ruining He, Julian McAuley · 2016 · 1.4K citations
Todd J. Green, Grigoris Karvounarakis, Val Tannen · 2007 · 799 citations · Full text