Abstract
A major factor in the success of deep neural networks is the use of sophisticated architectures rather than the classical multilayer perceptron (MLP). Residual networks (ResNets) stand out among these powerful modern architectures. Previous works focused on the optimization advantages of deep ResNets over deep MLPs. In this paper, we show another distinction between the two models, namely, a tendency of ResNets to promote smoother interpolations than MLPs. We analyze this phenomenon via the neural tangent kernel (NTK) approach. First, we compute the NTK for a considered ResNet model and prove its stability during gradient descent training. Then, we show by various evaluation methodologies that for ReLU activations the NTK of ResNet, and its kernel regression results, are smoother than the ones of MLP. The better smoothness observed in our analysis may explain the better generalization ability of ResNets and the practice of moderately attenuating the residual blocks.
Introduction
Residual Networks (ResNets) revolutionized deep learning by enabling the training of extremely deep architectures. While their success is traditionally attributed to "easier optimization"—specifically the mitigation of vanishing gradients—this research suggests a more fundamental architectural bias: ResNets are mathematically predisposed toward learning smoother functions than standard Multi-Layer Perceptrons (MLPs).
In deep learning, models must balance fitting training data with the ability to generalize to unseen examples. Deep MLPs often produce highly oscillatory or "edgy" functions that overfit noise. By investigating the nature of the functions learned by these networks, this study demonstrates that the ResNet architecture inherently favors smoother mappings from input to output, providing a theoretical basis for their superior generalization.
Theoretical Framework: The Neural Tangent Kernel
To analyze these architectures, the researchers employ the Neural Tangent Kernel (NTK) framework. The NTK describes the evolution of an infinitely wide neural network during gradient descent as a linear kernel regression.
The study provides two primary theoretical contributions:
- NTK Derivation: The authors derive exact mathematical formulas for the NTK of a ResNet where residual blocks are weighted by a hyperparameter $\alpha$.
- Stability Proof: They prove that the ResNet NTK remains stable during training, justifying the use of kernel theory to analyze deep residual architectures.
Quantifying Smoothness
To move beyond visual intuition, the paper introduces a quantitative metric, $\mu(f)$, which calculates the $L^2$-norm of a function's second derivative using Fourier transforms. A lower $\mu$ value indicates a smoother function with fewer oscillations. Additionally, the authors analyze the "input-output Jacobian" to determine how much the network's output fluctuates in response to minor input perturbations.
Experimental Methodology
The theory was validated using both synthetic and real-world datasets:
- Synthetic Manifolds: Periodic functions sampled on circles ($R^2$) and spheres ($R^3$) were used to visualize how kernels interpolate between data points.
- MNIST Classification: A binary classification task (distinguishing "0" from "8") was used to demonstrate how theoretical smoothness translates to practical accuracy on image data.
Key Insights
The Role of the Weighting Factor ($\alpha$)
The weighting factor $\alpha$ for the residual branch acts as a "smoothness knob." The authors found that moderately attenuating the residual block (e.g., $\alpha = 0.1$) significantly increases the smoothness of the resulting model. This suggests that the common practice of scaling down residual branches has a rigorous theoretical benefit.
Architecture as Implicit Regularizer
Even in the absence of explicit regularization like weight decay, the skip-connection structure of a ResNet biases the model toward simpler, smoother functions. This inherent inductive bias is most prominent when using non-smooth activation functions like ReLU. Interestingly, when smooth activations (such as the error function erf) are used, the smoothness gap between MLPs and ResNets diminishes, suggesting that ResNets are particularly effective at "taming" the non-smoothness of ReLU.
Depth Without Complexity Penalties
In standard MLPs, increasing depth typically forces the learned function to become more complex and erratic. In ResNets with small $\alpha$, the model can gain depth to increase expressivity without sacrificing the smoothness necessary for generalization.
Results
- Smoothness Gap: In 2D interpolation experiments, the ResNet NTK (with $\alpha=0.1$) achieved a smoothness score of $\mu \approx 15.5$. In stark contrast, the equivalent MLP NTK score exploded to $\mu \approx 14,700$, indicating extreme oscillation.
- Generalization: On the MNIST "0 vs 8" task, a 30-layer ResNet ($\alpha=0.1$) achieved 99.1% accuracy, significantly outperforming the 96.45% accuracy of the equivalent MLP.
- Empirical Consistency: These findings held true not only in the theoretical infinite-width limit but also for practical, finite-width networks trained with standard optimizers like Adam and SGD.
Conclusion and Future Work
This research provides a new lens through which to view the success of ResNets: they are not just easier to train, but they are architecturally biased toward smoothness. While this study focuses on fully connected layers within the NTK regime, future work may extend these proofs to Convolutional ResNets and Transformers. Additionally, while small $\alpha$ values promote smoothness, extremely small values can hinder trainability; identifying the optimal "sweet spot" for this parameter remains a key area for architectural refinement.
Summary updated