Generalization Bounds for Linear Predictors
Hard-SVM's output w_S is defined by Equation (26.19) and satisfies L_S(w_S) = 0 under the theorem's assumptions.
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] |
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.
- Fix the ramp loss.
- Introduce the bounded class H using B = ||w⋆||_2.
- Use the distributional assumptions and the definition of hard-SVM to establish that w_S belongs to H with probability 1.
- Use the hard-SVM definition and the margin-separation assumption to establish L_S(w_S) = 0.
- Invoke Theorem 26.12 for w_S in the class H.
- Obtain 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?
Choose the loss: The proof fixes ramp loss because it is 1-Lipschitz, takes values in [0, 1], and upper bounds zero-one loss.
Choose the bounded class: The proof introduces H using B = ||w⋆||_2.
Place the learned vector: The distributional assumptions and the hard-SVM definition imply that w_S belongs to H with probability 1.
Record the training loss: The margin-separation setting and the hard-SVM output give L_S(w_S) = 0.
Apply 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
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
Treating w_S as an arbitrary vector rather than the hard-SVM output.
w_S is specifically the vector determined by the hard-SVM definition, and the proof uses that definition to establish its relevant properties.
Fix:
Track w_S as the sample-dependent hard-SVM output defined by Equation (26.19).Applying Theorem 26.12 before checking class membership.
The proof first places w_S in the bounded class H using B = ||w⋆||_2.
Fix:
Explicitly establish that w_S belongs to H with probability 1 before invoking Theorem 26.12.Assuming that zero empirical loss alone proves the generalization result.
The theorem application also depends on the bounded class and the properties of ramp loss.
Fix:
Treat L_S(w_S) = 0 as one input to the theorem application, not as the entire argument.Confusing ramp loss with the final target loss.
Ramp loss is an intermediate loss chosen because it is 1-Lipschitz, bounded in [0, 1], and upper bounds zero-one loss.
Fix:
Describe 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.
- w_S is the hard-SVM vector defined by Equation (26.19), learned from the training sample.
- The 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.
- Ramp loss is selected because it is 1-Lipschitz, takes values in [0, 1], and upper bounds zero-one loss.
- The proof places w_S in the bounded class H using B = ||w⋆||_2.
- The 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.