Project contents

CSCI 678 / Lecture Notes

Lecture 2 Detailed Explanation: Uniform Convergence and Rademacher Complexity

A section-by-section expansion of Lecture 2: from the minimax upper bound for ERM to symmetrization, Rademacher complexity, Massart's lemma, the growth function, and VC dimension, including the auxiliary proofs omitted from the slides.

Active
Expanded from Haipeng Luo's Lecture 2 (Fall 2026; the original slides are 8 pages). Following the format of the Lecture 3 explanation report, this covers Theorems 1 and 2, Lemmas 1-4, Propositions 1-7, and the auxiliary proofs omitted from the lecture notes. Every step states the conditions it uses and its role in the overall argument. Original slides: lecture2.pdf (not published online). Companion pages on this site: full slide translation; surrounding lectures: Lecture 1, Lecture 3. The function class is assumed nonempty by default, with the necessary measurability and integrability conditions in place; boundedness conditions are stated explicitly whenever a bounded concentration bound is used. We do not assume that every optimization problem can be solved efficiently.

Reading guide: turning the intractable minimax value into a computable complexity, step by step

Lecture 1 defined the goal of learning, but is hard to compute directly. Through a chain of upper bounds, this lecture turns it into an empirical process, then a Rademacher complexity, and finally a function count or a VC dimension.

StepMethod usedDifficulty it resolves
Fix the algorithm to be ERMMinimize empirical riskNo longer optimizing over all possible algorithms
Control ERM by a uniform deviationEmpirical processNo need to analyze the specific form of the training output directly
SymmetrizationIntroduce an independent copy and random signsRemoves the intractable population-risk term
Remove the loss functionClassification identity, Lipschitz contractionTurns the loss class into the prediction class
Maximal inequality for finite classesSub-Gaussian, MassartControls complexity by the logarithm of the function count
Projections of infinite binary classesGrowth functionInfinitely many functions have only finitely many behaviors on a finite sample
Sauer's lemmaVC dimensionControls the growth function at every sample size with a single combinatorial parameter
No-free-lunch converseInfinite VC dimension ⇒ constant lower boundShows the condition is not only sufficient but also necessary

What ultimately "closes the loop" in this lecture is the learnability condition for binary classification; it does not prove that every intermediate upper bound is optimal in exact constants, logarithmic factors, or for arbitrary loss problems.

1. Starting point: why ERM gives a minimax upper bound

1.1 Risk and the value of the game

Let , and define

The value of the learning game is

where the algorithm may have internal randomness, and the expectation includes it by default.

ERM chooses

Because the infimum over all algorithms is no larger than the worst-case error of any specific algorithm,

This is only an upper bound; it does not claim that ERM is already known to be optimal at the outset. Only after the analysis succeeds can one say that ERM suffices to achieve the corresponding learnability.

1.2 What if the minimum is not attained

Even when the argmin does not exist, one can choose an approximate ERM:

The risk bounds below then only need an additional . When the optimal population risk is not attained, compare against a fixed -optimal function and finally let . So existence shorthand usually does not change the statistical conclusions, but "the algorithm can be chosen measurably" remains a technical condition that must be satisfied.

1.3 Regularization and constrained classes: completing the argument and stating its limits

Suppose minimizes

Let . If there is a with and , then

a contradiction. So is also ERM over the constrained class .

This proves "given a penalized optimum, one can find a constraint radius that explains it." But here may depend on the data; the converse direction, "every constrained optimum arises from some penalty parameter," generally requires conditions such as convexity and duality. If one wants to apply the generalization bounds below to a fixed constrained class, one cannot freely choose after seeing the data while ignoring the selection cost or the need for uniform control.

2. The empirical process: why convergence for a single function is not enough

2.1 The full derivation from ERM to a one-sided uniform deviation

First assume . It may depend on , but not on the current sample. Then

The first equality uses unbiasedness, ; the second step uses the empirical optimality of ERM, since subtracting a smaller empirical loss makes the difference larger; the third step relaxes the single data-selected function to the whole class.

Therefore

There is no extra factor of 2 here, because only the error of a fixed comparator is handled in expectation. The common per-sample absolute-deviation bound comes from a different derivation, and its constant cannot be mixed arbitrarily into (7).

