[Paper Review] BRECQ: Pushing the Limit of Post-Training Quantization by Block Reconstruction
This paper introduces BRECQ, a post-training quantization framework that achieves INT2 weight quantization with competitive accuracy by block-wise reconstruction, mixed-precision optimization, and second-order analysis to minimize loss without full retraining.
We study the challenging task of neural network quantization without end-to-end retraining, called Post-training Quantization (PTQ). PTQ usually requires a small subset of training data but produces less powerful quantized models than Quantization-Aware Training (QAT). In this work, we propose a novel PTQ framework, dubbed BRECQ, which pushes the limits of bitwidth in PTQ down to INT2 for the first time. BRECQ leverages the basic building blocks in neural networks and reconstructs them one-by-one. In a comprehensive theoretical study of the second-order error, we show that BRECQ achieves a good balance between cross-layer dependency and generalization error. To further employ the power of quantization, the mixed precision technique is incorporated in our framework by approximating the inter-layer and intra-layer sensitivity. Extensive experiments on various handcrafted and searched neural architectures are conducted for both image classification and object detection tasks. And for the first time we prove that, without bells and whistles, PTQ can attain 4-bit ResNet and MobileNetV2 comparable with QAT and enjoy 240 times faster production of quantized models. Codes are available at https://github.com/yhhhli/BRECQ.
Motivation & Objective
- Motivate and enable high-quality post-training quantization (PTQ) without end-to-end retraining.
- Develop a reconstruction-based PTQ framework that achieves extremely low bit-width (INT2) with minimal data.
- Identify the optimal reconstruction granularity that balances cross-layer dependencies and generalization error.
- Integrate mixed-precision quantization guided by per-block sensitivity while respecting hardware constraints.
Proposed method
- Analyze second-order error using Gauss-Newton and Fisher Information to relate weight perturbations to output changes.
- Define four reconstruction granularities (net-wise, stage-wise, block-wise, layer-wise) and show block-wise reconstruction best balances dependency and generalization.
- Propose block-wise reconstruction with per-block optimization using adaptive rounding for weights and learned step sizes for activations.
- Approximate pre-activation Hessians with diagonal Fisher Information to weight block reconstruction by gradient-based importance.
- Incorporate a genetic algorithm to search for latency- and size-constrained mixed-precision configurations (2/4/8-bit) across layers.
- Enable a practical PTQ pipeline that uses a small calibration set (≈1024 samples) and achieves fast deployment.
Experimental results
Research questions
- RQ1Can PTQ quantize weights to INT2 without substantial accuracy loss across architectures?
- RQ2Which reconstruction granularity best preserves task performance under PTQ constraints?
- RQ3How can second-order information be leveraged to guide layer/block-wise reconstruction in PTQ?
- RQ4Can mixed-precision quantization be effectively optimized under hardware constraints for PTQ?
Key findings
- Block-wise reconstruction outperforms net-wise, stage-wise, and layer-wise reconstructions in accuracy under INT2/4-bit settings.
- BRECQ enables INT2 weight quantization with competitive accuracy across ResNet-18, ResNet-50, MobileNetV2, RegNet variants, and NAS models.
- With 4-bit activations and 2/4/8-bit mixed precision, PTQ performance approaches or matches QAT in several configurations, with substantially faster deployment.
- Quantized ResNet-18 can achieve accuracy close to full precision using BRECQ, with reported results in Table 2 across multiple architectures.
- Hardware-aware mixed-precision search via genetic algorithms yields configurations that respect latency/memory constraints while preserving accuracy.
- Code is released for reproducibility at the project repository.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.