UniForm: A Reuse Attention Mechanism Optimized for Efficient Vision Transformers on Edge Devices

Seul-Ki Yeom, Tae-Ho Kim
12/3/2024
cs.CV

No confident code implementation found for this paper.

Abstract

Transformer-based architectures have demonstrated remarkable success across various domains, but their deployment on edge devices remains challenging due to high memory and computational demands. In this paper, we introduce a novel Reuse Attention mechanism, tailored for efficient memory access and computational optimization, enabling seamless operation on resource-constrained platforms without compromising performance. Unlike traditional multi-head attention (MHA), which redundantly computes separate attention matrices for each head, Reuse Attention consolidates these computations into a shared attention matrix, significantly reducing memory overhead and computational complexity. Comprehensive experiments on ImageNet-1K and downstream tasks show that the proposed UniForm models leveraging Reuse Attention achieve state-of-the-art imagenet classification accuracy while outperforming existing attention mechanisms, such as Linear Attention and Flash Attention, in inference speed and memory scalability. Notably, UniForm-l achieves a 76.7% Top-1 accuracy on ImageNet-1K with 21.8ms inference time on edge devices like the Jetson AGX Orin, representing up to a 5x speedup over competing benchmark methods. These results demonstrate the versatility of Reuse Attention across high-performance GPUs and edge platforms, paving the way for broader real-time applications

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{yeom2024uniform,
  title  = {UniForm: A Reuse Attention Mechanism Optimized for Efficient Vision Transformers on Edge Devices},
  author = {Seul-Ki Yeom and Tae-Ho Kim},
  year   = {2024},
  eprint = {2412.02344},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2412.02344v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2412.02344.svg)](https://codeofpaper.com/paper/2412.02344)

Discussion