What is Empirical Risk Minimization (ERM)?

Quick Overview

Asks what Empirical Risk Minimization is and how training loss on a sample relates to performance on unseen data. It tests whether you can write the empirical risk, explain when its minimizer generalizes, and describe where overfitting and regularization fit in.

What is Empirical Risk Minimization (ERM)?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: easy

Interview Round: Other

What is Empirical Risk Minimization (ERM)? ```hint Start from the quantity you cannot compute Write down the loss you would like to minimize if you knew the data distribution, then ask what you can compute from a finite training sample instead. ``` ### What a Strong Answer Covers - The empirical risk written as a formula, and ERM as the argmin over a hypothesis class - How empirical risk relates to the true (expected) risk it stands in for - Common models that are instances of ERM - Why the ERM minimizer can generalize, and when it overfits instead - Practical caveats such as surrogate losses and the i.i.d. assumption ### Follow-up Questions - How does structural risk minimization differ from plain ERM, and where does L2 regularization fit? - Why do we minimize log loss or hinge loss instead of the 0-1 loss we care about for classification? - What happens to ERM under covariate shift, and how could you reweight the empirical risk to correct for it? - Overparameterized neural networks can reach zero training loss and still generalize. How does that square with the uniform convergence argument?

Overview: Asks what Empirical Risk Minimization is and how training loss on a sample relates to performance on unseen data. It tests whether you can write the empirical risk, explain when its minimizer generalizes, and describe where overfitting and regularization fit in.

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

What is Empirical Risk Minimization (ERM)?

What a Strong Answer Covers Guidance

  • The empirical risk written as a formula, and ERM as the argmin over a hypothesis class
  • How empirical risk relates to the true (expected) risk it stands in for
  • Common models that are instances of ERM
  • Why the ERM minimizer can generalize, and when it overfits instead
  • Practical caveats such as surrogate losses and the i.i.d. assumption

Follow-up Questions Guidance

  • How does structural risk minimization differ from plain ERM, and where does L2 regularization fit?
  • Why do we minimize log loss or hinge loss instead of the 0-1 loss we care about for classification?
  • What happens to ERM under covariate shift, and how could you reweight the empirical risk to correct for it?
  • Overparameterized neural networks can reach zero training loss and still generalize. How does that square with the uniform convergence argument?