← All questions
LLM FoundationsMedium· Residual Connections· Gradient Propagation

Why is the residual connection important? What breaks w...

Without the additive skip connection, the gradient at a layer involves a product of many Jacobians that collapses to near-zero as the depth increases. The residual connection provides a direct gradient path of approximately ones from the top of the network to every earlier layer, ensuring stable training at depth.

Code playground (Python)