NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

CoDeQ: End-to-End Joint Model Compression with Dead-Zone Quantizer for High-Sparsity and Low-Precision Networks

Jonathan Wenshøj, Tong Chen, Bob Pepin, Raghavendra SelvanarXiv 2025 · DOI

Introduction

Deploying large-scale neural networks on resource-constrained edge devices necessitates aggressive model compression. Traditionally, this is achieved through two primary techniques: pruning, which removes unimportant weights to induce sparsity, and quantization, which reduces the numerical precision of the remaining weights. While joint optimization of these two processes is theoretically superior to sequential application, existing joint methods often rely on complex "outer-loop" search procedures—such as evolutionary algorithms or Bayesian optimization—to determine layer-wise sparsity and bit-widths. These approaches are computationally expensive and lack a direct, data-driven gradient signal.

CoDeQ (Compression with Dead-zone Quantizer) addresses these challenges by introducing a simple, fully differentiable method for joint model pruning and quantization. By parameterizing the "dead-zone" (the zero-bin) of a quantizer, CoDeQ enables networks to learn optimal sparsity patterns and quantized weights simultaneously through standard backpropagation, making model compression as seamless as standard Quantization-Aware Training (QAT).

Methodology

The fundamental innovation of CoDeQ is the mathematical unification of magnitude pruning and scalar quantization. In a standard quantizer, the zero-bin width is typically tied to the quantization step size. CoDeQ decouples these, introducing a learnable parameter $d$ that defines the width of the "dead-zone."

The Dead-Zone Quantizer

In this framework, any weight falling within the dead-zone is pruned to zero. This dead-zone width is parameterized by a latent variable $\theta_{dz}$ passed through a tanh function, ensuring it remains within a valid range while being differentiable. To handle the non-differentiable nature of rounding and clipping operations within the quantizer, the authors employ the Straight-Through Estimator (STE).

Comparison between a standard quantizer (left) and the proposed dead-zone quantizer (right), illustrating the decoupled zero-bin width $d$.

Optimization and Control

The training process incorporates a single global regularization term, $\lambda_{dz} \sum_{\ell} \|\theta_{dz,\ell}\|_2^2$, which governs the overall sparsity of the model. By increasing $\lambda_{dz}$, the network is encouraged to widen the dead-zones, effectively pushing more weights toward zero. This allows for fine-grained control over the sparsity-accuracy trade-off using a single hyperparameter. Furthermore, the method can be extended to mixed-precision (MP) settings by treating the bit-width $b$ as a learnable continuous variable.

The CoDeQ end-to-end training pipeline, showing the joint optimization of model parameters and dead-zone parameters.

Experimental Results

The authors evaluated CoDeQ across several standard computer vision benchmarks, including CIFAR-10 (with ResNet-20 and TinyViT) and ImageNet (with ResNet-18 and ResNet-50). Performance was measured using Bit-Operations (BOPs) to capture the combined impact of sparsity and precision.

On CIFAR-10, CoDeQ achieved a state-of-the-art 91.88% accuracy with ResNet-20 while reducing BOPs to just 2.95% of the baseline model. On the more challenging ImageNet dataset, ResNet-18 maintained nearly full-precision accuracy (~69.8%) while operating at only ~4.75% of the original BOPs. Notably, the "fixed 4-bit" version of CoDeQ—which is highly hardware-friendly—performed comparably to the more complex mixed-precision variants.

Discussion and Future Work

CoDeQ offers a unified perspective on model compression, collapsing pruning and quantization into a single differentiable operator. Its architecture-agnostic nature allows it to be applied to diverse models, from CNNs to Transformers, without specialized modifications.

However, some limitations remain. The current method induces unstructured sparsity, which, while theoretically efficient, is difficult to accelerate on standard hardware compared to structured pruning. Future research could explore extending CoDeQ to finer granularities, such as channel-wise or block-wise quantization, or incorporating learned step-size quantization to further enhance performance. Despite these areas for growth, CoDeQ represents a significant step toward making high-performance, low-resource neural networks accessible through standard training pipelines.

Summary updated

BibTeX
@misc{wenshj2025codeq,
  author = {Jonathan Wenshøj and Tong Chen and Bob Pepin and Raghavendra Selvan},
  title = {{CoDeQ: End-to-End Joint Model Compression with Dead-Zone Quantizer for High-Sparsity and Low-Precision Networks}},
  year = {2025},
  eprint = {2512.12981},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2512.12981},
}
Figure