Learning from Label Proportions and Covariate-shifted Instances

Sagalpreet Singh, Navodita Sharma, Shreyas Havaldar, Rishi Saket, Aravindan Raghuveer

TL;DR

This paper introduces the covariate-shifted hybrid LLP problem, where a model must learn from fully labeled source data and aggregate "bag-level" target data to predict instance-level labels in a new domain. The authors propose two novel methods, BL-WFA and PL-WFA, which leverage target bag labels to improve domain adaptation, outperforming standard baselines across synthetic and real-world regression tasks.

What Problem Does This Paper Address?

In many real-world scenarios—particularly those involving privacy constraints like the Chrome Privacy Sandbox or Apple’s SKAdNetwork—we don't have access to individual labels for every data point. Instead, data is grouped into "bags," and we only see the average label for each bag. This is known as Learning from Label Proportions (LLP).

However, a common challenge is that the data we do have individual labels for (the source domain) often differs in distribution from the data we want to predict on (the target domain). For example, you might have detailed purchase history for one set of users (source) but only aggregate group-level data for a more privacy-sensitive set of users (target). This mismatch is called covariate shift.

The gap this paper fills is the "hybrid" setting: how do we best use fully supervised source data alongside bag-labeled target data to build a high-performing instance-level predictor for the target domain?

Methods

The authors propose a new framework called BagCSI (Bags and Covariate-Shifted Instances) loss. This loss function has three main components:

  1. Source Instance Loss: Standard mean squared error (MSE) on the fully labeled source data.
  2. Target Bag Loss: MSE between the predicted average of a bag and its actual aggregate label.
  3. Domain Adaptation Loss: A novel term that aligns the feature representations of the source and target domains.

The core innovation lies in how they handle the third term. Unlike standard domain adaptation, which often ignores labels entirely, they propose two methods to incorporate them:

  • Bag Label Weighted Feature Alignment (BL-WFA): Assigns the bag's average label as a "pseudo-label" to every instance within that bag to help align features.
  • Pseudo-label Weighted Feature Alignment (PL-WFA): A more refined approach that generates instance-level pseudo-labels that are close to the model's current predictions but are constrained to average out to the true bag label.

The authors also provide a formal theoretical foundation, proving a novel bag-to-instance generalization error bound for regression tasks.

Datasets

The researchers evaluated their methods on four diverse datasets:

  • Synthetic Dataset: A 64-dimensional dataset where covariate shift is manually controlled by varying Gaussian distribution parameters.
  • Wine Ratings: Predicting the price of wines. The source domain is wines from France, while the target domain includes wines from all other countries.
  • IPUMS USA Census: Predicting individual income (INCWAGE). The source domain uses data from 1970, and the target domain uses data from 2022.
  • Criteo SSCL: A large-scale advertising dataset predicting sales amounts, with domains split by country.

Key Insights and Ideas

  • Labels Matter for Alignment: Standard domain adaptation (like DANN) focuses only on making feature distributions look similar. This paper shows that using the "weak" signal from bag labels during the alignment process significantly improves performance on the target domain.
  • The "Bag-Size" Penalty: The authors theoretically and empirically demonstrate that as bag sizes increase, the "informativeness" of the signal drops, leading to higher errors. However, their hybrid approach mitigates this by "anchoring" the model with supervised source data.
  • Pseudo-labeling with Constraints: PL-WFA's strategy of shifting predictions to meet a bag-average constraint is a clever way to generate high-quality training signals without needing individual target labels.

Key Results

The proposed methods, particularly BL-WFA, consistently outperformed baselines across all datasets, especially as bag sizes grew larger (e.g., bags of 128 or 256 instances).

  • IPUMS Census: On the IPUMS dataset, BL-WFA achieved lower MSE scores than all baselines across various bag sizes. Table 1: MSE scores on IPUMS dataset
Table 1: MSE scores for different methods and bag sizes on the IPUMS dataset (averaged over 10 runs). The source instance loss is 1.8714 ± 0.08 and target instance loss is 1.1237 ± 0.00. Lower is better.
  • Wine Ratings: For a bag size of 256, BL-WFA showed a 2.9% improvement over the best baseline. Table 2: MSE scores on Wine dataset
Table 2: MSE scores for different methods and bag sizes on the Wine dataset (averaged over 20 runs). The source instance loss is 195.5 ± 1.2 and target instance loss is 170.5 ± 0.1. Lower is better.
  • Criteo SSCL: The methods remained robust even on large-scale advertising data. Table 4: MSE scores on Criteo dataset
Table 4: MSE scores for different methods and bag sizes on the Criteo SSCL dataset (averaged over 10 runs). The source instance loss is 293.74 ± 5.1 and target instance loss is 147.79 ± 0.3. Lower is better.
  • Synthetic Data: The most dramatic gains were seen here, with up to a 27.9% improvement over baselines for large bags, highlighting the method's effectiveness when covariate shift is significant. Table 3: MSE scores on Synthetic dataset
Table 3: MSE scores for different methods and bag sizes on the Synthetic dataset (averaged over 20 runs). The source instance loss is 2718.13 ± 2062.32 and target instance loss is 0.19 ± 0.02. Lower is better.

Limitations and Future Work

  • Linear Degradation: The generalization error bound still degrades linearly with bag size. While the hybrid approach helps, very large bags remain a fundamental challenge for LLP.
  • Regression Focus: This work focuses specifically on regression. While the authors mention related work in classification, extending these specific alignment techniques to discrete labels could be a fruitful next step.
  • Assumption of p(Y|X) Stability: Like most covariate shift work, this assumes the underlying relationship between features and labels remains the same across domains. If the "concept" itself shifts (concept drift), these methods might require further adaptation.

Summary updated

Abstract

In many applications, especially due to lack of supervision or privacy concerns, the training data is grouped into bags of instances (feature-vectors) and for each bag we have only an aggregate label derived from the instance-labels in the bag. In learning from label proportions (LLP) the aggregate label is the average of the instance-labels in a bag, and a significant body of work has focused on training models in the LLP setting to predict instance-labels. In practice however, the training data may have fully supervised albeit covariate-shifted source data, along with the usual target data with bag-labels, and we wish to train a good instance-level predictor on the target domain. We call this the covariate-shifted hybrid LLP problem. Fully supervised covariate shifted data often has useful training signals and the goal is to leverage them for better predictive performance in the hybrid LLP setting. To achieve this, we develop methods for hybrid LLP which naturally incorporate the target bag-labels along with the source instance-labels, in the domain adaptation framework. Apart from proving theoretical guarantees bounding the target generalization error, we also conduct experiments on several publicly available datasets showing that our methods outperform LLP and domain adaptation baselines as well techniques from previous related work.
BibTeX
@inproceedings{singh2025learning,
  author = {Sagalpreet Singh and Navodita Sharma and Shreyas Havaldar and Rishi Saket and Aravindan Raghuveer},
  title = {{Learning from Label Proportions and Covariate-shifted Instances}},
  booktitle = {Conference on Uncertainty in Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=GOucsrpHCw},
}
Figure