Support Vector Machines VI: An Oracle Inequality for Classifying with Support Vector MachinesTextbook
Motivation
A support vector machine for classification is trained by minimizing a regularized hinge-loss
objective — never the classification loss itself, which is non-convex and computationally
intractable to minimize. Every earlier mission in this series supplies one piece of the argument
that this substitution is nonetheless justified: 01-loss-functions shows the excess hinge risk
controls the excess classification risk (Zhang's inequality); 05-concentration supplies a
Hilbert-space concentration inequality; and Chapter 6 of the book (not itself a mission in this
series, but cited here) combines concentration with a stability argument to bound how far the
empirical SVM solution's regularized hinge risk can be from its population minimum. Steinwart &
Christmann, Support Vector Machines (Springer 2008, Information Science and Statistics), Chapter
8, assembles exactly these three pieces into Theorem 8.1: an explicit, finite-sample,
non-asymptotic bound on how close an SVM classifier's classification risk gets to the Bayes
risk — the payoff result the whole apparatus of Chapters 2, 5 and 6 was built to deliver.
Setting
Fix a measurable space and . A loss , a distribution on , the -risk , and the Bayes risk are exactly as in
01-loss-functions, restated locally here. The hinge loss is and the classification loss is .
Let be a reproducing kernel Hilbert space (RKHS) of a kernel over , i.e. a Hilbert space of functions in which point evaluation is represented by an inner product against a feature map with . Write for the kernel's sup-bound. For a sample , the empirical risk is , and the SVM decision function is the minimizer over of — the regularized empirical risk minimizer a practical SVM solver computes. The restricted Bayes risk on is , and the approximation error function is : the price, in excess risk, of restricting attention to at regularization strength .
Formalization targets
Goal: Theorem 8.1 — oracle inequality for classifying with SVMs
with -probability at least , for the hinge loss, a separable RKHS with , and such that is dense in . The bound is finite-sample (valid for every fixed , not just asymptotically) and fully explicit: no unspecified constants beyond itself, which is a genuine, computable-in-principle quantity depending on , and , not a placeholder. Making the right-hand side small — e.g. letting slowly as — is exactly what proves an SVM classifier consistent for the classification risk, even though it never optimizes that risk directly.
Three milestones, each the specific instance of an earlier chapter's result that this proof invokes (attack order):
- Theorem 6.24 instance (hinge loss): with -probability at least — the general oracle inequality for regularized SVMs (Chapter 6, not itself a mission of this series), specialized to the hinge loss, whose global Lipschitz constant collapses the general theorem's Lipschitz-constant factor away.
- Theorem 5.31 instance: — the RKHS's restricted Bayes hinge risk equals the unrestricted one, using 's density in and the fact (Lemma 2.25 v)) that the hinge loss is automatically a -integrable Nemitski loss.
- Theorem 2.31 instance (Zhang's inequality, second clause): for
every measurable with finite hinge and classification risk — this series' own
01-loss-functionsmission'szhang_inequality, second assertion, restated locally.
Chaining these three (with milestone 2 used to rewrite milestone 1's as , then milestone 3 applied to ) is exactly the book's four-line proof of Theorem 8.1.
Significance
Theorem 8.1 is this series' capstone: every other chapter's result (loss calibration, RKHS theory, representer theorem, Hilbert-space concentration, the general SVM oracle inequality) is a prerequisite this theorem consumes, and nothing later in the book depends on formalizing it further to be meaningful in its own right — it is already a complete, citable, explicit consistency-and-rate statement for SVM classification. It is also the first result in this series whose statement combines three distinct chapters' machinery into a single inequality, making the "restate the specific instance, not the general machinery" discipline (Hard Rule 9) most visibly load-bearing here: none of Theorem 6.24, Theorem 5.31 or Theorem 2.31 in their full generality is needed, only the narrow slice each contributes to this one proof.
No machine-checked formalization of an SVM classification oracle inequality of this kind is known to exist in a public Lean/Mathlib development (see prior-art search below): statistical learning theory results of this shape (finite-sample high-probability bounds combining regularization, approximation error and concentration) are largely unformalized outside isolated concentration inequalities.
Difficulty
The difficulty here is compositional rather than computational: each of the three milestones is,
in its own chapter, a short consequence of substantial earlier machinery (Theorem 6.24 rests on a
stability argument plus Hilbert-space Hoeffding; Theorem 5.31 rests on continuity of the risk
functional on ; Theorem 2.31 rests on a pointwise case analysis), but none of that earlier
machinery is re-derived here — only the specific numerical instance each milestone hands to
Theorem 8.1's proof. Getting the three instances to compose correctly (in particular, making sure
milestone 1's restrictedBayesRisk and milestone 2's equality target the identical quantity, so
the substitution the book's proof performs is literally available) is the main formalization
risk, not any single proof step.
The probabilistic statement itself is genuinely over the product measure on samples of size , not an expectation or almost-sure claim, and the bounded-kernel hypothesis is load-bearing (it is what fixes the "" and "" constants exactly, not just up to a normalization).
Formalization scope
is an arbitrary measurable space; is a general real Hilbert space (NormedAddCommGroup H,
InnerProductSpace ℝ H, CompleteSpace H), not specialized to a concrete function space, matching
the book's own generality. IsRKHSOfKernel, risk/bayesRisk, classLoss/hingeLoss and
empiricalRisk are restated locally in this mission's own Classification sub-namespace — per
Hard Rule 9, a draft mission cannot import another draft's definitions, so these duplicate (with
identical mathematical content) definitions already drafted in 01-loss-functions and
04-representer. IsSVMSolution encodes " minimizes the regularized empirical
risk over " directly as a hypothesis rather than re-deriving existence and uniqueness
(04-representer's territory). DenseInL1 renders " dense in " as an
-approximation property in the seminorm rather than via the Lp subtype, to
keep the statement self-contained without importing Chapter 5's own Lp-space apparatus.
is ∀ x, k x x ≤ 1 (since , Eq. (4.15)).
"With -probability at least " is stated as a lower bound on
(Measure.pi (fun _ : Fin n => P)).real {D | ...}, the -fold product measure of the event.
Theorem 8.2 (Classification with benign kernels), the polynomially-decaying-entropy-number
specialization of Theorem 8.1 stated immediately after it in the book, is deliberately out of
scope for this mission: it requires entropy-number and covering-number machinery (dyadic entropy
numbers , Lemma 6.21's covering-number bound) that none of this
mission's three milestones need, and formalizing it faithfully would roughly double the
mission's scope for a result that is a refinement, not a prerequisite, of Theorem 8.1. A
trivializing formalization of the goal would state the conclusion for an unconstrained
fSVM : (Fin n → X × ℝ) → H with no connection to L, D or λ (making the bound a tautology
about whatever function is supplied, independent of what an SVM actually computes); this is ruled
out here by requiring hfSVM : ∀ D, IsSVMSolution H toFun hingeLoss lam n D (fSVM D), which pins
fSVM D to be an actual minimizer of the regularized empirical hinge risk for that specific
sample D.
Selected references
- I. Steinwart & A. Christmann, Support Vector Machines, Springer, Information Science and Statistics, 2008. https://doi.org/10.1007/978-0-387-77242-4 (Chapter 8, §8.1, pp. 287-291; Chapter 6, §6.4, pp. 223-225; Chapter 5, §5.4-5.5, pp. 179, 190-191; Chapter 2, §2.3, p. 37).
- T. Zhang, "Statistical behavior and consistency of classification methods based on convex risk minimization," Annals of Statistics 32(1), 2004, pp. 56-85. https://doi.org/10.1214/aos/1079120130
- This series'
01-loss-functionsmission (Theorem 2.31, full statement and proof) and04-representermission (Chapter 5's RKHS and SVM-solution machinery, in full generality).