{
  "id": 1257,
  "kind": "paper",
  "title": "A Unified View of Attention and Residual Sinks: Outlier-Driven Rescaling is Essential for Transformer Training",
  "summary": "Unifies the two emergent outlier phenomena in LLMs — attention sinks (a few tokens receiving large attention logits) and residual sinks (fixed dimensions with persistently large activations) — under 'outlier-driven rescaling': the outliers work jointly with normalization (softmax attention, RMSNorm) to rescale non-outlier components, and this mechanism is validated across architectures and training token counts. Main conclusions: (1) outliers function jointly with normalization — removing normalization eliminates the outliers but degrades training stability and performance; clipping outliers while keeping normalization also degrades, so outlier-driven rescaling contributes to training stability; (2) outliers act as rescale factors, not contributors — their post-norm contributions are far smaller than non-outliers'; (3) outliers can be absorbed into learnable parameters or replaced by explicit gated rescaling (GatedNorm), improving training performance by an average of 2 points and drastically improving quantization robustness (only 1.2 points degradation under W4A4). Since outliers' post-norm contribution is tiny, relying on them is what makes LLM quantization a nightmare (huge dynamic ranges).",
  "body": "",
  "notes": "Discovery: @hooshaaii (Hoosha) X thread 2026-10-04 11:44 PM ET (https://x.com/hooshaaii/status/2106953744197808526), 2.2K views; 3-part self-thread with paper figures (attention sinks / massive activations heatmaps for Llama-3.2-1B-A22B, Qwen3-0.6B-A22B, GPT-OSS-20B; SwiGLU vs outliers loss curves) | Qwen Team, 19 authors",
  "url": "https://arxiv.org/abs/2601.22966",
  "links": [],
  "authors": [
    "Zihan Qiu",
    "Zeyu Huang",
    "Kaiyue Wen",
    "Peng Jin",
    "Bo Zheng",
    "Yuxin Zhou",
    "Haofeng Huang",
    "Zekun Wang",
    "Xiao Li",
    "Huaqing Zhang",
    "Yang Xu",
    "Haoran Lian",
    "Siqi Zhang",
    "Rui Men",
    "Jianwei Zhang",
    "Ivan Titov",
    "Dayiheng Liu",
    "Jingren Zhou",
    "Junyang Lin (Qwen Team)"
  ],
  "tags": [
    "attention-sinks",
    "massive-activations",
    "outliers",
    "normalization",
    "gatednorm",
    "quantization",
    "qwen"
  ],
  "topics": "attention sinks, massive activations, outliers, normalization, quantization, GatedNorm",
  "venue": "arXiv 2601.22966 [cs.CL], submitted 30 Jan 2026, preprint",
  "publisher": "",
  "source": "x",
  "language": "en",
  "access": "free",
  "license": "",
  "published_year": 2026,
  "added_at": "2026-10-05T00:00:00.000Z",
  "verified_at": "2026-10-05T00:00:00.000Z",
  "attrs": {},
  "enrichment": {},
  "enriched_at": null,
  "license_class": "unknown",
  "langs": [
    "en"
  ],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "channel": "random-papers",
    "legacy_paper_id": "1565"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-05T14:13:45.823Z",
  "updated_at": "2026-10-05T14:13:45.823Z",
  "page": "https://papers.projxon.ai/entries/1257",
  "markdown": "https://papers.projxon.ai/entries/1257.md",
  "api": "https://papers.projxon.ai/api/entries/1257",
  "relations": [],
  "duplicates": [],
  "similar": [
    {
      "id": 1263,
      "kind": "paper",
      "title": "The Spike, the Sparse and the Sink: Anatomy of Massive Activations and Attention Sinks",
      "summary": "Mechanistically studies two recurring Transformer phenomena: massive activations (a few tokens show extreme outliers in a few channels) and attention sinks (certain tokens attract disproportionate attention mass regardless of relevance). Through systematic experiments, shows their co-occurrence is largely an architectural artifact of modern Transformer design, and the two serve related but distinct functions: massive activations operate globally — inducing near-constant hidden representations that persist across layers, effectively functioning as implicit parameters — while attention sinks operate locally, modulating attention outputs across heads and biasing individual heads toward short-range dependencies. The pre-norm configuration is the key architectural choice that enables the co-occurrence; ablating it decouples the two phenomena. Practical upshot: modifying normalization logic or adding dynamic gating can eradicate massive activations without hurting LM performance, giving a structural path to safer ultra-low-precision quantization and efficient KV-cache management.",
      "url": "https://arxiv.org/abs/2603.05498",
      "authors": [
        "Shangwen Sun",
        "Alfredo Canziani",
        "Yann LeCun",
        "Jiachen Zhu"
      ],
      "tags": [
        "massive-activations",
        "attention-sinks",
        "interpretability",
        "pre-norm",
        "nyu",
        "meta"
      ],
      "venue": "arXiv 2603.05498 [cs.AI/cs.CL], submitted 5 Mar 2026, preprint",
      "source": "x",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-05T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1263",
      "markdown": "https://papers.projxon.ai/entries/1263.md",
      "api": "https://papers.projxon.ai/api/entries/1263"
    },
    {
      "id": 535,
      "kind": "paper",
      "title": "Gated Attention for Large Language Models: Non-linearity, Sparsity, and Attention-Sink-Free",
      "summary": "Compares ~30 gating variants on 15B MoE (15A2B, 2.54B active) and 1.7B dense models trained on up to 3.5T tokens. A head-specific sigmoid gate after SDPA (G1) is best: MoE 400B-token Avg PPL 5.761 vs 6.026 baseline and MMLU 60.82 vs 58.79, beating parameter-matched KV-head/expert expansions. Gains come from non-linearity between low-rank Wv and Wo plus query-dependent sparse gates (mean score 0.116). First-token attention falls 46.7%→4.8%; YaRN-extended RULER at 128k is 58.82 vs 31.65. Gate also damps loss spikes and allows higher LR (8e-3) where the baseline diverges. Claims first attention-sink-free models.",
      "url": "https://arxiv.org/abs/2505.06708",
      "authors": [
        "Zihan Qiu",
        "Zekun Wang",
        "Bo Zheng",
        "Zeyu Huang",
        "Kaiyue Wen",
        "Songlin Yang",
        "Rui Men",
        "Le Yu",
        "Fei Huang",
        "Suozhi Huang",
        "Dayiheng Liu",
        "Jingren Zhou",
        "Junyang Lin"
      ],
      "tags": [
        "gated-attention",
        "attention-sink",
        "sparsity",
        "moe",
        "qwen",
        "alibaba",
        "ruler"
      ],
      "venue": "arXiv / Qwen Team / Alibaba",
      "source": "",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-10-01T16:45:05.207Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 334,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/535",
      "markdown": "https://papers.projxon.ai/entries/535.md",
      "api": "https://papers.projxon.ai/api/entries/535"
    },
    {
      "id": 852,
      "kind": "paper",
      "title": "Emergent One-Third Scaling Law as Attention Tries to Concentrate",
      "summary": "Proposes an origin for neural scaling laws: any softmax learning peaked distributions, regardless of its position in the model, develops logit magnitudes that grow as a power law with exponent 1/3, becoming a training bottleneck whose loss contribution decays with the same 1/3 exponent — so total loss obeys 1/3 scaling whenever at least one softmax learns peaked distributions. Toy models show the effect for both output selection and attention-like gating, with a 'loss universality' result (any reasonable loss yields the same law; nonlinearity is the key ingredient). In real LLMs (Pythia, OLMo), loss falls and attention's internal logits grow with exponents near 1/3 while the output head shows no such growth, pointing to attention heads — not the LM head — as the bottleneck driving 1/3 loss scaling. Bypassing the output softmax with MSE training, and using sigmoid/tanh gates, preserves the law.",
      "url": "https://arxiv.org/abs/2609.32100",
      "authors": [
        "Yizhou Liu",
        "Sara Kangaslahti",
        "Jeff Gore"
      ],
      "tags": [
        "one-third-scaling-law",
        "neural-scaling-laws",
        "attention",
        "softmax",
        "peaked-distributions",
        "logit-growth",
        "loss-universality",
        "pythia",
        "olmo",
        "massive-activations"
      ],
      "venue": "arXiv:2609.32100 (cs.LG), submitted 26 Sep 2026",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-02T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 0,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/852",
      "markdown": "https://papers.projxon.ai/entries/852.md",
      "api": "https://papers.projxon.ai/api/entries/852"
    },
    {
      "id": 1216,
      "kind": "paper",
      "title": "You Need Better Attention Priors",
      "summary": "Generalizes attention through the lens of Entropic Optimal Transport (EOT): standard attention corresponds to a transport problem regularized by an implicit uniform prior. GOAT (Generalized Optimal Transport Attention with Trainable priors) replaces that naive assumption with a learnable, continuous prior that decouples spatial geometry from token semantics — standard positional encodings (e.g., RoPE) entangle position with meaning and corrupt semantic representations when forced to handle structural biases like attention sinks. The prior maintains full compatibility with optimized kernels like FlashAttention (zero compute overhead). GOAT also provides an EOT-based explanation of attention sinks and a solution that avoids standard attention's representational trade-offs. By absorbing spatial information into the core attention computation, GOAT learns an extrapolatable prior combining the flexibility of learned positional embeddings with the length generalization of fixed encodings — strong long-context extrapolation beyond training length.",
      "url": "https://arxiv.org/abs/2601.15380",
      "authors": [
        "Elon Litman",
        "Gabe Guo"
      ],
      "tags": [
        "goat",
        "attention-priors",
        "entropic-optimal-transport",
        "rope",
        "attention-sinks",
        "long-context-extrapolation",
        "flashattention"
      ],
      "venue": "arXiv:2601.15380 (cs.LG), submitted 21 Jan 2026, v2 23 Aug 2026",
      "source": "arxiv",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-03T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1216",
      "markdown": "https://papers.projxon.ai/entries/1216.md",
      "api": "https://papers.projxon.ai/api/entries/1216"
    },
    {
      "id": 556,
      "kind": "paper",
      "title": "BitNet a4.8: 4-bit Activations for 1-bit LLMs",
      "summary": "Hybrid recipe: INT4 activations into attention/FFN, plus sparsify then 8-bit on outlier-heavy intermediate states. Two-stage continue-training from BitNet b1.58 (W1.58A8 then W1.58A4; last 5B tokens for the 4-bit stage). Matches b1.58 at equal train cost while enabling 4-bit kernels; ~55% of parameters activated and 3-bit KV cache. 7B: 44.5% overall sparsity / 3.4B active vs b1.58 6.0B; a 2B model on 2T tokens stays at parity with b1.58. No official code on abs.",
      "url": "https://arxiv.org/abs/2411.04965",
      "authors": [
        "Hongyu Wang",
        "Shuming Ma",
        "Furu Wei"
      ],
      "tags": [
        "bitnet",
        "quantization",
        "1-bit",
        "int4",
        "sparsity",
        "microsoft",
        "activation-quantization"
      ],
      "venue": "arXiv / Microsoft Research / University of Chinese Academy of Sciences",
      "source": "",
      "license": "",
      "published_year": 2024,
      "added_at": "2026-10-01T16:45:05.207Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 22,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/556",
      "markdown": "https://papers.projxon.ai/entries/556.md",
      "api": "https://papers.projxon.ai/api/entries/556"
    },
    {
      "id": 609,
      "kind": "other",
      "title": "Transformers documentation: AWQ (Activation-aware Weight Quantization)",
      "summary": "Living Transformers docs for Activation-aware Weight Quantization: identify AWQ checkpoints via quantization_config.quant_method=awq (typically 4-bit, group_size 128, zero_point, gemm). from_pretrained loads autoawq/llm-awq weights with other tensors in fp16 by default; dtype and device_map control the rest. Notes AutoAWQ pins Transformers to 4.47.1. Optional AwqConfig fused modules (Llama/Mistral out of the box; fuse_max_seq_len + do_fuse) roughly double decode tok/s vs unfused on TheBloke/Mistral-7B-OpenOrca-AWQ at batch=1 (e.g. 32/32: 80.3 vs 38.5 tok/s, 4.00 vs 4.50 GB). ExLlamaV2 via version=exllama (AMD GPUs supported). Cannot combine fused modules with FlashAttention2. Method paper is Lin et al. AWQ (arXiv 2306.00978, MLSys 2024).",
      "url": "https://huggingface.co/docs/transformers/main/en/quantization/awq",
      "authors": [
        "Hugging Face"
      ],
      "tags": [
        "blog",
        "awq",
        "quantization",
        "transformers",
        "autoawq",
        "exllamav2",
        "llm-compression"
      ],
      "venue": "Hugging Face Transformers docs",
      "source": "huggingface",
      "license": "",
      "published_year": null,
      "added_at": "2026-08-14T18:56:35.000Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/609",
      "markdown": "https://papers.projxon.ai/entries/609.md",
      "api": "https://papers.projxon.ai/api/entries/609"
    }
  ]
}
