Transformer
Transformer is a deep learning model architecture based on the self-attention mechanism, proposed by Google in 2017. It processes sequence data in parallel and captures long-range dependencies, overcoming the limitations of traditional recurrent neural networks. The architecture is widely applied in natural language processing, computer vision, speech recognition, and other domains, and serves as the foundational structure for large-scale pretrained language models such as BERT and the GPT series.
Core Facts
The KV cache is a core data structure in Transformer autoregressive inference, and its size is approximately 2 × number of layers × number of attention heads × head dimension × sequence length × precision bytes.
Mixture of Experts (MoE) is a model architecture composed of multiple expert sub-networks that each specialize in different sub-tasks, together with a gating network that decides which expert receives a given input.
KV Cache avoids redundant computation by caching already-computed Key and Value matrices, and advanced techniques such as PagedAttention further optimize cache memory management efficiency.
Timeline (last 90 days)
After AlexNet in 2012, paradigms such as convolutional networks, attention mechanisms, Transformers, and large-scale pretraining succeeded one another.
Traditional coreference resolution methods rely on syntactic rules and statistical features, whereas modern Transformer-based models (such as SpanBERT and CorefQA) achieve it through context encoding and span prediction.
Residual space refers to the representation space formed in the Transformer architecture where the output of each sublayer (such as the attention layer and the feedforward layer) is added to its input.
The research team pretrained language models with up to 1.2B parameters on up to 100B tokens and embedded a sleep mechanism into training.
This study decouples the sleep mechanism from SSM-attention hybrid models and long-context reasoning, verifying its transferability to general Transformers and general tasks.
After SketchRNN, Transformers gradually replaced RNNs thanks to their stronger long-range modeling capability, giving rise to Sketchformer as well as multimodal work that aligns handwriting with text.
PenGPT is a generative Transformer model for handwriting and sketch generation that processes serialized representations of strokes rather than pixel matrices.
The study used BLEU scores for evaluation, showing that Transformer-based models significantly outperform traditional statistical machine translation methods.
In MDLM, hidden states change smoothly between adjacent Transformer layers.
When some Transformer blocks in MDLM are removed, model performance gradually degrades.
40 more timeline events
All Facts (20)
The KV cache is a core data structure in Transformer autoregressive inference, and its size is approximately 2 × number of layers × number of attention heads × head dimension × sequence length × precision bytes.
90%VerifiedMixture of Experts (MoE) is a model architecture composed of multiple expert sub-networks that each specialize in different sub-tasks, together with a gating network that decides which expert receives a given input.
90%VerifiedKV Cache avoids redundant computation by caching already-computed Key and Value matrices, and advanced techniques such as PagedAttention further optimize cache memory management efficiency.
90%VerifiedKV Cache reduces the computational complexity of self-attention from O(N²) to O(N) by caching already-computed Key-Value pairs in GPU memory, but memory usage grows linearly with sequence length.
90%VerifiedRerankers are typically implemented using cross-encoders, which concatenate the query and document and feed them jointly into a Transformer model, achieving significantly higher ranking precision than the initial retrieval stage
90%VerifiedThe self-attention mechanism maps inputs into three sets of vectors—Query, Key, and Value—computes dot-product similarity followed by softmax normalization, and then performs a weighted sum of the Values to generate a representation that incorporates global context.
90%VerifiedThe Transformer architecture was proposed by Google in the 2017 paper "Attention Is All You Need," and its core self-attention mechanism can capture dependencies between any positions in a sequence.
90%VerifiedThe Transformer's core innovation is the self-attention mechanism, which allows models to attend to all positions in the input simultaneously rather than processing step-by-step like RNNs or LSTMs
90%VerifiedThe Transformer was originally proposed by Vaswani et al. in the 2017 paper "Attention Is All You Need" for machine translation tasks.
90%VerifiedA pre-trained model refers to a model that has been trained in advance on large-scale datasets, which users can directly fine-tune or call to complete specific tasks.
90%VerifiedThe computational complexity of the self-attention mechanism grows approximately quadratically with sequence length, with the attention matrix computation being proportional to n² for a sequence of length n.
90%VerifiedThe core innovation of FlashAttention is to reduce the memory access complexity of standard attention computation from O(N²) to near-linear by controlling the data transfer pattern between the GPU's SRAM and HBM
90%VerifiedSet Transformer models interactions between row vectors based on the self-attention mechanism and maintains permutation invariance by removing positional encodings.
90%VerifiedMainstream LLMs are based on the Transformer architecture proposed by Google in 2017, whose core innovation is the Self-Attention mechanism.
90%VerifiedBERT was proposed by Google in 2018 and is a pre-trained language model based on the Transformer architecture.
90%VerifiedKV Cache caches previously computed key-value matrices in memory, reducing the complexity of autoregressive generation from quadratic growth with sequence length to linear.
90%VerifiedArchitectures based on State Space Models (SSM) such as Mamba achieve sequence modeling with linear complexity, making them more suitable for real-time inference.
90%VerifiedAt inference time, TabPFN concatenates the entire training set as the Transformer input sequence and completes prediction in a single forward pass without any gradient updates.
90%VerifiedThe Prefill phase is a compute-intensive operation, while the Decode phase is a memory-bandwidth-intensive operation.
90%VerifiedThe VRAM usage of KV Cache grows linearly with sequence length; for a 70-billion-parameter model using GQA, the KV Cache usage can reach tens of GB when processing 100,000 tokens.
90%