Abstract
This paper investigates the internal stability of pre-trained Residual Networks (ResNets) by treating them as nonlinear dynamical systems. Through linearization and Singular Value Decomposition (SVD) of layer-wise Jacobians, we identify a characteristic "plateau" of singular values at unity, a direct consequence of the skip-connection architecture. Our analysis reveals that while ResNets maintain marginal stability across most layers, adversarial perturbations specifically exploit localized instabilities in the final stages of the network.
Introduction
Deep neural networks, particularly ResNets, have achieved state-of-the-art performance in computer vision. However, their internal dynamics remain poorly understood. Traditional stability analysis often focuses on the training phase; this study shifts the focus to the inference phase of pre-trained models. By viewing a ResNet as a discrete-time dynamical system, we can quantify how perturbations—whether random noise or adversarial attacks—propagate through the network's layers.
Methodology: Linearization and SVD
A ResNet can be described by the state equation $x_{k+1} = x_k + f(x_k, W_k)$, where $x_k$ is the input to the $k$-th residual unit. To analyze local stability, we linearize the system around a specific input image $x^*$ using the Jacobian matrix $J_k = \frac{\partial x_{k+1}}{\partial x_k} = I + \frac{\partial f}{\partial x_k}$.
The stability of each unit is determined by the singular values ($\sigma$) of $J_k$:
- $\sigma > 1$: The unit is unstable, amplifying perturbations in certain directions.
- $\sigma < 1$: The unit is stable, dampening perturbations.
- $\sigma = 1$: The unit is marginally stable.
We apply this analysis to ResNet-56 and ResNet-110 architectures pre-trained on the CIFAR-10 dataset.
Key Findings
The Plateau of Unity
A defining feature of ResNet stability is the "plateau" in the singular value spectrum. For the majority of residual units, a significant portion of the singular values are exactly 1. This is a mathematical artifact of the identity skip connection ($I$ in the Jacobian). This property ensures that the network remains marginally stable, preventing the vanishing or exploding gradient problems during forward propagation.
Input Independence
While the Jacobian matrix is technically a function of the input image, the distribution of its singular values remains remarkably consistent across different images. This suggests that the stability profile is an intrinsic property of the network's architecture and learned weights, rather than a response to specific visual features.
Adversarial Alignment and the Final Stage Jump
The effectiveness of adversarial attacks, such as the Fast Gradient Sign Method (FGSM), can be explained through this lens. While random noise is isotropic and largely falls into stable or marginally stable subspaces, adversarial perturbations are specifically constructed to align with the few unstable directions ($\sigma > 1$).
Our analysis shows a dramatic "explosion" in perturbation magnitude in the final units of the third stage. In these layers, the adversarial noise aligns increasingly with the top singular vectors of the Jacobian, exploiting the network's hyper-sensitivity just before the classification layer.
Conclusion
By applying nonlinear systems theory to ResNets, we gain a clearer picture of their internal mechanics. The skip-connection architecture enforces a baseline of marginal stability, but localized instabilities in the final layers provide a gateway for adversarial exploitation. This framework offers a promising path toward designing more robust architectures by explicitly controlling the singular value spectra of network layers.
Summary updated