Concepts / Compression-Based Generalization Bounds

Compression-Based Generalization Bounds

Theorem 30.2 considers a learning rule A that receives m examples but returns a hypothesis determined by k of them through a mapping B.

  • Programming

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.

1z12z23z34z4mzm
Which positions in the m-example sequence S are selected to determine the hypothesis, and which examples are left out?

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.

receivesidentifiesprovidesdeterminesSm examplesAlearning rulez_i1, ..., z_ikselected examplesBmappingh_Ihypothesis
How does A use the full sequence S while B identifies k examples whose contents determine the returned hypothesis?

Tracing a Compressed Description

Suppose a training sequence S contains m examples and the returned hypothesis is determined by k of them.

Full input: The learning rule A receives S, which contains all m examples.

Selected subset: Choose indices i1 through ik for the examples whose contents determine the hypothesis.

Mapping: 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.

choose kcollect remainingdeterminessupportsSm examplesSelected examplesk examplesh_IhypothesisVm-k examplesProbability argumenttheorem condition
After k examples are selected, where do the remaining m-k examples go, and how are they used in the probability argument?

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.

choicechoicechoiceeventeventeventyieldsIndex choicesk indices from mI1h_I1Union boundcombined eventsAt least 1 − δ'probability statementI2h_I2INh_IN
How do all possible choices of k indices create separate events, and how are their failure probabilities combined with a union bound?

The Adjusted Probability Parameter

δ' = (m choose k) × δ

combine with kchoosemultiply by δmultiplymsequence size(m choose k)index subsetsδ'adjusted parameterkselected examplesδbase parameter
How does the number of possible k-index subsets determine the adjusted probability parameter δ' used for each fixed index choice?

Evaluating the Bookkeeping Relation

For a generated numerical illustration, let m = 4, k = 2, and δ = 0.01. Calculate δ' using δ' = (m choose k) × δ.

Count index subsets: There are (4 choose 2) = 6 choices of 2 indices from 4 positions.

Apply the relation: Substitute the values into δ' = (m choose k) × δ to obtain δ' = 6 × 0.01.

Evaluate: 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.

QuantityMeaning when m ≥ 2k
kNumber of selected examples
m-kNumber of unselected examples in V
m-k ≥ kThe unselected part is at least as large as the selected part

Mistakes in Reading the Proof

  • Assuming that A uses only k examples as input.

    Theorem 30.2 describes A as receiving a sequence S containing m examples. The returned hypothesis is determined by k of them.

    Fix: Keep the full input S and the k-example determining subset conceptually distinct.

  • Ignoring V after selecting the k examples.

    The unselected examples form V, which is central to the theorem's stated condition.

    Fix: Explicitly identify V as the collection of the remaining m-k examples.

  • Applying the probability statement to only one index choice.

    The proof defines h_I for possible index choices and combines the corresponding probability statements with a union bound.

    Fix: Account for the selection factor (m choose k) when forming δ'.

  • Confusing δ with δ'.

    The proof introduces δ' = (m choose k) × δ.

    Fix: Calculate δ' from the number of possible k-index choices and δ.

  • Treating m ≥ 2k as an optional numerical detail.

    The requirement supports the probability-bound derivation by ensuring that m-k is at least k.

    Fix: Check the size condition before applying the proof structure.

Check Your Understanding

MEDIUM

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 δ'?

  • It becomes larger
  • It becomes smaller
  • It disappears
  • It is unrelated to the index choices
Reveal answer

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

  1. A receives a training sequence S of m examples, while the returned hypothesis is determined by k examples through B.
  2. The selected examples determine h_I, and the unselected examples form V.
  3. The proof considers possible index choices rather than assuming one fixed subset.
  4. A union bound combines the probability statements for those choices, introducing δ' = (m choose k) × δ.
  5. The 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.