Class-wise Generalization Error: an Information-Theoretic Analysis
Firas Laakom, Yuheng Bu, Moncef Gabbouj
TL;DR
This work identifies and formalizes class-wise generalization error, demonstrating that standard average generalization bounds obscure per-class disparities observed in real neural networks. It develops a hierarchy of information-theoretic bounds—starting with a KL-based MI bound and extending to class-CMI, class-f-CMI, and class-Δ_y L-CMI—that quantify per-class generalization in a way that is practical to estimate. Empirical results on CIFAR-10 (and its noisy variant) show these bounds track the complex, class-dependent generalization behavior, offering predictive insight into which classes generalize poorly. The framework also extends to related settings, including standard generalization, sub-task problems under distribution shift, and fairness certificates with sensitive attributes, highlighting broad applicability. Overall, the paper advances understanding of how class-specific factors, learning dynamics, and data distributions interact to shape generalization in deep learning, with potential impact on targeted data augmentation and fairness-aware training strategies.
Abstract
Existing generalization theories of supervised learning typically take a holistic approach and provide bounds for the expected generalization over the whole data distribution, which implicitly assumes that the model generalizes similarly for all the classes. In practice, however, there are significant variations in generalization performance among different classes, which cannot be captured by the existing generalization bounds. In this work, we tackle this problem by theoretically studying the class-generalization error, which quantifies the generalization performance of each individual class. We derive a novel information-theoretic bound for class-generalization error using the KL divergence, and we further obtain several tighter bounds using the conditional mutual information (CMI), which are significantly easier to estimate in practice. We empirically validate our proposed bounds in different neural networks and show that they accurately capture the complex class-generalization error behavior. Moreover, we show that the theoretical tools developed in this paper can be applied in several applications beyond this context.
