Abstract
PAC-Bayes bounds are among the most accurate generalization bounds for classifiers learned with IID data, particularly for margin classifiers. However, many practical scenarios involve training data with inherent dependencies where the traditional IID assumption fails. We present a framework for PAC-Bayes generalization bounds for classifiers trained on data exhibiting such dependencies. Our approach utilizes dependency graphs to encode data relationships and graph fractional covers to decompose these dependencies into sets of independent data. By bounding the fractional chromatic number of the dependency graph, we derive new PAC-Bayes bounds for specific settings, including bipartite ranking and windowed prediction on sequential data.
Introduction
A fundamental assumption in machine learning theory is that data points are Independent and Identically Distributed (IID). While this simplifies mathematical proofs, it often fails to reflect reality. In tasks like bipartite ranking or time-series analysis, data points are naturally linked. Standard PAC-Bayes bounds, which provide tight guarantees on model performance, become invalid or overly optimistic when this assumption is violated. This work introduces Chromatic PAC-Bayes Bounds, a principled extension of the PAC-Bayes framework to non-IID data using tools from graph theory.
Modeling Dependency with Graph Theory
The core innovation lies in representing a dataset as a dependency graph. In this graph, each data point is a vertex, and an edge exists between two vertices if the corresponding data points are dependent. To handle these dependencies, we decompose the graph into "independent sets"—groups of data points that are IID relative to each other.
The "price" of dependency is quantified by the fractional chromatic number ($\chi^*$). In graph theory, the chromatic number is the minimum number of colors required to color a graph such that no two adjacent vertices share a color. The fractional version is a continuous relaxation of this concept. Our main result, Theorem 3, demonstrates that a standard PAC-Bayes bound can be generalized by scaling it by $\chi^*$. This number acts as a penalty: the more complex the dependencies, the higher the $\chi^*$ and the more conservative the resulting generalization bound.
Applications: Ranking and Sequences
We demonstrate the utility of this framework through two structural examples:
- Bipartite Ranking: In ranking tasks, we compare pairs of items. Dependencies arise when multiple pairs share a common item. Our analysis shows that the generalization bound depends on the smaller of the two class sizes ($\min(\ell^+, \ell^-)$), providing a theoretical basis for why class imbalance complicates ranking.
- Sliding Windows in Sequential Data: For time-series data where each observation is a window of size $2r+1$, the dependency graph has a specific structure. We prove that the fractional chromatic number for such a graph is exactly $2r+1$. This allows for immediate application of PAC-Bayes guarantees to windowed predictors in domains like finance or bioinformatics.
Key Insights
- Backward Compatibility: The framework is elegant because it recovers the classic McAllester PAC-Bayes bound when data is IID. In the IID case, the dependency graph has no edges, $\chi^* = 1$, and the formula simplifies to the standard version.
- Holistic Error Assessment: We prove that it is theoretically superior to calculate empirical error using the entire dependent dataset rather than just an independent subset, even though the latter might be simpler to analyze.
- The Coloring Analogy: The difficulty of learning from dependent data is mathematically equivalent to the difficulty of coloring its dependency graph. Efficient coloring leads to efficient error bounding.
Conclusion and Future Work
Chromatic PAC-Bayes bounds provide the first rigorous generalization guarantees for non-IID data within the PAC-Bayes framework. While finding the fractional chromatic number is NP-hard for arbitrary graphs, it is straightforward for many common data structures. Future work will focus on extending these results to non-identical marginal distributions and exploring tighter relaxations using variational methods from graphical models.
Summary updated