paper-with-me

홈 › Papers

LoopStack: a Lightweight Tensor Algebra Compiler Stack

2022-05-02 · Bram Wasti, José Pablo Cambronero, Benoit Steiner, Hugh Leather, Aleksandar Zlateski

We present LoopStack, a domain specific compiler stack for tensor operations, composed of a frontend, LoopTool, and an efficient optimizing code generator, LoopNest. This stack enables us to compile entire neural networks and generate code targeting the AVX2, AVX512, NEON, and NEONfp16 instruction sets while incorporating optimizations often missing from other machine learning compiler backends. We evaluate our stack on a collection of full neural networks and commonly used network blocks as well as individual operators, and show that LoopStack generates machine code that matches and frequently exceeds the performance of in state-of-the-art machine learning frameworks in both cases. We also show that for a large collection of schedules LoopNest's compilation is orders of magnitude faster than LLVM, while resulting in equal or improved run time performance. Additionally, LoopStack has a very small memory footprint - a binary size of 245KB, and under 30K lines of effective code makes it ideal for use on mobile and embedded devices.

📄 PDF Abstract BibTeX arXiv:2205.00618

Code (1)

facebookresearch/loop_tool pytorch

Tasks

BIG-bench Machine Learningtensor algebra

Similar Papers 제목 키워드 기반

Provenance Tracking in AI Compilers through the Lens of Coalgebra

2026-06-09 · Zilu Tian, Liying Liu arxiv

AI compilers aggressively rewrite computation graphs through normalization, lowering, and optimization, making it difficult to track the provenance of tensors and operators across compilation. Reliable provenance is esse…

Compressing Structured Tensor Algebra

2024-07-18 · Mahdi Ghorbani, Emilien Bauer, Tobias Grosser, Amir Shaikhha

Tensor algebra is a crucial component for data-intensive workloads such as machine learning and scientific computing. As the complexity of data grows, scientists often encounter a dilemma between the highly specialized d…

Code Generationtensor algebra

TapirXLA: Embedding Fork-Join Parallelism into the XLA Compiler in TensorFlow Using Tapir

2019-08-29 · Tao B. Schardl, Siddharth Samsi

This work introduces TapirXLA, a replacement for TensorFlow's XLA compiler that embeds recursive fork-join parallelism into XLA's low-level representation of code. Machine-learning applications rely on efficient parallel…

BIG-bench Machine LearningCPU

Towards a high-performance AI compiler with upstream MLIR

2024-04-15 · Renato Golin, Lorenzo Chelini, Adam Siemieniuk, Kavitha Madhu 외

This work proposes a compilation flow using open-source compiler passes to build a framework to achieve ninja performance from a generic linear algebra high-level abstraction. We demonstrate this flow with a proof-of-con…

Automatic Differentiation for Tensor Algebras

2017-11-03 · Sebastian Urban, Patrick van der Smagt

Kjolstad et. al. proposed a tensor algebra compiler. It takes expressions that define a tensor element-wise, such as $f_{ij}(a,b,c,d) = \exp\left[-\sum_{k=0}^4 \left((a_{ik}+b_{jk})^2\, c_{ii} + d_{i+k}^3 \right) \right]…

tensor algebra