2.2 The empirical process is a whole family of random variables

For each fixed , let

It has mean zero. Assuming the loss is integrable, the law of large numbers says that for fixed , . But the algorithm selects the function based on the sample, so one must control the maximal deviation of the whole family simultaneously.

The expected one-sided uniform convergence condition used in the slides is

"Convergence for every fixed " and "convergence of the supremum" cannot be interchanged; "for every fixed " and "uniformly over all " must not be conflated either. Textbooks also define uniform convergence in a probabilistic sense or with two-sided absolute deviations; when reading, check which one is in use.

2.3 A supplementary counterexample: every fixed function converges, yet the sample optimum overfits badly

Let the input be uniform on , and let the true label be constantly . Take the class of all functions that predict on some finite set and everywhere else.

Any fixed function is correct on only finitely many inputs; those points have probability zero, so the population 0-1 risk is 1. For any fixed function, the empirical risk also tends to 1 almost surely.

But given the current training inputs, the class contains a function that predicts at every training point, so the training loss is zero while the population risk is still 1:

This example shows specifically that pointwise convergence does not imply uniform convergence. Since the best population risk in this particular class is also 1, it cannot by itself serve as an example of "ERM has excess risk 1"; if one wants that conclusion as well, add the constant function to the class and let ERM's tie-breaking rule select the memorizing function above.

3. Rademacher complexity: measuring only how well the class aligns with random signs

For a function class , with the sample locations fixed, define

where the signs are mutually independent. The unconditional version is

The supremum inside the expectation can choose the function after seeing the random signs, so this quantity is not "the correlation between some fixed model and the noise."

Three directly verifiable properties:

  • A nonempty singleton class has complexity zero, because every has mean zero.
  • If the values can be realized arbitrarily at distinct sample points, one can choose , and the complexity is 1.
  • Adding to each coordinate a constant independent of does not change the complexity, because the new term .

This lecture's definition has no absolute value inside the supremum. If it were changed to , a singleton class would generally no longer have complexity zero, and the form and constants of the corresponding lemmas would have to be rechecked.

4. Theorem 1: the complete symmetrization proof

4.1 Defining the loss class

Turn predictors into functions on the sample space:

We want to prove

4.2 Introducing a ghost sample

Let be an independent sample. Since ,

Why does the inequality go in this direction? For each , its random value does not exceed the supremum over all functions; this is preserved after taking expectations, and then we take the supremum over , so .

4.3 Why random signs can appear out of nowhere

Fix any sign sequence. When , swap ; when it is , do not swap. Each pair of samples has joint distribution , and swapping does not change it; the pairs remain independent of one another. Therefore

This is not a numerical equality that holds for one fixed sample; it is a distributional equivalence after taking expectations over random samples.

4.4 Splitting the supremum to get the factor 2

The two terms are equal because are identically distributed and has the same distribution as . Combining (16)-(18) proves Theorem 1.

The resulting complexity depends only on the values of the functions on the sample and no longer contains a separate population term . This is the key to replacing an infinite class by a finite projection later.

5. Lemma 1: why binary 0-1 loss contributes exactly a factor of

When , we have the identity

Indeed, when the signs agree and when they differ, giving losses 0 and 1 respectively. After fixing the labeled sample,

The first term is zero. Since is fixed and equals , the signs are still independent and equally likely to be . Taking the expectation over the sample again,

The right-hand side actually depends only on the input marginal . The slides use the same shorthand ; here we mark the distribution explicitly to avoid misunderstanding.

6. Lemma 2: the coordinate-wise proof of Lipschitz contraction

6.1 Conditions and goal

Suppose , and for all admissible predictions and labels,

We want to prove

6.2 Replace only the last coordinate first

Fix , and write

Average over the two possible values of the last sign:

The second step uses that the sum of two suprema with independently chosen functions equals the supremum over ordered pairs. If the optimum is not attained, pick two functions arbitrarily close to optimal and let the error tend to zero.

6.3 Why the absolute value can be removed

is unchanged when are swapped, while changes sign. So every difference with positive absolute value can be turned into a positive difference without the absolute value by swapping the order:

Split the supremum back apart:

