CMP.7:5 - Archetypal Grounding
CMP.7:5.1 - Construct a batch selector and expose an unresolved continuation
On nonnegative integer inputs, consider the two rules f(x)=x and g(x)=x mod 2. The supplied examples are (0,0) and (1,1). Both rules have zero squared loss on those examples.
A learner can evaluate both rules and return the minimizing set {f,g}. The returned set retains the ambiguity. It can also return one rule under a declared preference, but the zero training loss alone gives no reason to prefer f over g at input 2. Their predictions there are 2 and 0.
Suppose a prediction at 2 is due before its response is revealed. The two original examples leave both 2 and 0 possible. Give a point prediction under a stated selection rule, or return both if the recipient can use that answer. With a fixed noiseless target in {f, g}, an earlier observation at 3 can settle the prediction. A response of 3 selects f and predicts 2 at input 2. A response of 1 selects g and predicts 0 there. Once the response at 2 arrives, it can answer a request for the observed value and update the rule for later inputs. To evaluate the prediction, compare the answer recorded before the deadline with the response subsequently observed at input 2.
Changed response: consider only the original two observations and a response of 1 at input 2. Each rule has mean squared loss 1/3 on these three observations. If an exact fit is required, revisit the two-rule family or the noiseless-target assumption.
CMP.7:5.2 - Construct an online learner and derive its mistake bound
Let H be a finite family of binary prediction rules and suppose one fixed rule in H gives every true label that will arrive. Retain the set V of rules consistent with all labels seen so far. On a new input, predict the majority label among rules in V, using a fixed tie rule. After receiving the true label, remove the rules that predicted otherwise.
On each mistaken prediction, at least half of V is removed. The true rule remains, so after M mistakes 1≤|H|/2^M, giving M≤log2|H|. This establishes a bound on mistakes for an arbitrary input sequence under the stable-realizable-target assumption. It does not require independent random examples. Evaluating all survivors on each input costs up to |H| rule evaluations; the mistake guarantee alone does not make an enormous family affordable.
For a concrete instance, let inputs be integers 0 through 4 and let H contain six threshold rules h_t(x)=1 if x≥t else 0, for t=0,...,5. Break ties by predicting 1. At input 2, three rules predict each label, so predict 1. If the true label is 0, retain thresholds 3, 4 and 5. At input 3, the majority now predicts 0; if the true label is 1, retain only threshold 3. The two mistakes are within floor(log2 6)=2; subsequent predictions follow h_3 correctly as long as the assumed target remains h_3.
Changed feedback: a later example gives label 1 at input 2. It contradicts the previously received label at 2. Eliminating the last rule would leave an empty set. The stable noiseless-target premise has failed: retain the discrepancy and choose a treatment for noise or change, such as weighting errors or using a recent-data learner. The earlier mistake proof cannot be carried through that change unchanged.