Simplifying dependent reductions in the polyhedral model
Cambridge Yang, Eric Atkinson, Michael Carbin
摘要
A Reduction – an accumulation over a set of values, using an associative and commutative operator – is a common computation in many numerical computations, including scientific computations, machine learning, computer vision, and financial analytics. Contemporary polyhedral-based compilation techniques make it possible to optimize reductions, such as prefix sums, in which each component of the reduction’s output potentially shares computation with another component in the reduction. Therefore an optimizing compiler can identify the computation shared between multiple components and generate code that computes the shared computation only once. These techniques, however, do not support reductions that – when phrased in the language of the polyhedral model – span multiple dependent statements. In such cases, existing approaches can generate incorrect code that violates the data dependences of the original, unoptimized program. In this work, we identify and formalize the optimization of dependent reductions as an integer bilinear program. We present a heuristic optimization algorithm that uses an affine sequential schedule of the program to determine how to simplfy reductions yet still preserve the program’s dependences. We demonstrate that the algorithm provides optimal complexity for a set of benchmark programs from the literature on probabilistic inference algorithms, whose performance critically relies on simplifying these reductions. The complexities for 10 of the 11 programs improve siginifcantly by factors at least of the sizes of the input data, which are in the range of 10 4 to 10 6 for typical real application inputs. We also confirm the significance of the improvement by showing speedups in wall-clock time that range from 1.1x to over 10 6 x.
问 Lune
几分钟读透这篇 Paper,不用再花一下午。
Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。
已有 2 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。
脉络
引用它的顶会 Paper2
相关 Paper
- Type Batched Program ReductionGolnaz Gharachorlu, Nick SumnerISSTA 2023 · 1 次引用
- Reverse engineering for reduction parallelization via semiring polynomialsAkimasa Morihata, Shigeyuki SatoPLDI 2021 · 3 次引用
- Fast linear programming through transprecision computing on small and sparse dataTobias Grosser, Theodoros Theodoridis, Maximilian Falkenstein, Arjun Pitchanathan 等OOPSLA 2020 · 4 次引用
- Scaling Package Queries to a Billion Tuples via Hierarchical Partitioning and Customized OptimizationAnh L. Mai, Pengyu Wang, Azza Abouzied, Matteo Brucato 等VLDB 2024 · 9 次引用
- Minimization of Dynamical Systems over MonoidsGeorgios Argyris, Alberto Lluch-Lafuente, Alexander Leguizamon-Robayo, Mirco Tribastone 等LICS 2023 · 3 次引用