Thus the nonlinear loss at the last coordinate is replaced by without making the complexity smaller. Taking expectations over the earlier signs and replacing coordinates one by one gives

Dividing by yields (23). The proof does not require to be closed under negation, nor does it require , because it uses the absolute-value-free definition of complexity.

On page 4 of the original slides, after merging the two suprema, one displayed formula prints an extra in front of the terms. The correct term is ; this report uses the notation to avoid duplicated symbols.

6.4 Why the constant for square loss is 2

The slides use the half-square loss . For :

So . Without the leading in the loss, ; if predictions and labels can be arbitrary real numbers, there is no such global constant. The square loss of Lecture 1 and the half-square loss of this lecture must not be mixed up when it comes to constants.

At this point, taking for classification and a legitimate Lipschitz constant for regression, we have

7. Sub-Gaussian variables and Hoeffding's lemma, left unproven in the slides

7.1 Sub-Gaussian does not require the variable to actually be Gaussian

A zero-mean random variable satisfying

is called -sub-Gaussian. Here is a variance proxy for the exponential moment and need not equal the actual variance.

Control of the exponential moment converts into tail control: for , Markov's inequality gives

For , take to get . This explains why "sub-Gaussian" means Gaussian-like tail decay without requiring the same density shape.

7.2 A complete proof of Hoeffding's lemma

If and , we want to prove

i.e., is -sub-Gaussian.

Let . Since is bounded, we can differentiate under the expectation. Define the exponentially tilted expectation

Differentiating twice directly:

For any variable supported on with mean , gives , and hence

The last step says the product of two nonnegative numbers with a fixed sum is maximized when they are equal, or simply complete the square.

The tilted distribution is still supported on , so also satisfies (36). Since , Taylor's formula with integral remainder gives

This form works for positive and negative alike. Exponentiating gives (33). If , zero mean forces , and the conclusion holds directly.

8. Lemma 3: why the maximal inequality depends only on

Let all be -sub-Gaussian variables; they are not required to be independent. For any :

The first step is Jensen's inequality for the convex exponential; the third step says a maximum of nonnegative numbers does not exceed their sum. Take logarithms and divide by :

For , differentiate the right-hand side and set , giving . Substituting back,

When the left-hand side is zero; when the variables degenerate to zero, and the division above is not needed either. The can be highly correlated, because the proof only controls each exponential moment separately and never factors the joint distribution across different .

9. Theorem 2: Massart's lemma and learning with finite classes

9.1 Each function corresponds to a random signed sum

Fix the inputs . For a finite class , define

For fixed , the terms are independent with mean zero. Each term lies in , so by Hoeffding's lemma it is -sub-Gaussian. Therefore

The first step is where independence is truly needed: it is the independence of the random signs at different sample locations, not the independence of the across different .

9.2 Applying the maximal lemma and dividing by the sample size

By (40):

If , then , so

Combining with (30):

For a fixed finite class with finite , the right-hand side tends to zero. If we want the upper bound not to exceed , a sufficient condition is

This is the guarantee given by this method; one cannot call it "the exact optimal rate for all finite classes" based on an upper bound alone. For example, a singleton class has excess risk zero to begin with, and realizable classification achieves yet a different rate.

9.3 Why not apply the maximal inequality to the empirical process directly

For a fixed finite class with bounded loss , let . Each is -sub-Gaussian. Proof: each centered term has mean zero and range length ; summing the independent terms and dividing by turns the squared exponential-moment parameter into .

The maximal lemma then gives directly

So finite classes can indeed skip symmetrization and still get a guarantee. In an infinite class, however, is not determined by the predicted values on the sample alone, and the empirical process cannot be compressed equivalently into a finite projection. The value of symmetrization is that it provides a uniform treatment for infinite classes.

10. Infinite binary classes: where the growth function comes from

10.1 Sample projections turn "infinitely many functions" into "finitely many behaviors"

For , define

Although may be uncountable, . And

This equality holds because the objective only reads the ; functions with the same projection contribute exactly the same.

The growth function is defined as the maximal number of behaviors over all sample locations:

Since the number of possibilities is a finite integer, the maximum can be understood as an actually attained largest integer. Repeated inputs can only reduce the degrees of freedom for distinct labelings; when computing the worst-case growth function one usually picks distinct inputs.

