paper-with-me

홈 › Papers

Continual Transformers: Redundancy-Free Attention for Online Inference

2022-01-17 · Lukas Hedegaard, Arian Bakhtiarnia, Alexandros Iosifidis

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.

📄 PDF Abstract BibTeX arXiv:2201.06268

Code (1)

lukashedegaard/continual-transformers 공식 구현 pytorch

Tasks

Action DetectionAudio ClassificationClassificationOnline Action DetectionTime SeriesTime Series Analysis

Methods 이 논문이 사용한 방법론

Multi-Head Attention 설명 없음
Attention 설명 없음
Label Smoothing Label Smoothing is a regularization technique that introduces noise for the labels. This accounts for the fact that datasets may have mistakes in them, so maximizing the…
Position-Wise Feed-Forward Layer 설명 없음
Dense Connections Dense Connections, or Fully Connected Connections, are a type of layer in a deep neural network that use a linear operation where every input is connected to every output…
Adam 설명 없음
Absolute Position Encodings Absolute Position Encodings are a type of position embeddings for [Transformer-based models] where positional encodings are…
Layer Normalization Unlike batch normalization, Layer Normalization directly estimates the normalization statistics from the summed inputs…

Similar Papers 제목 키워드 기반

DeepCoT: Deep Continual Transformers for Real-Time Inference on Data Streams

2025-11-21 · Ginés Carreto Picón, Peng Yuan Zhou, Qi Zhang, Alexandros Iosifidis arxiv

Transformer-based models have dramatically increased their size and parameter count to tackle increasingly complex tasks. At the same time, there is a growing demand for high performance, low-latency inference on devices…

Parameter Efficient Continual Learning for Sparse Event-Based Transformers

2026-08-27 · Vaishnavi Nagabhushana, Kartikay Agrawal, Ayon Borthakur arxiv

Robotic and edge intelligence systems operate in dynamic environments where data arrives continuously, requiring models to adapt while preserving previously learned knowledge under strict memory and energy constraints. W…

parameter-efficient fine-tuningclass-incremental learningContinual LearningEvent-based vision

Learning Mamba as a Continual Learner

2024-12-01 · Chongyang Zhao, Dong Gong

Continual learning (CL) aims to efficiently learn and accumulate knowledge from a data stream with different distributions. By formulating CL as a sequence prediction task, meta-continual learning (MCL) enables to meta-l…

Continual LearningMambaState Space Models

Continual Low-Rank Scaled Dot-product Attention

2024-12-04 · Ginés Carreto Picón, Illia Oleksiienko, Lukas Hedegaard, Arian Bakhtiarnia 외

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 componen…

Action DetectionAudio ClassificationOnline Action Detection

Lifelong In-Context Learning with Transformers Requires Parametric Forms of Attention

2026-06-24 · Luke McDermott, Robert W. Heath, Rahul Parhi arxiv

Lifelong continual learning remains an obstacle on the path to human-like intelligence. Modern transformers show sparks of intelligence with in-context learning. The quadratic nature of attention, however, prohibits tran…

Continual Learning