1. Home
  2. Explore
  3. Computer Science
  4. Statistical Learning Theory

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

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:

R(f)โ‰คRemp(f)+ฯต(h,L,ฮท)R(f) \leq R_{\text{emp}}(f) + \epsilon(h, L, \eta)R(f)โ‰คRempโ€‹(f)+ฯต(h,L,ฮท)

where hhh is the VC-dimension, LLL is the number of training examples, and ฮท\etaฮท 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}\{+1, -1\}{+1,โˆ’1}), the VC-dimension hhh is the largest number of vectors that can be shattered โ€” i.e., separated in all 2h2^h2h possible ways โ€” using functions from the set. If a set can shatter any number of vectors, its VC-dimension is infinite.

Example: In R2\mathbb{R}^2R2, 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 hhh, then with probability 1โˆ’ฮท1-\eta1โˆ’ฮท (over the training set), for all functions in the set:

R(f)โ‰คRemp(f)+h(logโก2Lh+1)โˆ’logโกฮท4LR(f) \leq R_{\text{emp}}(f) + \sqrt{\frac{h\left(\log\frac{2L}{h}+1\right) - \log\frac{\eta}{4}}{L}}R(f)โ‰คRempโ€‹(f)+Lh(logh2Lโ€‹+1)โˆ’log4ฮทโ€‹โ€‹โ€‹

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/Lh/Lh/L.

VC Dimension of Linear Functions in High-Dimensional Spaces

For linear functions in Rn\mathbb{R}^nRn, if all data points lie inside a ball of radius RRR and weight vectors are bounded by CCC, then the VC-dimension satisfies:

hโ‰คminโก(R2C2,n)+1h \leq \min\left(R^2 C^2, n\right) + 1hโ‰คmin(R2C2,n)+1

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<โ€ฆh_1 < h_2 < \dotsh1โ€‹<h2โ€‹<โ€ฆ. The learning process then involves two steps:

  1. Choose an appropriate subset (trade-off between empirical error and complexity penalty)

  2. 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:

  1. How to choose the loss function L(y,f(x))L(y, f(x))L(y,f(x))? The indicator loss is natural but non-differentiable; surrogate losses like squared error are commonly used but have drawbacks.

  2. How to construct an admissible set of functions f(x)f(x)f(x)? The set is usually given, but "smart" sets are essential.

  3. How to construct a structure on the admissible set? SRM requires a meaningful hierarchy.

  4. 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}y \in \{0,1\}yโˆˆ{0,1}) is:

  • Nature generates input vectors xxx independently from a fixed distribution P(x)P(x)P(x).

  • For each xxx, nature plays dice: it draws yyy according to the conditional probability P(y=1โˆฃx)P(y=1|x)P(y=1โˆฃx) (and P(y=0โˆฃx)=1โˆ’P(y=1โˆฃx)P(y=0|x) = 1 - P(y=1|x)P(y=0โˆฃx)=1โˆ’P(y=1โˆฃx)).

  • The learning machine observes LLL i.i.d. pairs (x1,y1),โ€ฆ,(xL,yL)(x_1, y_1), \dots, (x_L, y_L)(x1โ€‹,y1โ€‹),โ€ฆ,(xLโ€‹,yLโ€‹) and must pick a function f(x)f(x)f(x) from a given set to minimize the expected error R(f)=E[L(y,f(x))]R(f) = \mathbb{E}[L(y, f(x))]R(f)=E[L(y,f(x))].

The Optimal Solution

The optimal decision rule is the Bayes classifier: assign xxx to class 1 if P(y=1โˆฃx)>0.5P(y=1|x) > 0.5P(y=1โˆฃx)>0.5, else to class 0. Therefore, the true target is the conditional probability function P(y=1โˆฃx)P(y=1|x)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))2L(y, f) = (y - f(x))^2L(y,f)=(yโˆ’f(x))2. However, analysis shows:

R(f)=โˆซ(1โˆ’P(y=1โˆฃx))2โ€‰dP(x)โŸdoesย notย dependย onย f+โˆซ(f(x)โˆ’P(y=1โˆฃx))2โ€‰dP(x)โŸtargetย term+crossย termR(f) = \underbrace{\int (1 - P(y=1|x))^2\, dP(x)}_{\text{does not depend on } f} + \int \underbrace{(f(x) - P(y=1|x))^2\, dP(x)}_{\text{target term}} + \text{cross term}R(f)=doesย notย dependย onย fโˆซ(1โˆ’P(y=1โˆฃx))2dP(x)โ€‹โ€‹+โˆซtargetย term(f(x)โˆ’P(y=1โˆฃx))2dP(x)โ€‹โ€‹+crossย term

