Easy Learning from Label Proportions

Robert Istvan Busa-Fekete, Heejin Choi, Travis Dick, Claudio Gentile, Andres Munoz medina

TL;DR

This paper introduces EASYLLP, a simple yet powerful framework for training individual-level classifiers when you only have access to aggregate label proportions (e.g., "30% of this group is positive"). By using a clever debiasing technique, the authors show that you can adapt almost any standard machine learning algorithm (like SGD or ERM) to this "weakly supervised" setting with provable performance guarantees and minimal code changes.

What Problem Does This Paper Address?

In a perfect world, machine learning models are trained on individual examples: "User A clicked the ad," or "Patient B has the condition." However, in the real world, privacy regulations (like Apple’s SKAN or Google’s Privacy Sandbox) and data collection costs often mean we only see data in "bags." We might know that in a group of 500 users, 10% converted, but we don't know which specific users did.

This is the Learning from Label Proportions (LLP) problem. The challenge is to train a model that can accurately predict the label of a single instance, even though it only ever saw the average labels of groups.

Previous approaches often relied on "proportion matching"—trying to make the model's average prediction on a bag match the observed proportion. While intuitive, this "folklore" method lacks strong theoretical backing and can fail spectacularly if the model isn't powerful enough to capture the underlying data distribution.

Methods

The authors propose a two-pronged approach:

  1. Theoretical Analysis of "Proportion Matching": They first analyze the common "folklore" algorithm (PROPMATCH), which minimizes the difference between predicted and observed bag averages. They prove that if your model is expressive enough (e.g., a very large neural network) and you use specific loss functions like square loss or cross-entropy, this simple method actually works quite well.
  2. EASYLLP (The Core Contribution): They introduce a "soft-label corrected" function. Essentially, they provide a mathematical formula to transform any standard loss function (like the one you'd use for individual labels) into an unbiased estimator that works with bag proportions.

The "magic" formula uses the bag's proportion ($\alpha$) and the global average positive rate ($p$) to re-weight the loss. Because this estimator is unbiased, you can plug it directly into standard training pipelines like Empirical Risk Minimization (ERM) or Stochastic Gradient Descent (SGD).

Datasets

The authors evaluated their methods on four binarized versions of well-known benchmarks:

  • MNIST: Handwritten digits, categorized as even vs. odd.
  • CIFAR-10: Images categorized as animals vs. machines.
  • Higgs: A physics dataset for particle classification.
  • UCI Adult: A census dataset used to predict income levels.

They tested these across various architectures, including linear models, simple ConvNets, and ResNet-11, with "bag" sizes ranging from 1 to 512 instances.

Key Insights and Ideas

  • The "Cost" of Privacy is Linear: The paper proves that if you move from individual labels to bags of size $k$, your sample complexity (the amount of data you need) or your "regret" in SGD increases by a factor of roughly $k$. This provides a clear theoretical "price tag" for the privacy gained by grouping data.
  • Unbiasedness is Key: Unlike previous methods that required complex combinatorial optimization or specific model assumptions (like logistic regression), EASYLLP works because it creates an unbiased estimate of the individual loss. This means it "tracks" the true event-level loss during training, even though it never sees an individual label.
  • The Expressivity Trap: A major "aha moment" in the paper is showing that the popular PROPMATCH algorithm fails when the model is "mis-specified" (i.e., not powerful enough). In these cases, the model might get the bag averages perfectly right while being completely wrong about individual instances. EASYLLP is much more robust to this.

Key Results

  • Robustness: EASYLLP consistently achieved high accuracy across large bag sizes where other baselines (like Distributional Alignment) began to degrade.
  • Loss Tracking: In experiments, the authors demonstrated a critical flaw in standard proportion matching: while PROPMATCH's training loss might decrease, its actual test error on individuals can skyrocket due to mis-specification. EASYLLP, on the other hand, accurately mirrors the true individual-level performance (Event Loss) during both training and testing.
Training loss comparison showing EASYLLP tracking true event loss
Test loss comparison showing PROPMATCH diverging while EASYLLP tracks true event loss
  • Ease of Use: Because EASYLLP only requires a modified loss function, it can be implemented in frameworks like PyTorch or JAX with just a few lines of code, making it highly practical for production systems.

Limitations and Future Work

  • I.I.D. Assumption: The current theory assumes that instances are assigned to bags randomly (i.e., they are independent and identically distributed). In some real-world scenarios, bags might be formed based on specific features (e.g., all users from the same city), which could introduce biases not covered here.
  • Global Rate Knowledge: EASYLLP requires knowing the global positive rate ($p$). While this can be estimated from the bag proportions themselves, errors in this estimate could affect performance.
  • Multiclass Extension: While the paper mentions that a multiclass extension is possible, the primary focus and evaluation remain on binary classification. Expanding the empirical validation to complex multiclass problems is a logical next step.

Summary updated

BibTeX
@inproceedings{busafekete2023easy,
  author = {Robert Istvan Busa-Fekete and Heejin Choi and Travis Dick and Claudio Gentile and Andres Munoz medina},
  title = {{Easy Learning from Label Proportions}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2023},
  url = {https://openreview.net/forum?id=kqBUgrkm1c},
}
Figure