Are there alternatives to Gradient Descent for finding the optimal parameters in Logistic Regression?

Quick Overview

Asks what optimizers besides gradient descent can fit logistic regression and when each one fits the problem. It tests knowledge of Newton and IRLS, L-BFGS, coordinate descent and stochastic methods, and how dataset size, sparsity and the penalty type drive the choice.

Are there alternatives to Gradient Descent for finding the optimal parameters in Logistic Regression?

Role: Data Scientist

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Are there alternatives to gradient descent for finding the optimal parameters in logistic regression? Name the main options, explain what each one uses beyond the plain gradient, and say when you would pick each. ```hint Use the shape of the loss Log-loss is smooth and convex. What extra information about the loss surface could an optimizer use besides the gradient? ``` ```hint Think about cost per step For each method, ask what one iteration costs in terms of rows and features, and which penalties (L1, L2) it can handle. ``` ### What a Strong Answer Covers - Second-order methods (Newton-Raphson, IRLS) and what forming and solving with the Hessian costs - Quasi-Newton methods such as L-BFGS and why they are a common default - Coordinate descent and stochastic or variance-reduced methods, and the data sizes or penalties each one suits - How to choose a method from the number of rows, the number of features, sparsity and the penalty type ### Follow-up Questions - Why can't plain L-BFGS fit an L1-penalized model, and what would you use instead? - What happens to Newton or IRLS when the classes are perfectly separable? - How does SAGA converge faster than SGD while each step costs about the same? - How would you fit logistic regression on data that does not fit on one machine?

Overview: Asks what optimizers besides gradient descent can fit logistic regression and when each one fits the problem. It tests knowledge of Newton and IRLS, L-BFGS, coordinate descent and stochastic methods, and how dataset size, sparsity and the penalty type drive the choice.

PracHub logo
General
Nov 24, 2026
mediumData ScientistOtherMachine Learning
0
0

Are there alternatives to gradient descent for finding the optimal parameters in logistic regression? Name the main options, explain what each one uses beyond the plain gradient, and say when you would pick each.

What a Strong Answer Covers Guidance

  • Second-order methods (Newton-Raphson, IRLS) and what forming and solving with the Hessian costs
  • Quasi-Newton methods such as L-BFGS and why they are a common default
  • Coordinate descent and stochastic or variance-reduced methods, and the data sizes or penalties each one suits
  • How to choose a method from the number of rows, the number of features, sparsity and the penalty type

Follow-up Questions Guidance

  • Why can't plain L-BFGS fit an L1-penalized model, and what would you use instead?
  • What happens to Newton or IRLS when the classes are perfectly separable?
  • How does SAGA converge faster than SGD while each step costs about the same?
  • How would you fit logistic regression on data that does not fit on one machine?