2 ms·
Interestingly, Transformer has already used residual connections before. The new part here is to actually not use the standard residual connections anymore but
by albertzeyer 5y ago
Interestingly, Transformer has already used residual connections before. The new part here is to actually not use the standard residual connections anymore but normalize after every layer (including the residual connection), and also have a factor on the residual connection. So you don't have a direct pathway anymore.
The argument is that otherwise, the gradient magnitude for the lower layers becomes too big. Which intuitively makes sense, because due to the residual connections, all error signals from the upper layers will end up at the lower layers.
I wonder why this is apparently not a problem for ResNet.
- orbifold 5y agoThis moves it closer to a "temporal" integration as well. Since the factor on the residual branch can be considered a timestep in an Euler-discretization.