Why can Mean Absolute Error have trouble converging precisely near zero error?

Quick Overview

Asks why gradient descent on Mean Absolute Error struggles to settle precisely at the optimum and how its behavior differs from Mean Squared Error. Tests understanding of loss gradients, learning-rate behavior near a minimum, and practical fixes for the problem.

Why can Mean Absolute Error have trouble converging precisely near zero error?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Why can Mean Absolute Error (MAE) have trouble converging precisely near zero error when a model is trained with gradient descent? ```hint Compare the gradients Write down the derivative of $|e|$ and of $e^2$ with respect to the residual $e$. How does each one change as $e$ gets small? ``` ```hint Think about the step size A gradient descent step is the learning rate times the gradient. With a fixed learning rate, what happens to that step near the optimum for each loss? ``` ### What a Strong Answer Covers - The gradient of the absolute error and whether its magnitude depends on the size of the residual - What a fixed learning rate does with that gradient near the optimum, compared with MSE - The non-differentiable point at zero error and how optimizers treat it - Practical fixes and what each one gives up ### Follow-up Questions - How does Huber loss behave near zero and far from zero, and how would you choose its delta? - Minimizing MAE gives the median and minimizing MSE gives the mean. What does that mean for outliers and skewed targets? - Does Adam remove the oscillation on its own? Why or why not? - If MAE is the metric you report, would you still train directly on MAE?

Overview: Asks why gradient descent on Mean Absolute Error struggles to settle precisely at the optimum and how its behavior differs from Mean Squared Error. Tests understanding of loss gradients, learning-rate behavior near a minimum, and practical fixes for the problem.

General logo
General
Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Why can Mean Absolute Error (MAE) have trouble converging precisely near zero error when a model is trained with gradient descent?

What a Strong Answer Covers Guidance

  • The gradient of the absolute error and whether its magnitude depends on the size of the residual
  • What a fixed learning rate does with that gradient near the optimum, compared with MSE
  • The non-differentiable point at zero error and how optimizers treat it
  • Practical fixes and what each one gives up

Follow-up Questions Guidance

  • How does Huber loss behave near zero and far from zero, and how would you choose its delta?
  • Minimizing MAE gives the median and minimizing MSE gives the mean. What does that mean for outliers and skewed targets?
  • Does Adam remove the oscillation on its own? Why or why not?
  • If MAE is the metric you report, would you still train directly on MAE?