Class-wise Activation Unravelling the Engima of Deep Double Descent

Yufei GuarXiv 2024 · DOI

Abstract

Deep Double Descent challenges the classical bias-variance trade-off by showing that test error can decrease as model complexity increases beyond the interpolation threshold. This paper investigates this phenomenon through Class Activation Matrices (CAMs) and internal feature analysis. We find that over-parameterization leads to simpler, more distinct class representations that effectively isolate noisy data, preventing it from corrupting decision boundaries and explaining why larger models generalize better.

1. Introduction

In classical statistical learning, the bias-variance trade-off suggests a U-shaped error curve: as model complexity increases, bias decreases but variance increases, leading to overfitting. However, modern deep learning often exhibits "Double Descent." After the initial U-curve, increasing model size past the interpolation threshold—the point where the model perfectly fits the training set—results in a second drop in test error. This paper probes the internal mechanisms of neural networks to explain why larger models generalize better despite their capacity to memorize noise.

2. Methodology: Probing the Learned Feature Space

To analyze the transition from under-parameterized to over-parameterized regimes, we introduce several empirical techniques to track how internal activations change:

  • Class Activation Matrices (CAMs): Defined as the mean outer product of activations between two layers for a specific class, these matrices represent the information "pathways" for that class.
  • Cosine Similarity Analysis: By measuring the similarity between CAMs of different classes, we track how "tangled" or "distinct" class representations become as models scale.
  • Activation Richness: A data-dependent metric inspired by Rademacher complexity that estimates the "richness" or fluctuation of hidden representations.
  • k-Nearest Neighbor (k-NN) Interpolation: This technique evaluates how noisy samples are situated within the final feature space relative to "clean" samples to determine if noise "bleeds" into decision boundaries.

Experiments were conducted on MNIST and CIFAR-10 datasets, with explicit label noise (10% to 60%) introduced to amplify the double descent effect.

3. The Mechanism of Noise Isolation

Our analysis reveals that the "richness" or complexity of internal activations peaks exactly at the interpolation threshold—the point of highest test error. Beyond this point, in the over-parameterized regime, internal complexity actually decreases.

A critical finding is Noise Isolation. While large models memorize noisy labels, these noisy samples are isolated in the feature space. In the final hidden layers, a noisy image is typically surrounded by clean images of its true class rather than its labeled class. Consequently, the "memorized" noise does not bleed into the decision boundaries for unseen data. Larger models do not necessarily learn more complex functions; instead, they develop more distinguishable and simpler activation patterns for each class, leading to lower variance.

4. Key Results

  • MNIST Performance: Without noise, test error remains monotonic. With 10-20% noise, a distinct peak appears at model width $k \approx 15-20$, followed by a second descent.
  • CNN vs. ResNet: On CIFAR-10, both standard CNNs and ResNet18s exhibit double descent. Interestingly, under high noise conditions, over-parameterized CNNs outperformed ResNets by approximately 5%, suggesting that architectural features like residual connections influence how noise is interpolated.
  • P-Curve Alignment: The accuracy of noisy data based on its clean neighbors (the P-curve) perfectly mirrors the test accuracy curve, confirming that generalization is directly tied to the isolation of noisy samples in the feature space.

5. Discussion and Limitations

This study provides empirical evidence that over-parameterization facilitates a "simplicity through size" effect. By isolating noise and simplifying class-specific pathways, larger models mitigate the variance typically associated with high complexity.

However, several limitations remain. The findings are primarily empirical and lack a formal causal proof. Future work should extend this analysis to Transformers and Large Language Models (LLMs) to determine if these scaling laws share the same internal logic. Additionally, adapting the CAM framework for regression tasks and exploring alternative matrix similarity metrics could provide further nuances into the nature of deep learning generalization.

Summary updated

BibTeX
@misc{gu2024class,
  author = {Yufei Gu},
  title = {{Class-wise Activation Unravelling the Engima of Deep Double Descent}},
  year = {2024},
  eprint = {2405.07679},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2405.07679},
}
Figure