We gratefully acknowledge support from
the Simons Foundation and member institutions.
Full-text links:

Download:

Current browse context:

cs.AI

Change to browse by:

References & Citations

DBLP - CS Bibliography

Bookmark

(what is this?)
CiteULike logo BibSonomy logo Mendeley logo del.icio.us logo Digg logo Reddit logo

Computer Science > Artificial Intelligence

Title: Continual Transformers: Redundancy-Free Attention for Online Inference

Abstract: Transformers in their common form are inherently limited to operate on whole token sequences rather than on one token at a time. Consequently, their use during online inference on time-series data entails considerable redundancy due to the overlap in successive token sequences. In this work, we propose novel formulations of the Scaled Dot-Product Attention, which enable Transformers to perform efficient online token-by-token inference on a continual input stream. Importantly, our modifications are purely to the order of computations, while the outputs and learned weights are identical to those of the original Transformer Encoder. We validate our Continual Transformer Encoder with experiments on the THUMOS14, TVSeries and GTZAN datasets with remarkable results: Our Continual one- and two-block architectures reduce the floating point operations per prediction by up to 63x and 2.6x, respectively, while retaining predictive performance.
Comments: 16 pages, 6 figures, 7 tables
Subjects: Artificial Intelligence (cs.AI); Computer Vision and Pattern Recognition (cs.CV)
Journal reference: International Conference on Learning Representations, 2023
Cite as: arXiv:2201.06268 [cs.AI]
  (or arXiv:2201.06268v3 [cs.AI] for this version)

Submission history

From: Lukas Hedegaard [view email]
[v1] Mon, 17 Jan 2022 08:20:09 GMT (3487kb,D)
[v2] Mon, 7 Nov 2022 07:56:35 GMT (4057kb,D)
[v3] Tue, 24 Jan 2023 07:42:08 GMT (867kb,D)

Link back to: arXiv, form interface, contact.