{"id":{"repo_id":"alberta","oai_identifier":"oai:ualberta.scholaris.ca:123456789/94172"},"canonical_url":"https://search.ndltd.org/etd/alberta/oai:ualberta.scholaris.ca:123456789/94172","repository":{"repo_id":"alberta","name":"University of Alberta","base_url":"https://era.library.ualberta.ca/oai"},"display":{"title":"Memory Efficient and Fast Attention Inference on Edge Accelerators","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.","abstract_html":"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.","abstract_has_math":false,"creators":["Shakerdargah, Mohammadali"],"institution":"University of Alberta","degree_name":"Master of Science","degree_level":"Master's","degree_discipline":"Software Engineering and Intelligent Systems","degree_department":null,"school":null,"contributors":[],"advisors":["Niu, Di (Electrical and Computer Engineering)"],"committee_chairs":[],"committee_members":[],"year":2024,"date_issued":"2024-11","date_published":"2024-11","updated_at":"2026-11-26T21:51:40Z","subjects":["Attention","Acceleration","Edge Hardware","Stream Processing"],"languages":["en"],"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."],"rights_urls":[],"identifier_entries":[],"person_identifier_entries":[]},"links":{"outbound_url":"https://doi.org/10.7939/r3-1f5m-xc58","outbound_label":"DOI","outbound_source":"dc:identifier.doi","record_url":"https://doi.org/10.7939/r3-1f5m-xc58","record_label":"Repository record","record_kind":"doi","record_source":"dc:identifier.doi","access_status":null,"embargo_until":null,"access_note":null},"oai_pmh_record":{"url":"https://union.ndltd.org/oai-pmh/?verb=GetRecord&metadataPrefix=oai_dc&identifier=oai%3Aunion.ndltd.org%3Arepo%3Aalberta%3Aoai%3Aualberta.scholaris.ca%3A123456789%2F94172","prefix":"oai_dc"},"source_record":{"url":"https://era.library.ualberta.ca/oai?verb=GetRecord&metadataPrefix=dim&identifier=oai%3Aualberta.scholaris.ca%3A123456789%2F94172","prefix":"dim"},"metadata_groups":[{"id":"people","label":"People","entries":[{"key":"dc:contributor.advisor","label":"Advisor","values":["Niu, Di (Electrical and Computer Engineering)"]},{"key":"dc:creator","label":"Author","values":["Shakerdargah, Mohammadali"]}]},{"id":"academic_context","label":"Academic Context","entries":[{"key":"dc:date.accessioned","label":"Dc Date Accessioned","values":["2025-05-29T11:12:48Z"]},{"key":"dc:date.issued","label":"Date","values":["2024-11"]},{"key":"dc:type","label":"Dc Type","values":["Thesis"]},{"key":"thesis:degree_discipline","label":"Discipline","values":["Software Engineering and Intelligent Systems"]},{"key":"thesis:degree_level","label":"Degree Level","values":["Master's"]},{"key":"thesis:degree_name","label":"Degree Name","values":["Master of Science"]},{"key":"thesis:institution_name","label":"Thesis Institution Name","values":["University of Alberta"]}]},{"id":"subjects_keywords","label":"Subjects and Keywords","entries":[{"key":"dc:subject","label":"Dc Subject","values":["Attention","Acceleration","Edge Hardware","Stream Processing"]}]},{"id":"language_rights","label":"Language and Rights","entries":[{"key":"dc:language.iso","label":"Language (ISO)","values":["en"]},{"key":"dc:rights","label":"Dc Rights","values":["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."]}]},{"id":"identifiers","label":"Identifiers","entries":[{"key":"dc:identifier.doi","label":"DOI","values":["https://doi.org/10.7939/r3-1f5m-xc58"]}]},{"id":"additional","label":"Additional Metadata","entries":[{"key":"dc:description.abstract","label":"Abstract","values":["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."]},{"key":"dc:title","label":"Title","values":["Memory Efficient and Fast Attention Inference on Edge Accelerators"]},{"key":"others:access_status","label":"Others Access Status","values":["open.access"]}]}],"canonical_facts":{"dc:contributor.advisor":["Niu, Di (Electrical and Computer Engineering)"],"dc:creator":["Shakerdargah, Mohammadali"],"dc:date.accessioned":["2025-05-29T11:12:48Z"],"dc:date.issued":["2024-11"],"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."],"dc:identifier.doi":["https://doi.org/10.7939/r3-1f5m-xc58"],"dc:language.iso":["en"],"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."],"dc:subject":["Attention","Acceleration","Edge Hardware","Stream Processing"],"dc:title":["Memory Efficient and Fast Attention Inference on Edge Accelerators"],"dc:type":["Thesis"],"others:access_status":["open.access"],"thesis:degree_discipline":["Software Engineering and Intelligent Systems"],"thesis:degree_level":["Master's"],"thesis:degree_name":["Master of Science"],"thesis:institution_name":["University of Alberta"]},"updated_at":"2026-11-26T21:51:40Z"}