Deep multi-class learning from label proportions

Gabriel Dulac-Arnold, Neil Zeghidour, Marco Cuturi, Lucas Beyer, Jean-Philippe VertarXiv 2019

Abstract

Learning from Label Proportions (LLP) is a weakly supervised learning paradigm where training data is grouped into "bags," and only the distribution of labels within each bag is known. This paper presents a framework for training deep non-linear neural networks (ResNet-18) in multi-class settings using differentiable loss functions. We evaluate two primary approaches: a bag-level Kullback-Leibler (KL) divergence loss and an instance-level Relaxed Optimal Transport (ROT) loss. Our experiments on CIFAR-10 and CIFAR-100 demonstrate that deep models are remarkably robust to label aggregation, maintaining high performance for small to moderate bag sizes.

Introduction

In standard supervised learning, every instance requires a precise label. However, obtaining such labels can be prohibitively expensive or restricted by privacy concerns. For example, medical datasets may only provide the prevalence of a condition within a demographic group to protect individual identities. Similarly, in pathology, estimating the percentage of cancerous cells in a slide is far more efficient than labeling thousands of individual cells.

LLP addresses these challenges by training on aggregated statistics. While previous research focused on linear models or binary classification, this work extends LLP to deep learning for complex multi-class problems, exploring how deep architectures handle the "long tail" of complexity inherent in non-linear mappings.

Methodology

We propose and compare two differentiable loss functions to enable backpropagation through deep architectures:

  1. Bag-level KL Loss: This approach calculates the average predicted distribution for all images within a bag and minimizes the KL divergence between this average and the known ground-truth proportions. It is intuitive and computationally efficient.
  2. Instance-level Relaxed Optimal Transport (ROT) Loss: This method attempts to infer individual labels by treating the problem as an unbalanced optimal transport task. By applying convex relaxation and entropic regularization, the assignment problem becomes differentiable and is solved during training using the Sinkhorn algorithm.
Training accuracy over 400 epochs for KL and ROT losses across various bag sizes (1 to 1024).

As shown in the training curves above, both methods demonstrate stable convergence across a wide range of bag sizes, although larger bags naturally lead to lower final accuracy due to the dilution of the supervision signal.

Experimental Results

The framework was evaluated on CIFAR-10 and CIFAR-100 datasets with bag sizes ($n$) ranging from 1 (fully supervised) to 1024.

Performance and Bag Size

A key finding is the resilience of deep models to weak supervision. On CIFAR-10, accuracy remains above 85% for bag sizes up to 8, compared to a ~93% baseline for full supervision. However, a performance "cliff" is observed as bag sizes exceed 16–32, where the utility of the label proportions begins to drop steadily.

Final classification accuracy on CIFAR-10 and CIFAR-100 as a function of bag size for different loss functions.

Comparison of Loss Functions

For small to medium bag sizes, the simpler KL loss often performs comparably to or slightly better than the more complex ROT loss. However, the ROT loss demonstrates superior robustness at very large bag sizes (e.g., $n \ge 512$). This suggests that when the supervision signal is extremely sparse, the additional effort of estimating instance-level labels through optimal transport provides a meaningful advantage. Both methods significantly outperform the baseline (AvKL), which naively assigns bag averages to individual samples.

Conclusion

Deep learning models are surprisingly effective at learning from label proportions. While performance inevitably degrades as bag size increases—eventually reaching the "chance" limit where all bags reflect the global dataset average—the proposed differentiable losses provide a robust path for training in privacy-sensitive or low-annotation environments. Future work will explore the impact of non-random bag compositions, which are common in real-world applications like medical imaging.

Summary updated

BibTeX
@misc{dulacarnold2019deep,
  author = {Gabriel Dulac-Arnold and Neil Zeghidour and Marco Cuturi and Lucas Beyer and Jean-Philippe Vert},
  title = {{Deep multi-class learning from label proportions}},
  year = {2019},
  eprint = {1905.12909},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1905.12909},
}
Figure