SQ-format: A Unified Sparse-Quantized Hardware-friendly Data Format for Large Language Models

Ruixuan Huang, Hao Zeng, Hantao Huang, Jinyuan Shi, Minghui Yu, Ian En-Hsu Yen, Shuai Wang · Submission to ICLR 2026 · Rejected

TL;DR

Current hardware cannot natively accelerate mixed-precision matrix multiplication (e.g., INT4 weights $\times$ INT8 activations fallback to INT8 speeds), while uniform low-bit schemes (W4A4) severely hurt accuracy. To solve this, the authors introduce SQ-format, a bank-based data format that decomposes a tensor into a dense low-precision component and a structured, sparse high-precision component. Combined with a static channel-splitting strategy, SQ-format matches near-lossless W4A8 accuracy on modern LLMs while approaching theoretical W4A4 throughput on GPUs and future AI accelerators.

What Problem Does This Paper Address?

Large language models (LLMs) require aggressive compression to run efficiently, but post-training quantization (PTQ) faces a steep hardware-algorithm gap:

  1. The Mixed-Precision Fallback: Theoretically efficient formats like W4A8 cannot run on dedicated hybrid INT4 $\times$ INT8 tensor cores because modern GPUs lack native mixed-precision execution paths. They must fallback to the slower W8A8 data path.
  2. Quantization vs. Sparsity Trade-offs: Pushing to uniform 4-bit (W4A4) degrades reasoning and generative accuracy because sensitive "outlier" channels are truncated. Meanwhile, hardware-supported structured sparsity (such as NVIDIA’s 2:4 semi-structured sparse format) is too rigid to accommodate non-uniform outlier distributions.

The authors ask: Can we design a unified, hardware-friendly data representation that keeps critical outlier values in high precision while offloading the bulk of computation to fast, low-precision paths?

Methods

The paper introduces SQ-format (Sparse-Quantized Format), defined by high precision $h_{\text{high}}$, low precision $h_{\text{low}}$, bank size $b$, and sparsity $s$:

  • One-Operand SQ Representation: To avoid complex cross-format tensor operations, SQ-format is applied to only one matrix operand (weights or activations) while the other remains uniform.
  • Bank-Based Fixed Sparsity: Matrices are partitioned into fixed banks (e.g., $b = 16, 32, 64$). Within each bank, exactly a $(1-s)$ fraction of values are retained in $h_{\text{high}}$ (e.g., INT8) and packed compactly, while the rest are stored in $h_{\text{low}}$ (e.g., INT4). This eliminates load imbalance and irregular memory access.
  • Algorithm 1 (SQ-Format on Weights): Smooths weights and uses Hessian information (via GPTQ) to rank weights by importance. The high-precision locations are flagged in-place inside the low-precision tensor using an unused quantization code (e.g., $v_{\text{mask}} = 15$ for INT4).
  • Algorithm 2 (Static Activation Strategy): Dynamic selection of activation outliers incurs expensive runtime Top-$K$ overhead on GPUs. Instead, the authors compute offline per-channel importance based on the average activation-weight product magnitude ($I_j = |\bar{A}_j \cdot \sum_i W'_{j,i}|$) over a calibration set. The weights are reordered offline, splitting execution into separate, standard CUTLASS GEMM calls on GPU.
  • Hardware Co-Design: The authors architect a dedicated accelerator unit with gather logic that executes the sparse high-precision branch in parallel with the dense low-precision tensor cores.

Datasets

  • Calibration: 32 randomly sampled 2,048-token segments from WikiText.
  • Non-Generative Evaluation: ARC-easy, ARC-challenge, PIQA, HellaSwag, WinoGrande, and OpenBookQA (OBQA).
  • Generative Benchmarks: GSM8k (8-shot) and AGIEval (0-shot).
  • Language Modeling Perplexity: WikiText and Lambada evaluated via lm-evaluation-harness.
  • No new benchmarks were created; existing standard benchmarks were re-evaluated across consistent environments.

Key Insights and Ideas

  • Activation-Weight Product Trumps Magnitude Alone: Statically selecting outlier channels solely by activation magnitude ($|\bar{A}_j|$) tanks accuracy. Factoring in weight magnitudes ($|\bar{A}_j \cdot \sum_i W'_{j,i}|$) accurately pinpoints which channels drive the actual output, making static activation splitting match dynamic Top-$K$ performance (within $\pm 1\%$).
  • Hiding Sparse Latency: Because the high-precision branch is sparse ($\ge 4\times$ to $16\times$ sparse), its execution latency can be completely hidden behind the parallel dense low-precision path in dedicated hardware.
  • Flexibility Over 2:4 Sparsity: Rigid 2:4 sparsity ($b=4, s=0.5$) forces every 4-element window to discard two values, stranding per-channel outliers. Expanding bank size to $b=32$ or $b=64$ gives the flexibility needed to cleanly separate outliers from background values.

Key Results

  • Pareto Frontier Breakthrough: On Llama-3-70B, static activation SQ-format (W4A(SQ5)) achieves a $1.71\times$ end-to-end speedup over W4A8, capturing $\sim 89\%$ of theoretical W4A4 speed while trailing FP16 performance by less than 1%.
  • Superior Accuracy to W4A4 Baselines: On Qwen3-30B-A3B, W4A(SQ6) achieves 88.78% on GSM8k and 61.33% on AGIEval, compared to standard W4A4 GPTQ at 65.39% and 52.85%, respectively.
  • Scalability to FP Formats and 685B Models: Applied to DeepSeek-R1 (685B) with FP8/FP4 quantization ($s=0.875$, effective 5-bit weights), SQ-format achieves near-lossless performance (96.21% on GSM8k vs. 95.83% BF16 baseline).
  • Silicon Efficiency: Synthesized under TSMC 12nm, the dedicated SQ MAC unit reduces total silicon area by 35.8% compared to a standard INT6 baseline.

Limitations and Future Work

  • Breakdown at Extreme Low Bits (INT2): When low precision is dropped to INT2 ($h_{\text{low}} = \text{INT2}$), weight SQ-format fails to recover accuracy except at low sparsity ($s=0.5$), showing that INT2 still lacks sufficient representational capacity for non-outliers.
  • Weight SQ-Format Needs Custom Silicon: While static activation SQ-format runs efficiently on modern GPUs via CUTLASS, SQ-format on weights requires dedicated hardware gather units and MUX logic to hide sparse memory access overhead; hence, weight-side speedups were validated via RTL synthesis and GPU simulation rather than bare-metal GPU kernels.

Summary updated

BibTeX
@misc{huang2025sq,
  author = {Ruixuan Huang and Hao Zeng and Hantao Huang and Jinyuan Shi and Minghui Yu and Ian En-Hsu Yen and Shuai Wang},
  title = {{SQ-format: A Unified Sparse-Quantized Hardware-friendly Data Format for Large Language Models}},
  year = {2025},
  eprint = {2512.05409},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.05409},
}
Figure