Generalization Bounds for Linear Predictors
The generalization result is conditional.
From Training Separation to Generalization
Hard-SVM is designed for a setting in which the training data can be separated with the required margin condition. Its output is a vector called w_S, determined by Equation (26.19). The central question is whether this vector does more than fit the observed sample: does its performance extend to new examples drawn from the same distribution? The proof of Theorem 26.13 answers this through a generalization bound.
The notation w_S emphasizes that the vector depends on the training sample S. It is not merely an arbitrary vector from the hypothesis class. It is the particular hard-SVM output selected by Equation (26.19). Under the theorem's assumptions, this output separates the training data with the required margin and has zero empirical loss.
The Assumptions Before the Bound
The generalization result is conditional. The distributional assumption guarantees a vector w⋆ satisfying y〈w⋆, x〉 ≥ 1 with probability 1. The input vectors also satisfy ||x||_2 ≤ R with probability 1. These conditions describe a margin-separable setting with bounded inputs.
- There is a vector w⋆ satisfying y〈w⋆, x〉 ≥ 1 with probability 1.
- The input vectors satisfy ||x||_2 ≤ R with probability 1.
- The hard-SVM output is considered under the required margin-separation setting.
- The proof places w_S in the bounded class H determined by B = ||w⋆||_2.
- The hard-SVM output has zero empirical loss under these assumptions.
Why Ramp Loss Enters the Proof
The target statement concerns zero-one loss, but the proof begins by fixing the ramp loss. This choice supplies the properties required for the theorem application: ramp loss is 1-Lipschitz, takes values in the interval [0, 1], and upper bounds zero-one loss.
| Property | Zero-one loss | Ramp loss |
|---|---|---|
| Role in the proof | Target loss to be bounded | Intermediate loss used for the theorem |
| Upper-bound relationship | Is upper bounded by itself | Upper bounds zero-one loss |
| Lipschitz property | Not the stated reason for the theorem application | 1-Lipschitz |
| Range | Not specified here | Values in [0, 1] |
Ramp loss is useful because it has the theorem-friendly properties while still controlling zero-one loss.
The proof therefore uses ramp loss as a bridge. First, Theorem 26.12 can be applied to a loss with the required boundedness and Lipschitz properties. Then, because ramp loss upper bounds zero-one loss, the resulting control supports the zero-one-loss generalization statement in Theorem 26.13.
The Proof Trace
The proof of Theorem 26.13 follows a fixed sequence. It does not invoke Theorem 26.12 immediately after naming w_S. Instead, it first verifies that the theorem's loss and class requirements are available for this particular output.
- 1Fix the ramp loss.
- 2Introduce the bounded class H using B = ||w⋆||_2.
- 3Use the distributional assumptions and the definition of hard-SVM to establish that w_S belongs to H with probability 1.
- 4Use the hard-SVM definition and the margin-separation assumption to establish L_S(w_S) = 0.
- 5Invoke Theorem 26.12 for w_S in the class H.
- 6Obtain the high-probability generalization statement asserted by Theorem 26.13, with ramp loss providing the connection to zero-one loss.
Tracing the Theorem Application
Suppose the stated distributional and hard-SVM assumptions hold. What must the proof check before applying Theorem 26.12 to w_S?
- 1Choose the loss
The proof fixes ramp loss because it is 1-Lipschitz, takes values in [0, 1], and upper bounds zero-one loss.
- 2Choose the bounded class
The proof introduces H using B = ||w⋆||_2.
- 3Place the learned vector
The distributional assumptions and the hard-SVM definition imply that w_S belongs to H with probability 1.
- 4Record the training loss
The margin-separation setting and the hard-SVM output give L_S(w_S) = 0.
- 5Apply the theorem
Theorem 26.12 is now applied to w_S, and its result is used to obtain the high-probability statement of Theorem 26.13.
The proof succeeds because it supplies both the theorem-compatible loss and bounded-class membership, then uses zero empirical loss when specializing the bound to w_S.
Why Zero Empirical Loss Matters
The equality L_S(w_S) = 0 says that the empirical loss of the hard-SVM output on the training sample is zero under the theorem's assumptions. This is the bridge between the training result and the generalization theorem: when Theorem 26.12 is specialized to w_S, the empirical-loss contribution has value zero rather than contributing an additional positive term.
What do you think happens?
After Theorem 26.12 is applied to w_S, what happens to the empirical-loss contribution when L_S(w_S) = 0?
Reveal answer
It evaluates to zero.
The proof has established L_S(w_S) = 0, so the empirical-loss contribution vanishes when the generalization theorem is specialized to the hard-SVM output.
Mistakes in Reading the Proof
Common mistake Treating w_S as an arbitrary vector rather than the hard-SVM output.
What it looks likeThe proof is described as applying to any vector without using Equation (26.19).
Why it failsw_S is specifically the vector determined by the hard-SVM definition, and the proof uses that definition to establish its relevant properties.
Do this insteadTrack w_S as the sample-dependent hard-SVM output defined by Equation (26.19).
Common mistake Applying Theorem 26.12 before checking class membership.
What it looks likeThe proof jumps directly from the existence of w⋆ to the final hard-SVM statement.
Why it failsThe proof first places w_S in the bounded class H using B = ||w⋆||_2.
Do this insteadExplicitly establish that w_S belongs to H with probability 1 before invoking Theorem 26.12.
Common mistake Assuming that zero empirical loss alone proves the generalization result.
What it looks likeBecause L_S(w_S) = 0, the proof is considered complete.
Why it failsThe theorem application also depends on the bounded class and the properties of ramp loss.
Do this insteadTreat L_S(w_S) = 0 as one input to the theorem application, not as the entire argument.
Common mistake Confusing ramp loss with the final target loss.
What it looks likeThe proof is said to use ramp loss even though it is trying to control zero-one loss.
Why it failsRamp loss is an intermediate loss chosen because it is 1-Lipschitz, bounded in [0, 1], and upper bounds zero-one loss.
Do this insteadDescribe ramp loss as the theorem-friendly bridge to the zero-one loss guarantee.
Practice the Proof Trace
Explain in your own words why the proof of Theorem 26.13 cannot stop after showing that L_S(w_S) = 0. Name the other facts that must be established before Theorem 26.12 can be applied.
Hints
- Start with the loss used in the theorem application.
- Identify the bounded class and the quantity B that defines it.
- State the assumptions involving w⋆ and the input vectors.
- Finish by explaining what happens to the empirical-loss term.
- 1w_S is the hard-SVM vector defined by Equation (26.19), learned from the training sample.
- 2The theorem applies in a margin-separable setting with a vector w⋆ satisfying y〈w⋆, x〉 ≥ 1 with probability 1 and bounded inputs satisfying ||x||_2 ≤ R with probability 1.
- 3Ramp loss is selected because it is 1-Lipschitz, takes values in [0, 1], and upper bounds zero-one loss.
- 4The proof places w_S in the bounded class H using B = ||w⋆||_2.
- 5The equality L_S(w_S) = 0 removes the empirical-loss contribution when Theorem 26.12 is applied, leading to the high-probability statement of Theorem 26.13.
Key Takeaways
- Hard-SVM produces a sample-dependent vector w_S defined by Equation (26.19).
- The result assumes a margin-separating vector w⋆, bounded inputs, and the corresponding hard-SVM setting.
- Ramp loss is the intermediate loss because it is 1-Lipschitz, bounded between 0 and 1, and upper bounds zero-one loss.
- The proof establishes that w_S belongs to the bounded class H before applying Theorem 26.12.
- Because L_S(w_S) = 0, the empirical-loss contribution vanishes in the specialized bound used for Theorem 26.13.