Continual Low-Rank Scaled Dot-product Attention
Authors:
- Arian BakhtiarniaABArian Bakhtiarnia
Preprint
Abstract
Transformers are widely used for their ability to capture data relations in sequence processing, with great success for a wide range of static tasks. However, the computational and memory footprint of their main component, i.e., the Scaled Dot-product Attention, is commonly overlooked. This makes their adoption in applications involving stream data processing with constraints in response latency, computational and memory resources infeasible. Some works have proposed methods to lower the computational cost of transformers, i.e. low-rank approximations, sparsity in attention, and efficient formulations for Continual Inference. In this paper, we introduce a new formulation of the Scaled Dot-product Attention based on the Nystr\"om approximation that is suitable for Continual Inference. In experiments on Online Audio Classification and Online Action Detection tasks, the proposed Continual Scaled Dot-product Attention can lower the number of operations by up to three orders of magnitude compared to the original Transformers while retaining the predictive performance of competing models.Keywords
All Related Versions
This publication has 11 references indexed in Scilit:
- Efficient High-Resolution Deep Learning: A SurveyACM Computing Surveys, 2024
- Continual spatio-temporal graph convolutional networksPattern Recognition, 2023
- Learning to Discriminate Information for Online Action Detection: Analysis and ApplicationIEEE Transactions on Pattern Analysis and Machine Intelligence, 2022
- Single-layer vision transformers for more accurate early exits with less overheadNeural Networks, 2022
- Temporal Segment Networks for Action Recognition in VideosIEEE Transactions on Pattern Analysis and Machine Intelligence, 2018
- Scaling Up Class-Specific Kernel Discriminant Analysis for Large-Scale Face VerificationIEEE Transactions on Information Forensics and Security, 2016
- A New Iterative Method for Finding Approximate Inverses of Complex MatricesAbstract and Applied Analysis, 2014
- Scaling Up Graph-Based Semisupervised Learning via Prototype Vector MachinesIEEE Transactions on Neural Networks and Learning Systems, 2014
- Musical genre classification of audio signalsIEEE Transactions on Speech and Audio Processing, 2002
- A Scale for the Measurement of the Psychological Magnitude PitchThe Journal of the Acoustical Society of America, 1937