Why does a hypothesis class with infinite VC dimension fail to guarantee generalization?

Quick Overview

Asks why a binary hypothesis class with infinite VC dimension cannot give a distribution-free generalization guarantee. It tests understanding of shattering, the growth function and Sauer's lemma, uniform convergence, the link to PAC learnability, and what the result means for regularized and overparameterized models.

Why does a hypothesis class with infinite VC dimension fail to guarantee generalization?

Role: Machine Learning Engineer

Category: Machine Learning

Difficulty: hard

Interview Round: Other

In binary classification, the data come from an unknown distribution and you want the training error of the hypothesis you pick to say something about its true error. Why does a hypothesis class with infinite VC dimension fail to guarantee generalization? ```hint Count the labelings Look at how many distinct labelings of $m$ points the class can produce, and compare that count with what a uniform convergence bound needs. ``` ```hint Think like an adversary If the class can fit every labeling of a set, ask what a training sample drawn from part of that set tells you about the labels of the rest. ``` ### What a Strong Answer Covers - What shattering means and what infinite VC dimension implies at every sample size - Why uniform convergence bounds need a polynomial growth function and give nothing when it is ${2^m}$ - The link to PAC learnability for binary classes and the adversarial-distribution argument - A concrete class with infinite VC dimension - What the result rules out in practice and what it does not (regularization, margins, data-dependent bounds) ### Follow-up Questions - Neural networks used in practice have a VC dimension far above their training set size. Why do they still generalize, and which kinds of bounds try to explain it? - How does structural risk minimization let you learn with a class of infinite VC dimension? - Linear classifiers in $d$ dimensions have a VC dimension that grows with $d$. Why can a large-margin SVM generalize better than that number suggests? - Can a class with infinite VC dimension be learnable when the input distribution is fixed and known?

Overview: Asks why a binary hypothesis class with infinite VC dimension cannot give a distribution-free generalization guarantee. It tests understanding of shattering, the growth function and Sauer's lemma, uniform convergence, the link to PAC learnability, and what the result means for regularized and overparameterized models.

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

In binary classification, the data come from an unknown distribution and you want the training error of the hypothesis you pick to say something about its true error. Why does a hypothesis class with infinite VC dimension fail to guarantee generalization?

What a Strong Answer Covers Guidance

  • What shattering means and what infinite VC dimension implies at every sample size
  • Why uniform convergence bounds need a polynomial growth function and give nothing when it is 2m{2^m}
  • The link to PAC learnability for binary classes and the adversarial-distribution argument
  • A concrete class with infinite VC dimension
  • What the result rules out in practice and what it does not (regularization, margins, data-dependent bounds)

Follow-up Questions Guidance

  • Neural networks used in practice have a VC dimension far above their training set size. Why do they still generalize, and which kinds of bounds try to explain it?
  • How does structural risk minimization let you learn with a class of infinite VC dimension?
  • Linear classifiers in dd dimensions have a VC dimension that grows with dd . Why can a large-margin SVM generalize better than that number suggests?
  • Can a class with infinite VC dimension be learnable when the input distribution is fixed and known?