KatInterview

Optimization Dynamics: Learning Rates and Gradient Flow

Machine LearningModel answer
EasyModel answerMachine Learningoptimizationgradientsdeep-learning

Last updated

Explain how learning rate magnitude affects training stability and why gradient attenuation disproportionately impacts early layers in deep networks.

You are preparing a deep neural network for production and need to understand two fundamental training phenomena.

Part 1: Learning Rate and Training Dynamics

Explain why training loss and accuracy exhibit noisy, oscillating behavior when the learning rate is set too high. What are the consequences of choosing a learning rate that is too low?

Part 2: Gradient Attenuation in Deep Architectures

Consider a deep feedforward network trained with backpropagation. Are gradients more likely to become vanishingly small in layers near the network's input or near its output? Provide a mechanistic explanation and describe at least three techniques to address this phenomenon.

Your answers should demonstrate understanding of the underlying mechanics, not just surface-level descriptions.

Hints

Hint 1

For Part 1, think about what happens geometrically when an update step overshoots the loss minimum

Hint 2

The chain rule determines how gradients flow backward—consider what happens to a product of many terms each less than one

Hint 3

Modern architectures like ResNets specifically address gradient flow; understanding why they work reveals the problem they solve