How does AdaGrad adapt the learning rate per parameter?

Quick Overview

Asks how the AdaGrad optimizer gives each parameter its own effective learning rate. Tests knowledge of the update rule, why it helps with sparse features and badly scaled problems, and the weakness that led to RMSProp and Adam.

How does AdaGrad adapt the learning rate per parameter?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Other

Plain SGD uses one learning rate for every parameter. How does AdaGrad adapt the learning rate per parameter? ```hint Track one coordinate's history Follow a single parameter over many steps. What summary of its past gradients could scale its step, and how does that summary change as training goes on? ``` ### What a Strong Answer Covers - The update rule: what is accumulated, and how the step for each coordinate is scaled. - How parameters with large or frequent gradients are treated compared with rarely updated ones. - Why this helps with sparse features and badly scaled directions. - The weakness of an accumulator that only grows, and how later optimizers address it. ### Follow-up Questions - How do RMSProp and Adam change the accumulator, and what new hyperparameter does that introduce? - Why does AdaGrad suit sparse problems such as click-through-rate models with hashed features? - What does it mean that AdaGrad acts as a diagonal preconditioner, and what would a full-matrix version cost? - How would you implement AdaGrad efficiently for an embedding table where each batch touches only a few rows?

Overview: Asks how the AdaGrad optimizer gives each parameter its own effective learning rate. Tests knowledge of the update rule, why it helps with sparse features and badly scaled problems, and the weakness that led to RMSProp and Adam.

Nov 24, 2026
mediumMachine Learning EngineerOtherMachine Learning
0
0

Plain SGD uses one learning rate for every parameter. How does AdaGrad adapt the learning rate per parameter?

What a Strong Answer Covers Guidance

  • The update rule: what is accumulated, and how the step for each coordinate is scaled.
  • How parameters with large or frequent gradients are treated compared with rarely updated ones.
  • Why this helps with sparse features and badly scaled directions.
  • The weakness of an accumulator that only grows, and how later optimizers address it.

Follow-up Questions Guidance

  • How do RMSProp and Adam change the accumulator, and what new hyperparameter does that introduce?
  • Why does AdaGrad suit sparse problems such as click-through-rate models with hashed features?
  • What does it mean that AdaGrad acts as a diagonal preconditioner, and what would a full-matrix version cost?
  • How would you implement AdaGrad efficiently for an embedding table where each batch touches only a few rows?