Compiling ONNX Neural Network Models Using MLIR
Not on the map. Why?
Abstract (arXiv)
Deep neural network models are becoming increasingly popular and have been used in various tasks such as computer vision, speech recognition, and natural language processing. Machine learning models are commonly trained in a resource-rich environment and then deployed in a distinct environment such as high availability machines or edge devices. To assist the portability of models, the open-source community has proposed the Open Neural Network Exchange (ONNX) standard. In this paper, we present a high-level, preliminary report on our onnx-mlir compiler, which generates code for the inference of deep neural network models described in the ONNX format. Onnx-mlir is an open-source compiler implemented using the Multi-Level Intermediate Representation (MLIR) infrastructure recently integrated in the LLVM project. Onnx-mlir relies on the MLIR concept of dialects to implement its functionality. We propose here two new dialects: (1) an ONNX specific dialect that encodes the ONNX standard semantics, and (2) a loop-based dialect to provide for a common lowering point for all ONNX dialect operations. Each intermediate representation facilitates its own characteristic set of graph-level and loop-based optimizations respectively. We illustrate our approach by following several models through the proposed representations and we include some early optimization work and performance results.
Key facts. Cited by 18 papers in the map (data through 7 Oct 2026). First posted on arXiv 19 Aug 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2022: 3; 2023: 3; 2024: 5; 2025: 7.
18 papers.
Sort:
By area:
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Modelscited by 12
- 2025Neural Brain: A Neuroscience-inspired Framework for Embodied Agentscited by 10
- 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutationcited by 9
- 2022An Empirical Study of Challenges in Converting Deep Learning Modelscited by 8
- 2025Mind Meets Space: Rethinking Agentic Spatial Intelligence from a Neuroscience-inspired Perspectivecited by 7
- 2022TPU-MLIR: A Compiler For TPU Using MLIRcited by 3
- 2023Advancing Direct Convolution using Convolution Slicing Optimization and ISA Extensionscited by 3
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compilercited by 3
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignmentcited by 2
- 2024CyberCortex.AI: An AI-based Operating System for Autonomous Robotics and Complex Automationcited by 1
- 2025Chat-Ghosting: A Comparative Study of Methods for Auto-Completion in Dialog Systemscited by 1
- 2025Bootstrapping Fuzzers for Compilers of Low-Resource Language Dialects Using Language Modelscited by 1
6 more
- 2023Tensor Slicing and Optimization for Multicore NPUscited by 0
- 2023A Survey on Design Methodologies for Accelerating Deep Learning on Heterogeneous Architecturescited by 0
- 2024Explore as a Storm, Exploit as a Raindrop: On the Benefit of Fine-Tuning Kernel Schedulers with Coordinate Descentcited by 0
- 2025DejAIvu: Identifying and Explaining AI Art on the Web in Real-Time with Saliency Mapscited by 0
- 2025Rulebook: bringing co-routines to reinforcement learning environmentscited by 0
- 2025ShadowLogic: Backdoors in Any Whitebox LLMcited by 0
- 2025Bootstrapping Fuzzers for Compilers of Low-Resource Language Dialects Using Language Models5 Dec 2025
- 2025ShadowLogic: Backdoors in Any Whitebox LLM1 Nov 2025
- 2025Mind Meets Space: Rethinking Agentic Spatial Intelligence from a Neuroscience-inspired Perspective11 Sep 2025
- 2025Chat-Ghosting: A Comparative Study of Methods for Auto-Completion in Dialog Systems8 Jul 2025
- 2025Neural Brain: A Neuroscience-inspired Framework for Embodied Agents12 May 2025
- 2025Rulebook: bringing co-routines to reinforcement learning environments28 Apr 2025
- 2025DejAIvu: Identifying and Explaining AI Art on the Web in Real-Time with Saliency Maps12 Feb 2025
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment10 Dec 2024
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Models6 Oct 2024
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler17 Sep 2024
- 2024CyberCortex.AI: An AI-based Operating System for Autonomous Robotics and Complex Automation2 Sep 2024
- 2024Explore as a Storm, Exploit as a Raindrop: On the Benefit of Fine-Tuning Kernel Schedulers with Coordinate Descent28 Jun 2024
6 more
- 2023A Survey on Design Methodologies for Accelerating Deep Learning on Heterogeneous Architectures29 Nov 2023
- 2023Tensor Slicing and Optimization for Multicore NPUs6 Apr 2023
- 2023Advancing Direct Convolution using Convolution Slicing Optimization and ISA Extensions8 Mar 2023
- 2022TPU-MLIR: A Compiler For TPU Using MLIR23 Oct 2022
- 2022An Empirical Study of Challenges in Converting Deep Learning Models28 Jun 2022
- 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutation21 Feb 2022
- 2025ShadowLogic: Backdoors in Any Whitebox LLMcited by 0
- 2025ShadowLogic: Backdoors in Any Whitebox LLM1 Nov 2025
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Modelscited by 12
- 2022Coverage-Guided Tensor Compiler Fuzzing with Joint IR-Pass Mutationcited by 9
- 2022An Empirical Study of Challenges in Converting Deep Learning Modelscited by 8
- 2022TPU-MLIR: A Compiler For TPU Using MLIRcited by 3
- 2023Advancing Direct Convolution using Convolution Slicing Optimization and ISA Extensionscited by 3
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compilercited by 3
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignmentcited by 2
- 2024CyberCortex.AI: An AI-based Operating System for Autonomous Robotics and Complex Automationcited by 1
- 2025Chat-Ghosting: A Comparative Study of Methods for Auto-Completion in Dialog Systemscited by 1
- 2023Tensor Slicing and Optimization for Multicore NPUscited by 0
- 2023A Survey on Design Methodologies for Accelerating Deep Learning on Heterogeneous Architecturescited by 0
- 2024Explore as a Storm, Exploit as a Raindrop: On the Benefit of Fine-Tuning Kernel Schedulers with Coordinate Descentcited by 0
12 most cited of 13 All 13 (JSON)
- 2025Chat-Ghosting: A Comparative Study of Methods for Auto-Completion in Dialog Systems8 Jul 2025
- 2025Rulebook: bringing co-routines to reinforcement learning environments28 Apr 2025
- 2024Hydraulis: Balancing Large Transformer Model Training via Co-designing Parallel Strategies and Data Assignment10 Dec 2024
- 2024A Large-Scale Exploit Instrumentation Study of AI/ML Supply Chain Attacks in Hugging Face Models6 Oct 2024
- 2024A Reinforcement Learning Environment for Automatic Code Optimization in the MLIR Compiler17 Sep 2024
- 2024CyberCortex.AI: An AI-based Operating System for Autonomous Robotics and Complex Automation2 Sep 2024
- 2024Explore as a Storm, Exploit as a Raindrop: On the Benefit of Fine-Tuning Kernel Schedulers with Coordinate Descent28 Jun 2024
- 2023A Survey on Design Methodologies for Accelerating Deep Learning on Heterogeneous Architectures29 Nov 2023
- 2023Tensor Slicing and Optimization for Multicore NPUs6 Apr 2023
- 2023Advancing Direct Convolution using Convolution Slicing Optimization and ISA Extensions8 Mar 2023
- 2022TPU-MLIR: A Compiler For TPU Using MLIR23 Oct 2022
- 2022An Empirical Study of Challenges in Converting Deep Learning Models28 Jun 2022
12 newest of 13 All 13 (JSON)