継続的な低ランクスケール付きドット積アテンション
Ginés Carreto Picón1, Illia Oleksiienko1, Lukas Hedegaard1
1Department of Electrical and Computer Engineering, Aarhus University, Finlandsgade 22, Aarhus N, 8200, Denmark.
まとめ
この研究では、スケール付きドット積アテンションのナイストローム近似を導入し、ストリームデータの処理コストを大幅に削減します。この新しい手法により、パフォーマンスを犠牲にすることなく、トランスフォーマーでの効率的な継続的な推論が可能になります。
科学分野:
- 人工知能; 機械学習; 深層学習
背景:
- トランスフォーマーは、静的タスクのシーケンス処理に優れています。トランスフォーマーのスケール付きドット積アテンションは、計算およびメモリの要求が高く、リアルタイムストリームデータ処理での使用が制限されています。トランスフォーマーのコストを削減する既存の方法には、低ランク近似やスパース性があります。
研究 の 目的:
- 継続的推論に適したスケール付きドット積アテンションの効率的な定式化を開発すること。ストリームデータアプリケーションにおけるトランスフォーマーの計算およびメモリ制約に対処すること。
主な方法:
- ナイストローム近似を利用したスケール付きドット積アテンションの新しい定式化を導入しました。トランスフォーマーを使用した効率的な継続的推論の方法を開発しました。
主要な成果:
- 提案された継続的スケール付きドット積アテンションは、元のトランスフォーマーと比較して演算数を最大3桁削減しました。オンラインタスクにおける既存モデルに匹敵する予測パフォーマンスを維持しました。
結論:
- ナイストローム近似は、ストリームデータシナリオにおけるスケール付きドット積アテンションの計算効率の高い代替手段を提供します。このアプローチにより、リソースが制約されたリアルタイムアプリケーションでのトランスフォーマーの実現可能性が高まります。
関連する概念動画
Dot Product
760
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...
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 Product
149
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 Solving
655
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...
Identify the problem: Start by reading the problem and...
655
Scalar Product (Dot Product)
25.9K
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...
The scalar product of two vectors is obtained by multiplying...
25.9K
Reducing Line Loss
338
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...
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 Deviation
3.2K
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...
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