The cross term (interaction between fff 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)P(y=1|x)P(y=1โˆฃx) satisfies an integral equation for any function GโˆˆL2G \in L_2GโˆˆL2โ€‹:

โˆซP(y=1โˆฃx)โ€‰G(xโˆ’xโˆ—)โ€‰dP(x)=โˆซyโ€‰G(xโˆ’xโˆ—)โ€‰dP(x,y)\int P(y=1|x) \, G(x - x_*) \, dP(x) = \int y \, G(x - x_*) \, dP(x, y)โˆซP(y=1โˆฃx)G(xโˆ’xโˆ—โ€‹)dP(x)=โˆซyG(xโˆ’xโˆ—โ€‹)dP(x,y)

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\mathbb{P}P with the empirical measure PL\mathbb{P}_LPLโ€‹ (based on training data) leads to the V-matrix functional:

The V-matrix is an Lร—LL \times LLร—L matrix whose elements depend on the chosen kernel GGG (e.g., Gaussian) and the training data:

Vij=G(xi,xj)โˆ‘k=1LG(xi,xk)โ‹…1LV_{ij} = \frac{G(x_i, x_j)}{\sum_{k=1}^L G(x_i, x_k)} \cdot \frac{1}{L}Vijโ€‹=โˆ‘k=1Lโ€‹G(xiโ€‹,xkโ€‹)G(xiโ€‹,xjโ€‹)โ€‹โ‹…L1โ€‹

(specific form varies with the kernel and normalization)

The functional to minimize becomes:

R(f)=โˆ‘i,j=1L(yiโˆ’f(xi))Vij(yjโˆ’f(xj))\mathcal{R}(f) = \sum_{i,j=1}^L (y_i - f(x_i)) V_{ij} (y_j - f(x_j))R(f)=โˆ‘i,j=1Lโ€‹(yiโ€‹โˆ’f(xiโ€‹))Vijโ€‹(yjโ€‹โˆ’f(xjโ€‹))

In matrix notation, with vector Y=(y1,โ€ฆ,yL)T\mathbf{Y} = (y_1, \dots, y_L)^TY=(y1โ€‹,โ€ฆ,yLโ€‹)T and vector F=(f(x1),โ€ฆ,f(xL))T\mathbf{F} = (f(x_1), \dots, f(x_L))^TF=(f(x1โ€‹),โ€ฆ,f(xLโ€‹))T:

R(f)=(Yโˆ’F)TV(Yโˆ’F)\mathcal{R}(f) = (\mathbf{Y} - \mathbf{F})^T V (\mathbf{Y} - \mathbf{F})R(f)=(Yโˆ’F)TV(Yโˆ’F)

Key difference from ordinary least squares (OLS): OLS uses the identity matrix III; V-matrix uses VVV, 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., L2L_2L2โ€‹), there are exactly two modes of convergence:

  1. Strong convergence: fnโ†’f0f_n \to f_0fnโ€‹โ†’f0โ€‹ means โˆฅfnโˆ’f0โˆฅโ†’0\|f_n - f_0\| \to 0โˆฅfnโ€‹โˆ’f0โ€‹โˆฅโ†’0 (the functions themselves get close).

  2. Weak convergence: fnโ†’f0f_n \to f_0fnโ€‹โ†’f0โ€‹ means โŸจfn,ฯ•โŸฉโ†’โŸจf0,ฯ•โŸฉ\langle f_n, \phi \rangle \to \langle f_0, \phi \rangleโŸจfnโ€‹,ฯ•โŸฉโ†’โŸจf0โ€‹,ฯ•โŸฉ for all test functions ฯ•\phiฯ• 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 mmm test functions ฯ•1,โ€ฆ,ฯ•m\phi_1, \dots, \phi_mฯ•1โ€‹,โ€ฆ,ฯ•mโ€‹ (called predicates). The condition then becomes:

โŸจf,ฯ•kโŸฉ=โŸจP(y=1โˆฃx),ฯ•kโŸฉforย k=1,โ€ฆ,m\langle f, \phi_k \rangle = \langle P(y=1|x), \phi_k \rangle \quad \text{for } k=1,\dots,mโŸจf,ฯ•kโ€‹โŸฉ=โŸจP(y=1โˆฃx),ฯ•kโ€‹โŸฉforย k=1,โ€ฆ,m

