{
  "id": 570,
  "kind": "paper",
  "title": "SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration",
  "summary": "PTQ attention: subtract the token-mean of K to smooth channel outliers so QK can be INT8, and keep PV in FP16 with an FP16 accumulator (INT8 PV is too noisy on some layers). Triton kernels on RTX4090/3090; peak ~341 TOPS at headdim 64/128 vs FlashAttention2 ~165. ~2.1× FA2 and ~2.7× xformers. Plug-and-play: Llama2-7B WikiText 5.824 vs FP 5.823, MMLU 0.46=FP; CogVideoX/Unidiffuser/UltraPixel/TIMM/Llava1.6 near-parity. ICLR 2025. Code https://github.com/thu-ml/SageAttention.",
  "body": "",
  "notes": "Primary: arxiv abs (cs.LG). License CC BY 4.0 on HTML at check. Comment: ICLR 2025 bibitem; journal_ref The Thirteenth International Conference on Learning Representations (ICLR 2025). Corresponding Jianfei Chen; Tsinghua CST / Institute for AI / BNRist / Tsinghua-Bosch Joint ML Center. Code https://github.com/thu-ml/SageAttention (HF projectPage; 3,640 stars at check; Apache-2.0). HF paper page 50 upvotes; unofficial linked model jt-zhang/SageAttention2_plus not copied into hf_* fields. Discord posted abs with a speed/accuracy blurb. Kernel library, not a new corpus, so no datasets_local row.",
  "url": "https://arxiv.org/abs/2410.02367",
  "links": [],
  "authors": [
    "Jintao Zhang",
    "Jia Wei",
    "Haofeng Huang",
    "Pengle Zhang",
    "Jun Zhu",
    "Jianfei Chen"
  ],
  "tags": [
    "sageattention",
    "int8",
    "flashattention",
    "quantization",
    "triton",
    "iclr",
    "tsinghua",
    "inference"
  ],
  "topics": "quantization, attention kernels, inference",
  "venue": "arXiv / Tsinghua University",
  "publisher": "",
  "source": "",
  "language": "",
  "access": "",
  "license": "CC BY 4.0",
  "published_year": 2024,
  "added_at": "2026-10-01T16:45:06.278Z",
  "verified_at": null,
  "attrs": {
    "scale": "RTX4090/3090; Llama2-7B, CogVideoX, Unidiffuser, UltraPixel, TIMM ViT-B/16, Llava1.6; headdim 64/128; CogVideoX QKV (2, 30, 17776, 64)",
    "purpose": "Accelerate attention at inference with plug-and-play INT8 quantization that keeps end-to-end metrics",
    "time_period": "2024-10-03 (arXiv 2410.02367 v1); last revised 2025-10-01 (v9). ICLR 2025. HF paper publishedAt 2024-10-03."
  },
  "enrichment": {
    "s2": {
      "venue": "International Conference on Learning Representations",
      "paper_id": "373d7bc9a5ad68f915ccf9c763ecdd308f204633",
      "published": "2024-10-03",
      "fetched_at": "2026-10-03T14:57:20.399Z",
      "citation_count": 185,
      "reference_count": 80,
      "influential_citation_count": 13
    },
    "arxiv": {
      "id": "2410.02367",
      "title": "SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration",
      "authors": [
        "Jintao Zhang",
        "Jia Wei",
        "Haofeng Huang",
        "Pengle Zhang",
        "Jun Zhu",
        "Jianfei Chen"
      ],
      "comment": "@inproceedings{zhang2025sageattention, title={SageAttention: Accurate 8-Bit Attention for Plug-and-play Inference Acceleration}, author={Zhang, Jintao and Wei, Jia and Zhang, Pengle and Zhu, Jun and Chen, Jianfei}, booktitle={International Conference on Learning Representations (ICLR)}, year={2025} }",
      "updated": "2025-10-01",
      "abstract": "The transformer architecture predominates across various models. As the heart of the transformer, attention has a computational complexity of $O(N^2)$, compared to $O(N)$ for linear transformations. When handling large sequence lengths, attention becomes the primary time-consuming component. Although quantization has proven to be an effective method for accelerating model inference, existing quantization methods primarily focus on optimizing the linear layer. In response, we first analyze the feasibility of quantization in attention detailedly. Following that, we propose SageAttention, a highly efficient and accurate quantization method for attention. The OPS (operations per second) of our approach outperforms FlashAttention2 and xformers by about 2.1 times and 2.7 times, respectively. SageAttention also achieves superior accuracy performance over FlashAttention3. Comprehensive experiments confirm that our approach incurs almost no end-to-end metrics loss across diverse models, including those for large language processing, image generation, and video generation. The codes are available at https://github.com/thu-ml/SageAttention.",
      "published": "2024-10-03",
      "categories": [
        "cs.LG"
      ],
      "fetched_at": "2026-10-03T14:57:20.399Z",
      "journal_ref": "The Thirteenth International Conference on Learning Representations (ICLR 2025)"
    }
  },
  "enriched_at": "2026-10-03T14:57:20.434Z",
  "license_class": "permissive",
  "langs": [],
  "modalities": [],
  "size_class": null,
  "provenance": {
    "legacy_paper_id": "589",
    "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/570",
  "markdown": "https://papers.projxon.ai/entries/570.md",
  "api": "https://papers.projxon.ai/api/entries/570",
  "relations": [
    {
      "relation": "cites",
      "direction": "in",
      "note": "",
      "via": "citations",
      "entry": {
        "id": 531,
        "kind": "paper",
        "title": "Helios: Real Real-Time Long Video Generation Model",
        "summary": "14B autoregressive diffusion with Unified History Injection (native T2V/I2V/V2V), Easy Anti-Drifting (relative RoPE, first-frame anchor, frame-aware corrupt), Deep Compression Flow (multi-term memory patchification + pyramid UniPC) and adversarial hierarchical distillation to 3 steps. 19.5 FPS on one H100; HeliosBench 240 prompts at 81/240/720/1440 frames. Distilled scores 6.00 short / 6.94 long, beating prior real-time 1.3B methods while matching same-size base quality. Code https://github.com/PKU-YuanGroup/Helios; project https://pku-yuangroup.github.io/Helios-Page/.",
        "url": "https://arxiv.org/abs/2603.04379",
        "authors": [
          "Shenghai Yuan",
          "Yuanyang Yin",
          "Zongjian Li",
          "Xinwei Huang",
          "Xiao Yang",
          "Li Yuan"
        ],
        "tags": [
          "helios",
          "video-generation",
          "diffusion",
          "real-time",
          "anti-drifting",
          "wan",
          "bytedance",
          "pku"
        ],
        "venue": "arXiv / Peking University / ByteDance",
        "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": 56,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/531",
        "markdown": "https://papers.projxon.ai/entries/531.md",
        "api": "https://papers.projxon.ai/api/entries/531"
      }
    },
    {
      "relation": "cites",
      "direction": "out",
      "note": "",
      "via": "citations",
      "entry": {
        "id": 575,
        "kind": "paper",
        "title": "FlashAttention-3: Fast and Accurate Attention with Asynchrony and Low-precision",
        "summary": "FlashAttention-3 redesigns FA2 for Hopper: warp-specialized TMA/WGMMA producer-consumer, pingpong scheduling so softmax hides under GEMM, and FP8 with in-kernel V transpose, block quantization, and Hadamard incoherent processing. H100 FP16 is 1.5-2.0× FA2 (up to 740 TFLOPs/s, 75% util) and 1.5-1.75× backward; FP8 reaches ~1.2 PFLOPs/s with 2.6× lower RMSE vs per-tensor FP8 on outlier-injected QKV. Competitive with or faster than cuDNN FA2 at seq≥1k. Code https://github.com/Dao-AILab/flash-attention.",
        "url": "https://arxiv.org/abs/2407.08608",
        "authors": [
          "Jay Shah",
          "Ganesh Bikshandi",
          "Ying Zhang",
          "Vijay Thakkar",
          "Pradeep Ramani",
          "Tri Dao"
        ],
        "tags": [
          "flashattention-3",
          "hopper",
          "wgmma",
          "tma",
          "fp8",
          "warp-specialization",
          "colfax",
          "nvidia",
          "meta",
          "attention"
        ],
        "venue": "arXiv / Colfax International / Meta / NVIDIA",
        "source": "",
        "license": "CC BY 4.0",
        "published_year": 2024,
        "added_at": "2026-10-01T16:45:06.278Z",
        "has_dataset_profile": false,
        "license_class": "permissive",
        "langs": [],
        "modalities": [],
        "size_class": null,
        "citation_count": 719,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/575",
        "markdown": "https://papers.projxon.ai/entries/575.md",
        "api": "https://papers.projxon.ai/api/entries/575"
      }
    },
    {
      "relation": "cites",
      "direction": "in",
      "note": "",
      "via": "citations",
      "entry": {
        "id": 945,
        "kind": "paper",
        "title": "DC-Gen: Post-Training Diffusion Acceleration with Deeply Compressed Latent Space",
        "summary": "Existing text-to-image diffusion models excel at generating high-quality images, but face significant efficiency challenges when scaled to high resolutions, like 4K image generation. While previous research accelerates diffusion models in various aspects, it seldom handles the inherent redundancy within the latent spac…",
        "url": "https://arxiv.org/abs/2509.25180",
        "authors": [
          "He",
          "Wenkun",
          "Gu",
          "Yuchao",
          "Chen",
          "Junyu",
          "Zou",
          "Dongyun",
          "Lin",
          "Yujun",
          "Zhang",
          "Zhekai",
          "Xi",
          "Haocheng",
          "Li",
          "Muyang",
          "et al. (14 authors)"
        ],
        "tags": [
          "arxiv",
          "2509-25180",
          "quantization-efficiency",
          "linkedin-thread"
        ],
        "venue": "arXiv 2509.25180",
        "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": 8,
        "downloads": null,
        "stars": null,
        "page": "https://papers.projxon.ai/entries/945",
        "markdown": "https://papers.projxon.ai/entries/945.md",
        "api": "https://papers.projxon.ai/api/entries/945"
      }
    }
  ],
  "duplicates": [],
  "similar": [
    {
      "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"
    },
    {
      "id": 631,
      "kind": "code",
      "title": "VBR: Variable Bit-Rate KV Cache for llama.cpp",
      "summary": "spiritbuun llama.cpp fork (buun-llama-cpp) ships VBR as the default KV cache. Cache starts FP16 and degrades one (layer, side) tensor at a time down a price-ordered ladder (f16 → turbo8 → turbo4 → turbo3_tcq → turbo2_tcq → turbo1_tcq) using TurboQuant/TCQ codecs, following per-model KLD degrade tables. Default implicit VBR floors at turbo4; explicit -ct vbr opens the full ladder to t1. Budget is leftover VRAM after weights/compute; -c caps context so the budget is spent on quality instead of max length. CUDA-first with ROCm/HIP mirror. Related to TurboQuant (papers_local 606/640) but this is a dynamic controller, not a new codec paper.",
      "url": "https://github.com/spiritbuun/buun-llama-cpp",
      "authors": [
        "buun"
      ],
      "tags": [
        "vbr",
        "kv-cache",
        "llama-cpp",
        "turboquant",
        "quantization",
        "inference",
        "x"
      ],
      "venue": "GitHub",
      "source": "web",
      "license": "MIT",
      "published_year": 2026,
      "added_at": "2026-08-14T19:35:00.000Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [
        "en"
      ],
      "modalities": [],
      "size_class": null,
      "citation_count": null,
      "downloads": null,
      "stars": 881,
      "page": "https://papers.projxon.ai/entries/631",
      "markdown": "https://papers.projxon.ai/entries/631.md",
      "api": "https://papers.projxon.ai/api/entries/631"
    },
    {
      "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": 1217,
      "kind": "code",
      "title": "KohakuFA: Attention Kernel with Fixed Backward-Pass Precision",
      "summary": "New attention kernel claiming severe backward-pass precision bugs in cuDNN SDPA, FlashAttention-4, and flex attention: when attention logits get huge (DINOv3 reportedly hits ~1e5 out of the box), backward gradients can be wrong by 10-1000x or become inf, while forward and loss look completely normal — so instability surfaces only late in training when reruns are expensive. Implication: some reported fp16 instability, QKNorm benefits, or 'failed runs' may be kernel artifacts, not model-design flaws. KohakuFA fixes 3 precision bugs, keeping gradients at the fp16 error floor for ~5% extra cost; fast for ViT/DiT/video. Figures: DINOv3 ViT-B/16 fine-tuning backward error over training — FA4 highest error (~0.05-0.6), KohakuFA tracks the fp64 correct-kernel floor; whole-model fp16 gradient vs fp64 across 50k-200k steps — cuDNN SDPA gradients collapse after ~100k-125k steps (cosine→0, relative error >10x), KohakuFA stays near-correct. Blackwell (SM100) only for now; sm120 support planned (flex attention reportedly has the same issue on sm120). Directly relevant to user's training-run debugging (CUDA OOMs aside, kernel-precision bugs are the same class of hard-to-diagnose training instability).",
      "url": "https://github.com/KohakuBlueleaf/KohakuFA",
      "authors": [
        "Kohaku Blueleaf (KohakuLab / ComfyOrg)"
      ],
      "tags": [
        "kohakufa",
        "attention-kernel",
        "backward-precision",
        "flashattention",
        "cudnn",
        "fp16-instability",
        "qknorm",
        "training-stability"
      ],
      "venue": "GitHub release, announced 3 Oct 2026",
      "source": "github",
      "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/1217",
      "markdown": "https://papers.projxon.ai/entries/1217.md",
      "api": "https://papers.projxon.ai/api/entries/1217"
    },
    {
      "id": 561,
      "kind": "paper",
      "title": "Bi-Mamba: Towards Accurate 1-Bit State Space Models",
      "summary": "Binarizes Mamba-2 in/out projections (~90%+ of params) with FBI-Linear (sign weights plus per-column α/β) and autoregressive distillation from LLaMA2-7B on Amber. Beats GPTQ-2/3bit and BiLLM post-training binarization on Mamba-2 780M/1.3B/2.7B zero-shot and Wiki2/PTB/C4 PPL; 2.7B avg 50.6 vs Mamba-2 FP 59.6, Wiki2 10.0 vs 9.1. Claims ~5× memory / ~3× throughput vs FP16 2.7B on M4 Pro. Accepted in TMLR 2025. Code https://github.com/Tangshengku/Bi-Mamba.",
      "url": "https://arxiv.org/abs/2411.11843",
      "authors": [
        "Shengkun Tang",
        "Liqun Ma",
        "Haonan Li",
        "Mingjie Sun",
        "Zhiqiang Shen"
      ],
      "tags": [
        "bi-mamba",
        "mamba-2",
        "1-bit",
        "quantization",
        "ssm",
        "mbzuai",
        "tmlr",
        "fbi-linear"
      ],
      "venue": "arXiv / MBZUAI / Carnegie Mellon University",
      "source": "",
      "license": "CC BY 4.0",
      "published_year": 2024,
      "added_at": "2026-10-01T16:45:06.278Z",
      "has_dataset_profile": false,
      "license_class": "permissive",
      "langs": [],
      "modalities": [],
      "size_class": null,
      "citation_count": 13,
      "downloads": null,
      "stars": null,
      "page": "https://papers.projxon.ai/entries/561",
      "markdown": "https://papers.projxon.ai/entries/561.md",
      "api": "https://papers.projxon.ai/api/entries/561"
    }
  ]
}
