Toggle search
Search
Toggle menu
notifications
Toggle personal menu
Editing
Attention is All You Need
(section)
From llamawiki.ai
Views
Read
Edit
Edit source
View history
associated-pages
Page
Discussion
More actions
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Novel Mechanisms == The paper introduced two types of attention mechanisms: scaled dot-product attention and multi-head attention. Scaled dot-product attention computes the weighted average of a set of values, where the weights are derived from the dot products of a query vector with a set of key vectors. The dot products are scaled by a factor of the square root of the dimensionality of the vectors to prevent large values from dominating the softmax function. Multi-head attention applies scaled dot-product attention multiple times in parallel, using different linear projections of the query, key, and value vectors. This allows the model to attend to different aspects or subspaces of the input and output sequences. The paper also introduced two novel components: [[Positional Encoding|positional encoding]] and layer normalization. '''Positional encoding''' is a way of injecting information about the relative or absolute position of each token in the sequence into the model. The paper used sinusoidal functions to encode the position as a vector that can be added to the input embeddings. '''Layer normalization''' is a way of normalizing the inputs or outputs of each layer in the network. The paper applied layer normalization before each sub-layer (such as attention or feed-forward) and added a residual connection after each sub-layer.
Summary:
Please note that all contributions to llamawiki.ai may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
LlamaWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)