Abstract
As Large Language Models (LLMs) scale, inference efficiency is increasingly constrained by memory bandwidth at low batch sizes and computational throughput at high batch sizes. We present Dual Precision Quantization (DPQ), a novel hybrid quantization framework that bridges the gap between memory efficiency and compute performance. DPQ stores model weights in 4-bit integer (INT4) format to minimize memory footprint while performing inference using high-throughput 8-bit floating-point (FP8) arithmetic. By employing a Hessian-guided error-compensation algorithm and a static Group-Aware Reordering (GAR) strategy, DPQ achieves up to a 3x speedup over standard 4-bit weight-only methods on modern AI accelerators like Intel Gaudi 2 and 3, with minimal impact on model accuracy.
Introduction
The deployment of massive Deep Neural Networks (DNNs), particularly LLMs, is often bottlenecked by two distinct hardware constraints. In memory-bound scenarios, such as single-user interactive chat, the speed of inference is limited by the rate at which weights can be fetched from memory. Conversely, in compute-bound scenarios with large batch sizes, the bottleneck shifts to the processor's raw arithmetic throughput.
Current quantization techniques typically force a trade-off between these two regimes. Weight-only 4-bit quantization (W4A16) reduces memory pressure but relies on slower 16-bit arithmetic for computation. Full 8-bit quantization (W8A8) offers high computational throughput but doubles the memory footprint compared to 4-bit storage. DPQ addresses this by enabling a "W4A8" execution model: weights are stored in 4-bit for memory efficiency and dequantized on-the-fly to 8-bit for high-speed matrix multiplication.
Methodology
The DPQ framework introduces two primary innovations to maintain accuracy during the transition from 4-bit storage to 8-bit computation.
Dual Precision Quantization (DPQ)
Standard quantization methods often optimize for a single precision transition. In contrast, DPQ is designed to minimize the cumulative error across a two-step process: quantizing weights to INT4 for storage and subsequently dequantizing them to FP8 for execution. Utilizing a Hessian-guided optimization framework (extending GPTQ/OBQ), DPQ "steers" the 4-bit quantized values to ensure that the final FP8 representation used in matrix multiplication remains as close as possible to the original 16-bit (BF16) weights.
Group-Aware Reordering (GAR)
To handle outlier weights that can disproportionately affect quantization error, we propose Group-Aware Reordering (GAR). Unlike dynamic reordering schemes that introduce significant inference overhead, GAR performs a static reordering of weights within groups based on their importance (derived from the Hessian diagonal) prior to quantization. This ensures that the most critical weights are prioritized without requiring complex indexing during runtime.
Experimental Results
We evaluated DPQ across several state-of-the-art LLMs, including Llama-2 (7B, 70B), Llama-3.1 (8B), and the Qwen2-VL vision-language family. Benchmarks spanned language modeling (WikiText-2), common-sense reasoning (HellaSwag, ARC, MMLU), and vision-language tasks (MMMU, MathVista).
Performance and Throughput
On Intel Gaudi 2 and Gaudi 3 accelerators, the W4A8 DPQ scheme demonstrated substantial performance gains. As shown in the performance analysis, DPQ achieved up to a 3x speedup compared to the W4A16 baseline and up to a 1.4x improvement over W8A8. This efficiency allows large-scale models like Qwen2 72B to run effectively on a single accelerator device.
Accuracy Preservation
DPQ maintains high fidelity to the original BF16 models. On the Llama-2 7B benchmark, DPQ outperformed other competitive 4-bit methods such as QServe and QQQ. In most evaluations, the accuracy degradation relative to the full-precision model remained below 1%, validating the effectiveness of the dual-step optimization and GAR strategy.
Conclusion
DPQ provides a scalable solution for deploying large-scale DNNs by synergizing 4-bit memory efficiency with 8-bit computational throughput. While the primary benefits are realized on hardware with native FP8 support (e.g., Intel Gaudi 2/3, NVIDIA H100), the methodology offers a blueprint for future hybrid-precision inference. Future work will explore the integration of DPQ with orthogonal techniques like Activation-aware Weight Quantization (AWQ) to further enhance accuracy.
Summary updated