What Do Compressed Deep Neural Networks Forget?

Sara Hooker, Aaron Courville, Gregory A. Clark, Yann Dauphin, Andrea Frome · DOI

Abstract

Deep neural network pruning and quantization techniques have demonstrated it is possible to achieve high levels of compression with surprisingly little degradation to test set accuracy. However, this measure of performance conceals significant differences in how different classes and images are impacted by model compression techniques. We find that models with radically different numbers of weights have comparable top-line performance metrics but diverge considerably in behavior on a narrow subset of the dataset. This small subset of data points, which we term Pruning Identified Exemplars (PIEs) are systematically more impacted by the introduction of sparsity. Compression disproportionately impacts model performance on the underrepresented long-tail of the data distribution. PIEs over-index on atypical or noisy images that are far more challenging for both humans and algorithms to classify. Our work provides intuition into the role of capacity in deep neural networks and the trade-offs incurred by compression. An understanding of this disparate impact is critical given the widespread deployment of compressed models in the wild.

Introduction

In deep learning, model scale is often correlated with performance. However, deploying massive models on resource-constrained edge devices necessitates compression techniques like pruning and quantization. Traditionally, the success of these techniques is measured by top-1 accuracy: if a model loses 90% of its weights but only 1% of its accuracy, the compression is deemed successful.

This paper argues that aggregate metrics are deceptive. They mask a "disparate impact" where errors are not distributed uniformly. Instead, compressed models "forget" specific types of data—often the most difficult or critical edge cases. If these forgotten examples belong to sensitive classes, the model becomes unreliable in ways that top-line metrics fail to capture.

Methodology

The researchers audited model compression using two primary techniques:

  1. Weight Pruning: Removing weights with the smallest magnitudes during training to introduce sparsity.
  2. Quantization: Reducing weight precision (e.g., from 32-bit floats to 8-bit integers) post-training.

To ensure statistical significance, they trained populations of over 30 independent runs for each configuration. They introduced a framework to identify Pruning Identified Exemplars (PIEs)—images where compressed model predictions consistently diverge from the original dense "teacher" model. A human study with 85 participants was also conducted to qualitatively categorize these PIEs.

The study utilized several benchmarks: ImageNet (ResNet-50), CIFAR-10 (Wide ResNet), and CelebA (ResNet-18). Robustness was further tested using ImageNet-C (corruptions) and ImageNet-A (adversarial examples).

Key Insights: The Nature of PIEs

The "excess capacity" in large models appears to be dedicated to memorizing the "long tail" of the data distribution. When compressed, models sacrifice these difficult examples to maintain performance on the "easy" majority.

Comparison of Non-PIE (typical) and PIE (atypical/hard) images across classes like matchstick, cloak, and stretcher.

As shown in the figure above, PIEs are not random. They are systematically more likely to be:

  • Atypical representations: For example, a "cloak" represented by a Star Wars figurine rather than a person in a traditional garment.
  • Mislabeled or ambiguous: PIEs were twice as likely to have incorrect ground-truth labels (20% vs 9% for non-PIEs).
  • Complex or noisy: They often contain multiple objects or significant image corruption.

Results and Impact

The performance gap on PIEs is stark. On ImageNet, while 90% pruning resulted in only a ~4% drop in overall accuracy, accuracy on the PIE subset plummeted from 76.75% to 39.81%. Conversely, removing PIEs from the test set actually increased the baseline accuracy of the model, confirming that these images represent the most challenging portion of the dataset.

Furthermore, the study found that pruning causes a much higher disparate impact than quantization. This suggests that the structural existence of a connection is more vital for processing difficult examples than the numerical precision of its weight. Compressed models also proved significantly more brittle to distribution shifts; at 90% sparsity, accuracy on images with "impulse noise" dropped by over 40%.

Conclusion

While model compression is essential for deployment, it is not a "free lunch." It incurs a "robustness tax" by selectively forgetting the long-tail of the distribution. Future work should move beyond chasing top-1 accuracy and focus on compression techniques that optimize for fairness and robustness. Additionally, the identification of PIEs serves as a powerful tool for data cleaning, helping researchers identify mislabeled or problematic samples in large-scale datasets.

Summary updated

BibTeX
@misc{hooker2019what,
  author = {Sara Hooker and Aaron Courville and Gregory A. Clark and Yann Dauphin and Andrea Frome},
  title = {{What Do Compressed Deep Neural Networks Forget?}},
  year = {2019},
  eprint = {1911.05248},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1911.05248},
}
Figure