SharQ: Bridging Activation Sparsity and FP4 Quantization for LLM Inference
Not on the map. Why?
Abstract (arXiv)
Low-bit floating-point formats and semi-structured sparsity are increasingly supported by modern accelerators, yet combining them for LLM activation compression remains challenging: activations contain input-dependent outliers that dominate block scales in FP4 quantization, and directly applying N:M sparsity masks discards moderate values, coupling sparsification loss with quantization error. We introduce SharQ, a training-free inference method that bridges activation sparsity and FP4 quantization through an online sparse--dense decomposition. For each activation tensor, SharQ generates an input-adaptive N:M mask to extract an outlier-dominated sparse backbone, quantizes it to FP4, and defines a dense residual relative to the quantized sparse backbone rather than the unquantized sparse values. A sparse FP4 GEMM processes the backbone while a dense FP4 GEMM compensates for both mask-induced activation loss and sparse-path quantization error. The two paths share a single FP4 weight payload with path-specific scale views, and a fused preparation kernel absorbs mask generation, residual construction, and layer normalization into one operator. SharQ requires no calibration data, retraining, or model-specific tuning. Evaluated on Llama-3.1-8B, Qwen2.5-7B, Qwen3-30B-A3B, and Qwen3-VL-8B, SharQ recovers 43--63% of the NVFP4-to-FP16 accuracy gap across language and vision-language tasks, and generalizes across NVFP4, HiF4, and MXFP4 formats. On an RTX 5090, SharQ delivers 2.2--2.4× latency reduction over FP16 and 1.2--1.4× throughput improvement over FP8 in language model serving, and up to 1.58× speedup on Wan2.2-T2V-A14B video generation when combined with SageAttention. Our code is available at https://github.com/actypedef/SharQ.
Key facts. No citing papers in the map yet (data through 7 Oct 2026). Builds on 41 of its 49 references that are in the map. First posted on arXiv 25 Jun 2026.
Builds on
41 of 49 references.
References · 41
- 2020Measuring Massive Multitask Language Understandingcited by 7,768
- 2023Efficient Memory Management for Large Language Model Serving with PagedAttentioncited by 5,767
- 2018Think you have Solved Question Answering? Try ARC, the AI2 Reasoning Challengecited by 4,710
- 2024Qwen2-VL: Enhancing Vision-Language Model's Perception of the World at Any Resolutioncited by 4,151
- 2019HellaSwag: Can a Machine Really Finish Your Sentence?cited by 4,018
- 2016Pointer Sentinel Mixture Modelscited by 2,992
- 2019PIQA: Reasoning about Physical Commonsense in Natural Languagecited by 2,818
- 2025Wan: Open and Advanced Large-Scale Video Generative Modelscited by 2,536
- 2016Making the V in VQA Matter: Elevating the Role of Image Understanding in Visual Question Answeringcited by 2,498
- 2022Learn to Explain: Multimodal Reasoning via Thought Chains for Science Question Answeringcited by 1,881
- 2022GPTQ: Accurate Post-Training Quantization for Generative Pre-trained Transformerscited by 1,838
- 2019Towards VQA Models That Can Readcited by 1,696
29 more
- 2023Evaluating Object Hallucination in Large Vision-Language Modelscited by 1,696
- 2022SmoothQuant: Accurate and Efficient Post-Training Quantization for Large Language Modelscited by 1,338
- 2023SparseGPT: Massive Language Models Can Be Accurately Pruned in One-Shotcited by 1,090
- 2016The LAMBADA dataset: Word prediction requiring a broad discourse contextcited by 960
- 2022LLM.int8(): 8-bit Matrix Multiplication for Transformers at Scalecited by 881
- 2023A Simple and Effective Pruning Approach for Large Language Modelscited by 776
- 2024QuaRot: Outlier-Free 4-Bit Inference in Rotated LLMscited by 598
- 2024SpinQuant: LLM quantization with learned rotationscited by 446
- 2023OmniQuant: Omnidirectionally Calibrated Quantization for Large Language Modelscited by 403
- 2024Massive Activations in Large Language Modelscited by 277
- 2023Atom: Low-bit Quantization for Efficient and Accurate LLM Servingcited by 255
- 2023Deja Vu: Contextual Sparsity for Efficient LLMs at Inference Timecited by 247
- 2023PowerInfer: Fast Large Language Model Serving with a Consumer-grade GPUcited by 210
- 2024SVDQuant: Absorbing Outliers by Low-Rank Components for 4-Bit Diffusion Modelscited by 161
- 2024FlatQuant: Flatness Matters for LLM Quantizationcited by 116
- 2024SageAttention2: Efficient Attention with Thorough Outlier Smoothing and Per-thread INT4 Quantizationcited by 113
- 2025OstQuant: Refining Large Language Model Quantization with Orthogonal and Scaling Transformations for Better Distribution Fittingcited by 94
- 2023QUIK: Towards End-to-End 4-Bit Inference on Generative Large Language Modelscited by 39
- 2024ResQ: Mixed-Precision Quantization of Large Language Models with Low-Rank Residualscited by 32
- 2025Bridging the Gap Between Promise and Performance for Microscaling FP4 Quantizationcited by 30
- 2025Four Over Six: More Accurate NVFP4 Quantization with Adaptive Block Scalingcited by 29
- 2025Oscillation-Reduced MXFP4 Training for Vision Transformerscited by 20
- 2025Block Rotation is All You Need for MXFP4 Quantizationcited by 18
- 2024AMXFP4: Taming Activation Outliers with Asymmetric Microscaling Floating-Point for 4-bit LLM Inferencecited by 17
- 2026ARCQuant: Boosting NVFP4 Quantization with Augmented Residual Channels for LLMscited by 14
- 2025MicroMix: Efficient Mixed-Precision Quantization with Microscaling Formats for Large Language Modelscited by 11
- 2025FGMP: Fine-Grained Mixed-Precision Weight and Activation Quantization for Hardware-Accelerated LLM Inferencecited by 9
- 2026HiFloat4 Format for Language Model Inferencecited by 9
- 2026DuQuant++: Fine-grained Rotation Enhances Microscaling FP4 Quantizationcited by 8
Built on by
Not cited yet.