Twenty-four orders, six answers
numeric▲▲△Take the separable set , , , . Run the perceptron on every one of the presentation orders. Report the range of update counts and the number of distinct final hyperplanes, then reconcile that variability with I.2.T1.
Hint
The theorem bounds the mistakes for every order. It does not claim they are equal.
Solution
The outcomes.
| Updates | Final | Orders |
|---|---|---|
| 5 | 6 | |
| 8 | 5 | |
| 9 | 2 | |
| 10 | 4 | |
| 12 | 5 | |
| 14 | 2 |
The range: 5 to 14 updates, a factor of , on byte-identical data. And four distinct hyperplanes, so the algorithm’s output — not merely its runtime — depends on the order the examples happened to arrive in.
Reconciling with the theorem. Here
so the bound is
Every one of the 24 orders lands under 40, and the worst — 14 — uses about a third of the allowance. There is no contradiction: I.2.T1 is an upper bound holding uniformly over orders, and a uniform bound must accommodate the worst one. It never claimed the orders agree.
What this costs in practice. Three things follow, and none of them is obvious from the theorem alone.
The solution is not a function of the data. Two researchers running the same algorithm on the same file get different classifiers. Any claim about “the” perceptron solution for a dataset is under-specified until the order is fixed.
The margin achieved is arbitrary. The order giving 5 updates lands on , with geometric margin — which happens to be optimal here. Other orders land on hyperplanes with worse margins. Nothing in the rule prefers the good one.
Shuffling is not a nuisance to be eliminated. It is the reason the algorithm terminates quickly on average, and the reason a single run’s update count is not a measurement of anything about the data. Chapter VIII.4 makes that argument quantitative for training runs generally.
Compare with the set of I.2.B02, where all 24 orders give 2 updates and the same weights. Order-independence happens; it is not guaranteed.