mlsanityData to 14 Oct 2026

DyCL: Dynamic Neural Network Compilation Via Program Rewriting and Graph Optimization

arXiv 2307.04963 ↗First posted 11 Jul 2023cs.CL cs.LG cs.PLcited by 9

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

  1. 2017Attention Is All You Needcited by 60,361
  2. 2015Deep Residual Learning for Image Recognitioncited by 52,096
  3. 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,305
  4. 2017Outrageously Large Neural Networks: The Sparsely-Gated Mixture-of-Experts Layercited by 3,509
  5. 2015Show, Attend and Tell: Neural Image Caption Generation with Visual Attentioncited by 1,423
  6. 2017BranchyNet: Fast Inference via Early Exiting from Deep Neural Networkscited by 596
  7. 2021Dynamic Neural Networks: A Surveycited by 408
  8. 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 332
  9. 2014Caffe: Convolutional Architecture for Fast Feature Embeddingcited by 288
  10. 2020Ansor: Generating High-Performance Tensor Programs for Deep Learningcited by 201
  11. 2017Convolutional Networks with Adaptive Inference Graphscited by 148
  12. 2018AdaFrame: Adaptive Frame Selection for Fast Video Recognitioncited by 134
20 more
  1. 2018Dynamic Channel Pruning: Feature Boosting and Suppressioncited by 129
  2. 2016Spatially Adaptive Computation Time for Residual Networkscited by 118
  3. 2018Channel Gating Neural Networkscited by 80
  4. 2017Dynamic Deep Neural Networks: Optimizing Accuracy-Efficiency Trade-offs by Selective Executioncited by 59
  5. 2022SparseTIR: Composable Abstractions for Sparse Compilation in Deep Learningcited by 47
  6. 2018AutoFocus: Efficient Multi-Scale Inferencecited by 46
  7. 2020The Deep Learning Compiler: A Comprehensive Surveycited by 46
  8. 2013Low-Rank Approximations for Conditional Feedforward Computation in Deep Neural Networkscited by 44
  9. 2022NNSmith: Generating Diverse and Valid Test Cases for Deep Learning Compilerscited by 30
  10. 2017Dynamic Zoom-in Network for Fast Object Detection in Large Imagescited by 23
  11. 2018Intel nGraph: An Intermediate Representation, Compiler, and Executor for Deep Learningcited by 23
  12. 2020IOS: Inter-Operator Scheduler for CNN Accelerationcited by 20
  13. 2020Nimble: Efficiently Compiling Dynamic Neural Networks for Model Inferencecited by 19
  14. 2022DeepPerform: An Efficient Approach for Performance Testing of Resource-Constrained Neural Networkscited by 17
  15. 2020Cortex: A Compiler for Recursive Deep Learning Modelscited by 16
  16. 2022LLMEffiChecker: Understanding and Testing Efficiency Degradation of Large Language Modelscited by 16
  17. 2017Adaptive Classification for Prediction Under a Budgetcited by 15
  18. 2022Learning to Reverse DNNs from AI Programs Automaticallycited by 12
  19. 2021Pure Tensor Program Rewriting via Access Patterns (Representation Pearl)cited by 7
  20. 2021A Survey of Large-Scale Deep Learning Serving System Optimization: Challenges and Opportunitiescited by 5

Built on by

Cited by year (2026 to 14 Oct)

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

9 papers.