Abstract
We introduce the problem of learning conditional averages in the PAC framework. The learner receives a sample labeled by an unknown target concept from a known concept class, as in standard PAC learning. However, instead of learning the target concept itself, the goal is to predict, for each instance, the average label over its neighborhood—an arbitrary subset of points that contains the instance. This setting captures learning tasks arising in several domains, including explainability, fairness, and recommendation systems. Our main contribution is a complete characterization of when conditional averages are learnable, together with sample complexity bounds that are tight up to logarithmic factors. The characterization hinges on the joint finiteness of two novel combinatorial parameters, $\alpha_1$ and $\alpha_2$, which depend on both the concept class and the neighborhood system.
Introduction
Standard supervised learning focuses on predicting the exact label of an individual data point. However, many modern machine learning applications require understanding aggregate behavior over local regions. For example:
- Fairness: Ensuring that average predictions (e.g., hiring rates) are consistent across specific demographic subgroups.
- Explainability: Local explainers (like "Anchors") describe complex models by finding neighborhoods where predictions are mostly constant.
- Recommendation Systems: Collaborative filtering often recommends items based on the average behavior of users with similar features.
This paper formalizes these tasks as learning conditional averages.
Problem Formulation
Given a domain $\mathcal{X}$, a concept class $\mathcal{C}$, and a directed graph $G$ that defines a "neighborhood" $N[x]$ for every point $x$, the learner receives standard labeled training data $(x_i, c(x_i))$. Instead of predicting the exact label $c(x)$, the learner must output a predictor $h$ that estimates the expected label over $x$'s neighborhood: $$\bar{c}(x) = \mathbb{E}[c(x') \mid x' \in N[x]]$$
The core theoretical challenge is that standard complexity measures, like VC dimension, are insufficient. Because the target is an average, it depends heavily on the unknown data distribution. A trivial concept class might be unlearnable depending on the graph, while a complex concept class might be easily learnable if the graph structure is simple.
Methodology
The authors propose a two-pronged algorithm to solve this problem. For a test point $x$:
- Empirical Averaging: If $x$ has neighbors sampled in the training set, the algorithm returns the empirical fraction of those neighbors with a label of 1.
- One-Inclusion Graph (OIG) Fallback: If $x$ is isolated from the training set, the algorithm uses the classic One-Inclusion Graph predictor on the isolated vertices.
To analyze this, the authors use a leave-one-out analysis combined with a novel graph-theoretic lemma (a weighted version of the Caro-Wei inequality) to bound the probability mass of "light" neighborhoods. A median-of-means technique is then used to amplify the confidence into a high-probability PAC bound.
Theoretical Characterization
The paper proves that learnability is perfectly characterized by the finiteness of two new combinatorial parameters:
- $\alpha_1(G, \mathcal{C})$: The size of the largest independent set in the graph $G$ that is shattered by the concept class $\mathcal{C}$. This generalizes VC dimension for isolated points.
- $\alpha_2(G, \mathcal{C})$: The size of the largest independent set where every node has a neighbor with the opposite label (a "bichromatic" neighborhood).
If a neighborhood is monochromatic, predicting the average is standard binary classification (bottlenecked by $\alpha_1$). If it is bichromatic, the true average depends on the unknown distribution within that neighborhood. The parameter $\alpha_2$ captures the capacity to force the learner to estimate these distribution-dependent averages.
Key Results
- Learnability Criterion: A pair $(G, \mathcal{C})$ is learnable if and only if $\alpha_1(G, \mathcal{C}) + \alpha_2(G, \mathcal{C}) < \infty$.
- Sample Complexity: The sample complexity $m(\epsilon, \delta)$ is upper bounded by: $$O\left(\frac{\alpha_1 + \alpha_2 \log(1/\epsilon)}{\epsilon} \log \frac{1}{\delta}\right)$$
- Optimality: A lower bound of $\Omega\left(\frac{\alpha_1 + \alpha_2/\log \alpha_2 + \log(1/\delta)}{\epsilon}\right)$ shows the algorithm is optimal up to logarithmic factors.
- ERM Suboptimality: The authors demonstrate that Empirical Risk Minimization (ERM) yields significantly worse sample complexity than the OIG-based approach.
Conclusion and Future Work
This work establishes a rigorous foundation for learning aggregate local properties. Future directions include extending the framework to continuous target labels (regression), learning from label proportions (where training data itself consists of averages), and incorporating weighted averages (e.g., using similarity kernels).
Summary updated