Multi-class Classification from Multiple Unlabeled Datasets with Partial Risk Regularization

Yuting Tang, Nan Lu, Tianyi Zhang, Masashi Sugiyama

Abstract

Recent years have witnessed a great success of supervised deep learning, where predictive models were trained from a large amount of fully labeled data. However, in practice, labeling such big data can be very costly and may not even be possible for privacy reasons. Therefore, in this paper, we aim to learn an accurate classifier without any class labels. More specifically, we consider the case where multiple sets of unlabeled data and only their class priors, i.e., the proportions of each class, are available. Under this problem setup, we first derive an unbiased estimator of the classification risk that can be estimated from the given unlabeled sets and theoretically analyze the generalization error of the learned classifier. We then find that the classifier obtained as such tends to cause overfitting as its empirical risks go negative during training. To prevent overfitting, we further propose a partial risk regularization that maintains the partial risks with respect to unlabeled datasets and classes to certain levels. Experiments demonstrate that our method effectively mitigates overfitting and outperforms state-of-the-art methods for learning from multiple unlabeled sets.

Introduction

Supervised learning has reached impressive heights, but its reliance on massive, fully labeled datasets remains a significant bottleneck. In many real-world applications, such as analyzing demographic trends in social networks or medical research, individual labels are often unavailable due to privacy concerns or prohibitive costs. However, researchers often have access to aggregate metadata, such as the proportions of different classes (e.g., age groups or disease prevalence) within specific data collections. This setting is known as Learning from Label Proportions (LLP).

This paper, presented at ACML 2022, introduces a robust framework for multi-class classification using only unlabeled data and their class priors. The authors address two primary challenges: the mathematical complexity of multi-class settings and the severe overfitting caused by "negative risks" in rewritten loss functions.

The Overfitting Trap: Negative Training Risk

A common technique in LLP is to "rewrite" the standard classification loss function so it can be estimated using unlabeled data. However, these rewritten formulas often contain negative coefficients. Deep neural networks, with their high capacity, tend to exploit these negative terms, driving the training risk below zero. This leads to a phenomenon where the model appears to perform perfectly on training data while failing to generalize to new data.

Visualizing the negative training risk and the failure of standard regularization methods like Dropout and Weight Decay.

As shown in the figure above, standard regularization techniques like Dropout and Weight Decay are insufficient to combat this specific type of overfitting. The training risk (yellow line in panel a) drops into negative territory, while the test error (red line) simultaneously begins to climb.

Methodology

To solve these issues, the authors propose a two-pronged approach:

1. Unbiased Risk Estimator

They derived a new mathematical formula that allows for the estimation of classification risk using only unlabeled sets and their known class proportions. This estimator is statistically consistent, meaning that as the amount of data increases, the learned classifier converges toward the optimal model.

2. Partial Risk Regularization (PRR)

To prevent the model from exploiting negative terms, the authors introduced Partial Risk Regularization (PRR). This strategy involves:

  • Decomposition: Breaking the total risk into "partial risks" associated with specific classes within specific unlabeled datasets.
  • Flooding: Implementing a threshold that prevents these partial risks from dropping too low. When a partial risk hits this threshold, the algorithm performs a form of gradient ascent, purposefully reducing the model's confidence to prevent memorization.
  • Prior-based Thresholds: The authors proved that the optimal "flood level" is mathematically related to the class priors ($1 - \theta_{m,k}$), providing a principled way to set hyperparameters.

Experimental Evaluation

The researchers evaluated their method on several standard benchmarks, including digit recognition and color image classification. To simulate the LLP environment, they split these datasets into multiple "bags" with varying class proportions.

Summary of datasets and models used in the experiments.

Key Results

  • Superior Performance: Across all tested datasets (MNIST, CIFAR-10, etc.), the PRR method consistently outperformed existing baselines such as "Proportion Loss."
  • Stability: PRR significantly reduced the "Test Error Drop," making the model much less sensitive to the exact timing of early stopping.
  • Robustness: The method remained stable even when class priors were slightly inaccurate (noisy), suggesting high viability for real-world applications where census or metadata might contain errors.

Conclusion

By addressing the root cause of overfitting in unlabeled data learning—the negative risk phenomenon—Partial Risk Regularization provides a stable and accurate way to train multi-class classifiers. While the method currently requires known class priors, it represents a significant step forward in making deep learning more accessible in data-sensitive and label-scarce environments.

Summary updated

BibTeX
@inproceedings{tang2022multi,
  author = {Yuting Tang and Nan Lu and Tianyi Zhang and Masashi Sugiyama},
  title = {{Multi-class Classification from Multiple Unlabeled Datasets with Partial Risk Regularization}},
  booktitle = {ACML},
  year = {2022},
  url = {https://openreview.net/forum?id=DOzELElc7q},
}
Figure