Introduction
This paper bridges the gap between numerical analysis and deep learning by showing that the adversarial vulnerability of ResNets is linked to the numerical instability of the "explicit Euler" method. By redesigning skip connections to follow an Implicit Euler scheme (IE-Skips), the authors create a more stable network architecture that significantly improves robustness against adversarial attacks with zero additional parameters.
The Problem: Fragility and Explicit Euler
Deep neural networks, particularly Residual Networks (ResNets), are notoriously fragile. Small, human-imperceptible perturbations to an input (adversarial attacks) can cause the model to flip its prediction entirely.
While many researchers focus on better training methods (like adversarial training), fewer look at the architecture itself. The authors point out that a standard ResNet block—$x_i = x_{i-1} + f(x_{i-1})$—is mathematically equivalent to an explicit Euler discretization of an Ordinary Differential Equation (ODE). In the world of physics and math, explicit Euler is known for being numerically unstable: small errors at the start can explode as you move through the steps. The authors argue that this inherent instability is exactly why ResNets are so sensitive to input noise.
The Solution: Implicit Euler Skip Connections (IE-Skips)
The authors propose Implicit Euler Skip Connections (IE-Skips). In a standard (explicit) skip connection, the next state depends only on the previous state. In an implicit scheme, the next state $x_i$ is defined such that it satisfies: $$x_i = x_{i-1} + f(x_i)$$ Because $x_i$ appears on both sides, this is an algebraic equation that usually can't be solved directly. To implement this in a neural network, the authors use a non-linear least squares optimization.
- Initialization: They start with a standard ResNet forward pass to get an initial guess for $x_i$.
- Refinement: They run $K$ steps of gradient descent (the "inner iterations") to "rectify" the output so it satisfies the implicit Euler condition.
- Backpropagation: The entire process is differentiable, allowing the model to be trained end-to-end.
This architecture, called IE-ResNet, essentially "unfolds" an implicit solver into the network layers.
Key Insights
- Stability $\approx$ Robustness: The formal connection between numerical stability (how an ODE solver handles error) and adversarial robustness (how a network handles input noise) is a core insight. If a numerical scheme is stable, the "perturbation" of the input won't explode as it propagates through the layers.
- C-Stability: The authors define "C-stability" for neural networks. If a network is C-stable, the impact of a small adversarial perturbation will either shrink or stay the same during the forward pass, rather than growing.
- Implicit is Better: In numerical math, the Implicit Euler method is "unconditionally stable," meaning it can handle much larger steps/noise than the explicit version. The paper theoretically proves that IE-ResNets have a higher probability of satisfying robustness conditions than vanilla ResNets.
- No Extra Parameters: Unlike adding more layers or wider channels, IE-Skips improve the model by changing the logic of the connection, not by adding more weights.
Key Results
The authors evaluated their approach on standard computer vision benchmarks, including MNIST, CIFAR-10, and CIFAR-100, against popular adversarial attacks like FGSM, PGD, and C&W.
- Natural vs. Robust Accuracy: On MNIST, IE-ResNet-3-18 achieved 92.27% robust accuracy under FGSM attacks, compared to 88.45% for a standard ResNet-18, while maintaining nearly identical natural accuracy.
- Scaling to Large Models: When applied to WideResNet-34-10 using the TRADES training method, the IE version improved PGD-20 robust accuracy from 55.50% to 58.06% and C&W accuracy from 61.62% to 66.25%.
- The "Implicit" Trade-off: Increasing the number of inner iterations ($K$) directly correlates with higher robust accuracy. For example, moving from $K=1$ to $K=5$ showed a sharp increase in the model's ability to resist PGD attacks.
Limitations and Future Work
- Computational Cost: The primary drawback is speed. Because each IE-Skip requires an inner optimization loop of $K$ steps, the training and inference time is roughly $K+1$ times slower than a standard ResNet.
- Optimization Sensitivity: The method relies on the inner gradient descent loop converging. The authors chose fixed hyperparameters, but different architectures might require more tuning.
- Future Directions: The authors suggest looking for more efficient "implicit" architectures that provide the same stability benefits without the heavy computational overhead of the inner iteration loop. They also note that this perspective could be applied to other architectures beyond the Residual Network family.
Summary updated