Back to search

University of Alberta

Memory Efficient and Fast Attention Inference on Edge Accelerators

Abstract

dc:description.abstract

Attention has become an essential component of deep learning models, extending beyond natural language processing to various domains because of their superb ability to capture correlations between sequence elements. The advent of transformer-based foundation models has revolutionized various applications by enabling unprecedented accuracy and flexibility. However, this widespread adoption comes with significant trade-offs in memory and computational resources due to the quadratic growth in memory usage and limited data reuse. To address these challenges, various algorithms have been developed with exact methods, including fusion-based acceleration, preserving quality but remaining computationally demanding and often not fully leveraging parallelization on edge devices. This work presents a novel approach to speeding up exact attention inference on edge devices while optimizing energy consumption. Our method introduces a systematic memory-aware mechanism that utilizes pipelined stream processing through different stages of on-chip attention inference. Experiment results based on an open-sourced simulation framework show up to 2.75x speedup and 54% reduction in energy consumption compared to the state-of-the-art FLAT algorithm. Further experiments on an edge device with a DaVinci DNN accelerator demonstrate a speedup of up to 1.76x, highlighting the potential of our approach for efficient and high-performance attention inference on resource-constrained edge devices.

Degree

thesis:*
Name thesis:degree_name
Master of Science
Level thesis:degree_level
Master's
Discipline thesis:degree_discipline
Software Engineering and Intelligent Systems
Grantor
University of Alberta
Year dc:date.issued
2024

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Shakerdargah, Mohammadali
Advisor dc:contributor.advisor
  • Niu, Di (Electrical and Computer Engineering)

Subjects

dc:subject × 4

Rights

dc:rights
Statement dc:rights
  • This thesis is made available by the University of Alberta Library with permission of the copyright owner solely for non-commercial purposes. This thesis, or any portion thereof, may not otherwise be copied or reproduced without the written consent of the copyright owner, except to the extent permitted by Canadian copyright law.
Language dc:language.iso
en

Identifiers

dc:identifier.*
DOI dc:identifier.doi
https://doi.org/10.7939/r3-1f5m-xc58

Chain of custody

source
Harvested from
University of Alberta
Base URL
era.library.ualberta.ca/oai
Last updated
2026-11-26
Source record
OAI-PMH GetRecord
citation

Shakerdargah, Mohammadali. Memory Efficient and Fast Attention Inference on Edge Accelerators. Master's thesis, University of Alberta, 2024. https://doi.org/10.7939/r3-1f5m-xc58