mlsanityData to 14 Oct 2026

Attentions Under the Microscope: A Comparative Study of Resource Utilization for Variants of Self-Attention

arXiv 2507.07247 ↗First posted 9 Jul 2025cs.LG cs.AI cs.NEcited by 2

On the map: Multimodal LLMs / vision-language models → Visual token pruning and efficiency

Abstract (arXiv)

As large language models (LLMs) and visual language models (VLMs) grow in scale and application, attention mechanisms have become a central computational bottleneck due to their high memory and time complexity. While many efficient attention variants have been proposed, there remains a lack of rigorous evaluation on their actual energy usage and hardware resource demands during training. In this work, we benchmark eight attention mechanisms in training GPT-2 architecture, measuring key metrics including training time, GPU memory usage, FLOPS, CPU usage, and power consumption. Our results reveal that attention mechanisms with optimized kernel implementations, including Flash Attention, Locality-Sensitive Hashing (LSH) Attention, and Multi-Head Latent Attention (MLA), achieve the best energy efficiency. We further show that lower GPU power alone does not guarantee reduced energy use, as training time plays an equally important role. Our study highlights the importance of energy-aware benchmarking in attention design and provides a practical insight for selecting resource-efficient mechanisms. All our codes are available at GitHub.

Key facts. Cited by 2 papers in the map (data through 14 Oct 2026). Placed in Visual token pruning and efficiency, one of 16 directions in Multimodal LLMs / vision-language models. Builds on 28 of its 38 references that are in the map. First posted on arXiv 9 Jul 2025.

Builds on

28 of 38 references.

References · 28

  1. 2017Attention Is All You Needcited by 60,361
  2. 2020Language Models are Few-Shot Learnerscited by 32,419
  3. 2020An Image is Worth 16x16 Words: Transformers for Image Recognition at Scalecited by 30,186
  4. 2023Llama 2: Open Foundation and Fine-Tuned Chat Modelscited by 13,028
  5. 2020Scaling Laws for Neural Language Modelscited by 6,586
  6. 2020Longformer: The Long-Document Transformercited by 3,413
  7. 2023Qwen Technical Reportcited by 3,344
  8. 2023FlashAttention-2: Faster Attention with Better Parallelism and Work Partitioningcited by 2,598
  9. 2023A Survey of Large Language Modelscited by 2,576
  10. 2020Transformers are RNNs: Fast Autoregressive Transformers with Linear Attentioncited by 2,022
  11. 2020Reformer: The Efficient Transformercited by 1,668
  12. 2023GQA: Training Generalized Multi-Query Transformer Models from Multi-Head Checkpointscited by 1,346
16 more
  1. 2024DeepSeek-V2: A Strong, Economical, and Efficient Mixture-of-Experts Language Modelcited by 1,135
  2. 2015Effective Approaches to Attention-based Neural Machine Translationcited by 1,026
  3. 2020Efficient Transformers: A Surveycited by 790
  4. 2019Green AIcited by 627
  5. 2021Carbon Emissions and Large Neural Network Trainingcited by 567
  6. 2024Smarter, Better, Faster, Longer: A Modern Bidirectional Encoder for Fast, Memory Efficient, and Long Context Finetuning and Inferencecited by 554
  7. 2019Quantifying the Carbon Emissions of Machine Learningcited by 521
  8. 2020Towards the Systematic Reporting of the Energy and Carbon Footprints of Machine Learningcited by 249
  9. 2023FLatten Transformer: Vision Transformer using Focused Linear Attentioncited by 171
  10. 2025MiniMax-01: Scaling Foundation Models with Lightning Attentioncited by 166
  11. 2024Breaking the Low-Rank Dilemma of Linear Attentioncited by 31
  12. 2025Holistically Evaluating the Environmental Impact of Creating Language Modelscited by 26
  13. 2024The Impact of Quantization and Pruning on Deep Reinforcement Learning Modelscited by 6
  14. 2024AI, Climate, and Regulation: From Data Centers to the AI Actcited by 4
  15. 2025Analyzing the Resource Utilization of Lambda Functions on Mobile Devices: Case Studies on Kotlin and Swiftcited by 2
  16. 2025NanoVLMs: How small can we go and still make coherent Vision Language Models?cited by 2

Built on by

Cited by year

Citing papers per year: 2025: 2.

2 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2026S-HPLB: Efficient LLM Attention Serving via Sparsity-Aware Head Parallelism Load Balance
  2. 2025Latent Multi-Head Attention for Small Language Models
  3. 2025GTA: Grouped-head latenT Attention
  4. 2025Hardware-Centric Analysis of DeepSeek's Multi-Head Latent Attention
  5. 2024Beyond KV Caching: Shared Attention for Efficient LLMs
  6. 2025FlashInfer: Efficient and Customizable Attention Engine for LLM Inference Serving
  7. 2026Rethinking the Role of Efficient Attention in Hybrid Architectures
  8. 2024SeerAttention: Learning Intrinsic Sparse Attention in Your LLMs