mlsanityData to 7 Oct 2026

SmartMem: Layout Transformation Elimination and Adaptation for Efficient DNN Execution on Mobile

arXiv 2404.13528 ↗First posted 21 Apr 2024cs.LG cs.AI cs.DCcited by 12

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

  1. 2017Attention Is All You Needcited by 59,932
  2. 2015Deep Residual Learning for Image Recognitioncited by 51,809
  3. 2018BERT: Pre-training of Deep Bidirectional Transformers for Language Understandingcited by 40,204
  4. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 29,915
  5. 2021High-Resolution Image Synthesis with Latent Diffusion Modelscited by 18,694
  6. 2014Microsoft COCO: Common Objects in Contextcited by 17,498
  7. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 12,865
  8. 2021Swin Transformer: Hierarchical Vision Transformer using Shifted Windowscited by 12,082
  9. 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
  10. 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
  11. 2022A ConvNet for the 2020scited by 3,545
  12. 2020Longformer: The Long-Document Transformercited by 3,362
33 more
  1. 2016Perceptual Losses for Real-Time Style Transfer and Super-Resolutioncited by 2,678
  2. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,551
  3. 2016Aggregated Residual Transformations for Deep Neural Networkscited by 2,540
  4. 2023A Survey of Large Language Modelscited by 2,537
  5. 2020Conformer: Convolution-augmented Transformer for Speech Recognitioncited by 1,838
  6. 2023Pythia: A Suite for Analyzing Large Language Models Across Training and Scalingcited by 1,734
  7. 2021ViViT: A Video Vision Transformercited by 1,610
  8. 2021Is Space-Time Attention All You Need for Video Understanding?cited by 1,609
  9. 2021GLM: General Language Model Pretraining with Autoregressive Blank Infillingcited by 1,026
  10. 2020Designing Network Design Spacescited by 954
  11. 2021CoAtNet: Marrying Convolution and Attention for All Data Sizescited by 566
  12. 2021CSWin Transformer: A General Vision Transformer Backbone with Cross-Shaped Windowscited by 526
  13. 2020Axial-DeepLab: Stand-Alone Axial-Attention for Panoptic Segmentationcited by 326
  14. 2021Co-Scale Conv-Attentional Image Transformerscited by 224
  15. 2021AutoFormer: Searching Transformers for Visual Recognitioncited by 186
  16. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 170
  17. 2023BiFormer: Vision Transformer with Bi-Level Routing Attentioncited by 150
  18. 2020Data Movement Is All You Need: A Case Study on Optimizing Transformerscited by 108
  19. 2016DeepSense: A Unified Deep Learning Framework for Time-Series Mobile Sensing Data Processingcited by 84
  20. 2020MNN: A Universal and Efficient Inference Enginecited by 64
  21. 2017DeepCache: Principled Cache for Mobile Deep Visioncited by 57
  22. 2021DNNFusion: Accelerating Deep Neural Networks Execution with Advanced Operator Fusioncited by 56
  23. 2023Speed Is All You Need: On-Device Acceleration of Large Diffusion Models via GPU-Aware Optimizationscited by 45
  24. 2021Searching the Search Space of Vision Transformercited by 39
  25. 2022TensorIR: An Abstraction for Automatic Tensorized Program Optimizationcited by 38
  26. 2023Beyond the Safeguards: Exploring the Security Risks of ChatGPTcited by 36
  27. 2018Optimizing CNN Model Inference on CPUscited by 29
  28. 2019MobiSR: Efficient On-Device Super-Resolution through Heterogeneous Mobile Processorscited by 27
  29. 2020Nimble: Efficiently Compiling Dynamic Neural Networks for Model Inferencecited by 19
  30. 2023CrossFormer++: A Versatile Vision Transformer Hinging on Cross-scale Attentioncited by 18
  31. 2021Pure Tensor Program Rewriting via Access Patterns (Representation Pearl)cited by 7
  32. 2017Optimal DNN Primitive Selection with Partitioned Boolean Quadratic Programmingcited by 3
  33. 2017What's up with Privacy?: User Preferences and Privacy Concerns in Intelligent Personal Assistantscited by 2

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2024: 1; 2025: 4; 2026: 7.

12 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Scaling LLM Test-Time Compute with Mobile NPU on Smartphones
  2. 2022T-RECX: Tiny-Resource Efficient Convolutional neural networks with early-eXit
  3. 2024Transformer-Lite: High-efficiency Deployment of Large Language Models on Mobile Phone GPUs
  4. 2026EdgeDiT: Hardware-Aware Diffusion Transformers for Efficient On-Device Image Generation
  5. 2026Efficient On-Device Diffusion LLM Inference with Mobile NPU
  6. 2021GRIM: A General, Real-Time Deep Learning Inference Framework for Mobile Devices based on Fine-Grained Structured Weight Sparsity
  7. 2024Distributed Inference on Mobile Edge and Cloud: An Early Exit based Clustering Approach
  8. 2026MobileMoE: Scaling On-Device Mixture of Experts