Proving the mistake bound
proof▲▲▲Symbolic throughout.
STATEMENT
Prove Novikoff’s theorem: on separable data the perceptron makes at most mistakes. State every assumption where it is used, and say at the end which step each assumption was load-bearing for.
GIVEN
A dataset with and for all . Assume separability: there exists a unit vector , , with
The perceptron starts at and updates on the -th mistake. The bias is absorbed by appending a constant to every , so only appears.
FIND
An upper bound on , the total number of updates, in terms of and only.
STRATEGY
Track one scalar from below and another from above. The inner product can only grow, and cannot grow fast. Cauchy–Schwarz then traps between them. The whole proof is the observation that a quantity growing linearly cannot stay below one growing as a square root forever.
SOLUTION
Step 1 — the lower bound on the projection. Suppose the -th mistake is on example . Take the inner product of the update with , using linearity:
By the separability assumption the last term is at least . So each mistake advances the projection by at least :
Starting from , whose projection is , induction over mistakes gives
\langle \vec{u}, \vec{w}_{k} \rangle \ \ge\ k\gamma \tag{lower}
Where the assumption entered: separability, and only there.
Step 2 — the upper bound on the norm. Expand the squared norm of the same update:
Now use the two facts available. First, the update happened because the example was a mistake, so its margin was non-positive: , and the cross term can only help. Second, and . Therefore
and by induction from :
Where the assumptions entered: the bounded radius, and — crucially — the fact that updates occur only on mistakes. Take that away and the cross term is unsigned, and the bound fails.
Step 3 — squeeze with Cauchy–Schwarz. For any vectors, (Inner products, norms and cosine similarity 0.LA.03), and . Chaining the two bounds:
Step 4 — solve for . From , and since , divide by :
What made it work. The projection grows linearly in the number of mistakes, while the norm grows only as . A vector cannot have its shadow on a unit direction outrun its own length, so the two rates must collide, and the collision point is the bound.
Answer
A dimensionless count. Note what it does not contain: the number of examples , the dimension , and the presentation order. The bound holds for a million points in a million dimensions arriving adversarially.
Check — sanity
Dimensional consistency. and are both lengths — a norm, a projection onto a unit vector — so is dimensionless and so is its square. A bound on a count must be dimensionless, and this one is.
It reproduces the run of I.2.B02. There and , giving . The observed count was . A valid upper bound must be at least the truth, and .
Both monotonicities are right. Larger (data further from the origin) raises the bound; larger (an easier separation) lowers it. If the inequality had come out the other way round in either variable, a sign was lost.
The degenerate case behaves. If the data is already separated at the start, no mistake occurs, , and holds for any positive right-hand side.
Where this breaks
Every step of Step 2 used updates occur only on mistakes. Change the rule to update on every example regardless of margin and the cross term is no longer ; the norm can grow faster than , and the squeeze collapses. This is why the perceptron is not gradient descent on a smooth loss: it is a rule that acts only on its own errors, and the proof depends on exactly that.
Separability is load-bearing in Step 1 alone, but its failure is total: without some achieving margin , there is no lower bound at all, is unbounded, and the algorithm cycles forever (I.2.X07).
Variation
Suppose . Redo Steps 1 and 2 carrying the initial terms, and show the bound becomes up to constants. Then say why the theorem is usually stated from zero.