paper-with-me

Papers

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

2025-07-09 · Zhengyu Tian, Anantha Padmanaban Krishna Kumar, Hemant Krishnakumar, Reza Rawassizadeh 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.

📄 PDF Abstract BibTeX arXiv:2507.07247

Code (0)

등록된 구현이 없습니다.

Similar Papers 제목 키워드 기반

ASIST: Annotation-free synthetic instance segmentation and tracking for microscope video analysis

2020-11-02 · Quan Liu, Isabella M. Gaeta, Mengyang Zhao, Ruining Deng 외

Instance object segmentation and tracking provide comprehensive quantification of objects across microscope videos. The recent single-stage pixel-embedding based deep learning approach has shown its superior performance …

Generative Adversarial NetworkImage SegmentationInstance SegmentationSegmentation+1

Unsupervised Classification of Intrusive Igneous Rock Thin Section Images using Edge Detection and Colour Analysis

2017-09-30 · S. Joseph, H. Ujir, I. Hipiny

Classification of rocks is one of the fundamental tasks in a geological study. The process requires a human expert to examine sampled thin section images under a microscope. In this study, we propose a method that uses m…

ClassificationEdge DetectionGeneral Classificationimage-classification+1

Evaluating Modern Visual Anomaly Detection Approaches in Semiconductor Manufacturing: A Comparative Study

2025-05-12 · Manuel Barusco, Francesco Borsatti, Youssef Ben Khalifa, Davide Dalle Pezze 외

Semiconductor manufacturing is a complex, multistage process. Automated visual inspection of Scanning Electron Microscope (SEM) images is indispensable for minimizing equipment downtime and containing costs. Most previou…

Anomaly Detection

AttentionSmithy: A Modular Framework for Rapid Transformer Development and Customization

2025-02-13 · Caleb Cranney, Jesse G. Meyer

Transformer architectures have transformed AI applications but remain complex to customize for domain experts lacking low-level implementation expertise. We introduce AttentionSmithy, a modular software package that simp…

Neural Architecture Search

Fair Comparison between Efficient Attentions

2022-06-01 · Jiuk Hong, Chaehyeon Lee, Soyoun Bang, Heechul Jung

Transformers have been successfully used in various fields and are becoming the standard tools in computer vision. However, self-attention, a core component of transformers, has a quadratic complexity problem, which limi…