10.2 The complexity bound and the failure of the trivial bound

Every projected vector has squared norm , so Massart's lemma gives

In binary classification , hence

Plugging in only gives the constant , which does not prove convergence to zero; one can also use the trivial complexity bound 1 to improve the constant slightly, but it still does not tend to zero. If the growth function is only of order , its logarithm is , and after dividing by it can tend to zero.

10.3 Why population risk cannot be compressed directly into the projection

Two functions can agree on every training point yet differ substantially outside the training set. They have the same empirical risk but may have different population risks, so cannot be recovered from the projection vector alone.

Symmetrization replaces the population mean by a sample difference and then splits it via random signs; only then does one obtain a quantity that depends only on the finite projection. This step explains the design purpose of the whole chain of upper bounds.

11. Propositions 1 and 2: the exact growth functions of thresholds and intervals

11.1 Why the single-threshold class has exactly labelings

The slides define

Sort the distinct samples . Positive labels can only form a left prefix: the first are and the rest are , for .

Every is realizable: for take ; for take ; for the other take . Therefore

A proof of an "exact growth function" requires both an upper and a lower bound; one cannot claim exactness by listing only some realizable patterns.

11.2 Why the interval class gives

Predict inside the interval and outside:

A nonempty set of positive labels must be a contiguous block with . The total number of block lengths and positions is

Every contiguous block is realizable by an interval; together with the all-negative labeling realized by placing the interval outside all the samples, we get

Then (52) gives . One can also count by picking the two gaps, among the gaps between samples, where the endpoints fall, but "the positive labels form a single contiguous block" explains more directly why nothing is double-counted or missed.

12. The definition of VC dimension and complete proofs of Propositions 3-5

12.1 The quantifiers in "shattering"

A set of inputs is shattered if all label vectors can be realized by functions in the class:

The VC dimension is the supremum of the sizes of shattered point sets:

To prove that the VC dimension equals , one must do two different things: construct one shattered set of size , and prove that no set of size can be shattered. Showing that one particular set of points fails is not enough.

If a large set is shattered, so is every subset of it: for any labeling of the subset, assign arbitrary labels to the remaining points and use the realizing function of the large set. Hence a class of finite dimension has for all .

12.2 Proposition 3: VC dimension is 0 if and only if a nonempty class has exactly one function

If the class has only one function, any single point admits at most one label and naturally cannot be shattered. Conversely, if the class contains two different functions , there is an with . Both binary labels are then realizable at that point, so at least one point can be shattered and the VC dimension is at least 1.

Here functions are distinguished as actual mappings, not as different parameterizations; reparameterizing the same function does not increase the VC dimension of the class. The "nonempty class" condition must also be kept, otherwise the empty class is a boundary exception to the original statement.

12.3 Proposition 4: the threshold class has VC dimension 1

For any single point , placing the threshold to its left or right realizes both labels, so the lower bound is 1. For any two distinct points , the labeling is impossible: if the right point is to the left of the threshold, the left point must be as well. Hence the upper bound is 1.

12.4 Proposition 5: the interval class has VC dimension 2

For any , all four labelings are realizable: the interval covers both points, only the first, only the second, or neither, so the lower bound is 2.

For any three distinct points , the labeling is not realizable, because an interval containing both endpoints must contain the middle point. Hence the upper bound is 2.

These examples show that VC dimension measures the number of points whose labels can be controlled independently, not merely how many functions there are.

13. Proposition 6: affine linear classifiers have VC dimension equal to the input dimension plus one

To avoid clashing with the VC-dimension notation, here denotes the dimension of the input space. Consider

with the slide convention when and otherwise.

13.1 An explicit construction for the lower bound

Take the points . For arbitrary labels , let

Then and . All labels are realized strictly, so

This does not say "every set of points can be shattered"; it says there exists one such affinely independent set that can be shattered. Degenerate configurations such as collinear points may fail.

13.2 Affine dependence proves that any points fail

Take any points and augment them to . Linear dependence guarantees coefficients , not all zero, with

Since the coefficients sum to zero, the nonzero coefficients include both positive and negative ones. Label the positive-coefficient points , the negative-coefficient points , and the zero-coefficient points arbitrarily. If some realizes this, then

