What is the role of the epsilon parameter in adaptive optimizers?

Quick Overview

Explain what the epsilon constant does in Adam, RMSProp and AdaGrad updates and when to change it from the default. Tests numerical stability, how epsilon trades adaptive scaling for SGD-like steps, fp16 underflow in mixed precision, and framework differences.

What is the role of the epsilon parameter in adaptive optimizers?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

What is the role of the epsilon parameter in adaptive optimizers? Adam, RMSProp and AdaGrad divide each parameter's update by a running estimate of its gradient magnitude plus a small constant $\epsilon$. Explain what that constant does and when you would move it away from its default. ```hint Look at the extremes Write out the Adam step and see what it turns into when the second-moment estimate is far smaller than epsilon, and when it is far larger. ``` ```hint Think about number formats Consider what happens to very small values when training runs in half precision. ``` ### What a Strong Answer Covers - Where epsilon sits in the update and its numerical-safety role - How the size of epsilon moves the optimizer between per-parameter adaptive steps and SGD with momentum - When and why practitioners raise it above the default - Mixed-precision problems with small epsilon and small second-moment values - Why the same epsilon value is not always equivalent across frameworks ### Follow-up Questions - Adam training under mixed precision starts producing NaNs. What would you check first? - How does Adam's actual step size compare with the learning rate when gradients are consistent and when they are mostly noise? - Should epsilon be tuned together with the learning rate? Why?

Overview: Explain what the epsilon constant does in Adam, RMSProp and AdaGrad updates and when to change it from the default. Tests numerical stability, how epsilon trades adaptive scaling for SGD-like steps, fp16 underflow in mixed precision, and framework differences.

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

What is the role of the epsilon parameter in adaptive optimizers?

Adam, RMSProp and AdaGrad divide each parameter's update by a running estimate of its gradient magnitude plus a small constant ϵ\epsilon. Explain what that constant does and when you would move it away from its default.

What a Strong Answer Covers Guidance

  • Where epsilon sits in the update and its numerical-safety role
  • How the size of epsilon moves the optimizer between per-parameter adaptive steps and SGD with momentum
  • When and why practitioners raise it above the default
  • Mixed-precision problems with small epsilon and small second-moment values
  • Why the same epsilon value is not always equivalent across frameworks

Follow-up Questions Guidance

  • Adam training under mixed precision starts producing NaNs. What would you check first?
  • How does Adam's actual step size compare with the learning rate when gradients are consistent and when they are mostly noise?
  • Should epsilon be tuned together with the learning rate? Why?