How does the convexity of a loss function impact the guarantees of gradient descent?

Quick Overview

Asks how convexity of the loss changes what gradient descent can promise about convergence. Tests knowledge of the guarantees and rates for convex, strongly convex and non-convex losses, the role of smoothness and step size, and what this means for models like logistic regression and deep networks.

How does the convexity of a loss function impact the guarantees of gradient descent?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

How does the convexity of a loss function impact the guarantees of gradient descent? ```hint Separate the cases Treat convex, strongly convex and non-convex losses one at a time, and for each ask what a zero gradient tells you about the point you reached. ``` ```hint Look at the other assumption Convergence rates for gradient descent also rely on a bound on how fast the gradient can change. Think about how that bound limits the step size. ``` ### What a Strong Answer Covers - What convexity implies about local minima and about points where the gradient is zero - The convergence guarantees and rates for convex and strongly convex losses, with the assumptions on smoothness and step size - What can and cannot be guaranteed for a non-convex loss - How this plays out for common models such as logistic regression and deep networks ### Follow-up Questions - How do the guarantees change for stochastic gradient descent on a convex loss? - Unregularized logistic regression is convex. What happens to gradient descent when the training data is linearly separable? - Why does the condition number $L/\mu$ matter in practice, and what reduces it? - Can gradient descent get stuck at a saddle point of a non-convex loss?

Overview: Asks how convexity of the loss changes what gradient descent can promise about convergence. Tests knowledge of the guarantees and rates for convex, strongly convex and non-convex losses, the role of smoothness and step size, and what this means for models like logistic regression and deep networks.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

How does the convexity of a loss function impact the guarantees of gradient descent?

What a Strong Answer Covers Guidance

  • What convexity implies about local minima and about points where the gradient is zero
  • The convergence guarantees and rates for convex and strongly convex losses, with the assumptions on smoothness and step size
  • What can and cannot be guaranteed for a non-convex loss
  • How this plays out for common models such as logistic regression and deep networks

Follow-up Questions Guidance

  • How do the guarantees change for stochastic gradient descent on a convex loss?
  • Unregularized logistic regression is convex. What happens to gradient descent when the training data is linearly separable?
  • Why does the condition number L/μL/\mu matter in practice, and what reduces it?
  • Can gradient descent get stuck at a saddle point of a non-convex loss?