while for , the negative label forces the score to be strictly negative, which becomes strictly positive after multiplication by the negative coefficient. There is at least one negative coefficient, so

a contradiction. Therefore no points can be shattered; combined with the lower bound:

This proof keeps the sign convention at zero and does not gloss over "points on the boundary." Without the bias it is a different function class, and cannot be applied directly.

13.3 The four-point problem in two dimensions: intuition and the exact answer

In two dimensions, three non-collinear points can be shattered. If four points form a convex quadrilateral, label them alternately along the boundary; the segments joining the two same-labeled pairs cross, and no line can separate them. If one point lies in the convex hull of the other three, labeling the interior point oppositely to the three outer points is also not linearly separable; degenerate cases are covered by the general argument of (63)-(64).

The slides ask what actually is. The supplementary answer is 14:

  • On a convex quadrilateral, all-positive and all-negative give 2;
  • exactly one positive or exactly one negative gives ;
  • two adjacent points positive gives 4;
  • only the two alternating labelings cannot be realized.

That is 14 in total. Why can no other four-point configuration exceed 14? Every configuration has at least one unrealizable labeling; on a finite sample for linear classifiers, the realizable labelings are closed under sign flip. The reason: first nudge the bias up slightly so that all originally positive points become strictly positive while the originally negative points stay strictly negative, then negate simultaneously to realize the complementary labeling. Hence unrealizable labelings also come in pairs, so there are at most 14. This is a supplementary proof for the slide's question, not an exact computation needed for the learning bounds that follow.

14. Proposition 7: why the one-parameter sine class has infinite VC dimension

14.1 "High frequency, hence complex" is not enough

Consider

That the number of oscillations can be large is only intuition. To prove infinite VC dimension, one must, for every , first fix a set of inputs and then use the parameter to realize all labelings of them; one cannot switch to a new set of inputs for each labeling.

14.2 An explicit construction via binary digits

Fix and choose

These points are pairwise distinct and all lie in . For any desired labels , define the bits when and when . Let

Then

Multiplying (68) by , the first binary digits form the integer part, and the fractional part is

If , the tail term is strictly positive, while

Hence . If , then . The extra tail term guarantees that no input lands exactly on a zero of the sine.

Since sine is positive in the first half of each period and negative in the second,

Every labeling is realizable, so for every there is a set of inputs that can be shattered:

The construction uses only one real parameter , but it exploits arbitrarily fine choices of its value and ever higher frequencies. The number of parameters can help guess the VC dimension of a simple class, but it is not a universal theorem.

14.3 A three-point example computable by hand

Take , inputs , desired labels , hence bits . Then .

The three phases are , whose sine signs are positive, negative, positive in turn. This example only shows how the general construction computes; the infinite-dimension conclusion comes from the proof above for all .

15. Lemma 4: completing the inductive proof of Sauer's lemma

15.1 The statement and its boundary cases

If a nonempty binary class has VC dimension at most , then

When , one further has

Writing the case into is useful: then , the trivial bound. This keeps a legitimate boundary case when the recursion reaches , so that one does not misuse an inductive hypothesis stated only for .

15.2 What happens after deleting one coordinate

Fix distinct inputs. Let be the set of all length vectors that appear after deleting the first coordinate of the original projection. Let

Every vector in can be extended by at least one first label; if it belongs to , it can be extended by the other one as well. The exact count is therefore

One does not count all of twice; only the part with a "double extension" contributes one extra time.

15.3 Why the second class has VC dimension one less

Regard as binary classes defined on the remaining finite set of inputs.

The VC dimension of is at most : otherwise one could shatter points among the remaining points, and the original class certainly could as well, a contradiction.

The VC dimension of is at most : if it could shatter points among the remaining ones, then every labeling pattern there would come from a vector that admits both first labels . The original class would then shatter those points plus the deleted point, in total, a contradiction.

So by induction

If is empty it contributes zero, and no special VC dimension needs to be assigned to an empty class. The base cases are: when there is only one labeling pattern, and when there is only the empty vector.

15.4 How Pascal's identity completes the induction

For :

Out-of-range binomial coefficients are zero by convention. Since every input set satisfies this bound, taking the maximum over inputs gives (73).

15.5 From a binomial sum to

