What stopping criteria can be used to terminate gradient descent?

Quick Overview

Asks which rules can be used to decide when gradient descent should stop, for plain optimization and for model training. Tests knowledge of convergence tolerances, iteration and compute budgets, early stopping on validation data, divergence checks, and the pitfalls of each test.

What stopping criteria can be used to terminate gradient descent?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What stopping criteria can be used to terminate gradient descent? Consider both minimizing a fixed objective and training a machine learning model, where the goal is good performance on unseen data. ```hint Beyond convergence Besides "the optimizer has converged", think of reasons to stop that have nothing to do with the training loss reaching a minimum. ``` ### What a Strong Answer Covers - Convergence tests and what quantity each one watches - Budget limits on iterations or compute - Early stopping on validation data, how it is configured, and its regularizing effect - Guards that detect divergence - Ways each test can mislead (noisy gradients, plateaus, saddle points) and why criteria are combined ### Follow-up Questions - Why is a relative tolerance on the loss often safer than an absolute one? - How is early stopping related to L2 regularization for a linear model trained with gradient descent? - How would you choose the patience value, and what goes wrong if it is too small for a noisy validation metric? - How does a learning rate schedule interact with your stopping rule?

Overview: Asks which rules can be used to decide when gradient descent should stop, for plain optimization and for model training. Tests knowledge of convergence tolerances, iteration and compute budgets, early stopping on validation data, divergence checks, and the pitfalls of each test.

PracHub logo
General
Nov 25, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

What stopping criteria can be used to terminate gradient descent?

Consider both minimizing a fixed objective and training a machine learning model, where the goal is good performance on unseen data.

What a Strong Answer Covers Guidance

  • Convergence tests and what quantity each one watches
  • Budget limits on iterations or compute
  • Early stopping on validation data, how it is configured, and its regularizing effect
  • Guards that detect divergence
  • Ways each test can mislead (noisy gradients, plateaus, saddle points) and why criteria are combined

Follow-up Questions Guidance

  • Why is a relative tolerance on the loss often safer than an absolute one?
  • How is early stopping related to L2 regularization for a linear model trained with gradient descent?
  • How would you choose the patience value, and what goes wrong if it is too small for a noisy validation metric?
  • How does a learning rate schedule interact with your stopping rule?