Explain the vanishing gradient problem in the context of deep networks and how modern architectures mitigate it.