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

Error-Silenced Quantization: Bridging Robustness and Compactness

Zhicong Tang, Yinpeng Dong, Hang SuAISafety @ IJCAI 2020

Abstract

Deep neural networks face a significant trade-off between compactness for edge deployment and robustness against adversarial attacks. Standard quantization methods often exacerbate sensitivity to noise through the "Error Amplification Effect." We present Error-Silenced Quantization (EQ), a training framework that pairs internal activations of clean and adversarial inputs to suppress error propagation. Our results on CIFAR benchmarks demonstrate that 1-bit and 2-bit models using EQ can match or exceed the robustness of full-precision counterparts, effectively bridging the gap between model efficiency and security.

Introduction: The Compactness-Robustness Dilemma

Deploying AI on edge devices like smartphones and IoT sensors requires extreme model compression. Quantization—reducing weights to binary (1-bit) or ternary (2-bit) values—is a common solution but typically renders models highly vulnerable to adversarial attacks. Conversely, adversarial training, the primary defense against such attacks, usually requires high model capacity to be effective. This creates a "Catch-22": quantization reduces the capacity needed for robustness, while robustness requirements hinder the use of compact models.

The Error Amplification Effect

The primary obstacle to robust quantization is the Error Amplification Effect. In standard quantized networks, tiny input perturbations grow exponentially as they propagate through the layers. This noise eventually overwhelms the correct signal, leading to classification errors.

Figure 2: Relative distance between clean and adversarial activations across network layers. EQ variants (ADV-EQ-BWN/TWN) successfully flatten the error growth curve compared to standard quantized models.

As shown in the visualization of relative distances across layers, standard quantized models exhibit a sharp rise in error propagation. Error-Silenced Quantization (EQ) explicitly addresses this by "silencing" the growth, keeping the internal representations of clean and noisy images closely aligned throughout the network depth.

Error-Silenced Quantization (EQ)

The proposed EQ method forces the network's internal activations for a noisy image to remain nearly identical to those for a clean image. This is achieved through three key mechanisms:

  • Pairing Activation: During training, the model processes clean-adversarial image pairs. A "pairing loss" penalizes the divergence of internal activations or final logits.
  • Progressive Quantization: A stochastic approach gradually "hardens" full-precision weights into quantized values during training.
  • Min-Max Optimization: An adversarial framework where the defender minimizes the pairing distance against the worst-case noise found by an attacker.

Experimental Results

Evaluations on CIFAR-10 and CIFAR-100 using deep architectures like ResNet-152 demonstrate that EQ effectively breaks the capacity trade-off.

Figure 3: Accuracy vs. Perturbation strength. EQ-quantized models (NAT-EQ-BWN, ADV-EQ-BWN) maintain high accuracy even as noise levels increase, outperforming standard full-precision models at higher strengths.

On CIFAR-10, a 1-bit binary model trained with EQ achieved 41.62% accuracy under a PGD attack, nearly matching the 47.06% of a full-precision model. In contrast, standard quantized models often fail completely under similar conditions. Notably, at higher perturbation strengths, EQ-quantized models can even outperform full-precision counterparts, suggesting that the constraints of quantization paired with activation pairing act as a beneficial regularizer.

Conclusion

Error-Silenced Quantization provides a viable path for deploying secure AI on resource-constrained hardware. By suppressing the amplification of internal errors, EQ allows ultra-low-bit models to achieve robustness levels previously thought to require high-capacity, full-precision networks. Future work will focus on scaling these findings to larger datasets like ImageNet and automating hyperparameter tuning for the pairing loss.

Summary updated

BibTeX
@inproceedings{tang2020error,
  author = {Zhicong Tang and Yinpeng Dong and Hang Su},
  title = {{Error-Silenced Quantization: Bridging Robustness and Compactness}},
  booktitle = {AISafety @ IJCAI},
  year = {2020},
  url = {https://openreview.net/forum?id=QVwigZYSu8},
}
Figure