SoD2: Statically Optimizing Dynamic Deep Neural Network
Not on the map. Why?
Abstract (arXiv)
Though many compilation and runtime systems have been developed for DNNs in recent years, the focus has largely been on static DNNs. Dynamic DNNs, where tensor shapes and sizes and even the set of operators used are dependent upon the input and/or execution, are becoming common. This paper presents SoD2, a comprehensive framework for optimizing Dynamic DNNs. The basis of our approach is a classification of common operators that form DNNs, and the use of this classification towards a Rank and Dimension Propagation (RDP) method. This framework statically determines the shapes of operators as known constants, symbolic constants, or operations on these. Next, using RDP we enable a series of optimizations, like fused code generation, execution (order) planning, and even runtime memory allocation plan generation. By evaluating the framework on 10 emerging Dynamic DNNs and comparing it against several existing systems, we demonstrate both reductions in execution latency and memory requirements, with RDP-enabled key optimizations responsible for much of the gains. Our evaluation results show that SoD2 runs up to 3.9× faster than these systems while saving up to 88% peak memory consumption.
Key facts. Cited by 4 papers in the map (data through 7 Oct 2026). Builds on 41 of its 76 references that are in the map. First posted on arXiv 29 Feb 2024.
Builds on
41 of 76 references.
References · 41
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2019PyTorch: An Imperative Style, High-Performance Deep Learning Librarycited by 20,160
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2023Segment Anythingcited by 8,158
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
- 2020CodeBERT: A Pre-Trained Model for Programming and Natural Languagescited by 1,286
- 2021DynamicViT: Efficient Vision Transformers with Dynamic Token Sparsificationcited by 849
- 2022GLM-130B: An Open Bilingual Pre-trained Modelcited by 837
- 2017SkipNet: Learning Dynamic Routing in Convolutional Networkscited by 328
- 2022YOLOv6: A Single-Stage Object Detection Framework for Industrial Applicationscited by 273
- 2020MCUNet: Tiny Deep Learning on IoT Devicescited by 269
29 more
- 2017BlockDrop: Dynamic Inference Paths in Residual Networkscited by 185
- 2017Convolutional Networks with Adaptive Inference Graphscited by 147
- 2020Resolution Adaptive Networks for Efficient Inferencecited by 146
- 2019Checkmate: Breaking the Memory Wall with Optimal Tensor Rematerializationcited by 90
- 2016DeepSense: A Unified Deep Learning Framework for Time-Series Mobile Sensing Data Processingcited by 84
- 2018Tensor Comprehensions: Framework-Agnostic High-Performance Machine Learning Abstractionscited by 84
- 2021Dynamic Slimmable Networkcited by 83
- 2017In-Place Activated BatchNorm for Memory-Optimized Training of DNNscited by 81
- 2020PatDNN: Achieving Real-Time DNN Execution on Mobile Devices with Pattern-based Weight Pruningcited by 75
- 2020TurboTransformers: An Efficient GPU Serving System For Transformer Modelscited by 71
- 2017DeepCache: Principled Cache for Mobile Deep Visioncited by 57
- 2021DNNFusion: Accelerating Deep Neural Networks Execution with Advanced Operator Fusioncited by 56
- 2022SparCL: Sparse Continual Learning on the Edgecited by 55
- 2020Dynamic Tensor Rematerializationcited by 45
- 2022ByteTransformer: A High-Performance Transformer Boosted for Variable-Length Inputscited by 32
- 2019MobiSR: Efficient On-Device Super-Resolution through Heterogeneous Mobile Processorscited by 27
- 2020Ordering Chaos: Memory-Aware Scheduling of Irregularly Wired Neural Networks for Edge Devicescited by 27
- 2022F8Net: Fixed-Point 8-bit Only Multiplication for Network Quantizationcited by 26
- 2017DyNet: The Dynamic Neural Network Toolkitcited by 21
- 2020Nimble: Efficiently Compiling Dynamic Neural Networks for Model Inferencecited by 19
- 2020Cortex: A Compiler for Recursive Deep Learning Modelscited by 16
- 2017Deep Learning with Dynamic Computation Graphscited by 15
- 2019Neural networks on microcontrollers: saving memory at inference via operator reorderingcited by 15
- 2022Boosting Distributed Training Performance of the Unpadded BERT Modelcited by 15
- 2020Efficient Memory Management for Deep Neural Net Inferencecited by 12
- 2021DISC: A Dynamic Shape Compiler for Machine Learning Workloadscited by 10
- 2022Memory Planning for Deep Neural Networkscited by 3
- 2018Improving the Expressiveness of Deep Learning Frameworks with Recursioncited by 2
- 2022Axon: A Language for Dynamic Shapes in Deep Learning Graphscited by 1
Built on by
Citing papers per year: 2024: 1; 2025: 2; 2026: 1.
4 papers.
- 2024Fast On-device LLM Inference with NPUscited by 58
- 2025Optimizing 3D Gaussian Splattering for Mobile GPUscited by 1
- 2026FlashMem: Supporting Modern DNN Workloads on Mobile with GPU Memory Hierarchy Optimizationscited by 1
- 2025Parallax: Runtime Parallelization for Operator Fallbacks in Heterogeneous Edge Systemscited by 0
- 2026FlashMem: Supporting Modern DNN Workloads on Mobile with GPU Memory Hierarchy Optimizations17 Feb 2026
- 2025Parallax: Runtime Parallelization for Operator Fallbacks in Heterogeneous Edge Systems12 Dec 2025
- 2025Optimizing 3D Gaussian Splattering for Mobile GPUs20 Nov 2025
- 2024Fast On-device LLM Inference with NPUs8 Jul 2024