[KongchangAI]
ConceptSelf-Attention

Self-Attention

An attention mechanism in which each position in a sequence computes similarity with other positions, enabling the model to establish global dependencies within the same sequence. It is a core component of Transformer encoders and decoders.

Core Facts

Timeline (last 90 days)

Oct 25

The Transformer is an architecture built entirely on self-attention.

Unverified50%
Oct 24

Self-attention itself is permutation-invariant, so the model cannot directly learn the input order from the attention output.

Unverified50%
Oct 23

Transformers access past trajectories through the attention mechanism, at the cost of quadratic memory and computation overhead.

Unverified50%
Oct 19

Each Transformer block contains a self-attention layer and a position-wise feed-forward network, both surrounded by residual connections and layer normalization.

Unverified50%
Oct 14

Self-Attention means that each position within a sequence computes similarity with all other positions, allowing the model to establish global dependencies within the same sequence, and it is the core of the Transformer encoder and decoder.

Unverified50%
Oct 12

Tokenization is essentially table lookup and a small amount of string matching, with complexity approximately linear in sequence length, and unit cost far lower than self-attention or matrix multiplication in a Transformer.

Unverified50%
Oct 9

When sequence length n grows from 2K to 128K, the attention computation volume increases approximately 4,000-fold.

Unverified50%
Sep 21

The study finds that hallucinations manifest as three types of information flow distortion patterns: over-reliance on self-attention, diffuse contextual retrieval, and excessive information compression.

Unverified50%
Aug 27

缩放点积注意力公式为 Attention(Q,K,V) = softmax(QK^T/√d_k)V,除以√d_k是为防止点积在高维空间中过大导致softmax进入饱和区域

Unverified50%

All Facts (11)

Verified

自注意力机制的计算复杂度随序列长度呈近似二次方增长,序列长度为n时注意力矩阵计算量正比于n²

65%
Verified

The self-attention mechanism allows the model to simultaneously see the information of all other tokens in the input sequence when processing each token, and the computational complexity of the attention matrix is O(n²)

65%
Unverified

The Transformer is an architecture built entirely on self-attention.

50%
Unverified

Self-attention itself is permutation-invariant, so the model cannot directly learn the input order from the attention output.

50%
Unverified

Transformers access past trajectories through the attention mechanism, at the cost of quadratic memory and computation overhead.

50%
Unverified

Each Transformer block contains a self-attention layer and a position-wise feed-forward network, both surrounded by residual connections and layer normalization.

50%
Unverified

Self-Attention means that each position within a sequence computes similarity with all other positions, allowing the model to establish global dependencies within the same sequence, and it is the core of the Transformer encoder and decoder.

50%
Unverified

Tokenization is essentially table lookup and a small amount of string matching, with complexity approximately linear in sequence length, and unit cost far lower than self-attention or matrix multiplication in a Transformer.

50%
Unverified

When sequence length n grows from 2K to 128K, the attention computation volume increases approximately 4,000-fold.

50%
Unverified

The study finds that hallucinations manifest as three types of information flow distortion patterns: over-reliance on self-attention, diffuse contextual retrieval, and excessive information compression.

50%
Unverified

缩放点积注意力公式为 Attention(Q,K,V) = softmax(QK^T/√d_k)V,除以√d_k是为防止点积在高维空间中过大导致softmax进入饱和区域

50%

Source Articles