Lecture 5 Detailed Explanation

Derek Wang13 min read

Sequential games, duality, martingale differences, symmetrization, and sequential Rademacher complexity, with step-by-step proofs, worked examples, assumptions, pitfalls, self-tests, and a reading route.

This lecture replaces complexity on a fixed sample by complexity on a tree where history changes the future. This report covers all six source pages, expands the two main proofs, the tree quantifiers, and binary relabeling. Minimax and general contraction remain explicitly external theorems. Source: lecture5.pdf (local source, not published online). Companion: full handout. Previous: Lecture 4; next: Lecture 6.

1 Reading Map and Notation

Lectures 2–4 built the chain from generalization error to Rademacher complexity, covers, and combinatorial dimensions under i.i.d. sampling. This lecture retains that strategy while rebuilding the parts affected by time dependence. The result bounds the performance of an existing low-regret strategy; it does not yet give an executable original-game strategy. Lecture 7 begins algorithm design.

TopicSource pagesWhat to understand
Game and duality1–2Who chooses distributions first and what is observed
Theorem 12–3One comparison produces conditional centering
Trees and Theorem 24–5Why ghost samples cannot be exchanged immediately
Lemmas 1–25–6Tree relabeling versus general contraction

Notation: is the decision space, the comparator class, the outcome, the learner decision, and their distributions. In supervised learning ; a learner decision may be a prediction function, so do not confuse it with the true label .

Assume the required variables, suprema, and conditional kernels are measurable, expectations exist, and the invoked minimax conditions hold. Use arbitrarily accurate approximate extrema when extrema are not attained. Finite examples avoid these technical issues; linearity alone does not justify minimax for arbitrary infinite classes.

2 What Regret Compares

The comparator is one fixed function chosen afterward on the same realized outcome sequence. It is neither a different optimum each round nor a counterfactual sequence generated by inserting that comparator into the environment. Adaptivity makes both the realized outcomes and hindsight comparator random, so the expectation surrounds the entire difference, including its infimum. Total regret means vanishing average regret.

The current may use past history but cannot be chosen after observing the current private draw . If the environment could negate a realized random prediction, any randomized algorithm would err every round. The handout uses an environment that does not anticipate the current private randomness.

3 Why Repeated ERM Can Fail

Here is a supplementary example used again in Lecture 7. There are two constant experts; FTL chooses +1 on cumulative-loss ties. Present labels −1,+1,−1,+1,…:

RoundPredictionLabelLoss
1+1−11
2−1+11
3+1−11
4−1+11

After each even round the two experts tie again, so induction shows FTL errs every round. For even , each comparator errs times and regret is . The sequence is even fixed in advance. The leader reacts too sharply to a one-unit loss difference; optimal historical loss need not imply stable future behavior. This does not say FTL fails on every structured problem.

4 What Minimax Exchanges

First consider the one-round zero-one game with two labels. If the learner predicts +1 with probability , expected loss is against +1 and against −1. Minimizing the maximum gives and value . In the dual, the environment chooses probability of +1; knowing , the learner picks the more likely label and incurs . Maximizing this again gives .

Allowing environmental randomization does not change the primal value: once the learner’s mixed strategy is fixed, expectation is linear in the outcome distribution and cannot exceed the worst pure outcome. Minimax exchanges the current pair of mixed-strategy optimizations. In the dual the objective is linear in , so a pure decision suffices. Multiple rounds require backward induction through continuation values, not moving every infimum to the front.

A dual strategy receives ; a primal strategy does not. “Predict the most common label under the announced distribution” is therefore not a primal algorithm. Later algorithm design addresses this gap between a learnability bound and an implementable strategy.

5 Theorem 1: From the Dual to Martingale Differences

Let . For a fixed joint law, define conditional risk and optimal current risk by

Generalizing the handout’s two-round equality chain gives the exact dual expression. Each learner decision affects only its current loss, while the comparator depends only on outcomes. Eliminate learner decisions backward from the final round; environmental choices become kernels from histories to distributions. Such kernels encode a joint law. Thus

Replace the negative infimum by a supremum. Every fixed is an admissible decision, so in each round. This is the only comparison step:

Take expectations, the worst joint distribution, and divide by to obtain Theorem 1. The same is used throughout the sum. We never replace the supremum of the sum by a sum of per-round suprema; that further relaxation often produces a linear bound.

6 Why Zero Mean Is Not Enough

For fixed , the cumulative difference is a martingale; independence is unnecessary because conditional centering suffices. But a hindsight-selected function uses the entire sample path. One cannot first set every mean to zero and then maximize. For a fair sign , both and have mean zero, yet their maximum is always 1.

As a supplementary check, suppose there are functions with losses in . Conditional Hoeffding gives . Iteration bounds the cumulative moment-generating function by . A log-sum-exp bound over the functions yields

This anticipates Lecture 6: the key is concentration of each predictable process plus control of distinguishable behaviors in the class, not independence of all observations. Infinite classes will need tree covers.

7 A Tree Encodes All Possible Histories

Text
                     z1
               −1 /      \ +1
             z2(−1)      z2(+1)
           −1 / \ +1    −1 / \ +1
        z3(−,−) z3(−,+) z3(+,−) z3(+,+)

