← Return to Report
📚 All Topic Sources
↗ Open Official Primary Source
⬇ Download Reference Note (.txt)
Vaswani et al. (2017) — Attention Is All You Need (NeurIPS 2017, arXiv:1706.03762)
Primary Reference Extract & Verification Note — Consulted 15 November 2026 Official URL: https://arxiv.org/abs/1706.03762 1. Scaled Dot-Product Self-Attention & Multi-Head Subspaces: The Transformer architecture replaces recurrent and convolutional layers with multi-head scaled dot-product self-attention wrapped in residual connections and layer normalization. Input token representations project linearly into Query (Q), Key (K), and Value (V) matrices. Compatibility scores Q * K^T are scaled by 1 / sqrt(d_k) to prevent softmax gradient saturation at large head dimensions, normalized via Softmax to sum to 1.0, and multiplied by Value vectors V. 2. Causal Masking, Position-Wise Feed-Forward Networks, and Fixed Model Geometry: Autoregressive decoder blocks apply a causal upper-triangular mask setting future token positions to negative infinity before Softmax so position t attends strictly to positions <= t. Each attention block is followed by a position-wise feed-forward network (FFN) stabilized by residual highways. Model depth L and hidden dimension d_model remain fixed constants during inference; longer prompts increase active sequence length N and O(N^2 * d_model) prefill attention operations without adding layers or changing weights.