A topic in the Open Knowledge Graph — a free, open map of 15,495 topics and the order to learn them in.

Generalization Bounds for Deep Networks

Research Depth 110 in the knowledge graph ☐ I know this ☆ Set as goal
12topics build on this
680prerequisites beneath it
See this on the map →
Neural Network Approximation TheoryRademacher Complexity+2 more→→Deep Learning TheoryDouble Descent Phenomenon+1 more
generalization deep-learning pac-bayes margin-bounds

Core Idea

Classical generalization bounds based on VC dimension or parameter counting are vacuous for modern deep networks (they predict the network should not generalize at all). Tighter bounds have been developed using different complexity measures: spectral-norm bounds control generalization through the product of layer spectral norms divided by the margin; PAC-Bayes bounds measure the KL divergence between the learned weights and a prior distribution; compression-based bounds exploit the fact that trained networks can often be compressed without loss of accuracy. While these bounds are tighter than classical ones, they remain loose by orders of magnitude in practice — closing this gap is an active research frontier.

How It's Best Learned

First do the vacuous arithmetic: with 107 parameters and 50,000 examples, sqrt(107 / 50,000) is about 14, far above any error rate. Then train one small network twice, on true labels and on shuffled labels, and compute the product of layer spectral norms divided by the margin for each. Comparing these numbers with the observed test error shows what the bound tracks and how loose it still is.

Common Misconceptions

Explainer

The generalization puzzle for deep networks is stark: classical learning theory says a model with more parameters than training examples should memorize the training data and fail on test data. Modern deep networks routinely violate this prediction — they have orders of magnitude more parameters than examples yet generalize well. The search for tight, informative generalization bounds for deep networks is one of the most active areas in theoretical ML.

VC dimension and Rademacher complexity bounds, which work beautifully for simpler model classes, give vacuous bounds for deep networks. The VC dimension of a network grows with the number of parameters, producing bounds that exceed 100% error — mathematically valid but practically useless. The problem is that these measures treat all parameter settings as equally likely, ignoring that SGD navigates to a tiny, structured region of the parameter space. Better bounds must capture this structure.

Spectral-norm margin bounds (Bartlett, Foster, Telgarsky, 2017) measure complexity through the product of layer spectral norms divided by the classification margin. The spectral norm ||W_i|| of a weight matrix is its largest singular value — a measure of how much the layer amplifies signals. The bound on Rademacher complexity scales as the product of spectral norms times the Frobenius norm of the reference matrix, divided by the margin and sqrt(n). This is parameter-count-independent: a network with many parameters but well-controlled spectral norms (through normalization, regularization, or the implicit effects of SGD) can have a tighter bound than a smaller network with large spectral norms.

PAC-Bayes bounds take a different approach: they measure the "distance" (in KL divergence) between the learned weights and a prior distribution specified before training. The bound is O(sqrt(KL(posterior || prior) / n)). If SGD finds weights close to the initialization (which over-parameterization encourages), and the prior is centered at the initialization, the KL divergence can be small even with millions of parameters. Compression bounds offer yet another perspective: if the trained network can be described in k bits (through pruning, quantization, or low-rank factorization) without losing accuracy, the generalization bound depends on k, not the original parameter count. All three approaches — spectral norms, PAC-Bayes, and compression — attempt to capture the effective complexity of the learned function rather than the raw capacity of the architecture, and all give tighter (though still imperfect) bounds than classical measures.

Practice Questions 4 questions

Prerequisite Chain

Understanding Zero → The Number Zero → Counting to Five → Counting to 10 → Counting to 20 → Counting a Set of Objects Up to 20 → Cardinality: The Last Number Counted → Matching Numerals to Quantities → Subitizing Small Quantities → Combining Small Groups Within 5 → Number Bonds Within 5 → Number Bonds to 10 → Tens and Ones Place Value → Reading and Writing Three-Digit Numbers → Comparing Three-Digit Numbers → Comparing and Ordering Three-Digit Quantities → Comparing and Ordering Whole Numbers → Comparing Numbers 1 to 20 → Ordering Numbers to 20 → Number Line 0 to 20 → Addition Within 20 → Doubles and Near Doubles → Doubles Facts Within 10 → Near Doubles Facts Within 20 → Mental Math Strategies for Addition → Mental Math: Adding and Subtracting Tens → Addition Within 100 → Repeated Addition as Multiplication → Multiplication as Equal Groups → Multiplication: Arrays → Basic Multiplication Facts (0s, 1s, 2s, 5s, 10s) → Multiplication Facts Within 100 → Division as Equal Sharing → Division as Grouping (Measurement Division) → Division: Grouping (Repeated Subtraction) Model → Division: Fair Sharing Model → Division as Equal Sharing → Division as Grouping → Basic Division Facts → Division Facts Within 100 → Multiplication and Division Fact Families → Relationship Between Multiplication and Division → Division Facts as Inverse of Multiplication → Remainders and Quotients in Division → Division Word Problems → Multi-Step Word Problems → Solving Multi-Step Word Problems → Multiplication Word Problems → Division Word Problems → Introduction to Long Division → Factors and Multiples → Prime and Composite Numbers → Equivalent Fractions → Relating Fractions and Decimals → Decimal Place Value → Integers and the Number Line → Opposites and Additive Inverses → Absolute Value → Adding Integers → Subtracting Integers → Multiplying Integers → Introduction to Exponents → Order of Operations → Integer Order of Operations → Variable Expressions → The Distributive Property → Variables and Expressions Review → Introduction to Polynomials → Adding and Subtracting Polynomials → Multiplying Polynomials → Multiplying Binomials (FOIL) → Factoring Trinomials → Factoring Completely → Introduction to Rational Expressions → Simplifying Radical Expressions → Segments and Distance → Triangle Inequality Theorem → Similar Triangles: AA Similarity → Similar Triangles: SSS and SAS Similarity → Proportions in Similar Triangles → Similar Right Triangles and the Geometric Mean → Right Triangle Trigonometry Introduction → Sine, Cosine, and Tangent Ratios → Special Right Triangles: 30-60-90 → Trigonometric Ratios Review → Radian Measure → Converting Between Degrees and Radians → The Unit Circle → Graphing Sine and Cosine → Graphing Tangent and Reciprocal Trigonometric Functions → Derivatives of Trigonometric Functions → Antiderivatives → Indefinite Integrals → Basic Integration Rules → Riemann Sums → Definite Integral Definition → Probability Density Functions and Continuous Distributions → Cumulative Distribution Functions → Continuous Random Variables → Probability Density Functions → Expected Value → Weak Law of Large Numbers → Probability Axioms and Rules → Conditional Probability → Law of Total Probability → Bayes' Theorem → PAC Learning Framework → Growth Function and Shattering → VC Dimension → Neural Network Approximation Theory → Generalization Bounds for Deep Networks

Longest path: 111 steps · 680 total prerequisite topics

Prerequisites (4)

Leads To (3)