mlsanityData to 7 Oct 2026

Relax: Composable Abstractions for End-to-End Dynamic Machine Learning

arXiv 2311.02103 ↗First posted 1 Nov 2023cs.LG cs.AI cs.PLcited by 12

Not on the map. Why?

Abstract (arXiv)

Dynamic shape computations have become critical in modern machine learning workloads, especially in emerging large language models. The success of these models has driven the demand for their universal deployment across a diverse set of backend environments. In this paper, we present Relax, a compiler abstraction for optimizing end-to-end dynamic machine learning workloads. Relax introduces a cross-level abstraction that encapsulates computational graphs, loop-level tensor programs, and external library calls in a single representation. Relax also introduces first-class symbolic shape annotations to track dynamic shape computations globally across the program, enabling dynamic shape-aware cross-level optimizations. We build an end-to-end compilation framework using the proposed approach to optimize dynamic shape models. Experimental results on LLMs show that Relax delivers performance competitive with state-of-the-art systems across various GPUs and enables deployment of emerging models to a broader set of emerging environments, including mobile phones, embedded devices, and web browsers.

Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 19 of its 45 references that are in the map. First posted on arXiv 1 Nov 2023.

Builds on

19 of 45 references.

References · 19

  1. 2017Attention Is All You Needcited by 59,932
  2. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
  3. 2023Visual Instruction Tuningcited by 7,792
  4. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  5. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  6. 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
  7. 2014cuDNN: Efficient Primitives for Deep Learningcited by 240
  8. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
  9. 2018Learning to Optimize Tensor Programscited by 138
  10. 2022SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learningcited by 47
  11. 2021Torch.fx: Practical Program Capture and Transformation for Deep Learning in Pythoncited by 38
  12. 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
7 more
  1. 2022Tensor Program Optimization with Probabilistic Programscited by 30
  2. 2018Relay: A New IR for Machine Learning Frameworkscited by 24
  3. 2023Stream-K: Work-centric Parallel Decomposition for Dense Matrix-Matrix Multiplication on the GPUcited by 22
  4. 2020Nimble: Efficiently Compiling Dynamic Neural Networks for Model Inferencecited by 19
  5. 2021The CoRa Tensor Compiler: Compilation for Ragged Tensors with Minimal Paddingcited by 17
  6. 2020Cortex: A Compiler for Recursive Deep Learning Modelscited by 16
  7. 2019MIOpen: An Open Source Library For Deep Learning Primitivescited by 7

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2023: 2; 2024: 4; 2025: 2; 2026: 4.

12 papers.