This explanatory sketch is supplementary; the source contains no figure. The entire tree can be written before random signs are drawn. Random left/right moves determine the visited nodes. A level- node can read only the first signs: this is predictability. A depth- tree has nodes, but a realization visits only . The final sign does not change visited nodes but still multiplies the last function value, explaining the source footnote.

The order is: choose one complete tree, draw the random path, then choose one function to fit the entire path. The root cannot see , and cannot change each round. Statistical Rademacher complexity is the special case where all nodes at a level are identical. A fixed tree is not a fixed path, and a worst-case tree cannot foresee future signs.

8 The Symmetrization Trap

With independent samples, each original/ghost pair has the same role, so multiplying a difference by a random sign is equivalent to swapping the pair. Dependence breaks this. As a minimal example, let be a fair binary variable and . An independent is fair, but both second-round draws use the actual history, so .

Swapping the first-round variables without changing the second-round conditional law changes the joint distribution. This alone invalidates a general exchangeability argument, even if a particular loss happens to give equal values. Second-round draws are exchangeable given history, so work backward from the final round.

9 Theorem 2: Relax the Future Before Swapping the Past

Take two rounds and write the loss as . Pulling out ghost expectations uses convexity of the supremum: maximizing after averaging is no larger than averaging the maximum. Write , giving

Symmetrize the second round conditional on real history, then replace the conditional expectation over that pair with a supremum. Future choices no longer privilege the real first-round draw. Only now symmetrize the first round:

The second-round supremum is inside the expectation over , so choices can depend on the first sign. This defines a depth-two tree. Split positive and negative parts using

Recoding signs together with branches makes the two worst-tree values equal, giving the factor 2.

For general , repeat backward: introduce the final sign, remove the final pair’s preferential dependence on real history, then continue toward the root. Operators alternate between choosing nodes and drawing signs. Every observed prefix permits two continuations, producing a pair of binary trees. Split the positive and negative sums only once at the end: the factor is 2, not . This repeats the same operators without an extra independence assumption.

Together with Theorem 1 this gives . Worst trees replace the original distribution because expectations were relaxed.

10 Removing Binary Loss Requires Relabeling the Tree

After substitution the constant term has mean zero. The remaining sign is . Given the past, the label is fixed, so this only flips the current fair coin. A recursive inverse proves that the whole vector is jointly uniform and independent:

Inputs were indexed by . After changing variables define . Otherwise one changes signs but forgets the associated data path. Consequently,

Example: root input a with children b,c; root label +1 and second-level labels −1. The first sign flips and the second does not, so the new tree has root a and children c,b. If every label is +1, all levels are mirrored. After taking suprema, relabeled trees remain valid; the factor one-half cancels symmetrization’s factor 2.

11 Regression Contraction: Scope and Proof Boundary

The handout states general contraction as times function-class complexity and omits its proof. Nonlinear transformations change relative function behavior on adaptive trees, so the fixed-sample coordinatewise contraction argument cannot simply be reused.

Primary-source check: Rakhlin, Sridharan, and Tewari (2015), Corollary 5, gives bounded-class contraction with complexity at least . Theorem 8 directly removes convex Lipschitz losses from the supervised game without that logarithm. These are external theorems, not proved here.

The aside that logarithms are unavoidable should not be overgeneralized. Block, Dagan, and Rakhlin (2021), Corollary 19, gives logarithm-free worst-tree contraction for their -bounded classes. This is not a universal fixed-tree statement for every label-dependent transformation, but the handout does not establish universal optimality of exponent .

Use instead of bare to avoid a zero one-round upper bound. Outside a theorem’s scope, cite an applicable version rather than deleting assumptions. Squared loss also needs range restrictions: predictions and labels in give derivative magnitude at most 4; unbounded labels do not permit this uniform constant.

12 Worked Check, Pitfalls, and Self-Test

Worked check. With two constant functions over two rounds, inputs do not matter. The sign sum is −2,0,2 with probabilities , so complexity is ; the zero-one loss-class complexity is . This checks the factor and shows that one function may be chosen after the whole path but cannot change each round.

Pitfalls. Dual is not automatically primal; martingale differences need not be independent; suprema do not freely commute with expectations; nodes cannot see current signs; a bound for every tree is stronger than one for a chosen tree; Lipschitz constants require an argument and range.

Self-test with answers.

  1. Why does the root read no signs? There is no past in round one, and current randomness cannot be revealed.
  2. Why retain the last sign? It multiplies the last term even though it selects no new node.
  3. Where does Theorem 1 use inclusion? In .
  4. Why does the factor not multiply every round? Split the two tree sums only once at the end.
  5. Why can the maximum have positive mean? Hindsight selection depends on data; use .
  6. What is missing for Lecture 6? Computable dimensions or covering bounds for tree complexity.

13 Suggested Reading Route

Spend 15 minutes connecting Sections 2, 4, and 7 to understand protocol and trees. Spend 25 minutes rewriting Sections 5 and 9 with dependencies marked. Spend another 15 minutes drawing the relabeling example and doing the self-test. Then read Lecture 6, distinguishing a fixed tree from representatives selected for each path.

Search the site

Notes
Blog
Projects
Resources
About me