GRINQH: Graded Input-based Quantization Hierarchy for Efficient LLM Generation

Jette Oberländer, Jan Finkbeiner, Catherine M. Schöfmann, Emre Neftci

TL;DR

GRINQH (Graded Input-based Quantization Hierarchy) accelerates Large Language Model (LLM) decoding by dynamically adjusting weight precision (from 0 to 8 bits) channel-by-channel based on real-time activation magnitudes. By decoupling the compute-bound prefill stage from the memory-bound decoding stage and utilizing a custom bit-planar GPU kernel, it achieves near-lossless generation quality at ultra-low effective bit widths (down to 2 bits) while outperforming optimized fixed-precision baselines in speed.

What Problem Does This Paper Address?

LLM inference operates in two distinct phases: prefill (processing the input prompt) and decoding (generating tokens autoregressively one by one). Prefill is compute-bound because the model weights are loaded once and reused across all prompt tokens. Decoding, especially in edge-computing or single-user scenarios (batch size = 1), is heavily memory-bandwidth bound. The GPU spends most of its time waiting to stream massive weight matrices from off-chip DRAM to on-chip SRAM just to generate a single token.

Existing post-training quantization (PTQ) methods apply a uniform bit-width across both stages. This creates a fundamental hardware-algorithm mismatch: low precision during prefill adds accuracy-degrading noise without offering much speedup, while static low precision during decoding fails to adapt to dynamic activation "outliers"—rare, high-magnitude values that are critical for model performance.

Methods

GRINQH treats decoding as the primary optimization target and explicitly decouples it from prefill. Its architecture rests on three core pillars:

  1. Dynamic Precision Assignment: Prefill is kept at full, high precision to maintain accuracy. During decoding, GRINQH inspects the incoming activation vector at each layer. Channels associated with large activation magnitudes (outliers) are assigned high precision (up to 8 bits), while stable background channels get lower precision, or even 0 bits (completely skipped/sparsified).
  2. Hierarchical Bit-Slicing & Memory Layout: To avoid storing multiple copies of weights for different precisions, GRINQH stores weights in a transposed, bit-planar interleaved format in DRAM. High-precision weights are sliced into discrete 2-bit segments. The custom GPU kernel fetches only the required number of 2-bit segments from DRAM to SRAM based on the runtime precision assignment.
  3. On-Chip Reconstruction & Midpoint Bias Correction: The kernel reconstructs the mixed-precision weights on the fly. Crucially, because bit-planar truncation acts as a floor operation, the authors introduce a midpoint bias-correction term ($\phi$) to center the reconstruction, preventing representational collapse across deep layers.

The custom decoding kernel is implemented in Triton and integrated into the vLLM execution engine.

Figure 2: Overview of GRINQH. During decoding, GRINQH mitigates the memory bandwidth bottleneck through a dynamic, channel-wise precision loading scheme. 1) Precision Assignment: Input activations xi are mapped to bit widths bi ∈{0, 2, 4, 6} based on their magnitude via pre- computed thresholds from a calibration set. 2) Bit-Stacked Storage: Weights are stored in DRAM using a bit-planar format. Each bmax = 6-bit weight is decomposed into bmax/2 2-bit planes which are stacked along the input-channel dimension (din). Weights of the same input channel are contiguously aligned along the output-channel axis (dout), ensuring efficient, coalesced loading of individual input channels. 3) On-Chip Reconstruction: Based on the assigned precision bi for each weight channel, only the most significant segments are fetched through the bandwidth-constrained DRAM interface. These segments are reconstructed on-chip into a mixed-precision weight matrix, significantly reducing DRAM-to-SRAM traffic while maintaining high model performance.

Datasets

  • Calibration: 128 samples from The Pile (Uncopyrighted) dataset with a 2048-token context window.
  • Evaluation Models: Llama3 (1B, 3B, 8B Instruct) and Qwen3 (0.6B, 1.7B, 4B, 8B) model families.
  • Downstream Benchmarks: WikiText-2 (perplexity), LAMBADA, MMLU, BoolQ, HellaSwag, ARC-Challenge, GSM8K (Chain-of-Thought, 0-shot and 8-shot), IFEval, and a processed ShareGPT dataset for variable-length prompt scaling.

Key Insights and Ideas

  • Stage-Aware Decoupling: Treating prefill and decoding as separate computational regimes resolves the algorithm-hardware mismatch. Keeping prefill precise protects the initial context, allowing decoding to aggressively drop bit-widths without catastrophic quality loss.
  • Unifying Quantization and Sparsification: By allowing a "0-bit" allocation, GRINQH naturally blends structured sparsity and multi-precision quantization into a single framework.
  • The Power of "Free Sparsity": In ultra-low bit regimes (2–3 bits), aggressively pruning non-salient channels (allocating 0 bits) frees up the bit budget, allowing the system to protect critical outliers with high precision (6–8 bits).
  • Midpoint Correction is Non-Negotiable: Without the mathematical shift ($\phi$) to center the truncated bits, deep networks suffer from cumulative quantization bias, leading to immediate 0% accuracy on downstream tasks.

Key Results

  • New Pareto Frontier: GRINQH establishes a superior trade-off between accuracy and speed across the 2–6 bit range, consistently outperforming static methods like AWQ, GPTQ, and RTN.
  • Speed and Accuracy Boost: On Qwen3-8B, GRINQH runs 25% faster than an optimized 4-bit MARLIN kernel on an NVIDIA RTX 4090 while delivering 5x lower accuracy degradation on GSM8K. At a 3-bit setting, it shows 20x lower degradation than static 3-bit baselines.
  • Viable 2-Bit Generation: While competitive methods like SliM-LLM and any-precision LLM collapse to chance-level accuracy at 2 bits, GRINQH maintains robustness. For instance, a 2.22-bit configuration on Qwen3-8B scores 87.04% on GSM8K, outperforming most standard 4-bit baselines.
Figure 1: Pareto frontier of GSM8K accuracy vs. VMM runtime for Qwen3-8B on an RTX 4090. GPTQ, AWQ, RTN assume MARLIN execution.

Limitations and Future Work

  • Batch Size Constraint: GRINQH is optimized specifically for batch-size-one scenarios (common in edge computing); its memory-bound assumptions change at high batch sizes where compute intensity increases.
  • DRAM Footprint: It requires a $b_{max}$-DRAM footprint to support bit-planar slicing, meaning a model set up for a maximum of 8 bits will take up 8-bit storage space in DRAM, even if it only streams an average of 3 bits during decoding. Capping $b_{max}=4$ mitigates this but limits the precision ceiling.
  • Prefill Overhead: Unpacking the bit-planar representations makes the prefill stage roughly 20% slower than optimized 4-bit prefill kernels, though this is heavily outweighed by decoding speedups in long-generation tasks.
  • Optimization Automation: The precision distribution profiles were found via random sweeps; developing automated search strategies, learnable classifiers, or direct threshold optimization is left for future work.

Summary updated

BibTeX
@inproceedings{oberlander2026grinqh,
  author = {Jette Oberländer and Jan Finkbeiner and Catherine M. Schöfmann and Emre Neftci},
  title = {{GRINQH: Graded Input-based Quantization Hierarchy for Efficient LLM Generation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=DOTl7hxxnO},
}
Figure