SmartMem: Layout Transformation Elimination and Adaptation for Efficient DNN Execution on Mobile
Not on the map. Why?
Abstract (arXiv)
This work is motivated by recent developments in Deep Neural Networks, particularly the Transformer architectures underlying applications such as ChatGPT, and the need for performing inference on mobile devices. Focusing on emerging transformers (specifically the ones with computationally efficient Swin-like architectures) and large models (e.g., Stable Diffusion and LLMs) based on transformers, we observe that layout transformations between the computational operators cause a significant slowdown in these applications. This paper presents SmartMem, a comprehensive framework for eliminating most layout transformations, with the idea that multiple operators can use the same tensor layout through careful choice of layout and implementation of operations. Our approach is based on classifying the operators into four groups, and considering combinations of producer-consumer edges between the operators. We develop a set of methods for searching such layouts. Another component of our work is developing efficient memory layouts for 2.5 dimensional memory commonly seen in mobile devices. Our experimental results show that SmartMem outperforms 5 state-of-the-art DNN execution frameworks on mobile devices across 18 varied neural networks, including CNNs, Transformers with both local and global attention, as well as LLMs. In particular, compared to DNNFusion, SmartMem achieves an average speedup of 2.8×, and outperforms TVM and MNN with speedups of 6.9× and 7.9×, respectively, on average.
Key facts. Cited by 12 papers in the map (data through 7 Oct 2026). Builds on 45 of its 74 references that are in the map. First posted on arXiv 21 Apr 2024.
Builds on
45 of 74 references.
References · 45
- 2017Attention Is All You Needcited by 59,932
- 2015Deep Residual Learning for Image Recognitioncited by 51,809
- 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
- 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
- 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
- 2014Microsoft COCO: Common Objects in Contextcited by 17,498
- 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
- 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
- 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
- 2022A ConvNet for the 2020scited by 3,545
- 2020Longformer: The Long-Document Transformercited by 3,362
33 more
- 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
- 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
- 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
- 2023A Survey of Large Language Modelscited by 2,537
- 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
- 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
- 2021ViViT: A Video Vision Transformercited by 1,610
- 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,609
- 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
- 2020Designing Network Design Spacescited by 954
- 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
- 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
- 2020Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentationcited by 326
- 2021Co-Scale Conv-Attentional Image Transformerscited by 224
- 2021AutoFormer: Searching Transformers for Visual Recognitioncited by 186
- 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
- 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 150
- 2020Data Movement Is All You Need: A Case Study on Optimizing Transformerscited by 108
- 2016DeepSense: A Unified Deep Learning Framework for Time-Series Mobile Sensing Data Processingcited by 84
- 2020MNN: A Universal and Efficient Inference Enginecited by 64
- 2017DeepCache: Principled Cache for Mobile Deep Visioncited by 57
- 2021DNNFusion: Accelerating Deep Neural Networks Execution with Advanced Operator Fusioncited by 56
- 2023Speed Is All You Need: On-Device Acceleration of Large Diffusion Models via GPU-Aware Optimizationscited by 45
- 2021Searching the Search Space of Vision Transformercited by 39
- 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
- 2023Beyond the Safeguards: Exploring the Security Risks of ChatGPTcited by 36
- 2018Optimizing CNN Model Inference on CPUscited by 29
- 2019MobiSR: Efficient On-Device Super-Resolution through Heterogeneous Mobile Processorscited by 27
- 2020Nimble: Efficiently Compiling Dynamic Neural Networks for Model Inferencecited by 19
- 2023CrossFormer++: A Versatile Vision Transformer Hinging on Cross-scale Attentioncited by 18
- 2021Pure Tensor Program Rewriting via Access Patterns (Representation Pearl)cited by 7
- 2017Optimal DNN Primitive Selection with Partitioned Boolean Quadratic Programmingcited by 3
- 2017What's up with Privacy?: User Preferences and Privacy Concerns in Intelligent Personal Assistantscited by 2
Built on by
Citing papers per year: 2024: 1; 2025: 4; 2026: 7.
12 papers.
- 2024Fast On-device LLM Inference with NPUscited by 58
- 2025Ten Challenging Problems in Federated Foundation Modelscited by 20
- 2025MNN-AECS: Energy Optimization for LLM Decoding on Mobile Devices via Adaptive Core Selectioncited by 2
- 2025A Study on Inference Latency for Vision Transformers on Mobile Devicescited by 1
- 2025Optimizing 3D Gaussian Splattering for Mobile GPUscited by 1
- 2026FlashMem: Supporting Modern DNN Workloads on Mobile with GPU Memory Hierarchy Optimizationscited by 1
- 2026VTC: DNN Compilation with Virtual Tensors for Data Movement Eliminationcited by 0
- 2026FBLayout: Optimizing Memory Layout for Efficient LLM Finetuning on Mobile GPUscited by 0
- 2026Tensor Seeks Layout: Formalizing Layout Selection for ML Compilerscited by 0
- 2026TierKV: Long-Context On-Device LLMs via Predictive Multi-Tier KV Cachingcited by 0
- 2026Empowering Hybrid Attention Models on NPUscited by 0
- 2026Dynamic Flow, Static Graph: KV Cache Reuse for Efficient LLM Serving on Mobile NPUscited by 0
- 2026Dynamic Flow, Static Graph: KV Cache Reuse for Efficient LLM Serving on Mobile NPUs28 Sep 2026
- 2026Empowering Hybrid Attention Models on NPUs26 Sep 2026
- 2026TierKV: Long-Context On-Device LLMs via Predictive Multi-Tier KV Caching18 Sep 2026
- 2026Tensor Seeks Layout: Formalizing Layout Selection for ML Compilers21 Aug 2026
- 2026FBLayout: Optimizing Memory Layout for Efficient LLM Finetuning on Mobile GPUs7 Jul 2026
- 2026FlashMem: Supporting Modern DNN Workloads on Mobile with GPU Memory Hierarchy Optimizations17 Feb 2026
- 2026VTC: DNN Compilation with Virtual Tensors for Data Movement Elimination11 Feb 2026
- 2025Optimizing 3D Gaussian Splattering for Mobile GPUs20 Nov 2025
- 2025A Study on Inference Latency for Vision Transformers on Mobile Devices29 Oct 2025
- 2025MNN-AECS: Energy Optimization for LLM Decoding on Mobile Devices via Adaptive Core Selection24 Jun 2025
- 2025Ten Challenging Problems in Federated Foundation Models14 Feb 2025
- 2024Fast On-device LLM Inference with NPUs8 Jul 2024
Similar, not cited
Close in wording, no citation either way
- 2025Scaling LLM Test-Time Compute with Mobile NPU on Smartphones
- 2022T-RECX: Tiny-Resource Efficient Convolutional neural networks with early-eXit
- 2024Transformer-Lite: High-efficiency Deployment of Large Language Models on Mobile Phone GPUs
- 2026EdgeDiT: Hardware-Aware Diffusion Transformers for Efficient On-Device Image Generation
- 2026Efficient On-Device Diffusion LLM Inference with Mobile NPU
- 2021GRIM: A General, Real-Time Deep Learning Inference Framework for Mobile Devices based on Fine-Grained Structured Weight Sparsity
- 2024Distributed Inference on Mobile Edge and Cloud: An Early Exit based Clustering Approach
- 2026MobileMoE: Scaling On-Device Mixture of Experts