DyCL: Dynamic Neural Network Compilation Via Program Rewriting and Graph Optimization
Not on the map. Why?
Abstract (arXiv)
DL compiler's primary function is to translate DNN programs written in high-level DL frameworks such as PyTorch and TensorFlow into portable executables. These executables can then be flexibly executed by the deployed host programs. However, existing DL compilers rely on a tracing mechanism, which involves feeding a runtime input to a neural network program and tracing the program execution paths to generate the computational graph necessary for compilation. Unfortunately, this mechanism falls short when dealing with modern dynamic neural networks (DyNNs) that possess varying computational graphs depending on the inputs. Consequently, conventional DL compilers struggle to accurately compile DyNNs into executable code. To address this limitation, we propose tool, a general approach that enables any existing DL compiler to successfully compile DyNNs. tool tackles the dynamic nature of DyNNs by introducing a compilation mechanism that redistributes the control and data flow of the original DNN programs during the compilation process. Specifically, tool develops program analysis and program transformation techniques to convert a dynamic neural network into multiple sub-neural networks. Each sub-neural network is devoid of conditional statements and is compiled independently. Furthermore, tool synthesizes a host module that models the control flow of the DyNNs and facilitates the invocation of the sub-neural networks. Our evaluation demonstrates the effectiveness of tool, achieving a 100% success rate in compiling all dynamic neural networks. Moreover, the compiled executables generated by tool exhibit significantly improved performance, running between 1.12× and 20.21× faster than the original DyNNs executed on general-purpose DL frameworks.
Key facts. Cited by 9 papers in the map (data through 14 Oct 2026). Builds on 32 of its 54 references that are in the map. First posted on arXiv 11 Jul 2023.
Builds on
32 of 54 references.
References · 32
- 2017Attention Is All You Needcited by 60,361
- 2015Deep Residual Learning for Image Recognitioncited by 52,096
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
- 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
- 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,423
- 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 596
- 2021Dynamic Neural Networks: A Surveycited by 408
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 332
- 2014Caffe: Convolutional Architecture for Fast Feature Embeddingcited by 288
- 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
- 2017Convolutional Networks with Adaptive Inference Graphscited by 148
- 2018AdaFrame: Adaptive Frame Selection for Fast Video Recognitioncited by 134
20 more
- 2018Dynamic Channel Pruning: Feature Boosting and Suppressioncited by 129
- 2016Spatially Adaptive Computation Time for Residual Networkscited by 118
- 2018Channel Gating Neural Networkscited by 80
- 2017Dynamic Deep Neural Networks: Optimizing Accuracy-Efficiency Trade-offs by Selective Executioncited by 59
- 2022SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learningcited by 47
- 2018AutoFocus: Efficient Multi-Scale Inferencecited by 46
- 2020The Deep Learning Compiler: A Comprehensive Surveycited by 46
- 2013Low-Rank Approximations for Conditional Feedforward Computation in Deep Neural Networkscited by 44
- 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 30
- 2017Dynamic Zoom-in Network for Fast Object Detection in Large Imagescited by 23
- 2018Intel nGraph: An Intermediate Representation, Compiler, and Executor for Deep Learningcited by 23
- 2020IOS: Inter-Operator Scheduler for CNN Accelerationcited by 20
- 2020Nimble: Efficiently Compiling Dynamic Neural Networks for Model Inferencecited by 19
- 2022DeepPerform: An Efficient Approach for Performance Testing of Resource-Constrained Neural Networkscited by 17
- 2020Cortex: A Compiler for Recursive Deep Learning Modelscited by 16
- 2022LLMEffiChecker: Understanding and Testing Efficiency Degradation of Large Language Modelscited by 16
- 2017Adaptive Classification for Prediction Under a Budgetcited by 15
- 2022Learning to Reverse DNNs from AI Programs Automaticallycited by 12
- 2021Pure Tensor Program Rewriting via Access Patterns (Representation Pearl)cited by 7
- 2021A Survey of Large-Scale Deep Learning Serving System Optimization: Challenges and Opportunitiescited by 5
Built on by
Citing papers per year: 2023: 2; 2024: 0; 2025: 5; 2026: 2.
9 papers.
- 2023RT-LM: Uncertainty-Aware Resource Management for Real-Time Inference of Language Modelscited by 11
- 2025Your Compiler is Backdooring Your Model: Understanding and Exploiting Compilation Inconsistency Vulnerabilities in Deep Learning Compilerscited by 7
- 2025Yggdrasil: Bridging Dynamic Speculation and Static Runtime for Latency-Optimal Tree-Based LLM Decodingcited by 4
- 2025LeMix: Unified Scheduling for LLM Training and Inference on Multi-GPU Systemscited by 3
- 202510Cache: Heterogeneous Resource-Aware Tensor Caching and Migration for LLM Trainingcited by 2
- 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Trainingcited by 2
- 2023Edge AI for Internet of Energy: Challenges and Perspectivescited by 1
- 2025Towards Migrating Neural Network Implementationscited by 1
- 2026DVM: A Bytecode Virtual Machine Approach for Dynamic Tensor Computationcited by 0
- 2026DVM: A Bytecode Virtual Machine Approach for Dynamic Tensor Computation25 Mar 2026
- 2026NGDB-Zoo: Towards Efficient and Scalable Neural Graph Databases Training25 Feb 2026
- 2025Yggdrasil: Bridging Dynamic Speculation and Static Runtime for Latency-Optimal Tree-Based LLM Decoding29 Dec 2025
- 202510Cache: Heterogeneous Resource-Aware Tensor Caching and Migration for LLM Training18 Nov 2025
- 2025Towards Migrating Neural Network Implementations4 Nov 2025
- 2025Your Compiler is Backdooring Your Model: Understanding and Exploiting Compilation Inconsistency Vulnerabilities in Deep Learning Compilers14 Sep 2025
- 2025LeMix: Unified Scheduling for LLM Training and Inference on Multi-GPU Systems28 Jul 2025
- 2023Edge AI for Internet of Energy: Challenges and Perspectives28 Nov 2023
- 2023RT-LM: Uncertainty-Aware Resource Management for Real-Time Inference of Language Models12 Sep 2023