CoDeQ: Compression with a Dead-Zone Quantizer for Differentiable Joint Pruning--Quantization
Abstract
Joint pruning and quantization can reduce the inference cost of neural-networks, but determining layerwise sparsity and precision often requires auxiliary allocation procedures and considerable hyperparameter tuning.
We introduce CoDeQ, a quantization-aware training method that unifies pruning and quantization through a learnable dead-zone quantizer.
Its learned dead-zone width controls layerwise sparsity, while bit widths can be held fixed or learned in mixed-precision mode.
A pruning-aware scale allocates all available nonzero reconstruction levels over the retained range.
We derive the spacing that minimizes worst-case reconstruction error over this range for a fixed bit width and range endpoint.
Model weights and compression parameters are optimized jointly under one global compression coefficient, with a shared learning rate for the compression parameters.
On VGG7/CIFAR-10, CoDeQ with 2-bit activations achieves 0.05% relative BOPs, for an accuracy drop of 0.32 percentage points.
On DeiT-Tiny/ImageNet-1K, mixed-precision CoDeQ preserves FP32-level accuracy at only 8.12% relative BOPs.
Additional experiments across several architectures and datasets demonstrate competitive accuracy--BOP trade-offs against other joint compression methods.