Why does multiplying a loss function by a positive constant not change its minimum?

Quick Overview

Asks why scaling a loss function by a positive constant leaves its minimizer unchanged. Tests the ordering argument, what happens to gradients and optimizer dynamics in SGD and Adam, and when scaling one term of an objective does change the solution.

Why does multiplying a loss function by a positive constant not change its minimum?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

Why does multiplying a loss function by a positive constant not change its minimum? Here "minimum" means the parameter values that minimize the loss. ```hint Think about ordering Compare two parameter settings and ask whether multiplying both loss values by the same positive number can change which one is smaller. ``` ### What a Strong Answer Covers - A short argument that the minimizer is unchanged for any positive constant. - What happens to the gradient and to the stationary points. - How the scaling changes optimization dynamics even though the solution stays the same. - Where scaling does change the answer, such as scaling one term of a multi-term objective. ### Follow-up Questions - You switch a loss from a sum over the batch to a mean over the batch. What else in the training setup has to change to get the same training run? - Why is Adam nearly unaffected by a loss scale while plain SGD is not? - Mixed-precision training multiplies the loss by a large constant before backpropagation. Why, and what must happen to the gradients afterwards? - Is the minimizer still unchanged if you apply a non-linear but increasing function, such as a logarithm, to a positive loss?

Overview: Asks why scaling a loss function by a positive constant leaves its minimizer unchanged. Tests the ordering argument, what happens to gradients and optimizer dynamics in SGD and Adam, and when scaling one term of an objective does change the solution.

Nov 24, 2026
easyMachine Learning EngineerOtherMachine Learning
0
0

Why does multiplying a loss function by a positive constant not change its minimum? Here "minimum" means the parameter values that minimize the loss.

What a Strong Answer Covers Guidance

  • A short argument that the minimizer is unchanged for any positive constant.
  • What happens to the gradient and to the stationary points.
  • How the scaling changes optimization dynamics even though the solution stays the same.
  • Where scaling does change the answer, such as scaling one term of a multi-term objective.

Follow-up Questions Guidance

  • You switch a loss from a sum over the batch to a mean over the batch. What else in the training setup has to change to get the same training run?
  • Why is Adam nearly unaffected by a loss scale while plain SGD is not?
  • Mixed-precision training multiplies the loss by a large constant before backpropagation. Why, and what must happen to the gradients afterwards?
  • Is the minimizer still unchanged if you apply a non-linear but increasing function, such as a logarithm, to a positive loss?