CMU Introduction To Deep Learning 11-785, Fall 2026: Lecture 6
Overview
The lecture connects backpropagation and gradient descent to the practical problems of optimizing neural-network losses: a differentiable proxy can favor stability over perfect training-set classification, while nonconvex landscapes and uneven curvature can slow or destabilize optimization. It derives learning-rate behavior for one- and multiple-variable quadratics, then motivates per-parameter updates with Rprop, Quickprop, momentum, and Nesterov’s accelerated method.
Key takeaways
- Backpropagation is a chain-rule procedure: derivatives propagate backward through activation Jacobians and weight matrices, while gradient descent uses those derivatives to update parameters.
- A smooth proxy loss can prefer a stable classifier over a perfect separator: one outlier may barely shift a gradient-trained boundary even when the perceptron boundary changes substantially.
- For a one-dimensional quadratic with curvature a, gradient descent converges when 0 < η < 2/a and reaches the minimum in one step at η = 1/a.
- When curvature differs sharply across dimensions, one shared learning rate can diverge along a steep direction or make progress extremely slowly along a shallow one.
- Rprop adapts each parameter’s step size using gradient-sign consistency, while momentum averages successive updates to cancel oscillations and preserve steady progress.
- Nesterov momentum evaluates the gradient after a β-scaled lookahead step, an ordering presented as faster than standard momentum on the lecture’s example.
Chapters
- Empirical risk minimization minimizes average loss over observed training examples rather than an unknown full data distribution.
- Backpropagation computes derivatives of the loss with respect to network parameters; it is not itself the training algorithm.
- Gradient descent updates parameters opposite the loss gradient, which indicates how parameter changes affect the loss.
- The forward computation alternates affine operations, such as zᵢ = Wᵢyᵢ₋₁, with activation operations, yᵢ = f(zᵢ).
- Moving backward through an activation multiplies by its Jacobian, while moving through an affine layer multiplies by its weight matrix.
- Starting from the derivative of the divergence with respect to the network output, repeated chain-rule applications produce gradients at earlier layers.
- A weight gradient includes the input to that weight and the derivative arriving at its output.
- Backpropagation supplies derivatives for gradient-based training, but it does not guarantee that optimization will find the desired classifier.
- The lecture turns to three questions: whether backpropagation finds the intended solution, whether gradient descent converges, and how its updates can be changed.
- A hard 0-or-1 classifier gives little directional information when its threshold moves, so training uses a continuously varying proxy loss.
- In the illustrated separable-data example, the perceptron rule can find a separating boundary, while proxy-loss gradient descent may barely react to a single distant point.
- A solution can be representable by the network yet not be an optimum of the differentiable loss being minimized.
- Adding one training point can substantially change a perceptron boundary, illustrating low bias but high variance.
- Gradient descent on a smooth proxy may tolerate a difficult point and change the boundary only slightly, making the result more stable.
- The trade-off is consistency at the possible cost of bias: minimizing a differentiable loss does not necessarily minimize classification error.
- Large neural networks have complicated, nonconvex loss surfaces with many candidate minima and saddle points.
- A saddle is locally maximal in some directions and minimal in others, so a near-zero gradient does not necessarily indicate a useful solution.
- The lecture presents similar loss values at many large-network local minima as a hypothesis, not a guarantee, and notes that small networks are less understood.
- A function is convex when every straight line between two points on its graph lies on or above the graph; a set is convex when line segments between its points stay inside it.
- Convex optimization offers clearer guarantees about minima than neural-network loss surfaces.
- Optimization trajectories can converge, jitter around a solution, or diverge, depending on the update rule and step size.
- For f(x) = ½ax² + bx + c with a > 0, setting f′(x) = ax + b to zero gives the minimum at x* = −b/a.
- Gradient descent on this quadratic reaches the minimum in one step when the learning rate is 1/a.
- A learning rate between 0 and 2/a converges, while a rate greater than 2/a causes divergence; rates above 1/a overshoot and oscillate.
- For a two-variable quadratic, steep and shallow directions require different learning rates.
- The lecture’s example uses curvature values of 300 and 1: a rate suitable for the shallow direction can diverge along the steep one.
- Choosing a rate safe for the steep direction makes progress in the shallow direction extremely slow, producing elongated elliptical level sets and zigzagging updates.
- A local quadratic approximation extends the curvature analysis to general functions, with the Hessian representing second derivatives.
- Gradient descent works fastest when curvature is similar across directions; a large ratio between the steepest and shallowest curvatures makes optimization harder.
- A single shared learning rate must remain safe for the steepest direction, even when that makes other directions converge slowly.
- A large learning rate can help escape a nearby local minimum, but keeping it above the convergence bound causes continued oscillation or divergence.
- The proposed compromise is to begin with a large step and reduce it over iterations so updates can eventually settle near a minimum.
- The lecture names linear, inverse-iteration, quadratic, and exponential decay, and also describes reducing the rate when loss stagnates.
- Scaling each direction by its curvature can turn elongated contours into more uniform, circle-like contours and improve gradient-descent behavior.
- Newton’s method and BFGS are described as using the inverse Hessian, or an approximation to it, to rescale directions.
- For a network with billions of parameters, explicitly constructing and inverting a billion-by-billion Hessian is impractical.
- The shared learning rate used by vanilla gradient descent is poorly matched to parameters with different and changing curvatures.
- Rprop, or resilient backpropagation, maintains a separate step size for each parameter and uses the sign of its gradient rather than the gradient’s magnitude.
- If successive gradient signs agree, Rprop increases that parameter’s step; if they disagree, it reduces the step and can revert the previous update.
- Rprop applies its sign-based step adjustment independently to each parameter, with upper and lower limits to keep steps from becoming too large or too small.
- A gradient sign reversal signals that the update may have overshot, prompting a smaller step; consistent signs increase confidence in the direction.
- Rprop avoids second derivatives and does not use gradient magnitude, but the lecture acknowledges that irregular loss surfaces can cause extra reversals and noisy updates.
- Quickprop attempts to use second-order information without explicitly computing a full Hessian.
- It estimates curvature from the difference between derivatives at adjacent iterations.
- The lecture attributes Quickprop to Scott Fahlman and distinguishes it from Rprop’s sign-only step adaptation.
- When updates oscillate across a steep direction, successive gradient components have opposite signs and partially cancel in a running average.
- Consistent gradient components remain large in the average, preserving progress along smoother directions.
- Momentum combines the current gradient step with a fraction β of the previous step, reducing zigzagging without changing the gradient’s overall parameter-space formulation.
- Standard momentum applies the current gradient step and adds the previous-step contribution; Nesterov momentum first advances by β times the previous step, then evaluates the gradient.
- The lecture presents Nesterov’s ordering as an accelerated method that can reach the optimum faster than standard momentum on the illustrated landscape.
- The closing recap emphasizes that vanilla gradient descent can be slow or unstable, while adaptive step sizes, learning-rate decay, and momentum can improve convergence.
Transcript excerpt
1:07 Yes. >> Croc. >> Okay. Wait, no. No. That's okay. Crocod, however it is pronounced. Star starraptor. >> Okay. So, these guys, you're all marked absent by default unless you answer my question. >> I might put in some like surprise names >> and we might just change those names. Wait, I just joined was
1:59 >> okay. Should I wear it on my waist? >> No, I can't lift my arms. Yeah, that'll be like Oh, how do we get [clears throat] mother?
3:00 Morning. >> You're dressed for winter. >> Wow. >> For winter. [clears throat] >> All right, guys. Morning everybody. The attendance poll is 245. Please mark up your attendance. Uh again, today is the magical day. We begin our Pokemons. Have your name tags out. That way you know I know who you are but I don't need to know who you are anymore because I'm going to call you out by Pokemon names and uh this makes it very democratic actually no equal egalitarian whatever right because it doesn't matter where you are you could be sitting here in Kgali in India if your Pokemon name
3:48 is called and you do not respond you will be marked absent and I have no idea how which Pokemon names I will call because they are generated by a random numbers in generator which means that the same Pokemon could be called three times in class and if you don't you don't answer even once one of those three times you will be marked absent right so with that said just to make sure that the every the threat is properly understood I've come with my katana and this will be my pointer for the day so uh that's a dangerous thing to do Okay. Uh guys, okay, shut your laptops once
This is the start of the transcript. Save this video free for the whole transcript, searchable and time-coded.
In this course
Related notes
Summary, takeaways, and chapters were generated by AI from the video's transcript and may contain errors. The video belongs to its creator, Carnegie Mellon University Deep Learning.