Statistical learning theory asks a simple but hard question: if a model fits the
training data well, how confident can we be that it will also do well on data it has
never seen? PAC (Probably Approximately Correct) learning answers this with
generalization bounds — statements of the form "with probability at
least 1−δ, the true risk is no more than the training risk plus a
gap term that grows with model complexity and shrinks with more training data."
This scene renders that trade-off as a literal landscape. The floor plane spans two axes: model complexity (a stand-in for VC dimension / effective capacity, running left→right) and training-set size N (log scale, running front→back). The cyan sheet is training risk — it always falls as complexity rises, because a more flexible model can memorize more of the training set. The purple translucent sheet layered above it is the PAC bound on true risk: training risk plus a statistical penalty term. Where the two sheets pull apart is the generalization gap — the price you pay for capacity you cannot yet justify with data.
gap ≈ √((complexity·weight + ln(2/δ)) / (2N)), in the spirit of classical VC-dimension and PAC-Bayes bounds: the gap shrinks as 1/√N and grows with model capacity and required confidence.This is exactly why hyperparameter search early-stops on validation curves, why k-fold cross-validation exists, and why "bigger model" is not automatically "better model": statistical learning theory formalizes the bias–variance trade-off as a quantitative bound rather than a rule of thumb, and Bayesian and bandit-based hyperparameter optimizers implicitly try to search along the floor of this exact valley.
A 3D generalization-bound landscape over model complexity and training-set size, where a cyan training-risk sheet and a purple PAC-bound sheet pull apart to show exactly why bigger models need more data.
Training risk always falls as capacity rises, but the PAC generalization bound adds a statistical penalty that shrinks with more data and grows with complexity and confidence — carving a U-shaped valley whose floor is the best achievable hyperparameter setting.
Set training-set size, confidence level, and model family, then drag the complexity slider (or hit auto-sweep) to watch the marker ride the gap between training risk and the theoretical bound on true risk.
This same U-shaped trade-off is what cross-validation curves and Bayesian hyperparameter optimizers are implicitly searching for — a quantitative bound turns "avoid overfitting" from a rule of thumb into a formula.