February 3, 2026
Stone’s Minimax Theorem: The best achievable rate of convergence is
\[O\left(N^{-\frac{2S}{2S+P}}\right)\]
As \(P\) increases, this rate becomes glacially slow
No algorithm can escape this — it’s a fundamental property of high-dimensional learning
Question: Is there any hope? What assumption might let us escape this bound?
Real high-dimensional data doesn’t fill the ambient space
The hypothesis: Data lies on \(\mathcal{M}^K\) embedded in \(\mathbb{R}^P\) where \(K \ll P\)
Real images, text, and audio occupy a tiny fraction of the possible space
If we can find \(\phi: \mathbb{R}^P \rightarrow \mathbb{R}^K\) that captures manifold structure, we can learn in \(K\) dimensions instead of \(P\)
Question: How do we actually find this mapping \(\phi\)?
┌─────────────┐ ┌────────────┐ ┌─────────────────┐ ┌───────────┐
│ Raw Features│ │ Projection │ │ Representation │ │ Simple │
│ ℝᴾ │ ──▶ │ φ │ ──▶ │ ℝᴷ │ ──▶ │ Classifier│
│(e.g., 4096 │ │ │ │ (e.g., 50 dims)│ │(e.g., log)│
│ pixels) │ │ │ │ │ │ │
└─────────────┘ └────────────┘ └─────────────────┘ └───────────┘
The heavy lifting is in the projection \(\phi\), not the classifier!
Question: What’s the simplest projection \(\phi\) we could use? Does it have a closed-form solution?
We explored PCA as a linear projection:
Closed-form solution: Top \(K\) eigenvectors of covariance matrix \(S = \frac{1}{N}X^TX\)
Optimal for reconstruction: Minimizes \(\sum_{i=1}^{N} \|x_i - \hat{x}_i\|^2\)
Equivalent to linear autoencoder: Encoder and decoder are tied
\[z = W^T x, \quad \hat{x} = W z\]
Question: PCA is optimal for linear projections and autoencoding. When might it fail? What kinds of transformations can it do?
Swiss roll: PCA rotates but cannot unroll
Rotated horses: Linear interpolation gives ghostly blends
The core problem: Covariance only captures linear relationships
\[\text{Cov}(X_i, X_j) = \mathbb{E}[(X_i - \mu_i)(X_j - \mu_j)]\]
This misses circular patterns, rotations, and nonlinear deformations
Replace linear projection with a learned nonlinear projection:
\[\phi(x) = \varphi(Wx + b)\]
Where:
The classifier on top is still just logistic regression!
All the representational work happens in learning \(\phi\)
Why should this work at all? What guarantees that such a \(\phi\) exists?
When does this approach actually help? Versus simpler methods like trees?
What does the network actually learn? Can we interpret the representation?
With PCA, we found \(\phi\) that minimizes reconstruction error
But we don’t care about reconstruction — we care about classification or regression
The new goal: Find \(\phi\) such that a simple classifier achieves low task loss
\[\min_{\phi, \theta} \sum_{i=1}^{N} L(y_i, f_\theta(\phi(x_i)))\]
Where \(L\) is cross-entropy (classification) or MSE (regression)
The representation should be optimized for what we actually want to do
For classification, the ideal representation makes classes linearly separable
If classes are linearly separable in \(\phi\)-space, logistic regression achieves zero training error
The question: Does such a \(\phi\) always exist?
Theorem: Any \(N\) points with distinct locations can be perfectly separated by a hyperplane in \(N-1\) dimensions or higher
Intuition: More dimensions = more degrees of freedom for placing a hyperplane
Extreme case: Map each point to its own dimension
\[\phi(x_i) = e_i = (0, \ldots, 0, 1, 0, \ldots, 0)\]
Now any labeling is trivially separable — but this is just memorization!
No line can separate blue from red!
What if we add a third dimension based on distance from origin?
\[\phi(x_1, x_2) = (x_1, x_2, x_1^2 + x_2^2)\]
The inner circle has small \(x_1^2 + x_2^2\), the outer circle has large \(x_1^2 + x_2^2\)
A horizontal plane now separates the classes!
The transformation \(\phi(x) = (x_1, x_2, x_1^2 + x_2^2)\) “lifted” the data into a space where a hyperplane works
But: We had to know the right transformation! What if we don’t?
For concentric circles, \(\phi(x) = (x_1, x_2, x_1^2 + x_2^2)\) works perfectly
But:
We need a way to learn the right transformation from data
A single hidden layer with \(M\) units:
\[\phi(x) = \sigma(Wx + b), \quad W \in \mathbb{R}^{M \times P}, \quad b \in \mathbb{R}^M\]
This maps \(\mathbb{R}^P \rightarrow \mathbb{R}^M\)
Key insight: The network learns \(W\) and \(b\) to make the classification easy
| Hidden Units \(M\) | Representation | Capability |
|---|---|---|
| \(M = 0\) | \(\phi(x) = x\) | Linear classifier only |
| \(M\) small | Low-dimensional nonlinear | Limited flexibility |
| \(M\) moderate | Rich nonlinear features | Good generalization (hopefully) |
| \(M \to \infty\) | Can separate any configuration | Perfect training accuracy |
We have a dial that goes from underfitting to interpolation
With no hidden layer:
\[\hat{y} = \text{softmax}(Vx + c)\]
This is just multinomial logistic regression
Each hidden unit computes:
\[h_j = \varphi(w_j^T x + b_j) = \max(0, w_j^T x + b_j)\]
This creates a fold in the input space along the hyperplane \(\{x : w_j^T x + b_j = 0\}\)
The full model:
\[f(x) = \sum_{j=1}^{M} v_j \cdot h_j + c = \sum_{j=1}^{M} v_j \cdot \max(0, w_j^T x + b_j) + c\]
\[P(y=1) = \sigma(f(x)) = \frac{1}{1 + e^{-f(x)}}\]
Each hidden unit contributes a scaled fold to the linear predictor
The decision boundary is where \(f(x) = 0\)
\[h_1 = \max(0, w_1^T x + b_1)\]
One fold — a single tilted plane clipped at zero
\[v_1 \cdot h_1\]
The coefficient \(v_1\) scales the fold (positive → blue, negative → red)
Training accuracy: 45.7%
One fold cannot separate circles!
\[h_j = \max(0, w_j^T x + b_j) \quad \text{for } j = 1, 2\]
\[v_j \cdot h_j \quad \text{for } j = 1, 2\]
Training accuracy: 50.0%
Two folds still not enough!
\[h_j = \max(0, w_j^T x + b_j) \quad \text{for } j = 1, 2, 3, 4\]
\[v_j \cdot h_j \quad \text{for } j = 1, 2, 3, 4\]
Training accuracy: 100.0%
Four folds start to form a pyramid!
\[h_j = \max(0, w_j^T x + b_j) \quad \text{for } j = 1, \ldots, 9\]
\[v_j \cdot h_j \quad \text{for } j = 1, \ldots, 9\]
Training accuracy: 100.0%
Nine folds form a cone approximating the circle!
\[h_j = \max(0, w_j^T x + b_j) \quad \text{for } j = 1, \ldots, 16\]
\[v_j \cdot h_j \quad \text{for } j = 1, \ldots, 16\]
Training accuracy: 100.0%
The \(f=0\) contour is nearly circular!
| \(M\) | Shape of \(f(x)\) | Decision boundary |
|---|---|---|
| 1 | Single tilted plane | Line |
| 2 | Two intersecting planes | Wedge |
| 4 | Pyramid | Quadrilateral |
| 9 | Faceted cone | ~9-sided polygon |
| 16 | Smooth cone | Nearly circular |
The sum of scaled ReLU folds approximates any shape!
The network doesn’t just find any separating transformation
It finds one that minimizes the classification loss
\[\min_{W, b, V, c} \sum_{i=1}^{N} L(y_i, \sigma(V^T \max(0, W x_i + b) + c))\]
Different losses lead to different learned representations!
The true decision boundary follows \(\sin(x_1^2 - x_2^2) = 0\)
Theorem (Cybenko 1989, Hornik 1991): For any continuous function \(f\) on a compact domain and any \(\varepsilon > 0\), there exists \(M\), \(W\), \(b\), \(v\), \(c\) such that:
\[\sup_x |f(x) - v^T \varphi(Wx + b) - c| < \varepsilon\]
For classification: With enough hidden units, we can approximate any decision boundary
What it guarantees:
What it doesn’t tell us:
| Challenge | Question | Status |
|---|---|---|
| Approximation | Can the network represent the function? | ✓ Universal approximation |
| Optimization | Can we find good parameters? | Next Week |
| Generalization | Will it work on new data? | Over the Next classes |
A simpler problem:
As the number of hidden units gets too big, we move into overfit territory!
Interesting observation: the test error descends and then improves when the model is incredibly overparameterized. Any ideas as to why this is happening?
We’ve seen how NNs create decision boundaries for classification
\[f(x) = \sum_{j=1}^{M} v_j \cdot \max(0, w_j^T x + b_j) + c\]
Classification: Decision boundary at \(f(x) = 0\)
Regression: Use \(f(x)\) directly as the prediction!
\[\hat{y} = f(x) = \sum_{j=1}^{M} v_j \cdot \max(0, w_j^T x + b_j) + c\]
Model: \(\hat{y} = v^T \sigma(Wx + b) + c\)
Loss: Mean squared error
\[L = \frac{1}{N} \sum_{i=1}^{N} (y_i - \hat{y}_i)^2\]
Universal approximation: For any continuous function and any \(\varepsilon > 0\), there exists a network that achieves MSE \(< \varepsilon\) on training data
Each ReLU unit creates a “hinge” — a point where the slope changes
\[h_j = \max(0, w_j^T x + b_j)\]
For 1D input:
The hinge is at \(x = -b_j / w_j\)
Each ReLU creates one hinge point — a change in slope
With \(M\) hidden units:
\[f(x) = \sum_{j=1}^{M} v_j \cdot \max(0, w_j x + b_j) + c\]
More units = more hinges = better approximation
ReLU networks approximate smooth functions with piecewise linear segments
ReLU networks create piecewise linear approximations
What other method creates piecewise approximations?
Trees create piecewise CONSTANT approximations (step functions)
| Property | Decision Trees | ReLU Networks |
|---|---|---|
| Approximation type | Piecewise constant | Piecewise linear |
| Partition geometry | Axis-aligned rectangles | Arbitrary hyperplanes |
| How splits are determined | Greedy (top-down) | Learned via gradient descent |
| Prediction in each region | Mean of training points | Affine function of \(x\) |
Both are adaptive basis function methods!
Trees: rectangles | NNs: arbitrary polytopes
For tabular, low-dimensional data, tree ensembles often outperform neural networks:
Inductive bias: Trees assume axis-aligned splits are meaningful — often true for interpretable features
Regularization: Natural controls (max depth, min samples per leaf)
Training stability: XGBoost/Random Forests are remarkably robust
Parameter efficiency: A depth-10 tree has at most \(2^{10} \approx 1000\) leaves
For a single hidden layer:
Parameters: \(M \times P + M + M + 1 = M(P + 2) + 1\)
For \(P = 100\) features, \(M = 50\) hidden units: 5,101 parameters
Compare to a depth-5 tree: at most 31 splits to learn
On tabular data, gradient boosting is hard to beat!
Axis-aligned splits make sense:
Features are already meaningful:
Trees exploit this structure; NNs must learn it
When the inductive bias of trees is wrong:
Key examples: Images, audio, text
Stone’s theorem: Convergence rate is \(O(N^{-2S/(2S+P)})\)
For \(P = 4096\) (64×64 image): astronomical sample complexity
But if data lies on a \(K\)-dimensional manifold with \(K \ll P\):
This is exactly what happens with images, audio, and text
High-dimensional data often lies on a low-dimensional manifold
Images: 64×64 grayscale = 4,096 dimensions
But the space of “valid faces” is much smaller:
Trees ask questions like:
“Is pixel (32, 47) > 128?”
But semantic content isn’t axis-aligned:
Trees partition the ambient space — exponentially many splits needed
Neural networks learn a transformation \(\phi(x)\) that:
If the transformation finds the manifold, we escape the curse of dimensionality
Classic dataset for face recognition:
Dataset shape: (400, 4096)
Number of classes: 40
Images per person: 10
Stone’s bound suggests this should be very hard
But the “face manifold” is much lower dimensional…
Variance explained by top 50 PCs: 87.4%
PCA captures global structure but treats all variation equally
The hidden layer learns a task-specific representation
Unlike PCA (which optimizes for reconstruction), the NN optimizes for classification
The network learns face-like patterns (edges, regions, structures)
Olivetti is small (400 images). What about a larger, harder dataset?
FER2013: Facial Expression Recognition
This is a manifold problem:
“Happy” isn’t a fixed pixel pattern — it’s a configuration:
This configuration can appear on any face, at any position, under any lighting
Decision trees ask: “Is pixel (23, 31) > 128?”
But expression lives in relationships:
These relationships are not axis-aligned
Trees would need exponentially many splits to capture them
| Method | Inductive Bias | Good For |
|---|---|---|
| Trees | Axis-aligned splits | Tabular data with meaningful features |
| Fully-connected NN | Any input can interact with any other | Data with unknown structure |
| CNN | Local spatial structure | Images (exploits pixel neighborhoods) |
Fully-connected NNs are more general than trees but less structured than CNNs
A note: In general, learners other than NNs will perform better if we need to increase the dimensionality of the representation space beyond \(P\) to beat axis aligned splits.
The Goal: Learn a representation \(\phi(x)\) that makes classification/regression easy
Universal Approximation: A single hidden layer with enough units can approximate any function
The Mechanism: ReLU units create “folds” that combine additively
Width as Complexity: \(M=0\) (linear) → \(M=\infty\) (interpolation)
When NNs Will Work Best: High-dimensional data with manifold structure (images, audio, text) with an appropriate prior architecture
On FER2013, we saw something interesting:
Deeper networks did slightly better — even with similar parameter counts!
Why?
Universal approximation says: width is enough
With sufficient hidden units, one layer can approximate anything
But it says nothing about efficiency:
Consider learning to recognize “a person wearing glasses and smiling”
Single layer approach:
Multi-layer approach:
Real-world data has hierarchical structure:
Images: \[\text{Pixels} \rightarrow \text{Edges} \rightarrow \text{Textures} \rightarrow \text{Parts} \rightarrow \text{Objects}\]
Language: \[\text{Characters} \rightarrow \text{Words} \rightarrow \text{Phrases} \rightarrow \text{Sentences} \rightarrow \text{Meaning}\]
Audio: \[\text{Samples} \rightarrow \text{Frequencies} \rightarrow \text{Phonemes} \rightarrow \text{Words} \rightarrow \text{Speech}\]
Can depth help us exploit this structure?
Theorem (informal): Some functions require exponentially many units with 1 hidden layer, but only polynomially many with multiple layers.
Example: Parity function on \(n\) bits
Depth can be exponentially more efficient than width!
In deep networks trained on images:
Each layer builds on the previous — compositional representation
If depth is so great, why not make everything deep?
Optimization challenges:
These problems were the bottleneck for neural networks until ~2012
Start simple: Try logistic regression and XGBoost first
Use NNs when: High-dimensional, raw features, manifold structure
Width controls capacity: More units = more flexibility = more risk of overfitting
Depth often helps: But makes training harder (we’ll learn why)
The representation is key: What the hidden layer learns matters more than the architecture details
Width vs. Depth: The Efficiency of Deep Networks