Gradient Descent & Newton's Method | Cornell CS4780 Machine Learning

Added:

Logistic Regression Review
Optimization Problems
Taylor Approximation
Gradient Descent
Learning Rates
AdaGrad & RMSProp
Stopping Criteria
Newton's Method
Newton's Pitfalls
Method Combination

Logistic Regression Review

0:02
Playing Section
  • 1

    Recap of logistic regression model derivation.

  • 2

    Contrast with Naive Bayes: high-dimensional overfitting risks.

  • 3

    Logistic regression excels when data is plentiful.

Multivariable calculus, including gradients, partial derivatives, and Taylor series approximations.
Linear algebra fundamentals, particularly vectors, matrices, and the definition of a Hessian matrix.
Basic machine learning terminology, specifically the concepts of loss functions, cost functions, and hypothesis spaces.
Foundational optimization concepts, such as identifying local versus global extrema and understanding convex functions.
Stochastic Gradient Descent (SGD) and mini-batch gradient descent for scaling optimization to massive datasets.
Advanced adaptive optimization algorithms widely used in deep learning, such as AdaGrad, RMSProp, and Adam.
Quasi-Newton methods (like BFGS and L-BFGS) which approximate the Hessian matrix to bypass high computational costs.
Constrained optimization techniques, including Lagrange multipliers and the Karush-Kuhn-Tucker (KKT) conditions.
The application of optimization in training deep neural networks, addressing issues like vanishing gradients and saddle points.
52.8K views770likes49:18@kilianweinberger698Original Release: 2018-07-11

This lecture explains how to minimize loss functions in machine learning through iterative optimization methods. Gradient descent uses the negative gradient direction (w_new = w_old - α∇L(w)) to iteratively approach the minimum, with learning rate α chosen carefully to ensure convergence. Newton's method improves upon this by incorporating the Hessian matrix (second derivatives) to take larger, more direct steps toward the minimum, converging much faster once close to the optimum. However, Newton's method requires computing and inverting the Hessian, which is computationally expensive and can lead to divergence if starting far from the minimum. The recommended practical approach combines both methods: use gradient descent initially to approach the minimum reliably, then switch to Newton's method for rapid final convergence.