Explain Adam, AdamW, and Decoupled Weight Decay

Read the full interview experience this question came from →

Quick Overview

Understand Adam moment estimates and bias correction, then compare gradient-based L2 regularization with AdamW’s decoupled weight decay and learning-rate interaction.

Explain Adam, AdamW, and Decoupled Weight Decay

Company: Mistral AI

Role: Software Engineer

Category: Machine Learning

Difficulty: medium

Interview Round: Technical Screen

Explain Adam and AdamW. Why is adding an L2 penalty to the loss generally different from decoupled weight decay under Adam? ### Constraints & Assumptions Use standard first- and second-moment estimates, bias correction, and a scalar learning rate. State whether a parameter group is subject to decay; treatment of biases and normalization parameters is a separate choice. ### Clarifying Questions Is regularization added to the gradient or applied directly to parameters? What learning-rate schedule and epsilon convention are used? Which parameters should decay? ### What a Strong Answer Covers Write the moment updates, distinguish the two decay mechanisms, and explain how adaptive gradient scaling changes an L2 gradient contribution. ### Follow-up Questions When can L2 regularization and weight decay be equivalent? Why does the decay coefficient interact with the learning-rate schedule? Does AdamW remove the need to tune regularization?

Overview: Understand Adam moment estimates and bias correction, then compare gradient-based L2 regularization with AdamW’s decoupled weight decay and learning-rate interaction.

Read the full Mistral AI Software Engineer interview experience this question came from

|Home/Machine Learning/Mistral AI
Mistral AI logo
Mistral AI
Sep 1, 2026
mediumSoftware EngineerTechnical ScreenMachine Learning
0
0

Explain Adam and AdamW. Why is adding an L2 penalty to the loss generally different from decoupled weight decay under Adam?

Constraints & Assumptions

Use standard first- and second-moment estimates, bias correction, and a scalar learning rate. State whether a parameter group is subject to decay; treatment of biases and normalization parameters is a separate choice.

Clarifying Questions Guidance

Is regularization added to the gradient or applied directly to parameters? What learning-rate schedule and epsilon convention are used? Which parameters should decay?

What a Strong Answer Covers Guidance

Write the moment updates, distinguish the two decay mechanisms, and explain how adaptive gradient scaling changes an L2 gradient contribution.

Follow-up Questions Guidance

When can L2 regularization and weight decay be equivalent? Why does the decay coefficient interact with the learning-rate schedule? Does AdamW remove the need to tune regularization?

Loading comments...