Stochastic Depth is a regularization method that trains very deep residual networks faster and better by randomly skipping the entire transformation of residual blocks during training. Huang and colleagues presented it at ECCV in 2016. Today it is also widely known as DropPath (the origin of that name is explained in a later section).
Networks with hundreds of stacked layers, such as ResNet, are highly expressive, but training them faces three difficulties.
- Vanishing gradients: As the error is propagated back toward the input, the gradient keeps shrinking (the vanishing gradient problem).
- Diminishing features: Even in the forward computation, the input and earlier-layer features fade as they are multiplied by weights again and again.
- Long training time: Computation grows in proportion to the number of layers.
Shallow networks are easy to train but lack expressive power. So the paper proposed a seemingly contradictory combination: shallow during training, deep during inference. It starts with a deep residual network and, during training, picks some blocks for each mini-batch and skips their transformations. In a skipped block, only the identity shortcut (skip connection), which passes the input on unchanged, remains. At inference, all blocks are used.
It is like a team that rests a few members at every practice and plays short-handed, then enters the real game with everyone present. Each member is trained to keep things running no matter who is absent, and in the real game the whole team's strength is combined. Whereas Dropout drops units to make the network "thinner," Stochastic Depth drops blocks to make it "shorter."

