Continual low-rank scaled dot-product attention
Carreto Picón, Ginés; Oleksiienko, Illia; Hedegaard, Lukas; Bakhtiarnia, Arian; Iosifidis, Alexandros (2025-05-24)
Carreto Picón, Ginés
Oleksiienko, Illia
Hedegaard, Lukas
Bakhtiarnia, Arian
Iosifidis, Alexandros
24.05.2025
Neural Networks
108517
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:tuni-202601271949
https://urn.fi/URN:NBN:fi:tuni-202601271949
Kuvaus
Peer reviewed
Tiivistelmä
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 infeasible in applications involving stream data processing with constraints in response latency, computational and memory resources. Some works have proposed methods to lower the computational cost of Transformers by using 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öm 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.
Kokoelmat
- TUNICRIS-julkaisut [24322]
