{
  "id": 581,
  "kind": "paper",
  "title": "Q-Sparse: All Large Language Models can be Fully Sparsely-Activated",
  "summary": "Q-Sparse applies top-K (absolute-value) masks on activations of all linear layers, STE so non-selected grads are not zeroed, optional 8-bit quantized top-K, squared-ReLU/ReLU²GLU in FFNs, and Block Q-Sparse (N:M, e.g. 16:32) for batched GPU kernels. Inference-optimal sparsity ~45.58% full-precision (1.84× params at matched activated N_a) and ~61.25% for 1.58-bit. From-scratch 40% sparsity matches dense loss at the same size/tokens (RedPajama 50B). Continue-train Mistral-7B: 3.8B activated avg 63.7 vs dense 64.6 (ARC/HS/MMLU/WG/TQA); 2.9B 61.7, beating ReLUfication 60.8 and dReLU 61.0. Works with BitNet b1.58. No official code on abs.",
  "body": "",
  "notes": "Primary: arxiv abs (cs.CL; also cs.LG). License: arXiv.org perpetual non-exclusive on HTML at check. Equal contrib Wang/Ma; corresponding Shuming Ma and Furu Wei (Microsoft Research). H. Wang and R. Wang at University of Chinese Academy of Sciences. No official code URL on abs (OpenReview version: “The code will be released”). Later github.com/ustcwhy/Q-Sparse not treated as abs-linked. HF paper page 23 upvotes; no linked models/datasets. Discord posted PDF. Trains on public RedPajama/FineWeb-Edu/Open-Orca rather than a new hosted corpus, so no datasets_local row. License field left blank per catalog convention.",
  "url": "https://arxiv.org/abs/2407.10969",
  "links": [],
  "authors": [
    "Hongyu Wang",
    "Shuming Ma",
    "Ruiping Wang",
    "Furu Wei"
  ],
  "tags": [
    "q-sparse",
    "activation-sparsity",
    "top-k",
    "ste",
    "bitnet",
    "block-sparsity",
    "microsoft",
    "inference-optimal-scaling"
  ],
  "topics": "activation sparsity, LLM inference, quantization",
  "venue": "arXiv / Microsoft Research / University of Chinese Academy of Sciences",
  "publisher": "",
  "source": "",
  "language": "",
  "access": "",
  "license": "",
  "published_year": 2024,
  "added_at": "2026-10-01T16:45:06.278Z",
  "verified_at": null,
  "attrs": {
    "scale": "From-scratch 300M–7B, 50B RedPajama tokens. Continue-train Mistral-7B 40B FineWeb-Edu (10k updates, 4M tok/step). SFT Mistral-7B and Qwen1.5-7B on Open-Orca 1 epoch. Block Q-Sparse block size 32.",
    "purpose": "Enable full activation sparsity in every linear projection via top-K sparsification and a straight-through estimator",
    "time_period": "2024-07-15 (arXiv 2407.10969 v1); last revised 2024-07-24 (v3). Comment: Work in progress. HF paper publishedAt 2024-07-15."
  },
  "enrichment": {
    "s2": {
      "venue": "arXiv.org",
      "paper_id": "dedaf766db6d33e677fc1494a5509cc183379834",
      "published": "2024-07-15",
      "fetched_at": "2026-10-03T14:57:20.622Z",
      "citation_count": 31,
      "reference_count": 30,
      "influential_citation_count": 2
    },
    "arxiv": {
      "id": "2407.10969",
      "title": "Q-Sparse: All Large Language Models can be Fully Sparsely-Activated",
      "authors": [
        "Hongyu Wang",
        "Shuming Ma",
        "Ruiping Wang",
        "Furu Wei"
      ],
      "comment": "Work in progress",
      "updated": "2024-07-24",
      "abstract": "We introduce, Q-Sparse, a simple yet effective approach to training sparsely-activated large language models (LLMs). Q-Sparse enables full sparsity of activations in LLMs which can bring significant efficiency gains in inference. This is achieved by applying top-K sparsification to the activations and the straight-through-estimator to the training. We also introduce Block Q-Sparse for batch training and inference. The key results from this work are, (1) Q-Sparse can achieve results comparable to those of baseline LLMs while being much more efficient at inference time; (2) We present an inference-optimal scaling law for sparsely-activated LLMs; (3) Q-Sparse is effective in different settings, including training-from-scratch, continue-training of off-the-shelf LLMs, and finetuning; (4) Q-Sparse works for both full-precision and 1-bit LLMs (e.g., BitNet b1.58). Particularly, the synergy of BitNet b1.58 and Q-Sparse (can be equipped with MoE) provides the cornerstone and a clear path to revolutionize the efficiency, including cost and energy consumption, of future LLMs.",
      "published": "2024-07-15",
      "categories": [
        "cs.CL",
        "cs.LG"
      ],
      "fetched_at": "2026-10-03T14:57:20.622Z"
    }
  },
  "enriched_at": "2026-10-03T14:57:20.655Z",
  "license_class": "unknown",
  "langs": [],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "600",
    "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/581",
  "markdown": "https://papers.projxon.ai/entries/581.md",
  "api": "https://papers.projxon.ai/api/entries/581",
  "relations": [
    {
      "relation": "cites",
      "direction": "in",
      "note": "",
      "via": "citations",
      "entry": {
        "id": 528,
        "kind": "paper",
        "title": "Sparser, Faster, Lighter Transformer Language Models",
        "summary": "TwELL (tile-wise ELLPACK) materializes ReLU-gated FFN sparsity in the matmul epilogue; fused inference kernel does up+down in one launch; hybrid ELL/dense format stores activations for training despite heavy per-token nnz skew. Mild L1 on gated ReLU FFNs reaches >99% sparsity with negligible task drop through L1=3e-5 (1.5B). At L1=2e-5, 0.5B–2B chinchilla FineWeb models match dense accuracy while forward throughput rises 17.0→20.5% and training  −1.5→+21.9% with 19–28% lower peak memory (8×H100). Gains grow with scale as mean active neurons fall (39→24). Code https://github.com/SakanaAI/sparser-faster-llms.",
        "url": "https://arxiv.org/abs/2603.23198",
        "authors": [
          "Edoardo Cetin",
          "Stefano Peluchetti",
          "Emilio Castillo",
          "Akira Naruse",
          "Mana Murakami",
          "Llion Jones"
        ],
        "tags": [
          "sparsity",
          "twell",
          "relu",
          "l1",
          "cuda",
          "sakana",
          "nvidia",
          "inference",
          "training-kernels"
        ],
        "venue": "arXiv / Sakana AI / NVIDIA",
        "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": 0,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/528",
        "markdown": "https://papers.projxon.ai/entries/528.md",
        "api": "https://papers.projxon.ai/api/entries/528"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "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": 586,
      "kind": "model",
      "title": "BitNet b1.58 2B4T",
      "summary": "Packed ternary BitNet weights (~2B) trained from scratch on 4T tokens (SmolLM-Corpus, dclm-baseline-1.0, open-web-math) then SFT+DPO. Architecture: BitLinear, RoPE, ReLU² FFN, subln, no biases; LLaMA 3 tokenizer (128,256); ctx 4096. Card: non-emb memory 0.4GB, CPU decode 29ms, energy 0.028J vs 1–2B dense open models; average 54.19 vs Qwen2.5-1.5B 55.23 (GSM8K 58.38). Efficiency needs microsoft/BitNet (bitnet.cpp), not stock transformers. Siblings: bf16 master weights and GGUF.",
      "url": "https://huggingface.co/microsoft/bitnet-b1.58-2B-4T",
      "authors": [
        "Shuming Ma",
        "Hongyu Wang",
        "Shaohan Huang",
        "Xingxing Zhang",
        "Ying Hu",
        "Ting Song",
        "Yan Xia",
        "Furu Wei"
      ],
      "tags": [
        "bitnet",
        "1-bit",
        "ternary",
        "microsoft",
        "bitnet-cpp",
        "w1.58a8",
        "llm"
      ],
      "venue": "Microsoft Research",
      "source": "huggingface",
      "license": "MIT",
      "published_year": 2025,
      "added_at": "2026-08-14T18:28:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": 20262,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/586",
      "markdown": "https://papers.projxon.ai/entries/586.md",
      "api": "https://papers.projxon.ai/api/entries/586"
    },
    {
      "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).",
      "url": "https://arxiv.org/abs/2501.17116",
      "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"
      ],
      "venue": "arXiv / Microsoft Research Asia / University of Science and Technology of China",
      "source": "",
      "license": "",
      "published_year": 2025,
      "added_at": "2026-10-01T16:45:06.278Z",
      "has_dataset_profile": false,
      "license_class": "unknown",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 62,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/565",
      "markdown": "https://papers.projxon.ai/entries/565.md",
      "api": "https://papers.projxon.ai/api/entries/565"
    },
    {
      "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"
    },
    {
      "id": 829,
      "kind": "paper",
      "title": "Disaggregated Quantization: Specializing LLM Prefill and Decode",
      "summary": "Disaggregated quantization (DQ): separate computation formats, weights, and storage placement specialized to prefill vs decode -- low-precision arithmetic accelerates prompt processing, compact weights reduce memory traffic during generation. Removing activation quantization on decode improves accuracy on decode-heavy tasks without added inference cost (Qwen 3, Gemma 3). Separate compute-native prefill weights accelerate prompt processing vs weight-only inference while matching/exceeding its accuracy at 2-3-bit decode. Training an NVFP4 prefiller improves 1-bit accuracy by 32.5 points on MMLU-Pro and 35.3 on MMMU-Pro without modifying the decode checkpoint (Qwen3.8-27B GGUF decoder). \"Offloaded disaggregated prefill\" (ODP) streams the extra prefill checkpoint from SSD, amortizing loading over prompt length: 1.78x time-to-first-token speedup over the weight-only baseline at 8K prompt length in llama.cpp. Accuracy evaluated under disaggregated serving in vLLM; shared-weight format disaggregation validated via PTQ on models up to 2.8T parameters.",
      "url": "https://huggingface.co/papers/2609.26333",
      "authors": [
        "Andrei Panferov",
        "Maximilian Kleinegger",
        "Sweta Priyadarshi",
        "Tijmen Blankevoort",
        "Dan Alistarh"
      ],
      "tags": [
        "quantization",
        "inference",
        "prefill",
        "decode",
        "nvfp4",
        "low-bit-inference",
        "serving"
      ],
      "venue": "IST Austria Distributed Algorithms and Systems Lab (arXiv 2026-09-21; HF #2 Paper of the Day)",
      "source": "paper_page",
      "license": "",
      "published_year": 2026,
      "added_at": "2026-09-30T00: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/829",
      "markdown": "https://papers.projxon.ai/entries/829.md",
      "api": "https://papers.projxon.ai/api/entries/829"
    },
    {
      "id": 983,
      "kind": "paper",
      "title": "FlashHead: Efficient Drop-In Replacement for the Classification Head in Language Model Inference",
      "summary": "Argues growing vocabularies make the dense LM head a major param/compute bottleneck (up to ~60% params / ~50% decode compute on small models). FlashHead reframes next-token scoring as balanced-cluster multiprobe retrieval with sampling support and selective quantization, reporting up to ~1.75× model-level speedups (e.g. Llama-3.2-1B) with near-baseline accuracy; gains compound with W4A16.",
      "url": "https://arxiv.org/abs/2603.14591",
      "authors": [
        "Wilhelm Tranheden",
        "Shahnawaz Ahmed",
        "Devdatt Dubhashi",
        "Jonna Matthiesen",
        "Hannes von Essen"
      ],
      "tags": [
        "flashhead",
        "lm-head",
        "inference",
        "retrieval",
        "quantization",
        "vllm",
        "embedl",
        "decode-speed"
      ],
      "venue": "arXiv / Embedl",
      "source": "arxiv",
      "license": "arXiv preprint (see paper); Embedl model/plugin licensing separate",
      "published_year": 2026,
      "added_at": "2026-09-16T17:18:32.000Z",
      "has_dataset_profile": false,
      "license_class": "other",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": 1,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/983",
      "markdown": "https://papers.projxon.ai/entries/983.md",
      "api": "https://papers.projxon.ai/api/entries/983"
    }
  ]
}