This defines the admissible set of functions โ€” those that satisfy these mmm constraints (invariants). Using the empirical measure, the constraints become linear equations in the data:

1Lโˆ‘i=1Lฯ•k(xi)f(xi)=1Lโˆ‘i=1Lฯ•k(xi)yi\frac{1}{L} \sum_{i=1}^L \phi_k(x_i) f(x_i) = \frac{1}{L} \sum_{i=1}^L \phi_k(x_i) y_iL1โ€‹โˆ‘i=1Lโ€‹ฯ•kโ€‹(xiโ€‹)f(xiโ€‹)=L1โ€‹โˆ‘i=1Lโ€‹ฯ•kโ€‹(xiโ€‹)yiโ€‹

In vector form, let ฮฆ\mathbf{\Phi}ฮฆ be the Lร—mL \times mLร—m matrix of predicate values at training points. Then the constraints are:

ฮฆTF=ฮฆTY\mathbf{\Phi}^T \mathbf{F} = \mathbf{\Phi}^T \mathbf{Y}ฮฆTF=ฮฆTY

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:

Minimizeย R(f)=(Yโˆ’F)TV(Yโˆ’F)subjectย toย ฮฆTF=ฮฆTY(invariantย constraints)\begin{aligned} &\text{Minimize } \mathcal{R}(f) = (\mathbf{Y} - \mathbf{F})^T V (\mathbf{Y} - \mathbf{F}) \\ &\text{subject to } \mathbf{\Phi}^T \mathbf{F} = \mathbf{\Phi}^T \mathbf{Y} \quad \text{(invariant constraints)} \end{aligned}โ€‹Minimizeย R(f)=(Yโˆ’F)TV(Yโˆ’F)subjectย toย ฮฆTF=ฮฆTY(invariantย constraints)โ€‹

The function fff 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:

Rtotal(f)=(Yโˆ’F)TV(Yโˆ’F)+ฮณโˆฅฮฆTFโˆ’ฮฆTYโˆฅ2\mathcal{R}_{\text{total}}(f) = (\mathbf{Y} - \mathbf{F})^T V (\mathbf{Y} - \mathbf{F}) + \gamma \| \mathbf{\Phi}^T \mathbf{F} - \mathbf{\Phi}^T \mathbf{Y} \|^2Rtotalโ€‹(f)=(Yโˆ’F)TV(Yโˆ’F)+ฮณโˆฅฮฆTFโˆ’ฮฆTYโˆฅ2

where ฮณ\gammaฮณ is a trade-off parameter. This can be rewritten as:

Rtotal(f)=(Yโˆ’F)T(V+ฮณฮฆฮฆT)(Yโˆ’F)\mathcal{R}_{\text{total}}(f) = (\mathbf{Y} - \mathbf{F})^T (V + \gamma \mathbf{\Phi} \mathbf{\Phi}^T) (\mathbf{Y} - \mathbf{F})Rtotalโ€‹(f)=(Yโˆ’F)T(V+ฮณฮฆฮฆT)(Yโˆ’F)

