Fall 2026. Instructor: Haipeng Luo.
English reading edition of the six-page handout, retaining all sections, Theorems 1–2, Lemmas 1–2, Equations (1)–(3), proofs, and both footnotes. Source: lecture5.pdf (local source, not published online). Companion: detailed explanation. Editorial notes distinguish additions from the handout. The original contains no figures or bibliography.
1 From Statistical Learning to Online Learning
Having developed a fairly complete picture of statistical learning, we now turn to the harder online setting. As discussed in Lecture 1, it removes the i.i.d. assumption, captures many modern machine-learning applications, and has powerful implications for optimization, game theory, privacy, and other areas. Despite the greater difficulty, similar but slightly more advanced techniques yield a parallel theory of learnability.
Recall the general sequential game. At each round , the learner predicts while the environment simultaneously chooses . The learner then suffers and observes . The goal is to minimize regret against a reference class :
The value of this sequential game is written as:
As proved in Lecture 1, this is at least . The class is online learnable if the value tends to zero with . In an adaptive environment, may depend on previous decisions , giving the following nested representation. We focus on adaptive environments and relax the value step by step along the statistical-learning roadmap.
Editorial note: in the adaptive case, the sequence supremum is shorthand for an environment strategy, not merely a fixed sequence chosen beforehand. Double brackets denote operators nested in temporal order; operators from different rounds cannot be freely commuted.
1.1 Empirical Process with Dependent Data
In statistical learning, the first step was to choose ERM and bound the value by an expected supremum of an empirical process. Is there an online analogue? The first natural attempt is ERM at every step:
This is follow-the-leader. It can incur linear regret even on very simple problems, so it is not a good general online algorithm; the proof is deferred to lectures on algorithm design. Rather than search through candidate algorithms, we take a bolder route: relax the value directly without constructing one. The key is the minimax theorem. First introduce randomness for the environment, obtaining this equivalent form (check the equivalence):
Under mild technical conditions, which the handout assumes for the problems under discussion, minimax permits exchanging each round’s infimum and supremum:
The handout does not develop those technical conditions and instead examines their consequence. The environment first announces ; knowing it, the learner chooses . This is the dual game. It appears more favorable to the learner, who moves second, but minimax says the optimal value is unchanged. This statement concerns the specified mixed strategies and information structure.
Second, the learner no longer needs randomness in the dual game: the best distribution places its mass on an optimal decision. Thus
The environment now needs randomness, so randomness has also switched sides. Finally, even an exact optimal strategy in the dual game does not directly specify a strategy for the original game: the two fail a “type check.” One expects to see the environment’s distribution first; the other must act first. We retain information about the value but temporarily lose algorithmic information. Later lectures will address this. If an optimum is not attained, “optimal decision” means an arbitrarily accurate approximate minimizer.
Why is the dual value easier? One more upper-bounding step gives an empirical process with dependent data.
Theorem 1. The value of the dual game satisfies
Compare this with the following statistical-learning bound:
There are two differences. In (2), observations are independent draws from a worst-case distribution ; in (1), they come from a worst-case joint law and need not be independent. The expected-loss term in (2) is the same each round, whereas the term in (1) conditions on and may change over time. Restricting (1) to product distributions recovers (2), so its bound is at least as large.
These random variables, indexed by , form an empirical process with dependent data. For each fixed , every difference has conditional mean zero given the past. Its average is therefore an average of martingale differences and should be small. Whether the supremum over remains small depends on the structure of the class.
Proof of Theorem 1. The handout proves the two-round case for notational simplicity; the same argument extends to general horizons. Multiply the value by two. To display every equality legibly, denote the two-round benchmark by B:
Here are drawn from , respectively, the same distributions as . Taking care with dependencies, every step above is an equality. The only upper-bound step uses : for each in the preceding supremum, replace both decision infima by that particular . This gives
Finally, selects a distribution for every possible . Equivalently, first take the supremum over maps , then take the expectation and draw the second outcome from . The expression becomes
Dividing by two completes the proof. Equation (3) also shows that optimal in the dual game need not depend on previous learner decisions, although it does depend on past outcomes. The learner simply minimizes current expected loss under the known distribution. A current decision enters regret only through current loss, not the benchmark. This simple optimal structure belongs to the dual game and highlights the importance of minimax.
1.2 Symmetrization and Sequential Rademacher Complexity
The next step is symmetrization, relaxing the expected supremum into something like Rademacher complexity. A key new object is a -valued tree: a complete binary tree with a value in at each node. A depth- tree consists of maps:
A path uses −1 for left and +1 for right. Its -th value is , abbreviated , although the map reads only the first signs. (Original note 1) (Original note 2) For , define conditional sequential Rademacher complexity on a given tree by
Here are independent Rademacher signs. The unconditional version is
The supremum ranges over all depth- trees. As in statistical learning, it measures the ability to fit random signs. The difference is that samples are replaced by a tree with possible samples, and the -th input depends on earlier signs. This captures sequential dependence on the entire past. We also take a worst-case supremum over trees rather than an expectation under a distribution over trees, reflecting the absence of a distributional assumption.
Theorem 2. For any joint distribution, the expected supremum of the dependent empirical process satisfies
Proof. Again take to show the central idea. Multiply the left side by two and write . First expose the conditional expectations, then move the ghost-sample expectations outside the supremum:
The last equality holds because the two second-round draws are exchangeable given . It is tempting to multiply the first difference by as well, but the following direct replacement is incorrect:
The roles of and differ: both future draws condition on . We must first remove that extra dependence by replacing the second-round expectation with a worst case:
The first-round draws are now exchangeable, so this equals
Next relax the first-round expectation, split the two sample terms, and use sign symmetry:
The last step is analogous to Theorem 1: choose a near-maximizing separately for and , and encode those choices as the second level of a tree. Divide by to finish. Replacing expectations by suprema loses the information in the initial joint distribution, explaining why sequential complexity uses a worst-case tree.
1.3 Erasing the Loss
As in statistical learning, many problems allow the loss function to be removed from the complexity, as expressed by two lemmas.
Lemma 1. For binary classification with zero-one loss, and . For every outcome tree , there is another input tree such that
Lemma 2 (Contraction). For regression loss , where is -Lipschitz in its first argument, the handout gives
Relative to Lecture 2, the statistical version of Lemma 1 is exactly half the function-class complexity on the same fixed input sequence. The sequential version changes to , without affecting the final worst-case upper bound. Lemma 2 has a similar subtlety and additionally loses a logarithmic factor. The source says this loss has recently been shown unavoidable in general. It omits the proof of Lemma 2 and proves only Lemma 1.
Editorial note: the original statement is retained, but it does not justify claiming that exponent is optimal in every formulation. Classical contraction results for bounded classes have additional conditions, and the logarithmic expression needs a constant to cover . The companion explains the primary-source conditions and the scope of improvements; this omitted lemma is not presented as proved here.
Proof of Lemma 1. By definition and the algebraic identity for zero-one loss,
Set . These are again independent Rademacher signs; equivalently, is a bijection of the sign cube. Its inverse is constructed recursively as
The preceding can already be expressed in terms of . Thus defines a valid tree, and
Taking the supremum over outcome trees proves the result. The new input tree permutes the original paths according to the label tree. If every label is +1, it is the mirror image. If only the root label is +1 and all others are −1, only the two subtrees of the root are exchanged.
Original Footnotes
Original note 1: A node path is already completely specified by the first signs. The final sign is nevertheless included because it serves other purposes.
Original note 2: For subsequent discussions involving trees, draw an illustrative picture to understand the intuition of the various concepts; many more will appear.