Learning Conditional Averages

Marco Bressan, Nataly Brukhim, Nicolò Cesa-Bianchi, Emmanuel Esposito, Yishay Mansour, Shay Moran, Maximilian Thiessen

TL;DR

This paper introduces a novel extension to the PAC learning framework where the goal is to predict the average label of a point's neighborhood, rather than the point's exact label. The authors provide a complete combinatorial characterization of when these "conditional averages" are learnable, introducing two new parameters that tightly bound the sample complexity. This theoretical foundation has direct implications for fairness, local explainability, and recommendation systems.

What Problem Does This Paper Address?

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: We might want to ensure that the average prediction (e.g., hiring rate) is roughly equal across specific demographic subgroups.
  • Explainability: Local explainers (like the "Anchors" method) describe the behavior of a complex model by finding a neighborhood around a point where the model's prediction is mostly constant.
  • Recommendation Systems: Collaborative filtering often recommends items based on the average behavior of users who share a subset of features.

The authors formalize this as learning conditional averages. 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. But instead of predicting the exact label $c(x)$, the learner must output a predictor 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, completely fail here. Because the target is an average, it depends heavily on the unknown data distribution, meaning a trivial concept class (e.g., just one known function) might be unlearnable depending on the graph, while a maximally complex concept class might be easily learnable if the graph is a simple clique.

Methods

The authors propose a surprisingly elegant, two-pronged algorithm to solve this problem. Given a test point $x$:

  1. Empirical Averaging: If $x$ has any neighbors that were sampled in the training set, the algorithm simply returns the empirical fraction of those neighbors that have a label of 1.
  2. One-Inclusion Graph (OIG): If $x$ is completely isolated from the training set, the algorithm falls back to running the classic One-Inclusion Graph predictor (a powerful tool from standard PAC learning) on the isolated vertices.

To analyze this algorithm, 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. Finally, they use a median-of-means technique to amplify the confidence of their predictor, turning an in-expectation guarantee into a high-probability PAC bound.

Datasets

Not discussed in the paper. This is a purely theoretical machine learning paper focused on establishing fundamental bounds and learnability criteria.

Key Insights and Ideas

  • VC Dimension is Insufficient: The complexity of the concept class alone or the graph alone cannot dictate learnability. It is the intertwining of the two that matters.
  • Two Novel Parameters: The authors prove 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).
  • The "Aha" Moment: Why these two parameters? If a neighborhood is monochromatic (all same labels), predicting the average is just standard binary classification, which is bottlenecked by $\alpha_1$. But if a neighborhood is bichromatic (mixed labels), the true average depends heavily on the unknown distribution of points within that neighborhood. The parameter $\alpha_2$ captures the maximum capacity of the graph and concept class to force the learner to estimate these distribution-dependent averages.

Key Results

  • Complete Characterization: The paper proves that a concept class and graph pair $(G, \mathcal{C})$ is learnable if and only if $\alpha_1(G, \mathcal{C}) + \alpha_2(G, \mathcal{C}) < \infty$.
  • Tight Sample Complexity: The authors prove that the sample complexity $m(\epsilon, \delta)$ required to achieve error $\epsilon$ with confidence $1-\delta$ is upper bounded by: $$O\left(\frac{\alpha_1 + \alpha_2 \log(1/\epsilon)}{\epsilon} \log \frac{1}{\delta}\right)$$
  • Matching Lower Bounds: They provide a lower bound of $\Omega\left(\frac{\alpha_1 + \alpha_2/\log \alpha_2 + \log(1/\delta)}{\epsilon}\right)$, proving their algorithm is optimal up to logarithmic factors.
  • ERM is Suboptimal: They demonstrate that while Empirical Risk Minimization (ERM) can work if the standard VC dimension is finite, it yields a significantly worse sample complexity than their OIG-based approach.

Limitations and Future Work

  • Binary Concepts Only: The current setup assumes the underlying target concepts are binary (even though the predicted averages are continuous values in $[0,1]$).
  • Exact Training Labels: The algorithm assumes the training data consists of exact individual labels.
  • Future Directions: The authors suggest several exciting extensions:
  • Moving to full regression settings where the target labels themselves are continuous (e.g., predicting average income).
  • Learning from label proportions, where the training set also consists of neighborhood averages rather than individual labels.
  • Incorporating weighted averages (e.g., using a Gaussian similarity kernel) instead of uniform averages over the neighborhood.

Summary updated

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. In the degenerate case where all neighborhoods are singletons, the problem reduces exactly to classic PAC learning. More generally, it extends PAC learning to a setting that 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, which depend on both the concept class and the neighborhood system, and are closely related to the independence number of the associated neighborhood graph.
BibTeX
@inproceedings{bressan2026learning,
  author = {Marco Bressan and Nataly Brukhim and Nicolò Cesa-Bianchi and Emmanuel Esposito and Yishay Mansour and Shay Moran and Maximilian Thiessen},
  title = {{Learning Conditional Averages}},
  booktitle = {Conference on Learning Theory},
  year = {2026},
}
Figure