FlashQuant: Sparse-Dense Fusion for Memory-Efficient Outlier-Aware LLM Inference

Junqing Lin, Jingwei Sun, Zhengding Hu, Guangzhong SunarXiv 2026

TL;DR

FlashQuant accelerates outlier-aware large language model (LLM) inference by fusing low-bit dense GEMM and high-precision sparse SpMM paths into a single GPU kernel. By enabling on-chip reuse of activation and output data, it eliminates redundant global memory traffic during memory-bound decoding workloads. This unified design yields up to a 1.53× speedup over state-of-the-art unfused baselines while fully preserving model accuracy.

What Problem Does This Paper Address?

To make massive LLMs practical for deployment, engineers often turn to low-bit weight quantization (like 4-bit integers). However, aggressively quantizing everything can severely degrade model accuracy due to the presence of "outlier weights"—infrequent, high-magnitude weight values that are critical to the model's performance.

Outlier-aware quantization solves this accuracy problem by keeping these rare outliers in high precision (e.g., 16-bit bfloat16) while quantizing the rest of the dense matrix. While great for accuracy, this splits the core matrix multiplication into two distinct computational paths: a dense low-bit GEMM and a sparse high-precision SpMM.

Existing systems execute these two paths using separate GPU kernels. Because LLM decoding is heavily memory-bound (especially at small batch sizes), running separate kernels forces the GPU to redundantly reload the exact same activation data from global memory and write out separate partial outputs. This duplicated memory traffic creates a massive performance bottleneck.

Methods

FlashQuant introduces content-sharing fusion, a framework that co-schedules both the dense and sparse computation paths within a single GPU kernel. This allows them to cooperatively share activation data directly inside the GPU's fast on-chip shared memory.

Figure 1: Execution flow of outlier-aware quantization ker- nels: (a) existing approaches; (b) FlashQuant.

To bridge the gap between the highly regular structure of dense GEMM and the irregular nature of sparse SpMM, FlashQuant introduces three key techniques:

  1. Sparse-Dense Tiling: This technique maps the irregular outlier computations directly onto the hardware-aligned tile hierarchy used by Tensor Core GEMM operations, establishing a unified execution schedule across the CTA, warp, and thread levels.
  2. Tile-COO Outlier Encoding: A novel, compact sparse matrix format designed for efficient on-the-fly decoding. It organizes outliers by dense tile boundaries and column-oriented buckets, utilizing low-precision 8-bit indices to minimize metadata overhead. It also applies offline reordering to eliminate shared-memory bank conflicts and balance workloads across GPU warps.
  3. Pipelined Scheduling: A multi-stage execution pipeline that utilizes double buffering to seamlessly overlap global memory data movement, weight dequantization, outlier decoding, and core math execution.

Datasets

The authors evaluated FlashQuant's performance using representative operator shapes extracted from several prominent LLM families, including LLaMA, Qwen, DeepSeek, and OPT. To evaluate model accuracy (perplexity), they utilized the standard WikiText2 dataset across various outlier density thresholds (ranging from 1.0% to 3.0%).

Key Insights and Ideas

  • The Outlier Latency Paradox: Even though outliers might only make up 1% of the total weight matrix, processing them in a standalone sparse kernel contributes disproportionately to end-to-end latency because of the global memory bandwidth bottleneck.
  • Heterogeneous Compute Co-location: Instead of trying to force sparse data onto Tensor Cores, FlashQuant embraces a split-brain approach: it runs dense GEMM on Tensor Cores and sparse SpMM on standard CUDA cores simultaneously within the same thread block, feeding both from a single shared memory allocation.
  • Amortizing Metadata: Standard sparse formats like CSR carry heavy indexing overheads that waste memory bandwidth. By restricting the coordinate system to local tile boundaries, Tile-COO allows the system to use tiny 8-bit integers for rows and columns, making the metadata incredibly compact and hardware-friendly.

Key Results

  • Kernel-Level Speedups: Compared to standard high-precision cuBLAS BF16, FlashQuant achieves a $2.74\times$ to $4.18\times$ speedup due to the benefits of quantized computation.
  • Outperforming Baselines: FlashQuant outperforms the strongest unfused baseline (Marlin for dense GEMM + Sputnik for sparse SpMM) by up to 1.53× on modern NVIDIA RTX 5090 GPUs.
  • Memory Traffic Reduction: Fused execution successfully cuts down global memory access overhead by up to 45.4% compared to separate kernel execution.
  • End-to-End Impact: When integrated into the vLLM serving framework, FlashQuant delivers up to a 2.01× end-to-end decoding throughput improvement over the unquantized BF16 baseline for LLaMA3-8B.

Limitations and Future Work

Currently, FlashQuant is optimized specifically for W4A16 quantization (4-bit weights, 16-bit activations) with BF16 outliers and relies on offline preprocessing to generate its specialized Tile-COO format. Furthermore, its performance advantage diminishes at extremely small batch sizes (like 1 or 2) because the kernel pads inputs to a minimum size of 8, introducing redundant calculations. The authors plan to extend this fused sparse-dense architecture to even lower-bit formats, such as ultra-low precision INT2 weight quantization.

Summary updated

BibTeX
@misc{lin2026flashquant,
  author = {Junqing Lin and Jingwei Sun and Zhengding Hu and Guangzhong Sun},
  title = {{FlashQuant: Sparse-Dense Fusion for Memory-Efficient Outlier-Aware LLM Inference}},
  year = {2026},
  eprint = {2608.15531},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2608.15531},
}
Figure