Abstract: Recent works demonstrated the existence of a double-descent phenomenon for the generalization error of neural networks, where highly overparameterized models escape overfitting and achieve good test performance, at odds with the standard bias-variance trade-off described by statistical learning theory. In the present work, we explore a link between this phenomenon and the increase of complexity and sensitivity of the function represented by neural networks. In particular, we study the Boolean mean dimension (BMD), a metric developed in the context of Boolean function analysis. Focusing on a simple teacher-student setting for the random feature model, we derive a theoretical analysis based on the replica method that yields an interpretable expression for the BMD, in the high dimensional regime where the number of data points, the number of features, and the input size grow to infinity. We find that, as the degree of overparameterization of the network is increased, the BMD reaches an evident peak at the interpolation threshold, in correspondence with the generalization error peak, and then slowly approaches a low asymptotic value. The same phenomenology is then traced in numerical experiments with different model classes and training setups. Moreover, we find empirically that adversarially initialized models tend to show higher BMD values, and that models that are more robust to adversarial attacks exhibit a lower BMD.
Introduction
In modern deep learning, the "double descent" phenomenon challenges classical statistical learning theory. As model capacity increases, test error typically decreases, then spikes sharply at the "interpolation threshold"—the point where the model just barely fits the training set perfectly—before decreasing again in the overparameterized regime. While this behavior is well-documented, the underlying mechanisms driving the failure at the interpolation threshold remain partially obscured. This research investigates whether this generalization failure is fundamentally tied to the complexity and sensitivity of the learned function. Specifically, we ask: Does the model become hyper-sensitive to small input changes exactly when it struggles to generalize?
Measuring Sensitivity: The Boolean Mean Dimension
To quantify function complexity, we utilize the Mean Dimension (MD), a concept derived from ANOVA expansions in statistics that measures the average order of interactions between input variables. However, calculating MD is computationally prohibitive for high-dimensional neural networks. To address this, we propose the Boolean Mean Dimension (BMD) as a tractable proxy. BMD measures sensitivity by observing the variance in the network's output when individual bits of a binary input are flipped.
Analytical and Numerical Methodology
Our approach combines rigorous theoretical derivation with broad empirical validation:
- Analytical Derivation: Using the replica method from statistical physics, we derive an exact expression for the BMD of a Random Feature Model (RFM) in the high-dimensional limit. This allows us to predict sensitivity behavior as the number of data points, features, and input dimensions scale to infinity.
- Monte Carlo Estimation: For complex architectures like ResNets, where analytical solutions are unavailable, we employ efficient Monte Carlo sampling to estimate BMD.
- Sensitivity Analysis: We compare BMD curves against generalization error curves across varying levels of regularization and label noise to identify correlations.
The "Twin Peaks" Phenomenon
The core discovery of this work is the "twin peak" behavior: the peak in generalization error and the peak in BMD occur at the exact same point of overparameterization. This synchronization suggests that poor generalization at the interpolation threshold is not merely a failure of fit, but a manifestation of the model becoming "jittery" and overly sensitive to input noise.
Key Findings
- RFM Validation: The analytical formula for BMD in Random Feature Models matches numerical experiments with high precision, confirming the theoretical link between sensitivity and the interpolation threshold.
- Architectural Universality: The twin peak phenomenon is not limited to linear models; it is consistently observed in multi-layer perceptrons (MLPs) and convolutional architectures such as ResNet-18 trained on MNIST and CIFAR-10.
- Impact of Noise: Adding label noise to the training set exacerbates the BMD peak, mirroring the way noise heightens the generalization peak in double descent.
- Robustness and Initialization: We find that BMD strongly anti-correlates with adversarial robustness. Models initialized "adversarially" (pre-trained on random labels) exhibit significantly higher BMD and poorer generalization, suggesting that high sensitivity is a hallmark of fragile models.
Implications for Diagnostics and Training
One of the most promising aspects of BMD is its potential as a data-free diagnostic tool. Unlike generalization error, which requires a labeled test set, BMD can be estimated using random binary sequences. This allows practitioners to detect if a model is sitting at a dangerous interpolation threshold or is prone to overfitting using only the model itself.
Furthermore, the correlation between sensitivity and performance suggests that BMD could be integrated into the training process. By explicitly penalizing the Mean Dimension through regularization, it may be possible to force networks to learn simpler, more robust functions that generalize better in the overparameterized regime.
Limitations and Future Work
While this work establishes a strong link between sensitivity and generalization, several challenges remain. The rigorous theoretical analysis is currently focused on the Random Feature Model and two-layer networks; extending the replica method to deeper, non-linear architectures is a complex task for future research. Additionally, the current BMD proxy assumes independent and identically distributed (i.i.d.) inputs, whereas real-world data often resides on complex, highly correlated manifolds. Future iterations of this metric will need to account for these data structures to provide even more accurate diagnostics for production-level models.
Summary updated