Let . When , , so

The last inequality comes from , provable via the tangent lower bound of the exponential function at zero. Dividing by gives (74). If , use directly that the growth function is 1; do not force zero into a formula containing .

15.6 The precise meaning of "from exponential to polynomial"

When , some point set can realize all labelings; once , the growth function is controlled by a polynomial of fixed degree . Sauer gives an upper bound and does not guarantee that every class actually grows exactly like .

For the threshold class with , the Sauer bound is , identical to the exact growth function. For the interval class with ,

again identical to the exact growth function. This shows the combinatorial upper bound is indeed attained, at least in these examples.

16. Why finite VC dimension is sufficient and infinite VC dimension is necessary

16.1 Sufficiency: plug in the growth-function bound

For binary classification with 0-1 loss and , combining (52) and (74):

For fixed finite , , so the class is learnable. If , use the trivial risk bound 1; if , a nonempty class has only one function and proper ERM has excess risk zero.

16.2 Necessity: restrict no free lunch to the shattered set

If the VC dimension is infinite, then for any sample size there exist inputs shattered by . Hence every binary labeling is realized by some function in the class.

Give a uniform input distribution, and let the labels be determined by some fixed labeling function from the class. For each such candidate distribution, the best in-class risk is zero.

Fix any algorithm and training inputs; at least half of the support points do not appear. For any unseen point, pair up all labelings by "flip only this point": the two members of each pair produce exactly the same training set, but the true labels at that test point are opposite. A randomized algorithm can be paired up using the same random seed as well, giving average error rate .

Therefore the average candidate-distribution risk is at least , and at least one candidate distribution makes the algorithm's risk no less than . Since the algorithm is arbitrary,

The comparator only needs to realize all labels on ; how the class behaves on the remaining inputs does not matter, because the distribution puts no probability there. This is why the Lecture 1 lower bound can be reused without requiring the reference class to be all functions.

16.3 What exactly the "closed loop" closes

Under binary classification, 0-1 loss, iid sampling, distribution-uniform statements, and the usual measurability conditions of this lecture:

Finite VC dimension also implies, through the same chain of upper bounds, the uniform convergence adopted in the slides. In the other direction, uniform convergence implies learnability, and hence finite VC dimension.

These equivalences characterize the condition for this particular setting; they should not be generalized into "whenever a statistical learning problem is learnable, it is necessarily learned well by any ERM." The original slides state explicitly at the end that general statistical learning does not always satisfy such a conclusion.

"The chain of upper bounds is tight enough" here means tight enough to distinguish learnability from non-learnability; it does not mean that every logarithmic factor in is already an unimprovable lower bound.

17. How to use the results: sample size, confidence, and scope

17.1 Sample size in expectation

By (81), to require the upper bound to be at most , one can use the sufficient condition

Ignoring logarithmic factors, this reflects a sample dependence of . But the display above is still a sufficient condition derived in this lecture, not an exact expression of a necessary one.

The threshold class has a parameter ranging over all real numbers and uncountably many functions, yet VC dimension 1; it does not pay a sample cost proportional to the number of possible parameter values. The sine class, in contrast, has only one real parameter but infinite VC dimension. Together, these two examples explain why "the number of parameters" cannot replace a complexity analysis of the class.

17.2 Supplement: deriving a high-probability version for finite classes

The main line of this lecture uses expectations. If the loss lies in a bounded interval of length , then for a fixed function, the exponential moments and tail bounds of Section 7 give

Apply a union bound over the functions:

Set the right-hand side equal to and take . On an event of probability at least , inserting two empirical-risk terms gives

Here the extra conditions of the high-probability theorem, the confidence term, and the factor 2 from two-sided deviation are all derived explicitly; the expected upper bound was not simply relabeled with a different symbol as a high-probability conclusion.

17.3 Supplement: why realizable classification may enjoy a faster guarantee

If a finite binary class has size and there exists a zero-risk target function, then ERM has zero training error. Take any fixed bad function with true risk greater than ; the probability that it makes no mistake on all independent training samples is

Union-bounding over the bad functions, the probability that a bad yet zero-training-error function exists is at most . Therefore

suffices for ERM to achieve risk at most with probability at least .

