3.4.9 · HinglishConvolutional Neural Networks

ResNet and skip connections

2,021 words9 min readRead in English

3.4.9 · AI-ML › Convolutional Neural Networks

Overview

Residual Networks (ResNet) ne deep learning mein revolution la diya tha, kyunki inhone degradation problem ko solve kiya—yeh ek aisa counterintuitive observation tha ki deeper networks shallow ones se bhi worse perform kar sakti hain, training data par bhi. Iska key innovation hai skip connections (ya residual connections), jo gradients ko directly network ke through flow karne deta hai.

Figure — ResNet and skip connections

Core Problem: The Degradation Paradox

The Residual Learning Solution

Intuition: Function Nahi, Delta Seekhna

Mathematical Formulation

Gradient Flow Analysis

ResNet Architecture Details

Common Configurations

Model Layers Blocks Parameters Top-5 Error
ResNet-18 18 Basic 11.7M 10.76%
ResNet-34 34 Basic 21.8M 10.12%
ResNet-50 50 Bottleneck 25.6M 7.13%
ResNet-101 101 Bottleneck 44.6M 6.44%
ResNet-152 152 Bottleneck 60.2M 6.16%

Worked Examples

Common Mistakes and Misconceptions

Concept Map

expected

actually causes

caused by

caused by

worsened by

distinct from

solves

uses

forms

learns

easier when

lets flow

Deeper networks

Better performance

Degradation problem

Vanishing gradients

Optimization difficulty

Sigmoid tanh grads < 1

Overfitting

ResNet

Skip connections

Residual block y = F x + x

Residual F x = H x - x

H x approx identity

Gradients flow directly