Concepts / Generalization Bounds for Linear Predictors

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.

  • Programming

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.

inputproducessatisfies under assumptionsTraining sample SEquation (26.19)defines hard-SVM outputw_Ssample-dependent vectorRequired margintraining separation
What object is produced from the sample, and what property does it have under the hard-SVM assumptions?

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.
guaranteesguaranteessets Bsupports theorem settingcontains with probability 1Distributionalassumptionw⋆y〈w⋆, x〉 ≥ 1Bounded class HB = ||w⋆||_2w_SL_S(w_S) = 0Bounded inputs||x||_2 ≤ R
Which assumptions support the bounded-class and zero-training-loss conclusions needed by the proof?

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.

PropertyZero-one lossRamp loss
Role in the proofTarget loss to be boundedIntermediate loss used for the theorem
Upper-bound relationshipIs upper bounded by itselfUpper bounds zero-one loss
Lipschitz propertyNot the stated reason for the theorem application1-Lipschitz
RangeNot specified hereValues 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.

has propertyprovidesused withcontrolssupports guarantee forZero-one lossdesired guaranteeUpper boundramp over zero-oneTheorem 26.12applied to ramp lossRamp lossvalues in [0, 1]1-Lipschitz
How does ramp loss connect the theorem's usable loss properties to the desired zero-one loss guarantee?

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.

  1. Fix the ramp loss.
  2. Introduce the bounded class H using B = ||w⋆||_2.
  3. Use the distributional assumptions and the definition of hard-SVM to establish that w_S belongs to H with probability 1.
  4. Use the hard-SVM definition and the margin-separation assumption to establish L_S(w_S) = 0.
  5. Invoke Theorem 26.12 for w_S in the class H.
  6. Obtain the high-probability generalization statement asserted by Theorem 26.13, with ramp loss providing the connection to zero-one loss.
proof setupbounded-class placementtogether with margin assumptionssupplies theorem inputyieldsRamp loss1-Lipschitz and boundedClass HB = ||w⋆||_2w_S ∈ Hwith probability 1L_S(w_S) = 0zero empirical lossTheorem 26.12generalization boundTheorem 26.13hard-SVM result
How does the general theorem become the hard-SVM generalization result?

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.

containsspecializes to w_Shas empirical losssimplifies boundTheorem 26.12general bound for a memberof HEmpirical-loss termpresent beforespecializationTheorem 26.13hard-SVM guaranteew_Shard-SVM output0L_S(w_S)
What changes in the proof's bound when the hard-SVM output has zero empirical loss?

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?

  • It remains unchanged.
  • It evaluates to zero.
  • It is replaced by the input-norm assumption.
  • It prevents the theorem from being applied.
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

MEDIUM

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.
  1. w_S is the hard-SVM vector defined by Equation (26.19), learned from the training sample.
  2. 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.
  3. Ramp loss is selected because it is 1-Lipschitz, takes values in [0, 1], and upper bounds zero-one loss.
  4. The proof places w_S in the bounded class H using B = ||w⋆||_2.
  5. 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.