Statistical Learning Theory
๐ Complete Statistical Learning Theory: From VC Dimension to Intelligent Learning
๐ง The Fundamental Question of Generalization
When will good performance on training data also mean good performance on test data?
The core problem of statistical learning theory is to determine conditions under which minimizing error on a finite training set guarantees minimization of expected error on unseen data. This is not simply a matter of the law of large numbers โ uniform convergence is required instead.
The classical approach rests on bounding the difference between empirical risk (training error) and expected risk (test error). The key insight: if a set of functions has finite VC-dimension (a measure of its capacity or diversity), then uniform convergence holds and generalization is possible. The bound typically takes the form:
where h is the VC-dimension, L is the number of training examples, and ฮท is the confidence parameter.
๐ VC Dimension: Definition and Key Theorems
Definition of VC Dimension for Indicator Functions
For a set of indicator functions (e.g., in classification, where output is {+1,โ1}), the VC-dimension h is the largest number of vectors that can be shattered โ i.e., separated in all 2h possible ways โ using functions from the set. If a set can shatter any number of vectors, its VC-dimension is infinite.
Example: In R2, the set of linear classifiers (half-planes) has VC-dimension 3. You cannot shatter 4 points in all possible dichotomies with a single line.
Bounding Generalization Error
If a set of functions has VC-dimension h, then with probability 1โฮท (over the training set), for all functions in the set:
This bound holds uniformly โ for all functions in the set simultaneously. Therefore, to choose a good function, one should minimize the right-hand side, which balances empirical error against a complexity penalty depending on h/L.
VC Dimension of Linear Functions in High-Dimensional Spaces
For linear functions in Rn, if all data points lie inside a ball of radius R and weight vectors are bounded by C, then the VC-dimension satisfies:
Crucial implication: VC-dimension can be much smaller than the dimensionality of the space. Controlling the norm of the weight vector (e.g., through regularization) directly controls capacity.
Structural Risk Minimization (SRM)
When the full set of functions has infinite VC-dimension, one can impose a structure: a nested sequence of subsets with increasing VC-dimensions h1โ<h2โ<โฆ. The learning process then involves two steps:
Choose an appropriate subset (trade-off between empirical error and complexity penalty)
Within that subset, minimize empirical error
This makes learning possible even when the initial function class is very large.
โ Four Unanswered Questions of Classical VC Theory
VC theory provides the foundational bounds but does not answer four critical design questions:
How to choose the loss function L(y,f(x))? The indicator loss is natural but non-differentiable; surrogate losses like squared error are commonly used but have drawbacks.
How to construct an admissible set of functions f(x)? The set is usually given, but "smart" sets are essential.
How to construct a structure on the admissible set? SRM requires a meaningful hierarchy.
How to minimize the risk functional efficiently over the chosen set?
The rest of the lecture addresses these questions by introducing a second principle of generalization beyond empirical risk minimization.
๐ฒ Pattern Recognition Setting and Conditional Probability
The Data Generation Process
The most general setting for classification (two classes, yโ{0,1}) is:
Nature generates input vectors x independently from a fixed distribution P(x).
For each x, nature plays dice: it draws y according to the conditional probability P(y=1โฃx) (and P(y=0โฃx)=1โP(y=1โฃx)).
The learning machine observes L i.i.d. pairs (x1โ,y1โ),โฆ,(xLโ,yLโ) and must pick a function f(x) from a given set to minimize the expected error R(f)=E[L(y,f(x))].
The Optimal Solution
The optimal decision rule is the Bayes classifier: assign x to class 1 if P(y=1โฃx)>0.5, else to class 0. Therefore, the true target is the conditional probability function P(y=1โฃx) itself.
Problems with Squared Error Loss
Common practice replaces the indicator loss with squared error L(y,f)=(yโf(x))2. However, analysis shows:
The cross term (interaction between f and the conditional probability) slows convergence. To achieve fast rates, one should minimize the target term directly, not the sum. This motivates a different functional.
๐ V-Matrix Method: Improving the Loss Functional
Deriving the Conditional Probability via an Integral Equation
The conditional probability P(y=1โฃx) satisfies an integral equation for any function GโL2โ:
This is an ill-posed problem when the probability measure is unknown but data is available.
The Empirical Replacement (Main Inductive Step)
In classical statistics, the unknown cumulative distribution is replaced by the empirical cumulative distribution. For the integral equation above, replacing P with the empirical measure PLโ (based on training data) leads to the V-matrix functional:
The V-matrix is an LรL matrix whose elements depend on the chosen kernel G (e.g., Gaussian) and the training data:
Vijโ=โk=1LโG(xiโ,xkโ)G(xiโ,xjโ)โโ L1โ(specific form varies with the kernel and normalization)
The functional to minimize becomes:
In matrix notation, with vector Y=(y1โ,โฆ,yLโ)T and vector F=(f(x1โ),โฆ,f(xLโ))T:
Key difference from ordinary least squares (OLS): OLS uses the identity matrix I; V-matrix uses V, which incorporates local density information. This improves convergence rates.
Nadaraya-Watson Estimator as a Special Case
The classical Nadaraya-Watson (kernel regression) estimator emerges as a solution to a corrupted version of the integral equation. The V-matrix approach provides a more principled derivation and a direct minimization functional.
๐ Weak Convergence and the Concept of Predicates
Two Types of Convergence in Hilbert Space
In any Hilbert space (e.g., L2โ), there are exactly two modes of convergence:
Strong convergence: fnโโf0โ means โฅfnโโf0โโฅโ0 (the functions themselves get close).
Weak convergence: fnโโf0โ means โจfnโ,ฯโฉโโจf0โ,ฯโฉ for all test functions ฯ in the space (all linear functionals converge).
Strong convergence implies weak convergence (by Cauchy-Schwarz). On compact sets, weak convergence also implies strong convergence. These two modes are the only ways to generalize โ hence "complete" learning theory must use both.
From Weak Convergence to Predicates
Weak convergence requires equality of all inner products with all test functions. But in practice, one selects a finite set of m test functions ฯ1โ,โฆ,ฯmโ (called predicates). The condition then becomes:
This defines the admissible set of functions โ those that satisfy these m constraints (invariants). Using the empirical measure, the constraints become linear equations in the data:
In vector form, let ฮฆ be the Lรm matrix of predicate values at training points. Then the constraints are:
The Duck Test Analogy
The idea is analogous to the duck test: If it looks like a duck, swims like a duck, and quacks like a duck, then it probably is a duck. Each predicate corresponds to a property (looks, swims, quacks). The admissible set of functions is those that satisfy all these invariant properties on the training data. Increasing the number of predicates shrinks the admissible set, reducing VC-dimension and the risk of overfitting.
Predicates vs. Features: Adding more features increases VC-dimension (more diverse functions possible). Adding more predicates decreases VC-dimension (more constraints, fewer functions satisfy all). This is a fundamental distinction.
๐งฉ The Complete Learning Problem
Conditional Optimization Formulation
The full learning problem, using both strong convergence (V-matrix functional) and weak convergence (predicate constraints), is:
The function f is chosen from a given set (e.g., all continuous functions, or functions in a reproducing kernel Hilbert space).
Unconditional (Approximate) Optimization
A practical approximation adds the constraints as a penalty term:
where ฮณ is a trade-off parameter. This can be rewritten as:
Letting P=ฮฆฮฆT be the covariance matrix of the predicates, the total functional involves V+ฮณP, combining both terms.
๐ Reproducing Kernel Hilbert Space (RKHS) and the Representer Theorem
RKHS Definition
A reproducing kernel Hilbert space is defined by a Mercer kernel K(x,xโฒ) with expansion:
where ฮปkโโฅ0 and {ฯkโ} are orthonormal functions. Functions in the RKHS have the form:
with inner product โจf,gโฉHโ=โkโฮปkโckโdkโโ and norm โฅfโฅHโ=โจf,fโฉHโโ.
Representer Theorem
Representer Theorem: If the minimization of a regularized functional over an RKHS involves only pointwise evaluations of f, then the solution has the form:
f(x)=โi=1LโฮฑiโK(x,xiโ)a linear combination of kernel evaluations on the training points.
This is a finite-dimensional parametric representation (one-layer network) even though the RKHS may be infinite-dimensional.
Control of VC Dimension via Norm Bounding
From the earlier theorem on linear functions, in an RKHS with norm bound โฅfโฅHโโคC, the VC-dimension is controlled by C (and the radius of the data). Thus, regularization on the RKHS norm directly controls capacity.
Closed-Form Solution for the Complete Problem in RKHS
When the admissible set is an RKHS with bounded norm, the conditional optimization (V-matrix + predicate constraints) has a closed-form solution. Let K be the LรL kernel matrix (Kijโ=K(xiโ,xjโ)). Then the optimal function is:
where ฮฑ=(ฮฑ1โ,โฆ,ฮฑLโ)T satisfies:
for the conditional case (with a Lagrange multiplier for the norm bound), or more generally:
for the unconditional (penalized) case. The expressions involve matrix inverses and are fully computable.
Support Vector Machines as a Special Case
Support vector machines (SVMs) correspond to the unconditional minimization of the V-matrix functional without predicate constraints (i.e., using V=I, the identity). The solution minimizes:
This is a special case of the framework. Adding predicate constraints yields a more general method that can outperform standard SVMs.
๐งช Empirical Demonstrations and Invariant Learning
Synthetic Example: V-Matrix Improvement
On a 2D classification problem with 48, 96, 192 points, the following methods were compared:
Least squares (OLS): baseline
V-matrix only: slightly better
Invariants only: significantly better
V-matrix + invariants: best performance
The improvement is visible even in small-sample settings.
Real Data: Diabetes Classification
Initial error rate: 22.73%. By analyzing where the model's predictions violated expected invariants (e.g., in certain regions of input space), researchers constructed a single simple predicate (indicating regions of violation). Adding this invariant reduced error to 0.07% โ a dramatic improvement.
The process mirrors how physicists discover laws: find where existing theory contradicts observations (invariant fails), then modify the theory to resolve the contradiction. The most difficult part is finding the contradictive situation.
Application to Neural Networks
For deep neural networks, the same principle applies. Instead of minimizing only the squared error (standard backpropagation), one minimizes the total functional V+ฮณP by modifying the last layer's gradient. Specifically:
Standard backpropagation computes error YโF at the output layer.
The modified version multiplies this error by V+ฮณP before backpropagating: (YโF)T(V+ฮณP).
This requires only a single matrix multiplication at the output layer, keeping the rest of the network unchanged.
Experiment with 1 invariant: Using the trivial predicate ฯ(x)=1 (expected number of class 1 examples), with V = I (no V-matrix), on 1,000 examples (100 per class), a deep network improved from 3.1% error to 2.9%.
Experiment with Fourier coefficients: 16 Fourier predicates (4 horizontal ร 4 vertical) improved error further to 2.3%. More predicates (e.g., 1600) allow even better performance.
๐ฌ Building Smart Predicates: Lie Derivatives, Tangent Distance, and Symmetry
Lie Derivatives for Image Transformations
For 2D images (e.g., digit recognition), natural transformations include translation, rotation, scaling, and shear. These can be represent as Lie derivatives โ infinitesimal transformations.
Given an image I(x1โ,x2โ), a small transformation Taโ parameterized by a (e.g., horizontal translation by a: x1โโx1โ+a) gives:
The Lie derivative LIโ=โx1โโIโ captures the direction of change. By combining several Lie derivatives (horizontal, vertical, rotation, etc.), one can generate clones of any training digit โ transformed versions โ without needing additional labeled data.
Tangent Distance
For two images (e.g., a '3' and an '8'), one can "massage" each image by small transformations (using Lie derivatives) to make them as similar as possible. The minimal distance achievable under allowed transformations is called the tangent distance. It measures how close two images can become after applying small symmetry transformations.
Symmetry as a Predicate
Symmetry can be expressed as a predicate: given an image, compute its transformed version (e.g., horizontally mirrored), then measure the distance between the original and the transformed version after allowing small adjustments. A high symmetry score indicates that the image looks like its own mirror image. Similar predicates can be defined for vertical symmetry, rotational symmetry, anti-symmetry (like the letter 'S'), etc.
The concept is general: for any family of transformations, one can define a predicate measuring how well an image conforms to that symmetry. These predicates form the basis for "understanding" images.
๐งฉ Philosophical Underpinnings: From Plato to Propp
The idea of learning via predicates (weak convergence) is not new โ it echoes a long philosophical tradition:
Philosopher | Idea |
|---|---|
Plato | There exists a world of ideas (forms) and a world of things. Ideas govern things. Predicates correspond to ideas. |
Hegel | "Whatever is reasonable exists, and whatever exists is reasonable." The connection between idea and reality is necessary. |
Eugene Wigner (1960) | "The Unreasonable Effectiveness of Mathematics in the Natural Sciences." Mathematical equations (abstract ideas) describe reality with surprising accuracy. |
Predicates are the abstract ideas; invariants derived from them are the elements of solution in the world of things.
The Example of Vladimir Propp's Morphology of the Folk Tale
In 1928, Vladimir Propp published Morphology of the Folktale, analyzing Russian fairy tales. He identified 31 narrative functions (predicates) โ basic plot elements like "the hero leaves home," "the villain is defeated," etc. These 31 predicates can generate all Russian folk tales. Later, this structure was applied to literature, theatre, film, TV series, and games โ always with a small number of core predicates.
Conjecture: There exists a similarly small number of predicates that describe 2D images. Finding them would constitute true intelligence in image recognition, not just imitation (as in current deep learning).
๐ฏ Challenges and Future Directions
The 1% Challenge
State-of-the-art deep networks achieve ~0.5% error on MNIST using 60,000 training examples. The challenge is: achieve the same error rate using only 1% of the data (600 examples) by using smart predicates (e.g., Lie derivatives, symmetry) instead of brute-force data.
Overfitting and Number of Predicates
Adding more predicates does not cause overfitting โ it reduces overfitting. More predicates shrink the admissible set of functions, leaving fewer candidates that satisfy all constraints. In the limit of infinitely many predicates (all ฯ from the Hilbert space), only the true target function remains.
Overfitting is caused by too few constraints (too much freedom), not too many.
Language and Other Domains
Natural language presents a much harder challenge than images. The predicate structure for language is not yet known. However, the same philosophical and mathematical principles apply: identify the abstract ideas (predicates) that define meaning and coherence in language. This remains an open research direction.
๐ Summary of Key Concepts
VC-dimension measures the capacity of a function set; finite VC-dimension guarantees generalization via uniform convergence.
Structural risk minimization handles infinite VC-dimension by imposing a structure of nested subsets with increasing capacity.
Two modes of convergence in Hilbert space โ strong (function values) and weak (functionals) โ lead to two complementary learning principles: empirical risk minimization (strong) and invariant/predicate learning (weak).
V-matrix improves least squares by incorporating local density information, yielding better convergence rates.
Predicates are test functions that define invariant constraints; they reduce the admissible set and control VC-dimension.
Complete learning combines both principles: minimize a functional (V-matrix) subject to predicate constraints (invariants).
RKHS and Representer Theorem give closed-form solutions for the complete learning problem, with SVMs as a special case.
Smart predicates (Lie derivatives, tangent distance, symmetry) capture domain knowledge and enable learning from very small data.
Intelligence is not imitation of human behavior (Turing test) but the ability to identify the small set of abstract ideas (predicates) that govern a domain.

Ask anything
We've read this whole study set, so questions about it get the best answers.