{
  "id": 565,
  "kind": "paper",
  "title": "Optimizing Large Language Model Training Using FP4 Quantization",
  "summary": "First from-scratch FP4 LLM pretraining: Differentiable Gradient Estimator (DGE, k=5) corrects E2M1 weight grads vs STE, and Outlier Clamping and Compensation (OCC, α=0.99 plus a ~2% sparse residual) keeps activations from collapsing. Mixed-precision W4A4 GeMM simulated on H100 FP8 cores with token-wise activation and channel-wise weight scaling. LLaMA-2 1.3B/7B/13B on 100B DCLM tokens: train loss 2.55/2.17/1.97 vs BF16 2.49/2.07/1.88; zero-shot avg 53.13/54.42/54.95 vs 53.23/53.87/54.44. Direct W4A4 diverges. ICML 2025. Framework https://aka.ms/MS.AMP (Azure/MS-AMP).",
  "body": "",
  "notes": "Primary: arxiv abs (cs.LG; also cs.CL). License: arXiv.org perpetual non-exclusive on HTML at check. Comment: ICML 2025; PMLR 267:62937-62957. Wang USTC/Microsoft SIGMA; Gong/Liu/Zhao/Yang/Cheng Microsoft Research Asia / SIGMA; Guo MSRA; Zha USTC. Correspondence yegong@microsoft.com, pengc@microsoft.com. Framework https://aka.ms/MS.AMP → https://github.com/Azure/MS-AMP (637 stars at check; MIT). HF paper page 36 upvotes; unofficial linked model w-hy21/lcqat_qwen3_1.7B not copied into hf_* fields. Discord posted abs. Trains on public DCLM rather than a new hosted corpus, so no datasets_local row. License field left blank per catalog convention.",
  "url": "https://arxiv.org/abs/2501.17116",
  "links": [],
  "authors": [
    "Ruizhe Wang",
    "Yeyun Gong",
    "Xiao Liu",
    "Guoshuai Zhao",
    "Ziyue Yang",
    "Baining Guo",
    "Zhengjun Zha",
    "Peng Cheng"
  ],
  "tags": [
    "fp4",
    "quantization",
    "dge",
    "occ",
    "mixed-precision",
    "llama2",
    "dclm",
    "icml",
    "microsoft",
    "e2m1"
  ],
  "topics": "quantization, FP4 training, mixed precision",
  "venue": "arXiv / Microsoft Research Asia / University of Science and Technology of China",
  "publisher": "",
  "source": "",
  "language": "",
  "access": "",
  "license": "",
  "published_year": 2025,
  "added_at": "2026-10-01T16:45:06.278Z",
  "verified_at": null,
  "attrs": {
    "scale": "LLaMA-2 1.3B/7B/13B on 100B DCLM tokens; seq 2048, batch 2048 (~4M tokens); k=5, α=0.99; zero-shot PiQA/HellaSwag/ObQA/ARC/BoolQ/LogiQA/SciQ/Lambada; FP4 simulated on H100 FP8",
    "purpose": "Train LLMs in FP4 (E2M1) GeMM with a differentiable weight estimator and activation outlier compensation",
    "time_period": "2025-01-28 (arXiv 2501.17116 v1); last revised 2025-05-23 (v2). ICML 2025 (PMLR 267:62937-62957). HF paper publishedAt 2025-01-28."
  },
  "enrichment": {
    "s2": {
      "venue": "International Conference on Machine Learning",
      "paper_id": "e5458bd9e3b1098475ed5c9f9cdeb1264f6c0ebb",
      "published": "2025-01-28",
      "fetched_at": "2026-10-03T14:57:20.245Z",
      "citation_count": 62,
      "reference_count": 63,
      "influential_citation_count": 7
    },
    "arxiv": {
      "id": "2501.17116",
      "title": "Optimizing Large Language Model Training Using FP4 Quantization",
      "authors": [
        "Ruizhe Wang",
        "Yeyun Gong",
        "Xiao Liu",
        "Guoshuai Zhao",
        "Ziyue Yang",
        "Baining Guo",
        "Zhengjun Zha",
        "Peng Cheng"
      ],
      "updated": "2025-05-23",
      "abstract": "The growing computational demands of training large language models (LLMs) necessitate more efficient methods. Quantized training presents a promising solution by enabling low-bit arithmetic operations to reduce these costs. While FP8 precision has demonstrated feasibility, leveraging FP4 remains a challenge due to significant quantization errors and limited representational capacity. This work introduces the first FP4 training framework for LLMs, addressing these challenges with two key innovations: a differentiable quantization estimator for precise weight updates and an outlier clamping and compensation strategy to prevent activation collapse. To ensure stability, the framework integrates a mixed-precision training scheme and vector-wise quantization. Experimental results demonstrate that our FP4 framework achieves accuracy comparable to BF16 and FP8, with minimal degradation, scaling effectively to 13B-parameter LLMs trained on up to 100B tokens. With the emergence of next-generation hardware supporting FP4, our framework sets a foundation for efficient ultra-low precision training.",
      "published": "2025-01-28",
      "categories": [
        "cs.LG",
        "cs.CL"
      ],
      "fetched_at": "2026-10-03T14:57:20.245Z",
      "journal_ref": "Proceedings of the 42nd International Conference on Machine Learning, PMLR 267:62937-62957, 2025"
    }
  },
  "enriched_at": "2026-10-03T14:57:20.279Z",
  "license_class": "unknown",
  "langs": [],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "584",
    "pipeline_status": "done",
    "research_status": "done"
  },
  "visibility": "public",
  "status": "active",
  "duplicate_of": null,
  "origin": "legacy",
  "created_at": "2026-10-03T12:29:06.561Z",
  "updated_at": "2026-10-03T12:29:06.561Z",
  "page": "https://papers.projxon.ai/entries/565",
  "markdown": "https://papers.projxon.ai/entries/565.md",
  "api": "https://papers.projxon.ai/api/entries/565",
  "relations": [
    {
      "relation": "cites",
      "direction": "out",
      "note": "",
      "via": "citations",
      "entry": {
        "id": 962,
        "kind": "paper",
        "title": "GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformers",
        "summary": "Generative Pre-trained Transformer models, known as GPT or OPT, set themselves apart through breakthrough performance across complex language modelling tasks, but also by their extremely high computational and storage costs. Specifically, due to their massive size, even inference for large, highly-accurate GPT models m…",
        "url": "https://arxiv.org/abs/2210.17323",
        "authors": [
          "Frantar",
          "Elias",
          "Ashkboos",
          "Saleh",
          "Hoefler",
          "Torsten",
          "Alistarh",
          "Dan"
        ],
        "tags": [
          "arxiv",
          "2210-17323",
          "quantization-efficiency",
          "linkedin-thread"
        ],
        "venue": "arXiv 2210.17323",
        "source": "arxiv",
        "license": "",
        "published_year": 2022,
        "added_at": "2026-09-15T00:46:23.000Z",
        "has_dataset_profile": false,
        "license_class": "unknown",
        "langs": [],
        "modalities": [],
        "size_class": null,
        "citation_count": 2668,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/962",
        "markdown": "https://papers.projxon.ai/entries/962.md",
        "api": "https://papers.projxon.ai/api/entries/962"
      }
    },
    {
      "relation": "cites",
      "direction": "out",
      "note": "",
      "via": "citations",
      "entry": {
        "id": 963,
        "kind": "paper",
        "title": "AWQ: Activation-aware Weight Quantization for LLM Compression and Acceleration",
        "summary": "Large language models (LLMs) have transformed numerous AI applications. On-device LLM is becoming increasingly important: running LLMs locally on edge devices can reduce the cloud computing cost and protect users' privacy. However, the astronomical model size and the limited hardware resource pose significant deploymen…",
        "url": "https://arxiv.org/abs/2306.00978",
        "authors": [
          "Lin",
          "Ji",
          "Tang",
          "Jiaming",
          "Haotian",
          "Yang",
          "Shang",
          "Chen",
          "Wei-Ming",
          "Wang",
          "Wei-Chen",
          "Xiao",
          "Guangxuan",
          "Dang",
          "Xingyu",
          "et al. (10 authors)"
        ],
        "tags": [
          "arxiv",
          "2306-00978",
          "ocr-vision-language",
          "quantization-efficiency",
          "linkedin-thread"
        ],
        "venue": "arXiv 2306.00978",
        "source": "arxiv",
        "license": "",
        "published_year": 2023,
        "added_at": "2026-09-15T00:46:23.000Z",
        "has_dataset_profile": false,
        "license_class": "unknown",
        "langs": [],
        "modalities": [],
        "size_class": null,
        "citation_count": 1868,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/963",
        "markdown": "https://papers.projxon.ai/entries/963.md",
        "api": "https://papers.projxon.ai/api/entries/963"
      }
    },
    {
      "relation": "cites",
      "direction": "in",
      "note": "",
      "via": "citations",
      "entry": {
        "id": 946,
        "kind": "paper",
        "title": "Pretraining Large Language Models with NVFP4",
        "summary": "Large Language Models (LLMs) today are powerful problem solvers across many domains, and they continue to get stronger as they scale in model size, training set size, and training set quality, as shown by extensive research and experimentation across the industry. Training a frontier model today requires on the order o…",
        "url": "https://arxiv.org/abs/2509.25149",
        "authors": [
          "NVIDIA",
          "Abecassis",
          "Felix",
          "Agrusa",
          "Anjulie",
          "Ahn",
          "Dong",
          "Alben",
          "Jonah",
          "Alborghetti",
          "Stefania",
          "Andersch",
          "Michael",
          "Arayandi",
          "Sivakumar",
          "et al. (90 authors)"
        ],
        "tags": [
          "arxiv",
          "2509-25149",
          "ocr-vision-language",
          "quantization-efficiency",
          "linkedin-thread"
        ],
        "venue": "arXiv 2509.25149",
        "source": "arxiv",
        "license": "",
        "published_year": 2025,
        "added_at": "2026-09-15T00:46:23.000Z",
        "has_dataset_profile": false,
        "license_class": "unknown",
        "langs": [],
        "modalities": [],
        "size_class": null,
        "citation_count": 75,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/946",
        "markdown": "https://papers.projxon.ai/entries/946.md",
        "api": "https://papers.projxon.ai/api/entries/946"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "id": 527,
      "kind": "paper",
      "title": "Sharpness-Aware Pretraining Mitigates Catastrophic Forgetting",
      "summary": "Treats forgetting as local Hessian curvature along the fine-tuning direction. SAM, larger peak LR, and shorter WSD annealing each improve the learning–forgetting Pareto frontier even when they do not lower base pretraining loss. OLMo-60M / 192B tokens: SAM cuts StarCoder forgetting ~80% at matched FT loss; gap widens with token budget. Late-only SAM during WSD decay (~10% of steps) recovers much of full-SAM robustness. OLMo-2-1B mid-train 50B tokens: SAM vs OLMo recipe reduces forgetting 31% after MetaMath SFT and 40% after 4-bit NF4 quantization despite a slightly weaker base (42.9 vs 43.2 avg). Hessian analysis: SAM and large peak LR lower fine-tuning-directional sharpness. No official code on abs.",
      "url": "https://arxiv.org/abs/2605.02105",
      "authors": [
        "Ishaan Watts",
        "Catherine Li",
        "Sachin Goyal",
        "Jacob Mitchell Springer",
        "Aditi Raghunathan"
      ],
      "tags": [
        "sam",
        "catastrophic-forgetting",
        "sharpness",
        "pretraining",
        "quantization",
        "olmo",
        "dclm",
        "icml",
        "cmu"
      ],
      "venue": "arXiv / Carnegie Mellon University",
      "source": "",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T16:45:05.207Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 10,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/527",
      "markdown": "https://papers.projxon.ai/entries/527.md",
      "api": "https://papers.projxon.ai/api/entries/527"
    },
    {
      "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": 1009,
      "kind": "idea",
      "title": "Why are models trained in FP16 and not lower precision? (LocalLLaMA thread)",
      "summary": "Hudson flagged a LocalLLaMA Reddit thread on why training at low precision does not work / why FP16 is used rather than lower formats. Cataloged as a durable research-discussion pointer (idea). Reddit HTML blocked to bots on 2026-09-17 (403); URL and Discord paraphrase retained.",
      "url": "https://www.reddit.com/r/LocalLLaMA/comments/15nmrat/why_are_models_trained_in_fp16_and_not/",
      "authors": [
        "LocalLLaMA community (Reddit)"
      ],
      "tags": [
        "fp16",
        "mixed-precision",
        "training",
        "reddit",
        "localllama",
        "idea"
      ],
      "venue": "reddit.com/r/LocalLLaMA",
      "source": "web",
      "license": "Reddit user content / site ToS",
      "published_year": null,
      "added_at": "2026-09-17T15:57:00.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/1009",
      "markdown": "https://papers.projxon.ai/entries/1009.md",
      "api": "https://papers.projxon.ai/api/entries/1009"
    },
    {
      "id": 763,
      "kind": "code",
      "title": "NVIDIA Model Optimizer (ModelOpt)",
      "summary": "NVIDIA's unified open-source library of state-of-the-art model optimization techniques — post-training quantization, quantization-aware training/distillation, pruning, distillation, neural architecture search, speculative decoding, and sparsity. Takes Hugging Face, PyTorch, or ONNX models and exports optimized quantized checkpoints ready for TensorRT-LLM, TensorRT, vLLM, or SGLang deployment.",
      "url": "https://github.com/NVIDIA/Model-Optimizer",
      "authors": [
        "NVIDIA"
      ],
      "tags": [
        "quantization",
        "pruning",
        "distillation",
        "inference-optimization",
        "nvfp4",
        "deployment"
      ],
      "venue": "GitHub",
      "source": "github",
      "license": "Apache-2.0",
      "published_year": 2024,
      "added_at": "2026-09-29T00:00:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 5186,
      "page": "https://papers.projxon.ai/entries/763",
      "markdown": "https://papers.projxon.ai/entries/763.md",
      "api": "https://papers.projxon.ai/api/entries/763"
    },
    {
      "id": 515,
      "kind": "paper",
      "title": "OPUS: Towards Efficient and Principled Data Selection in Large Language Model Pre-training in Every Iteration",
      "summary": "OPUS (Optimizer-induced Projected Utility Selection) linearizes AdamW/Muon one-step updates, sketches ghost outer-product gradients with CountSketch, and Boltzmann-samples a batch aligned with a Bench-Proxy retrieved from the corpus. Scoring overhead 4.7% vs naive 3.5×. GPT-2 XL Muon FineWeb 30B: avg 41.75 vs random 40.29, beating 60B random (41.29) and static filters. FineWeb-Edu: OPUS on score-3 beats baselines trained on score 4+5 (XL 44.99). Qwen3-8B-Base CPT on SciencePedia: 0.5B tokens beats 3B full CPT. Code https://github.com/gszfwsb/OPUS.",
      "url": "https://arxiv.org/abs/2602.05400",
      "authors": [
        "Shaobo Wang",
        "Xuan Ouyang",
        "Tianyi Xu",
        "Yuzheng Hu",
        "Jialin Liu",
        "Guo Chen",
        "Tianyu Zhang",
        "Junhao Zheng",
        "Kexin Yang",
        "Xingzhang Ren",
        "Dayiheng Liu",
        "Linfeng Zhang"
      ],
      "tags": [
        "opus",
        "data-selection",
        "muon",
        "adamw",
        "fineweb",
        "qwen3",
        "sciencepedia",
        "icml",
        "ghost-gradients",
        "countsketch",
        "sjtu",
        "alibaba-qwen"
      ],
      "venue": "arXiv / SJTU / Alibaba Qwen / UW–Madison / UIUC / Mila",
      "source": "",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-10-01T16:45:04.296Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 16,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/515",
      "markdown": "https://papers.projxon.ai/entries/515.md",
      "api": "https://papers.projxon.ai/api/entries/515"
    },
    {
      "id": 924,
      "kind": "paper",
      "title": "Matryoshka Quantization",
      "summary": "MatQuant (Google DeepMind) co-trains/co-distills nested integer precisions so a single checkpoint can be sliced to int8/int4/int2; int2 extracted models beat standard int2 by up to ~4–7% depending on base quantizer.",
      "url": "https://arxiv.org/abs/2502.06786",
      "authors": [
        "Pranav Nair",
        "Puranjay Datta",
        "Jeff Dean",
        "Prateek Jain",
        "Aditya Kusupati"
      ],
      "tags": [
        "matquant",
        "matryoshka",
        "quantization",
        "int2",
        "int4",
        "deepmind",
        "arxiv:2502.06786"
      ],
      "venue": "arXiv 2502.06786",
      "source": "arxiv",
      "license": "arXiv non-exclusive",
      "published_year": 2025,
      "added_at": "2026-10-02T23:40:42.683Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 12,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/924",
      "markdown": "https://papers.projxon.ai/entries/924.md",
      "api": "https://papers.projxon.ai/api/entries/924"
    }
  ]
}
