arrow
Return

Accelerating Sparse Algebra with Program Synthesis

delete2026-01-01
delete0
PRE
AI
J
José Wesley de Souza Magalhães *
S
Shideh Hashemian
A
Alexander Brauckmann
J
Jackson Woodruff
E
Elizabeth Polgreen
M
Michael F. P. O’Boyle
DOI:10.1145/3771775.3786281delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Linear algebra libraries and tensor domain-specific languages are able to deliver high performance for modern scientific and machine learning workloads. While there has been recent work in automatically translating legacy software to use these libraries/DSLs using pattern matching and program lifting, this has been largely limited to dense linear algebra. This paper tackles the more challenging problem of porting legacy sparse linear algebra code to libraries and DSLs. It exploits the power of large language models to predict a sketch of the solution and then uses type-based program synthesis to search the space of possible code to target parameter bindings. We implement this in a tool named SLEB (Sparse LiftEr with Binding) and evaluate it on a large set of benchmarks and real-world datasets, comparing against two state-of-the-art compiler techniques, LiLAC and SpEQ; and GPT 4.o. Overall, we lift 94% of programs compared to 11%, 17%, and 48% for LiLAC, SpEQ, and GPT 4.o respectively. This delivers a geomean speedup of 2.6 Chi and 7.2 Chi on a CPU and GPU platform, respectively.
Keywords:
Sparse
Program Lifting
Synthesis
TACO
Tensor Algebra

Journal

P
PROCEEDINGS OF THE 35TH ACM SIGPLAN INTERNATIONAL CONFERENCE ON COMPILER CONSTRUCTION, CC 2026
IF:
0
Papers:
18
Citations:
0

Organization

U
University of Edinburgh
Scholars:
5.2W
Papers: 4.6W
Citations: 71
Cited Papers

Cited Papers

errShare
errSave
SpEQ: Translation of Sparse Codes using Equivalences
err2024-06-20
err0
PREAI
errLaird,Avery; Liu,Bangtian; Bjørner,Nikolaj; Dehnavi,Maryam Mehri
errShare
errSave
err
IF0
err
err0
PREAI
err
errShare
errSave
KernelFaRer
err2021-06-28
err0
errOAAI
errJoão P. L. De Carvalho; Braedy Kuzma; Ivan Korostelev; José Nelson Amaral; Christopher Barton; José Moreira; Guido Araujo
errShare
errSave
PASTA: a parallel sparse tensor algorithm benchmark suite
err2019-08-05
err0
PREAI
errJiajia Li; Yuchen Ma; Xiaolong Wu; Ang Li; Kevin Barker
errShare
errSave
Ginkgo: A Modern Linear Operator Algebra Framework for High Performance Computing
err2022-02-16
err0
errOAAI
errHartwig Anzt; Terry Cojean; Goran Flegar; Fritz Göbel; Thomas Grützmacher; Pratik Nayak; Tobias Ribizel; Yuhsiang Mike Tsai; Enrique S. Quintana-Ortí
errShare
errSave
The tensor algebra compiler
err2017-10-12
err0
errOAAI
errFredrik Kjolstad; Shoaib Kamil; Stephen Chou; David Lugato; Saman Amarasinghe
errShare
errSave
The NAS Parallel Benchmarks for evaluating C plus plus parallel programming frameworks on shared-memory architectures
err2021-12-01
err19
PREAI
errLoff, Junior; Griebler, Dalvan; Mencagli, Gabriele; Araujo, Gabriell; Torquati, Massimo; Danelutto, Marco; Fernandes, Luiz Gustavo
errShare
errSave
SuperLU
err2011-01-01
err0
PREAI
errDongarra,Jack; Luszczek,Piotr; Wolf,Felix; Träff,Jesper Larsson; Quinton,Patrice; Hellwagner,Hermann; Fränzle,Martin; Lengauer,Christian; Ceze,Luis H; Hiraki,Kei; Riesen,Rolf; Maccabe,Arthur B.; Feo,John; Madduri,Kamesh; Risset,Tanguy; Khan,Maleq; Kumar,V. S. Anil; Marathe,Madha V.; Stretz,Paula E.; Dwarkadas,Sandhya; Kalé,Laxmikant V.; Solomonik,Edgar; Bader,Michael; Bungartz,Hans-Joachim; Mehl,Miriam; Huckle,Thomas; Sedlacek,Matous; Bader,David A; Cong,Guojing; Gupta,Anshul; Müller,Matthias; Whitney,Brian; Henschel,Robert; Kumaran,Kalyan; Torrellas,Josep; Rauchwerger,Lawrence; Polizzi,Eric; Püschel,Markus; Franchetti,Franz; Voronenko,Yevgen; Darema,Frederica; Newton,Ryan; Ghoting,Amol; Makarychev,Konstantin; Li,Xiaoye Sherry; Demmel,James; Gilbert,John; Grigori,Laura; Shao,Meiyue; Hwu,Wen mei; Bader,David A.; Cong,Guojing; Flich,José; Yalamanchili,Sudhakar; Scott,Michael L.; Zola,Jaroslaw; Aluru,Srinivas; Aluru,Srinivas; Reinders,James R.
errShare
errSave
researcher View more