Letting P=ฮฆฮฆTP = \mathbf{\Phi} \mathbf{\Phi}^TP=ฮฆฮฆT be the covariance matrix of the predicates, the total functional involves V+ฮณPV + \gamma PV+ฮณ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โ€ฒ)K(x, x')K(x,xโ€ฒ) with expansion:

K(x,xโ€ฒ)=โˆ‘k=1โˆžฮปkฯˆk(x)ฯˆk(xโ€ฒ)K(x, x') = \sum_{k=1}^\infty \lambda_k \psi_k(x) \psi_k(x')K(x,xโ€ฒ)=โˆ‘k=1โˆžโ€‹ฮปkโ€‹ฯˆkโ€‹(x)ฯˆkโ€‹(xโ€ฒ)

where ฮปkโ‰ฅ0\lambda_k \geq 0ฮปkโ€‹โ‰ฅ0 and {ฯˆk}\{\psi_k\}{ฯˆkโ€‹} are orthonormal functions. Functions in the RKHS have the form:

f(x)=โˆ‘kckฯˆk(x)f(x) = \sum_{k} c_k \psi_k(x)f(x)=โˆ‘kโ€‹ckโ€‹ฯˆkโ€‹(x)

with inner product โŸจf,gโŸฉH=โˆ‘kckdkฮปk\langle f, g \rangle_{\mathcal{H}} = \sum_k \frac{c_k d_k}{\lambda_k}โŸจf,gโŸฉHโ€‹=โˆ‘kโ€‹ฮปkโ€‹ckโ€‹dkโ€‹โ€‹ and norm โˆฅfโˆฅH=โŸจf,fโŸฉH\|f\|_{\mathcal{H}} = \sqrt{\langle f, f \rangle_{\mathcal{H}}}โˆฅfโˆฅHโ€‹=โŸจf,fโŸฉHโ€‹โ€‹.

Representer Theorem

Representer Theorem: If the minimization of a regularized functional over an RKHS involves only pointwise evaluations of fff, then the solution has the form:

f(x)=โˆ‘i=1LฮฑiK(x,xi)f(x) = \sum_{i=1}^L \alpha_i K(x, x_i)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\|f\|_{\mathcal{H}} \leq CโˆฅfโˆฅHโ€‹โ‰คC, the VC-dimension is controlled by CCC (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\mathbf{K}K be the Lร—LL \times LLร—L kernel matrix (Kij=K(xi,xj)K_{ij} = K(x_i, x_j)Kijโ€‹=K(xiโ€‹,xjโ€‹)). Then the optimal function is:

f(x)=โˆ‘i=1LฮฑiK(x,xi)f(x) = \sum_{i=1}^L \alpha_i K(x, x_i)f(x)=โˆ‘i=1Lโ€‹ฮฑiโ€‹K(x,xiโ€‹)

where ฮฑ=(ฮฑ1,โ€ฆ,ฮฑL)T\boldsymbol{\alpha} = (\alpha_1, \dots, \alpha_L)^Tฮฑ=(ฮฑ1โ€‹,โ€ฆ,ฮฑLโ€‹)T satisfies:

ฮฑ=Kโˆ’1/2(I+ฮณcK1/2VK1/2)โˆ’1K1/2Y\boldsymbol{\alpha} = \mathbf{K}^{-1/2} \left( \mathbf{I} + \gamma_c \mathbf{K}^{1/2} V \mathbf{K}^{1/2} \right)^{-1} \mathbf{K}^{1/2} \mathbf{Y}ฮฑ=Kโˆ’1/2(I+ฮณcโ€‹K1/2VK1/2)โˆ’1K1/2Y

for the conditional case (with a Lagrange multiplier for the norm bound), or more generally:

ฮฑ=(KVK+ฮปK)โˆ’1KY\boldsymbol{\alpha} = (\mathbf{K} V \mathbf{K} + \lambda \mathbf{K})^{-1} \mathbf{K} \mathbf{Y}ฮฑ=(KVK+ฮปK)โˆ’1KY

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=IV = IV=I, the identity). The solution minimizes:

1Lโˆ‘i=1Lmaxโก(0,1โˆ’yif(xi))+ฮปโˆฅfโˆฅH2\frac{1}{L} \sum_{i=1}^L \max(0, 1 - y_i f(x_i)) + \lambda \|f\|_{\mathcal{H}}^2L1โ€‹โˆ‘i=1Lโ€‹max(0,1โˆ’yiโ€‹f(xiโ€‹))+ฮปโˆฅfโˆฅH2โ€‹

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+ฮณPV + \gamma PV+ฮณP by modifying the last layer's gradient. Specifically:

  • Standard backpropagation computes error Yโˆ’F\mathbf{Y} - \mathbf{F}Yโˆ’F at the output layer.

  • The modified version multiplies this error by V+ฮณPV + \gamma PV+ฮณP before backpropagating: (Yโˆ’F)T(V+ฮณP)(\mathbf{Y} - \mathbf{F})^T (V + \gamma P)(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\phi(x) = 1ฯ•(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 ร—\timesร— 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)I(x_1, x_2)I(x1โ€‹,x2โ€‹), a small transformation TaT_aTaโ€‹ parameterized by aaa (e.g., horizontal translation by aaa: x1โ†’x1+ax_1 \to x_1 + ax1โ€‹โ†’x1โ€‹+a) gives:

TaI(x1,x2)โ‰ˆI(x1,x2)+aโ‹…โˆ‚Iโˆ‚x1T_a I(x_1, x_2) \approx I(x_1, x_2) + a \cdot \frac{\partial I}{\partial x_1}Taโ€‹I(x1โ€‹,x2โ€‹)โ‰ˆI(x1โ€‹,x2โ€‹)+aโ‹…โˆ‚x1โ€‹โˆ‚Iโ€‹

The Lie derivative LI=โˆ‚Iโˆ‚x1L_I = \frac{\partial I}{\partial x_1}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 ฯ•\phiฯ• 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.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent