Hoeffding's inequality
\[\Pr\Big(\Big\lvert \tfrac{1}{n}\textstyle\sum_i X_i - \mathbb{E}X_i \Big\rvert \ge \epsilon\Big) \le
2\exp\!\left(-\frac{2n\epsilon^2}{(b - a)^2}\right)\]
For independent \(X_i \in [a, b]\).
- Gives
- Concentration for one fixed hypothesis.
- Costs
- Independence and bounded variables.
- Wrong tool when
- The predictor was selected using the same sample; you need a uniform or stability argument first.
Symmetrization and Rademacher complexity
\[\mathfrak{R}_S(\mathcal{F}) = \mathbb{E}_\sigma \sup_{f \in \mathcal{F}} \frac{1}{n}\sum_{i=1}^n \sigma_i
f(z_i), \qquad \mathbb{E}\sup_{f \in \mathcal{F}} (P - P_n) f \le 2\, \mathbb{E}\, \mathfrak{R}_S(\mathcal{F})\]
This page uses the convention without absolute values, with \(\sigma_i\) independent random signs. For a
two-sided bound, apply it to \(\mathcal{F} \cup (-\mathcal{F})\). Some texts put an absolute value inside the
supremum; keep one convention through a proof. Standard measurability and integrability conditions apply.
- Gives
- Converts generalization into a random-sign complexity of the class.
- Costs
- An i.i.d. sample and a class of manageable complexity.
- Wrong tool when
- The class is huge but your algorithm is very stable; uniform bounds can then be vacuous.
Contraction (Ledoux–Talagrand)
\[\mathbb{E}_\sigma \sup_f \tfrac{1}{n}\textstyle\sum_i \sigma_i \phi_i\big(f(x_i)\big) \le L\,
\mathbb{E}_\sigma \sup_f \tfrac{1}{n}\sum_i \sigma_i f(x_i)\]
If each \(\phi_i\) is \(L\)-Lipschitz. (The absolute-value convention also needs \(\phi_i(0) = 0\) and costs a
factor 2.)
- Gives
- Moves complexity through Lipschitz losses and activations.
- Costs
- Lipschitz transformations.
- Wrong tool when
- The target metric is discontinuous and there is no margin surrogate step.
Uniform stability
\[\sup_z \big\lvert \ell(A(S), z) - \ell(A(S'), z) \big\rvert \le \beta \;\Longrightarrow\; \big\lvert
\mathbb{E}\,\mathrm{gen} \big\rvert \le \beta\]
For all datasets \(S, S'\) differing in one example.
- Gives
- An algorithm-dependent bound on the expected generalization gap.
- Costs
- Stability under replacing one sample.
- Wrong tool when
- The algorithm is highly unstable or interpolating, unless a weaker average notion is available.
PAC-Bayes (kl form)
\[\mathrm{kl}\big(\hat L(Q) \,\Vert\, L(Q)\big) \le \frac{D_{\mathrm{KL}}(Q \Vert P) +
\ln(2\sqrt{n}/\delta)}{n}\]
With probability at least \(1 - \delta\), simultaneously for all posteriors \(Q\), for a prior \(P\) chosen
independently of the sample and a loss in \([0, 1]\).
- Gives
- A data-dependent certificate trading empirical risk against KL complexity.
- Costs
- A prior independent of the data, bounded loss, and a stochastic predictor.
- Wrong tool when
- The prior is chosen after seeing the data without a corrected theorem.
Mutual-information bound
\[\big\lvert \mathbb{E}\big[\mathrm{gen}(W, S)\big] \big\rvert \le \sqrt{\frac{2\sigma^2}{n}\, I(W; S)}\]
If \(\ell(w, Z) - \mathbb{E}_Z \ell(w, Z)\) is \(\sigma\)-sub-Gaussian for every \(w\).
- Gives
- An expected, algorithm-dependent bound driven by how much the output reveals about the sample.
- Costs
- A sub-Gaussian loss and finite mutual information.
- Wrong tool when
-
You need a high-probability bound, or the algorithm is deterministic and continuous so \(I(W; S)\) can be
infinite.