Sparse Double Descent in Vision Transformers: Real or Phantom Threat?

Victor Quétu, Marta Milovanovic, Enzo Tartaglione

Abstract

Vision Transformers (ViTs) have revolutionized computer vision, yet their behavior under extreme pruning remains less understood than that of traditional Convolutional Neural Networks (CNNs). This paper investigates "Sparse Double Descent" (SDD) in ViTs—a phenomenon where model performance paradoxically degrades at intermediate sparsity levels before recovering. We demonstrate that SDD is a genuine threat to ViTs, particularly in the presence of label noise. However, we also show that optimal $\ell_2$ regularization can effectively mitigate this dip, albeit at the cost of reduced model compressibility.

Introduction

In classical statistics, the "bias-variance trade-off" suggests that as model complexity increases, generalization performance eventually degrades due to overfitting. However, modern deep learning often defies this rule through a phenomenon known as Double Descent. Here, increasing model size beyond the "interpolation threshold"—the point where the model can perfectly fit the training data—actually leads to improved test performance.

Sparse Double Descent (SDD) is the pruning-based analog of this phenomenon. As a large, over-parametrized model is pruned (increasing its sparsity), performance often drops sharply at an intermediate stage (the "critical region") before potentially recovering at higher sparsity levels. While well-documented in CNNs like ResNet, it was previously unclear if Vision Transformers—which lack the strong spatial inductive biases of CNNs—suffered the same fate. This research investigates whether SDD is a "real or phantom threat" for ViT architectures.

Understanding Sparse Double Descent

To understand SDD, one must look at how accuracy evolves as a function of model sparsity. In the initial stages of pruning, models often maintain or slightly improve performance as redundant parameters are removed (the overfit region). However, as pruning continues, the model enters a critical region where it can no longer effectively represent the underlying data distribution while simultaneously attempting to "memorize" noise, leading to a significant performance dip.

Conceptual illustration of the Sparse Double Descent phenomenon, showing the overfit, critical, and underfit regions.

Methodology

The researchers employed a systematic approach to detect and analyze SDD in ViTs:

  1. Iterative Pruning: Using a procedure called DETECT_SDD, the team started with a dense model and performed unstructured magnitude-based pruning. After each pruning step, the model was retrained, and its performance was recorded up to extreme sparsity levels (99.99%).
  2. Noise Injection: SDD is most prominent when models are forced to memorize noise. To trigger the phenomenon, the researchers introduced varying levels of symmetric label noise ($\epsilon = 10\%, 20\%, 50\%$) into standard training sets.
  3. Regularization Ablation: An extensive study on the $\ell_2$ regularization parameter ($\lambda$) was conducted, testing values from $0.0001$ to $5.0$ to determine if weight decay could "smooth out" the performance dip.
  4. Datasets: The study utilized CIFAR-10, CIFAR-100, and CIFAR-100N. The latter is particularly significant as it contains real-world human-annotated noisy labels, proving that SDD is not merely an artifact of synthetic noise.

Empirical Evidence in Vision Transformers

The experimental results confirm that ViTs are indeed vulnerable to SDD. As shown in the empirical data for ViT on CIFAR-10, a clear "bump" or dip in test accuracy occurs at intermediate sparsity levels (typically around 90-95% sparsity), especially as the noise level $\epsilon$ increases.

Empirical evidence of Sparse Double Descent in ViTs trained on CIFAR-10 with varying levels of label noise. Note the significant accuracy dip at intermediate sparsity.

Interestingly, the researchers found that because ViTs lack the strong internal inductive biases of CNNs, they are more flexible and responsive to external regularization. While previous CNN research suggested that $\ell_2$ regularization struggled to stop SDD, this study found that for ViTs, an optimally-tuned $\lambda$ (around 1.0) can completely eliminate the SDD phenomenon, resulting in a monotonic performance curve.

The "No Free Lunch" of Compression

While regularization serves as an effective antidote to SDD, it introduces a fundamental trade-off. Strong regularization forces weights to have less variance, making the distribution more uniform. While this prevents the model from memorizing noise and thus avoids the SDD dip, it also makes the model "less compressible." In these robust models, more parameters remain relevant to the output, meaning they cannot be pruned to the same extreme levels as their less-regularized counterparts without eventually losing accuracy.

Conclusion

Sparse Double Descent is a real threat to Vision Transformers, particularly when training data is imperfect or noisy. However, unlike in CNNs, this threat can be effectively neutralized in ViTs through careful tuning of weight decay. This highlight's the ViT's unique relationship with regularization: its lack of inductive bias makes it more susceptible to noise-driven performance dips but also more capable of being "steered" toward stability via external constraints. Future work will explore if these findings scale to foundation-level models trained on massive datasets like ImageNet-21k.

Summary updated

BibTeX
@inproceedings{quetu2023sparse,
  author = {Victor Quétu and Marta Milovanovic and Enzo Tartaglione},
  title = {{Sparse Double Descent in Vision Transformers: Real or Phantom Threat?}},
  booktitle = {ICIAP},
  year = {2023},
  doi = {10.1007/978-3-031-43153-1\_41},
}
Figure