Relax: Composable Abstractions for End-to-End Dynamic Machine Learning
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
- 2017Attention Is All You Needcited by 59,932
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2023Visual Instruction Tuningcited by 7,792
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2023WizardLM: Empowering large pre-trained language models to follow complex instructionscited by 1,116
- 2014cuDNN: Efficient Primitives for Deep Learningcited by 240
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 199
- 2018Learning to Optimize Tensor Programscited by 138
- 2022SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learningcited by 47
- 2021Torch.fx: Practical Program Capture and Transformation for Deep Learning in Pythoncited by 38
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
7 more
- 2022Tensor Program Optimization with Probabilistic Programscited by 30
- 2018Relay: A New IR for Machine Learning Frameworkscited by 24
- 2023Stream-K: Work-centric Parallel Decomposition for Dense Matrix-Matrix Multiplication on the GPUcited by 22
- 2020Nimble: Efficiently Compiling Dynamic Neural Networks for Model Inferencecited by 19
- 2021The CoRa Tensor Compiler: Compilation for Ragged Tensors with Minimal Paddingcited by 17
- 2020Cortex: A Compiler for Recursive Deep Learning Modelscited by 16
- 2019MIOpen: An Open Source Library For Deep Learning Primitivescited by 7
Built on by
Citing papers per year: 2023: 2; 2024: 4; 2025: 2; 2026: 4.
12 papers.
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Servingcited by 248
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systemscited by 101
- 2025Tawa: Automatic Warp Specialization for Modern GPUs with Asynchronous Referencescited by 6
- 2026Event Tensor: A Unified Abstraction for Compiling Dynamic Megakernelcited by 4
- 2024Productively Deploying Emerging Models on Emerging Platforms: A Top-Down Approach for Testing and Debuggingcited by 2
- 2024Pruning Large Language Models to Intra-module Low-rank Architecture with Transitional Activationscited by 2
- 2024Local deployment of large-scale music AI models on commodity hardwarecited by 2
- 2026Ada-MK: Adaptive MegaKernel Optimization via Automated DAG-based Search for LLM Inferencecited by 1
- 2023A Survey on Design Methodologies for Accelerating Deep Learning on Heterogeneous Architecturescited by 0
- 2024GeoT: Tensor Centric Library for Graph Neural Network via Efficient Segment Reduction on GPUcited by 0
- 2026RedFuser: An Automatic Operator Fusion Framework for Cascaded Reductions on AI Acceleratorscited by 0
- 2026DanLing NestedTensor: Composable Multi-Ragged Tensors for Deep Learningcited by 0
- 2026DanLing NestedTensor: Composable Multi-Ragged Tensors for Deep Learning24 Sep 2026
- 2026Ada-MK: Adaptive MegaKernel Optimization via Automated DAG-based Search for LLM Inference12 May 2026
- 2026Event Tensor: A Unified Abstraction for Compiling Dynamic Megakernel14 Apr 2026
- 2026RedFuser: An Automatic Operator Fusion Framework for Cascaded Reductions on AI Accelerators24 Feb 2026
- 2025Tawa: Automatic Warp Specialization for Modern GPUs with Asynchronous References16 Oct 2025
- 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving2 Jan 2025
- 2024Local deployment of large-scale music AI models on commodity hardware14 Nov 2024
- 2024Pruning Large Language Models to Intra-module Low-rank Architecture with Transitional Activations8 Jul 2024
- 2024Productively Deploying Emerging Models on Emerging Platforms: A Top-Down Approach for Testing and Debugging14 Apr 2024
- 2024GeoT: Tensor Centric Library for Graph Neural Network via Efficient Segment Reduction on GPU3 Apr 2024
- 2023Towards Efficient Generative Large Language Model Serving: A Survey from Algorithms to Systems23 Dec 2023
- 2023A Survey on Design Methodologies for Accelerating Deep Learning on Heterogeneous Architectures29 Nov 2023