GranQ: Efficient Channel-wise Quantization via Vectorized Pre-Scaling for Zero-Shot QAT

Inpyo Hong, Youngwan Jo, Hyojeong Lee, Sunghyun Ahn, Kijung Lee, Sanghyun Park

TL;DR

GranQ is a novel framework that enables high-accuracy, low-bit (e.g., 3-bit) neural network quantization without requiring any original training data. By introducing a "vectorized pre-scaling" strategy, it achieves the precision of fine-grained channel-wise quantization while maintaining the computational efficiency of much simpler methods, even surpassing full-precision baselines in some scenarios.

What Problem Does This Paper Address?

Quantization—reducing the precision of neural network weights and activations (e.g., from 32-bit to 3-bit)—is essential for running AI on edge devices like phones or drones. However, standard methods usually require the original training data to "re-calibrate" the model. Zero-Shot Quantization (ZSQ) attempts to solve this by using synthetic data generated from the model itself.

The catch? Synthetic data is often "distorted" compared to real data, featuring extreme outliers and skewed distributions. To handle this, researchers use channel-wise scaling, which applies a different scale to every channel in a layer. While accurate, this creates a massive computational bottleneck: standard hardware struggles to perform the "accumulation" step (the heavy lifting of matrix multiplication) when every channel has a different scale factor. Most developers are forced to choose between high accuracy (channel-wise) or high speed (layer-wise).

Methods

The authors introduce GranQ, which breaks this trade-off using two main components:

  1. Activation Decomposition: GranQ reshapes 3D activation tensors into 2D matrices. This allows the system to treat each channel as an independent vector, making it easier to calculate per-channel statistics (min/max) in parallel.
  2. Vectorized Pre-Scaling: This is the "secret sauce." Instead of applying scaling factors during the repeated accumulation process (which slows down the hardware), GranQ applies them in a pre-scaling step.
  3. It mathematically restructures the quantization formula so that the heavy accumulation happens as a pure integer-domain task.
  4. By moving the scaling factors outside the inner loop and using vectorized computation, GranQ eliminates the runtime overhead typically associated with fine-grained quantization.

Datasets

The researchers evaluated GranQ on standard computer vision benchmarks using various architectures (ResNet-18, ResNet-20, ResNet-50, and MobileNetV2):

  • CIFAR-10 & CIFAR-100: Small-to-medium scale datasets used for initial validation.
  • ImageNet (ILSVRC 2012): The industry-standard large-scale dataset for image classification.

Key Insights and Ideas

  • The "Outlier" Problem: The paper reveals that synthetic data used in ZSQ has significantly higher skewness (0.4877 vs. 0.2599 for real ImageNet data). A single scaling factor for an entire layer (layer-wise) fails because a few extreme outliers force the rest of the data into a tiny, unusable range.
  • Efficiency is in the Loop: The authors realized that the latency of channel-wise quantization isn't caused by the math itself, but by how it disrupts "vectorized execution" in hardware. By "pre-scaling," they allow the hardware to use its full parallel processing power.
  • Surpassing the Teacher: In some cases, the quantized model actually performed better than the original full-precision model, suggesting that GranQ’s fine-grained adjustment acts as a form of beneficial regularization.

Key Results

  • Accuracy Boost: On CIFAR-100 (3-bit setting), GranQ achieved 62.73% accuracy, outperforming the previous state-of-the-art (SynQ) by 5.45%.
  • Beating Full Precision: On CIFAR-10 (5-bit), GranQ reached 94.06%, actually exceeding the full-precision baseline of 93.89%.
  • Massive Speedup: GranQ reduced quantization latency from 103.67 ms (standard channel-wise) to just 0.236 ms—a performance level nearly identical to the much simpler layer-wise baseline (0.227 ms).
  • Error Reduction: GranQ showed a 2.94× lower relative error compared to layer-wise quantization, proving it preserves much more information from the original model.

Limitations and Future Work

  • QAT Focus: The current study focuses on Quantization-Aware Training (QAT). The authors note that Post-Training Quantization (PTQ), which doesn't involve a training loop, handles activations differently.
  • Future Directions: The authors plan to extend the GranQ framework to support granular quantization specifically for PTQ settings, potentially allowing for "instant" high-quality quantization without any fine-tuning.

Summary updated

BibTeX
@inproceedings{hong2026granq,
  author = {Inpyo Hong and Youngwan Jo and Hyojeong Lee and Sunghyun Ahn and Kijung Lee and Sanghyun Park},
  title = {{GranQ: Efficient Channel-wise Quantization via Vectorized Pre-Scaling for Zero-Shot QAT}},
  booktitle = {SAC},
  year = {2026},
  doi = {10.1145/3748522.3779753},
}
Figure