atlas

Research map / Architectures and efficiency / Quantization

SageAttention3: Microscaling FP4 Attention for Inference and An Exploration of 8-Bit Training

NeurIPS 2025 · Architectures and efficiency › Quantization · approach: Ultra-low-bit LLM quantization · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes SageAttention3, an FP4 microscaling attention kernel for Blackwell GPUs with two-level P quantization for inference, and SageBwd, an INT8 trainable attention that quantizes six of seven attention matmuls for fine-tuning.

Problem

Attention's quadratic cost makes inference and training slow; prior low-bit attention (FlashAttention3, SageAttention) either lacks FP4 support for plug-and-play inference or is inference-only, with no low-bit trainable attention.

Approach

Apply NVFP4 microscaling (1x16 blocks, E4M3 scales) to both attention matmuls, with a two-level scaling for the softmax matrix P that renormalizes each row to [0, 448x6] so the FP8 scale factors use their full range; separately, an INT8 trainable attention that keeps dO V^T in FP16 to avoid gradient error accumulation.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Use FP4 microscaling attention instead of the fastest FlashAttentionAttention inference on RTX5090 · RTX5090TOPS: 1038 TOPS; 5× speedupHelped
Use FP4 microscaling attentionCogVideoX inference · CogVideoXinference latency: 64 s -> 27 sHelped
Use INT8 SageBwdLlama training · Llama (8K)one iteration training latency: 2.1 s -> 1.9 sHelped
Replace MXFP4 with NVFP4 (ablation)FP4 attention on CogVideoX · CogVideoX layersCosSim: 98.37% -> 99.52%Helped
Use two-level scaling for attention map P instead of direct quantization (ablation)FP4 attention on CogVideoX · CogVideoX layersCosSim: 93.32% -> 99.52%Helped
Keep dO Vᵀ in FP16 instead of quantizing it to INT8 (ablation)SageBwd · CogVideoX gradientsdQ CosSim: 97.47% -> 99.77%Helped
Retain the three most sensitive layers in FP16 (ablation)SageAttention3 · CogVideoX-2BLayer10 L1 error: 0.0922 -> 0.0447Helped
Add Q smoothing (ablation)SageAttention3 · CogVideoX-2B layersCosSim: 0.915642 -> 0.982848Helped
Add K smoothing (ablation)SageAttention3 · CogVideoX-2B layersCosSim: 0.915642 -> 0.991176Helped
Use INT8 instead of FP8 SageBwd (ablation)CogVideoX-2B backward gradients · CogVideoX-2B gradientsdQ L1 error: 0.0696 -> 0.0290Helped
Use INT8 instead of FP8 SageBwd (ablation)Qwen2.5-1.5B fine-tuning · Qwen2.5-1.5B fine-tuningGSM8K: 0.5031 -> 0.5232Helped
Use SageBwd instead of BF16 attentionQwen2.5-1.5B fine-tuning · GSM8KGSM8K: 0.521 -> 0.520No clear effect

Surprising findings

Limitations

Experimental setup

Datasets: GSM8K DROP MMLU HellaSwag FineWeb-Edu open-sora prompts COCO

Benchmarks: GSM8K DROP MMLU HellaSwag VBench-style video metrics (CLIPSIM, CLIP-T, VQA-a, VQA-t, FScore) COCO image metrics (FID, sFID, CLIP, ImageReward)

Metrics: TOPS CosSim L1 RMSE accuracy FID CLIPSIM

Baselines: FlashAttention2 xformers SageAttention SageAttention2 BF16 full-precision attention

Builds on: FlashAttention SageAttention2 SageAttention

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy