Data Movement Is All You Need: A Case Study on Optimizing Transformers
Not on the map. Why?
Abstract (arXiv)
Transformers are one of the most important machine learning workloads today. Training one is a very compute-intensive task, often taking days or weeks, and significant attention has been given to optimizing transformers. Despite this, existing implementations do not efficiently utilize GPUs. We find that data movement is the key bottleneck when training. Due to Amdahl's Law and massive improvements in compute performance, training has now become memory-bound. Further, existing frameworks use suboptimal data layouts. Using these insights, we present a recipe for globally optimizing data movement in transformers. We reduce data movement by up to 22.91% and overall achieve a 1.30x performance improvement over state-of-the-art frameworks when training a BERT encoder layer and 1.19x for the entire BERT. Our approach is applicable more broadly to optimizing deep neural networks, and offers insight into how to tackle emerging performance bottlenecks.
Key facts. Cited by 108 papers in the map (data through 7 Oct 2026). First posted on arXiv 30 Jun 2020.
Builds on
No reference list yet.
Built on by
Citing papers per year: 2021: 11; 2022: 17; 2023: 22; 2024: 19; 2025: 17; 2026: 22.
108 papers.
Sort:
By area:
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
- 2023A Cookbook of Self-Supervised Learningcited by 248
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2023EfficientViT: Memory Efficient Vision Transformer with Cascaded Group Attentioncited by 172
- 2023FP8-LM: Training FP8 Large Language Modelscited by 75
- 2023Dynamic Context Pruning for Efficient and Interpretable Autoregressive Transformerscited by 67
- 2025Judge Decoding: Faster Speculative Sampling Requires Going Beyond Model Alignmentcited by 59
- 2024SHViT: Single-Head Vision Transformer with Memory Efficient Macro Designcited by 55
- 2024Characterization of Large Language Model Development in the Datacentercited by 46
- 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
- 2023Reversible Vision Transformerscited by 33
38 more
- 2022SimA: Simple Softmax-free Attention for Vision Transformerscited by 32
- 2025Parallel Scaling Law for Language Modelscited by 29
- 2023Chameleon: a Heterogeneous and Disaggregated Accelerator System for Retrieval-Augmented Language Modelscited by 23
- 2023The Synergy of Speculative Decoding and Batching in Serving Large Language Modelscited by 19
- 2024SambaNova SN40L: Scaling the AI Memory Wall with Dataflow and Composition of Expertscited by 18
- 2021The CoRa Tensor Compiler: Compilation for Ragged Tensors with Minimal Paddingcited by 17
- 2023Federated Fine-Tuning of LLMs on the Very Edge: The Good, the Bad, the Uglycited by 17
- 2022Mokey: Enabling Narrow Fixed-Point Inference for Out-of-the-Box Floating-Point Transformer Modelscited by 16
- 2024Lean Attention: Hardware-Aware Scalable Attention Mechanism for the Decode-Phase of Transformerscited by 16
- 2021Clairvoyant Prefetching for Distributed Machine Learning I/Ocited by 14
- 2022Spatial Mixture-of-Expertscited by 14
- 2021FastSeq: Make Sequence Generation Fastercited by 13
- 2023VENOM: A Vectorized N:M Format for Unleashing the Power of Sparse Tensor Corescited by 13
- 2021Improving the Efficiency of Transformers for Resource-Constrained Devicescited by 12
- 2022A Comprehensive Study of Real-Time Object Detection Networks Across Multiple Domains: A Surveycited by 12
- 2024SmartMem: Layout Transformation Elimination and Adaptation for Efficient DNN Execution on Mobilecited by 12
- 2025Distributed LLMs and Multimodal Large Language Models: A Survey on Advances, Challenges, and Future Directionscited by 10
- 2025Hardware-Efficient Attention for Fast Decodingcited by 10
- 2024Performance Modeling and Workload Analysis of Distributed Large Language Model Training and Inferencecited by 9
- 2022A Comprehensive Study of Vision Transformers on Dense Prediction Taskscited by 8
- 2022HammingMesh: A Network Topology for Large-Scale Deep Learningcited by 8
- 2023Operator Fusion in XLA: Analysis and Evaluationcited by 8
- 2023Enabling Resource-efficient AIoT System with Cross-level Optimization: A surveycited by 8
- 2024Optimizing the Deployment of Tiny Transformers on Low-Power MCUscited by 8
- 2024FlashAttention on a Napkin: A Diagrammatic Approach to Deep Learning IO-Awarenesscited by 7
- 2022Survey: Exploiting Data Redundancy for Optimization of Deep Learningcited by 6
- 2023Dynamic Stashing Quantization for Efficient Transformer Trainingcited by 6
- 2025Tawa: Automatic Warp Specialization for Modern GPUs with Asynchronous Referencescited by 6
- 2026Embodied Foundation Models at the Edge: A Survey of Deployment Constraints and Mitigation Strategiescited by 6
- 2023PolyThrottle: Energy-efficient Neural Network Inference on Edge Devicescited by 5
- 2024PIM-Opt: Demystifying Distributed Optimization Algorithms on a Real-World Processing-In-Memory Systemcited by 5
- 2025La RoSA: Enhancing LLM Efficiency via Layerwise Rotated Sparse Activationcited by 5
- 2025Confidential LLM Inference: Performance and Cost Across CPU and GPU TEEscited by 5
- 2026Retrieval-Aware Distillation for Transformer-SSM Hybridscited by 5
- 2026CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programscited by 5
- 2022Tempo: Accelerating Transformer-Based Model Training through Memory Footprint Reductioncited by 4
- 2021Demystifying BERT: Implications for Accelerator Designcited by 3
- 2021A Data-Centric Optimization Framework for Machine Learningcited by 3
50 most cited of 108 All 108 (JSON)
- 2026Empowering Hybrid Attention Models on NPUs26 Sep 2026
- 2026Efficient Iterative Retrieval with Heterogeneous Batching21 Sep 2026
- 2026TerraceMoE: A Cost Model for Hierarchical MoE All-to-All Communication28 Aug 2026
- 2026Maia 200: A Software Defined Dataflow System for Large-scale AI Acceleration25 Aug 2026
- 2026Tensor Seeks Layout: Formalizing Layout Selection for ML Compilers21 Aug 2026
- 2026Fast and Memory-Efficient Wavelet Convolutions via I/O-Aware Reformulation11 Aug 2026
- 2026Gradient Under Microscope: Benchmarking Resource Utilization of Memory-Efficient Gradient Computation Methods9 Aug 2026
- 2026RIS-Kernel: A Model-Agnostic Architecture for Long-Context LLM Inference via Sparse Attention24 Jul 2026
- 2026Nova: An End-to-End MLIR Compiler for Deep Learning15 Jul 2026
- 2026AURA: Action-Gated Memory for Robot Policies at Constant VRAM1 Jun 2026
- 2026On Efficient Scaling of GNNs via IO-Aware Layers Implementations29 May 2026
- 2026Instant GPU Efficiency Visibility at Fleet Scale20 May 2026
38 more
- 2026CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programs19 May 2026
- 2026PSD: Pushing the Pareto Frontier of Diffusion LLMs via Parallel Speculative Decoding15 May 2026
- 2026Embodied Foundation Models at the Edge: A Survey of Deployment Constraints and Mitigation Strategies16 Mar 2026
- 2026Multi-Head Low-Rank Attention2 Mar 2026
- 2026Positional-aware Spatio-Temporal Network for Large-Scale Traffic Prediction25 Feb 2026
- 2026VTC: DNN Compilation with Virtual Tensors for Data Movement Elimination11 Feb 2026
- 2026Retrieval-Aware Distillation for Transformer-SSM Hybrids11 Feb 2026
- 2026PACER: Blockwise Pre-verification for Speculative Decoding with Adaptive Length1 Feb 2026
- 2026E2Former-V2: On-the-Fly Equivariant Attention with Linear Activation Memory23 Jan 2026
- 2026JuDi: Revisiting Judge Decoding from First Principles via Training-Free Distributional Divergence8 Jan 2026
- 2025Energy Scaling Laws for Diffusion Models: Quantifying Compute in Image Generation21 Nov 2025
- 2025PICNIC: Silicon Photonic Interconnected Chiplets with Computational Network and In-memory Computing for LLM Inference Acceleration6 Nov 2025
- 2025A Study on Inference Latency for Vision Transformers on Mobile Devices29 Oct 2025
- 2025Tawa: Automatic Warp Specialization for Modern GPUs with Asynchronous References16 Oct 2025
- 2025First Attentions Last: Better Exploiting First Attentions for Efficient Transformer Training16 Oct 2025
- 2025Exact Causal Attention with 10% Fewer Operations5 Oct 2025
- 2025Confidential LLM Inference: Performance and Cost Across CPU and GPU TEEs23 Sep 2025
- 2025Improving OCR for Historical Texts of Multiple Languages14 Aug 2025
- 2025La RoSA: Enhancing LLM Efficiency via Layerwise Rotated Sparse Activation2 Jul 2025
- 2025Power Law Guided Dynamic Sifting for Efficient Attention5 Jun 2025
- 2025Hardware-Efficient Attention for Fast Decoding27 May 2025
- 2025Parallel Scaling Law for Language Models15 May 2025
- 2025Morello: Compiling Fast Neural Networks with Dynamic Programming and Spatial Compression3 May 2025
- 2025Nonlinear Computation with Linear Optics via Source-Position Encoding29 Apr 2025
- 2025Input Resolution Downsizing as a Compression Technique for Vision Deep Learning Systems1 Apr 2025
- 2025Distributed LLMs and Multimodal Large Language Models: A Survey on Advances, Challenges, and Future Directions20 Mar 2025
- 2025Judge Decoding: Faster Speculative Sampling Requires Going Beyond Model Alignment31 Jan 2025
- 2024FlashAttention on a Napkin: A Diagrammatic Approach to Deep Learning IO-Awareness4 Dec 2024
- 2024MAS-Attention: Memory-Aware Stream Processing for Attention Acceleration on Resource-Constrained Edge Devices20 Nov 2024
- 2024BF-IMNA: A Bit Fluid In-Memory Neural Architecture for Neural Network Acceleration3 Nov 2024
- 2024MCUBERT: Memory-Efficient BERT Inference on Commodity Microcontrollers23 Oct 2024
- 2024BitQ: Tailoring Block Floating Point Precision for Improved DNN Efficiency on Resource-Constrained Devices25 Sep 2024
- 2024Survey and Taxonomy: The Role of Data-Centric AI in Transformer-Based Time Series Forecasting29 Jul 2024
- 2024Inverted Activations: Reducing Memory Footprint in Neural Network Training22 Jul 2024
- 2024Performance Modeling and Workload Analysis of Distributed Large Language Model Training and Inference19 Jul 2024
- 2024Accelerating Depthwise Separable Convolutions on Ultra-Low-Power Devices18 Jun 2024
- 2024Lean Attention: Hardware-Aware Scalable Attention Mechanism for the Decode-Phase of Transformers17 May 2024
- 2024SambaNova SN40L: Scaling the AI Memory Wall with Dataflow and Composition of Experts13 May 2024
50 newest of 108 All 108 (JSON)
- 2023The Synergy of Speculative Decoding and Batching in Serving Large Language Modelscited by 19
- 2025Hardware-Efficient Attention for Fast Decodingcited by 10
- 2023Efficient LLM inference solution on Intel GPUcited by 2
- 2026PACER: Blockwise Pre-verification for Speculative Decoding with Adaptive Lengthcited by 2
- 2026AURA: Action-Gated Memory for Robot Policies at Constant VRAMcited by 2
- 2026JuDi: Revisiting Judge Decoding from First Principles via Training-Free Distributional Divergencecited by 1
- 2025PICNIC: Silicon Photonic Interconnected Chiplets with Computational Network and In-memory Computing for LLM Inference Accelerationcited by 0
- 2026Multi-Head Low-Rank Attentioncited by 0
- 2026PSD: Pushing the Pareto Frontier of Diffusion LLMs via Parallel Speculative Decodingcited by 0
- 2026AURA: Action-Gated Memory for Robot Policies at Constant VRAM1 Jun 2026
- 2026PSD: Pushing the Pareto Frontier of Diffusion LLMs via Parallel Speculative Decoding15 May 2026
- 2026Multi-Head Low-Rank Attention2 Mar 2026
- 2026PACER: Blockwise Pre-verification for Speculative Decoding with Adaptive Length1 Feb 2026
- 2026JuDi: Revisiting Judge Decoding from First Principles via Training-Free Distributional Divergence8 Jan 2026
- 2025PICNIC: Silicon Photonic Interconnected Chiplets with Computational Network and In-memory Computing for LLM Inference Acceleration6 Nov 2025
- 2025Hardware-Efficient Attention for Fast Decoding27 May 2025
- 2023Efficient LLM inference solution on Intel GPU19 Dec 2023
- 2023The Synergy of Speculative Decoding and Batching in Serving Large Language Models28 Oct 2023
- 2022Spatial Mixture-of-Expertscited by 14
- 2026TerraceMoE: A Cost Model for Hierarchical MoE All-to-All Communicationcited by 0
- 2026TerraceMoE: A Cost Model for Hierarchical MoE All-to-All Communication28 Aug 2026
- 2022Spatial Mixture-of-Experts24 Nov 2022
- 2025Parallel Scaling Law for Language Modelscited by 29
- 2025Parallel Scaling Law for Language Models15 May 2025
- 2022FlashAttention: Fast and Memory-Efficient Exact Attention with IO-Awarenesscited by 3,611
- 2022DeepSpeed Inference: Enabling Efficient Inference of Transformer Models at Unprecedented Scalecited by 403
- 2023A Cookbook of Self-Supervised Learningcited by 248
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2023EfficientViT: Memory Efficient Vision Transformer with Cascaded Group Attentioncited by 172
- 2023FP8-LM: Training FP8 Large Language Modelscited by 75
- 2023Dynamic Context Pruning for Efficient and Interpretable Autoregressive Transformerscited by 67
- 2024SHViT: Single-Head Vision Transformer with Memory Efficient Macro Designcited by 55
- 2024Characterization of Large Language Model Development in the Datacentercited by 46
- 2021FLAT: An Optimized Dataflow for Mitigating Attention Bottleneckscited by 38
- 2023Reversible Vision Transformerscited by 33
- 2022SimA: Simple Softmax-free Attention for Vision Transformerscited by 32
12 most cited of 92 All 92 (JSON)
- 2026Empowering Hybrid Attention Models on NPUs26 Sep 2026
- 2026Efficient Iterative Retrieval with Heterogeneous Batching21 Sep 2026
- 2026Maia 200: A Software Defined Dataflow System for Large-scale AI Acceleration25 Aug 2026
- 2026Tensor Seeks Layout: Formalizing Layout Selection for ML Compilers21 Aug 2026
- 2026Fast and Memory-Efficient Wavelet Convolutions via I/O-Aware Reformulation11 Aug 2026
- 2026Gradient Under Microscope: Benchmarking Resource Utilization of Memory-Efficient Gradient Computation Methods9 Aug 2026
- 2026RIS-Kernel: A Model-Agnostic Architecture for Long-Context LLM Inference via Sparse Attention24 Jul 2026
- 2026Nova: An End-to-End MLIR Compiler for Deep Learning15 Jul 2026
- 2026On Efficient Scaling of GNNs via IO-Aware Layers Implementations29 May 2026
- 2026Instant GPU Efficiency Visibility at Fleet Scale20 May 2026
- 2026CODA: Rewriting Transformer Blocks as GEMM-Epilogue Programs19 May 2026
- 2026Embodied Foundation Models at the Edge: A Survey of Deployment Constraints and Mitigation Strategies16 Mar 2026
12 newest of 92 All 92 (JSON)