This differs from the -type upper bound of general agnostic learning because the realizability assumption is stronger. This supplement helps explain why the upper bound of this lecture cannot be called a uniform "exact rate" for all cases.

17.4 The connection to Lecture 3

Binary-classification projections in this lecture lie in and are therefore automatically finite. Regression projections lie in and can contain infinitely many vectors even for finite .

Lecture 3 will replace "counting distinct labels exactly" by "counting finite representatives up to error ," namely covering numbers, and then sharpen the estimate through multi-scale chaining. So the Massart lemma, symmetrization, and the projection viewpoint of this lecture all become tools for the next lecture, unchanged.

18. A rigor checklist and an index to the original slide proofs

18.1 Shorthands and boundary cases to watch

Easily misread pointHow this report handles it
The argmin necessarily existsHandled with approximate ERM and a fixed approximately optimal population function
Regularization is always equivalent to ERM on a fixed smaller classProves the one-way relation, and notes that the constraint radius may depend on the data and the converse needs conditions
Every function has zero-mean deviation ⇒ the maximal deviation is smallGives an example where pointwise convergence does not imply uniform convergence
The symmetrization random-sign equalityExplains that it holds only in distribution and expectation over random samples
The contraction proof merges terms with a duplicated Uses the correct form
Square loss uniformly takes Distinguishes half-square, full square, and unbounded ranges
The maximal lemma requires all variables to be independentIt does not; Massart only needs the signs at different locations to be independent
Every finite class is learnableThis lecture's derivation also relies on conditions on function values and the loss; heavy-tailed or unbounded risk issues cannot be ignored
VC dimension zero iff a single functionKeeps the nonempty-class assumption; functions are counted as mappings, not as parameters
Proving the VC lower bound sufficesOne must additionally exhibit an unrealizable labeling for every larger point set
Linear classifiers have dimension equal to the input dimensionThis lecture includes a bias, so it is the input dimension plus one
High sine frequency alone proves infinite VCGives fixed input points and an explicit parameter construction for each labeling
Sauer's induction handles only Adds the boundary cases and
The closed loop means the exact optimal rateThe loop is a learnability condition; it does not claim that every factor is unimprovable

18.2 Locating items by the original slide numbering

Slide contentComplete derivation in this report
ERM and the original display (1)Section 1, (1)-(6)
Original display (2), empirical process, uniform convergenceSection 2, (7)-(11)
Definition of Rademacher complexitySection 3, (12)-(13)
Theorem 1: symmetrizationSection 4, (14)-(18)
Lemma 1: classification lossSection 5, (19)-(21)
Lemma 2: contractionSection 6, (22)-(30)
Sub-Gaussian definition, Hoeffding's lemmaSection 7, (31)-(37)
Lemma 3: maximal inequalitySection 8, (38)-(40)
Theorem 2: MassartSection 9, (41)-(47)
Sample projections and the growth functionSection 10, (48)-(52)
Proposition 1: threshold growth functionSection 11.1, (53)-(54)
Proposition 2: interval growth functionSection 11.2, (55)-(57)
Propositions 3, 4, 5: basic VC dimensionsSection 12, (58)-(59) and the individual proofs
Proposition 6: VC dimension of linear classifiersSection 13, (60)-(65)
Proposition 7: infinite VC dimension of the sine classSection 14, (66)-(72)
Lemma 4: Sauer's lemmaSection 15, (73)-(80)
Summary and the necessity closed loopSection 16, (81)-(83)

18.3 Questions you should be able to answer independently afterwards

  1. Why can't the function selected by ERM directly inherit the "fixed function" law of large numbers?
  2. In symmetrization, what property does each swap and each inequality use?
  3. Why may the contraction proof swap the two candidate functions without requiring the class to be closed under negation?
  4. Why can an infinite binary class still use Massart's lemma for finite sets?
  5. How do "there exists a set" and "every set" prove the lower and upper bounds on VC dimension respectively?
  6. In Sauer's proof, why does the projection class that extends in both directions have VC dimension one less?
  7. How does infinite VC dimension guarantee that a constant-difficulty distribution exists at every sample size?
  8. Why does the learnability equivalence for finite VC dimension not mean that the current rate is already optimal?

Reviewed against revision lecture2-explanation-report@2026-09-14