arrow
Return

Vision transformers inference acceleration based on adaptive layer normalization

delete2024-12-01
delete0
PRE
AI
F
Fekhr Eddine Keddous
A
Arcadi Llanza
N
Nadiya Shvai
A
Amir Nakib *
DOI:10.1016/j.neucom.2024.128524delete
deleteOriginal
deleteOriginal request for help
deleteShare
deleteSave
Abstract

Abstract

En 中文
Over the past decade, deep neural networks (DNNs) have been widely used due to their remarkable accuracy in real-world applications. However, this increase in accuracy often results in computationally expensive models and high memory usage, leading to longer prediction latencies and exorbitant release costs. In this paper, we propose a new adaptive layer normalization (ALN) algorithm for transformer models, which tackles the computational, and memory problems encountered by traditional layer normalization (LN) techniques. The proposed method computes and stores statistical moments during the training and uses them directly during the inference phase, allowing the normalization layer to be merged with the nearest linear layer. The result is a significant acceleration in inference time, by up to 29%. In classification tasks, our evaluations on the ImageNet dataset show an improvement in accuracy of 0.1%, while maintaining comparable accuracy in object detection tasks on the COCO reference dataset. The proposed ALN algorithm is a simple and effective solution for improving the inference time of pre-trained transformer models, making it a valuable tool for natural language processing and computer vision tasks.
Keywords:
Vision transformer models
Adaptive layer normalization (ALN)
Inference time

Journal

Neurocomputing cover
Neurocomputing
IF:
6.5
Papers:
2.5W
Citations:
6.5W

Organization

U
universite paris-est-creteil-val-de-marne (upec)
Scholars:
1.3W
Papers: 9.2K
Citations: 6
Cited Papers

Cited Papers

errShare
errSave
Transformers in Vision: A Survey
err2022-09-13
err1.1K
errOAAI
errKhan, Salman; Naseer, Muzammal; Hayat, Munawar; Zamir, Syed Waqas; Khan, Fahad Shahbaz; Shah, Mubarak
errShare
errSave
errShare
errSave
Machine Learning in Materials Science
err2021-08-24
err0
PREAI
errKeith T. Butler; Felipe Oviedo; Pieremanuele Canepa
errShare
errSave
A new general method for protection of the hydroxyl function
err1976-03-01
err0
PREAI
errE.J. Corey; Jean-Louis Gras; Peter Ulrich
errShare
errSave
Technology-Based Psychosocial Intervention to Improve Quality of Life and Reduce Symptom Burden in Men with Advanced Prostate Cancer: Results from a Randomized Controlled Trial
err2020-01-02
err0
errOAAI
errFrank J. Penedo; Rina S. Fox; Laura B. Oswald; Patricia I. Moreno; Cody L. Boland; Ryne Estabrook; Heather L. McGinty; David C. Mohr; Mark J. Begale; Jason R. Dahn; Sarah C. Flury; Kent T. Perry; Shilajit D. Kundu; Betina Yanez
errShare
errSave
researcher View more