English

When Do Early-Exit Networks Generalize? A PAC-Bayesian Theory of Adaptive Depth

Machine Learning 2026-04-20 v1 Artificial Intelligence

Abstract

Early-exit neural networks enable adaptive computation by allowing confident predictions to exit at intermediate layers, achieving 2-8×\times inference speedup. Despite widespread deployment, their generalization properties lack theoretical understanding -- a gap explicitly identified in recent surveys. This paper establishes a unified PAC-Bayesian framework for adaptive-depth networks. (1) Novel Entropy-Based Bounds: We prove the first generalization bounds depending on exit-depth entropy H(D)H(D) and expected depth E[D]\mathbb{E}[D] rather than maximum depth KK, with sample complexity O((E[D]d+H(D))/ϵ2)\mathcal{O}((\mathbb{E}[D] \cdot d + H(D))/\epsilon^2). (2) Explicit Constructive Constants: Our analysis yields the leading coefficient 2ln21.177\sqrt{2\ln 2} \approx 1.177 with complete derivation. (3) Provable Early-Exit Advantages: We establish sufficient conditions under which adaptive-depth networks strictly outperform fixed-depth counterparts. (4) Extension to Approximate Label Independence: We relax the label-independence assumption to ϵ\epsilon-approximate policies, broadening applicability to learned routing. (5) Comprehensive Validation: Experiments across 6 architectures on 7 benchmarks demonstrate tightness ratios of 1.52-3.87×\times (all p<0.001p < 0.001) versus >>100×\times for classical bounds. Bound-guided threshold selection matches validation-tuned performance within 0.1-0.3%.

Keywords

Cite

@article{arxiv.2604.15764,
  title  = {When Do Early-Exit Networks Generalize? A PAC-Bayesian Theory of Adaptive Depth},
  author = {Dongxin Guo and Jikun Wu and Siu Ming Yiu},
  journal= {arXiv preprint arXiv:2604.15764},
  year   = {2026}
}

Comments

6 pages, 1 figure, 7 tables, 1 algorithm

R2 v1 2026-07-01T12:13:55.300Z