Continual low-rank scaled dot-product attention.

Ginés Carreto Picón1, Illia Oleksiienko1, Lukas Hedegaard1

  • 1Department of Electrical and Computer Engineering, Aarhus University, Finlandsgade 22, Aarhus N, 8200, Denmark.

Summary

This study introduces a Nyström approximation for Scaled Dot-product Attention, significantly reducing computational costs for stream data processing. The new method enables efficient continual inference in Transformers without sacrificing performance.

Related Concept Videos

Dot Product01:29

Dot Product

The dot product is an essential concept in mathematics and physics.
In engineering, the dot product of any two vectors is the product of the magnitudes of the vectors and the cosine of the angle between them. It is denoted by a dot symbol between the two vectors.
Consider a vehicle pulling an object along the ground using a rope. If the rope makes an angle with the horizontal axis, the work done can be calculated using the dot product of the force applied and the object's displacement.
The dot...
760
The Dot Product01:26

The Dot Product

Measuring how one directional quantity affects another along a specific path involves comparing their orientation and strength. When two such quantities are represented using direction and amount, a numerical result is computed to show how much one acts along the path of the other. This result comes from a rule combining both inputs' horizontal and vertical parts and adding the results.This calculation gives a single value that grows larger when both inputs point in similar directions and...
149
Dot Product: Problem Solving01:21

Dot Product: Problem Solving

The dot product is a powerful tool in problem-solving involving vectors, given that the dot product of two vectors is the product of their magnitudes and the cosine of the angle between them measured anti-clockwise. Solving problems involving the dot product requires understanding its properties and developing a step-by-step process to solve them. Here are the main steps to follow when solving any general problem involving the dot product:
Identify the problem: Start by reading the problem and...
655
Scalar Product (Dot Product)01:11

Scalar Product (Dot Product)

The scalar multiplication of two vectors is known as the scalar or dot product. As the name indicates, the scalar product of two vectors results in a number, that is, a scalar quantity. Scalar products are used to define work and energy relations. For example, the work that a force (a vector) performs on an object while causing its displacement (a vector) is defined as a scalar product of the force vector with the displacement vector.
The scalar product of two vectors is obtained by multiplying...
25.9K
Reducing Line Loss01:18

Reducing Line Loss

In a three-phase circuit, line loss is an indicator of energy dissipated as heat due to the resistance of transmission lines. To address this, incorporating transformers into the system—a step-up transformer at the source and a step-down transformer at the load—is a strategic solution. Two three-phase transformers are introduced to improve this.
With a step-up transformer at the source, the voltage is increased, thereby reducing the current in the transmission lines since power loss in...
338
Mean Absolute Deviation01:13

Mean Absolute Deviation

The mean absolute deviation is also a measure of the variability of data in a sample. It is the absolute value of the average difference between the data values and the mean.
Let us consider a dataset containing the number of unsold cupcakes in five shops: 10, 15, 8, 7, and 10. Initially, calculate the sample mean. Then calculate the deviation, or the difference, between each data value and the mean. Next, the absolute values of these deviations are added and divided by the sample size to...
3.2K