Compression-Based Generalization Bounds
Compression-based generalization bounds study what can be concluded from this smaller determining subset.
A Smaller Description Inside a Larger Sample
A learning rule A can receive a training sequence S containing m examples, yet return a hypothesis whose contents are determined by only k of those examples. Compression-based generalization bounds study what can be concluded from this smaller determining subset. The proof tracks both the examples that determine the hypothesis and the examples that were not selected.
From A to the Compressed Hypothesis
Theorem 30.2 describes a learning rule A that receives the full sequence S of m examples. The returned hypothesis is determined by k examples through a mapping B. If the selected examples have indices i1 through ik, the proof writes the associated hypothesis as h_I = B(z_i1, ..., z_ik). Thus, A may inspect the full training sequence, while the hypothesis it returns is determined by the selected examples represented through B.
Tracing a Compressed Description
Suppose a training sequence S contains m examples and the returned hypothesis is determined by k of them.
- 1Full input
The learning rule A receives S, which contains all m examples.
- 2Selected subset
Choose indices i1 through ik for the examples whose contents determine the hypothesis.
- 3Mapping
Apply B to the selected examples to write h_I = B(
z_i1, ...,z_ik).
The hypothesis is represented through k selected examples even though A receives the full m-example sequence.
The Unselected Set V
Once k examples are selected, the remaining examples are collected in the set V. V is not merely leftover notation: it is central to the theorem's stated condition. The proof separates the examples used to determine h_I from the examples that were not selected, allowing the probability argument to be expressed in terms of the compressed part and its complement.
Why Every Index Choice Matters
The proof does not assume one fixed choice of k examples from the beginning. For every index choice I in [m]^k, it defines h_I = B(z_i1, ..., z_ik). Each possible choice therefore creates a corresponding hypothesis and a corresponding event that must be controlled. The union bound then combines the probability statements for these separate choices.
The Adjusted Probability Parameter
- 1Count the possible choices of k indices from the m positions: (m choose k).
- 2Multiply that selection factor by δ.
- 3Use the resulting δ' in the probability statement produced after the union-bound step.
Evaluating the Bookkeeping Relation
For a generated numerical illustration, let m = 4, k = 2, and δ = 0.01. Calculate δ' using δ' = (m choose k) × δ.
- 1Count index subsets
There are (4 choose 2) = 6 choices of 2 indices from 4 positions.
- 2Apply the relation
Substitute the values into δ' = (m choose k) × δ to obtain δ' = 6 × 0.01.
- 3Evaluate
The product is 0.06.
δ' = 0.06. This calculation evaluates the probability parameter appearing after the union-bound step; it does not supply the omitted performance condition from the theorem statement.
The Role of m ≥ 2k
The proof requires m ≥ 2k. Under this requirement, the number of unselected examples, m-k, is at least as large as the number of selected examples, k. This relationship supports the probability-bound derivation used in the theorem. It is therefore a condition on the sizes of the two parts of the training sequence, not a claim that the hypothesis uses all m examples.
| Quantity | Meaning when m ≥ 2k |
|---|---|
| k | Number of selected examples |
| m-k | Number of unselected examples in V |
| m-k ≥ k | The unselected part is at least as large as the selected part |
The size relationship used to support the probability-bound derivation
Mistakes in Reading the Proof
Common mistake Assuming that A uses only k examples as input.
What it looks likeTreating the learning rule as if it receives only the compressed subset.
Why it failsTheorem 30.2 describes A as receiving a sequence S containing m examples. The returned hypothesis is determined by k of them.
Do this insteadKeep the full input S and the k-example determining subset conceptually distinct.
Common mistake Ignoring V after selecting the k examples.
What it looks likeDescribing only the selected examples and leaving the remaining examples out of the proof.
Why it failsThe unselected examples form V, which is central to the theorem's stated condition.
Do this insteadExplicitly identify V as the collection of the remaining m-k examples.
Common mistake Applying the probability statement to only one index choice.
What it looks likeAnalyzing one h_I and forgetting the other possible choices.
Why it failsThe proof defines h_I for possible index choices and combines the corresponding probability statements with a union bound.
Do this insteadAccount for the selection factor (m choose k) when forming δ'.
Common mistake Confusing δ with δ'.
What it looks likeUsing δ as the final parameter after the union-bound step.
Why it failsThe proof introduces δ' = (m choose k) × δ.
Do this insteadCalculate δ' from the number of possible k-index choices and δ.
Common mistake Treating m ≥ 2k as an optional numerical detail.
What it looks likeProceeding without checking the relationship between selected and unselected examples.
Why it failsThe requirement supports the probability-bound derivation by ensuring that m-k is at least k.
Do this insteadCheck the size condition before applying the proof structure.
Check Your Understanding
A learning rule receives a sequence S of m examples. Its returned hypothesis is determined by k examples through B. Explain what belongs in V, why the proof introduces h_I for possible index choices, and how you would calculate δ' if m, k, and δ were given.
Hints
- V contains the examples not selected among the k determining examples.
- Each index choice I produces a corresponding h_I.
- Use δ' = (m choose k) × δ.
What do you think happens?
If the proof accounts for more possible k-index choices while δ stays fixed, what happens to the multiplicative factor in δ'?
Reveal answer
It becomes larger.
The relation δ' = (m choose k) × δ includes the number of possible k-index subsets as a multiplicative factor.
Proof Structure at a Glance
- 1A receives a training sequence S of m examples, while the returned hypothesis is determined by k examples through B.
- 2The selected examples determine h_I, and the unselected examples form V.
- 3The proof considers possible index choices rather than assuming one fixed subset.
- 4A union bound combines the probability statements for those choices, introducing δ' = (m choose k) × δ.
- 5The condition m ≥ 2k ensures that the unselected portion has size m-k at least as large as k, supporting the probability-bound derivation.
Key Takeaways
- Theorem 30.2 studies a learning rule that receives m examples but returns a hypothesis determined by k of them.
- The unselected examples form V and are central to the theorem's stated condition.
- The proof defines h_I for possible index choices and uses a union bound to combine the corresponding probability statements.
- The adjusted parameter is δ' = (m choose k) × δ.
- The requirement m ≥ 2k makes the unselected portion at least as large as the selected portion, supporting the probability-bound derivation.