Correct Compilation of Semiring Contractions
Scott Kovach, Fredrik Kjolstad

TL;DR
This paper presents a formal semantics and a compiler for variable contraction problems over semirings, unifying various algebraic computations and demonstrating performance comparable to existing tensor algebra tools.
Contribution
It introduces a novel operational semantics for variable contraction problems and a compiler that ensures correctness and broad applicability.
Findings
Compiler performance matches state-of-the-art tensor algebra tools
The semantics guarantees correctness of fused variable contraction execution
Framework generalizes sparse/dense tensor, relational, and graph algorithms
Abstract
We introduce a formal operational semantics that describes the fused execution of variable contraction problems, which compute indexed arithmetic over a semiring and generalize sparse and dense tensor algebra, relational algebra, and graph algorithms. We prove that the model is correct with respect to a functional semantics. We also develop a compiler for variable contraction expressions and show that its performance is equivalent to a state-of-the art sparse tensor algebra compiler, while providing greater generality and correctness guarantees.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsArtificial Intelligence in Games · Parallel Computing and Optimization Techniques · Formal Methods in Verification
