GRINQH: Graded Input-dependent Quantization Hierarchy for Efficient LLM Generation
Abstract
Autoregressive decoding with LLMs is primarily bottlenecked by GPU memory bandwidth, especially for latency-sensitive, batch-size-one inference on consumer and workstation GPUs. This regime is increasingly important for coding agents and locally deployed assistants, where per-token latency rather than aggregate serving throughput determines responsiveness. While quantization is essential for mitigating this bottleneck, most existing methods treat inference as a uniform process and fail to account for the asymmetry between the compute-bound prefill stage and the memory-bound decoding stage. We propose GRINQH (GRaded INput-dependent Quantization Hierarchy), a weight-only post-training quantization framework that accelerates decoding by unifying quantization and sparsification. GRINQH leverages activation magnitudes as a proxy for computational importance to dynamically assign weight channels to different precision levels, enabling flexible average bit widths during decoding. Evaluated on Llama3 and Qwen3, GRINQH outperforms state-of-the-art fixed- and mixed-precision baselines in overall accuracy at comparable 3- and 4-bit settings and retains robust generation quality near two effective transferred bits. For latency-oriented, batch-size-one decoding, GRINQH establishes a new sub-4-bit Pareto frontier for LLM generation, enabling a dynamic trade-off between generation quality and inference speed, which we verify with a custom GPU kernel.