TL;DR
On-device Quantization-Aware Training (QAT) is essential for deploying low-bit models privately and efficiently, but training on full datasets locally is too slow for edge hardware. The authors introduce QuaRC, a framework that uses a novel "Relative Entropy Score" to select a tiny, error-revealing subset of data (a coreset) and applies "Cascaded Layer Correction" to stop quantization errors from compounding across layers. This approach achieves state-of-the-art accuracy with as little as 1% of the training data, making on-device QAT highly practical.
What Problem Does This Paper Address?
Edge devices like smartphones and drones need lightweight, low-bit (e.g., 2-bit to 4-bit) neural networks to meet strict latency and power constraints. Quantization-Aware Training (QAT) preserves accuracy by simulating quantization noise during training, but it typically demands the entire dataset. Transmitting edge-generated data back to the cloud violates user privacy and wastes bandwidth, while running full-dataset QAT directly on resource-constrained edge devices is computationally intractable.
Using data subsets ("coresets") can speed up training, but standard coreset selection metrics focus on geometry or gradients for full-precision models. They ignore quantization noise, leading to massive accuracy drops when data is scarce (e.g., using only 1% or 10% of the dataset) because they fail to capture and correct layer-wise error propagation.
Methods
The authors propose QuaRC (Quantization-aware training via Relative entropy coreset selection and Cascaded layer correction), which operates in two main phases:
- Relative Entropy Coreset Selection: Instead of picking samples randomly or based purely on gradient magnitude, QuaRC measures how much a sample exposes quantization errors. It passes data through both the full-precision (FP) and quantized models, computing a Relative Entropy Score (RES) (KL divergence) between their output distributions. Samples with high RES are highly sensitive to quantization noise and are prioritized. This is combined with standard gradient-based metrics to form a final selection score ($d_S$).
- Cascaded Layer Correction (CLC): During training, standard knowledge distillation (KD) only aligns the final output layer. QuaRC introduces CLC, which minimizes the KL divergence between intermediate layers of the quantized model and the FP model. This prevents quantization errors from accumulating and propagating deeper into the network.
Datasets
- CIFAR-100: Used to evaluate MobileNetV2 under 2-bit, 3-bit, and 4-bit weight quantization.
- ImageNet-1K: Used for large-scale evaluation of ResNet-18 with both weights and activations quantized to 2, 3, or 4 bits.
- UAV Concrete Crack Detection Dataset: A real-world custom dataset consisting of 3,300 concrete-surface images collected during a one-hour drone flight to validate on-device edge deployment.
Key Insights and Ideas
- Quantization Errors Correlate with Relative Entropy: The authors discovered a strong positive correlation (Spearman $\rho = 0.867$) between a coreset's mean relative entropy and the final model accuracy. Training on samples where the quantized model deviates most from the FP model yields the highest performance gains.
- Intermediate Layers are the Real Bottleneck: When data is scarce, standard final-layer distillation fails because errors accumulate silently in intermediate layers. Aligning these hidden feature distributions layer-by-layer acts as a crucial regularizer.
- Gradient + Error Synergy: Combining gradient-matching metrics (which ensure stable optimization) with error-matching metrics (RES) performs significantly better than using either strategy alone.
Key Results
- ImageNet-1K (ResNet-18, 2-bit): With just a 1% data subset, QuaRC achieves a Top-1 accuracy of 46.34%, outperforming the previous state-of-the-art coreset method (ACS) by 5.72% absolute.
- CIFAR-100 (MobileNetV2, 2-bit): On a 1% subset, QuaRC hits 56.36% Top-1 accuracy, a massive 9.52% improvement over ACS.
- UAV Case Study: Implemented on an NVIDIA Jetson Orin NX, QuaRC trained a 2-bit MobileNetV2 using a 10% coreset in just 2.55 minutes (a 7.02× speedup over full-dataset training) while retaining 99.00% accuracy (compared to 99.33% on the full dataset).
Limitations and Future Work
- Inference Overhead during Selection: Computing the RES requires running forward passes through both the FP and quantized models for the entire dataset at periodic intervals. For extremely resource-constrained edge nodes, this initial profiling phase could still be a bottleneck.
- Structural Alignment Constraints: The Cascaded Layer Correction strategy requires the full-precision teacher/correction model to match the layer structure of the quantized student model exactly, limiting the ability to use arbitrary cross-architecture teachers without extra mapping layers.
- Visual Task Expansion: The current implementation focuses on image classification. The authors note that extending task-agnostic RES and CLC to object detection and semantic segmentation is a promising but challenging future direction due to the memory constraints of edge hardware.
Summary updated