Residuals' Core Defense: Stable Gradient Flow

ResNet's identity skip connections ensure a stable gradient flow, preventing vanishing gradients in very deep networks. This mechanism helps to create a smoother loss landscape, which is crucial for training models that are more robust to adversarial attacks.

The top 3

  1. Residual Connection: Identity Mapping's Role: The direct 'shortcut' or 'identity mapping' adds the input x to the output F(x) of a few stacked layers, ensuring gradients can flow unimpeded directly back to earlier layers.
  2. Vanishing/Exploding Gradients: ResNet's Core Fix: By providing alternative paths for gradients, residual blocks effectively mitigate the vanishing and exploding gradient problems that plague very deep neural networks, enabling stable training.
  3. Smoother Loss Landscape: Adversarial Defense Boost: Stable gradient flow contributes to a smoother loss landscape, which makes the model less susceptible to small adversarial perturbations that exploit sharp changes in the loss function.

Sources

Open the full topic