Abstract
Learning from Label Proportions (LLP) is a weakly supervised learning paradigm where training data is provided in "bags" with known aggregate label distributions rather than individual labels. This approach is vital for privacy-preserving machine learning but remains challenging for tabular data due to the failure of standard data augmentation techniques and the lack of spatial relationships. We introduce TabLLP-BDC, an augmentation-free, class-aware framework that utilizes a "Bag Difference Contrastive" mechanism. By comparing bags with different proportions and using the Hungarian Algorithm for pseudo-pair assignment, TabLLP-BDC generates effective instance-level supervision. Our experiments demonstrate that TabLLP-BDC achieves state-of-the-art performance across multiple public and private datasets, showing remarkable robustness to increasing bag sizes.
Introduction
In many real-world scenarios, privacy regulations prevent the collection of individual-level labels. Learning from Label Proportion (LLP) addresses this by training on data grouped into bags, where only the percentage of each class within the bag is known. While LLP has matured in domains like computer vision, its application to tabular data—the backbone of financial and industrial systems—is hindered by two primary issues:
- Augmentation Failure: Contrastive learning typically relies on creating multiple "views" of an instance (e.g., rotating an image). Tabular features are often discrete or lack spatial structure, making such transformations destructive to the underlying data semantics.
- Semantic Ambiguity: Without the rich context of images, distinguishing between classes based solely on aggregate bag-level statistics is difficult, often leading to poor instance-level classification.
Methodology: TabLLP-BDC
To overcome these challenges, we propose TabLLP-BDC, a framework that avoids data augmentation entirely by leveraging the inherent differences between bags.
The framework operates in two distinct stages:
1. Bag Contrastive (BC) Pretraining
The model utilizes a transformer-based backbone (SAINT) to capture complex feature correlations. A "Bag Aggregator" is introduced to generate a single representation for an entire bag. During pretraining, the model ensures these bag-level embeddings align with their respective known label proportions, providing a foundational understanding of the data distribution.
2. Difference Contrastive (BDC) Fine-tuning
The core innovation is the Difference Contrastive mechanism. Instead of warping individual rows, the model compares two different bags (e.g., Bag A with 70% Class 1 and Bag B with 40% Class 1). The model calculates the expected overlap and uses the Hungarian Algorithm (Linear Sum Assignment) to identify "pseudo-positive" pairs—instances across different bags that likely share the same label. A contrastive loss is then applied to pull these pairs together in the embedding space while pushing "negative" pairs apart. This class-aware approach explicitly groups instances by their predicted labels, significantly improving classification accuracy.
Experimental Evaluation
We evaluated TabLLP-BDC on eight diverse datasets, including seven public tabular datasets from OpenML (AD, BA, CA, CR, EL, RO, and ML) and one large-scale private dataset from the gaming industry involving over 300,000 players. We compared two bagging strategies: "Random Bagging" and "Ordered Bagging" (grouping similar instances). The latter was found to provide more diverse signals, enhancing the model's ability to learn.
Key Results and Insights
TabLLP-BDC consistently achieves state-of-the-art (SOTA) performance across all benchmarks.
SOTA Performance
As shown in the results table, TabLLP-BDC outperforms existing LLP methods like DLLP and SelfCLR-LLP. For instance, on the "BA" dataset, it reached an AUC of 84.95%, a significant improvement over the next best baseline (81.19%).
Robustness and Efficiency
A critical finding is the model's robustness to bag size. While most LLP models suffer from signal dilution as bag sizes increase, TabLLP-BDC maintains high accuracy even with bags containing 1,024 instances. Furthermore, despite its two-stage architecture, the model remains highly efficient, ranking in the "Top 2" for training speed in most tests.
Metrics for Aggregate Learning
We also introduced a new metric, mean Proportional-Intersection Over-Union (mPIoU). This metric measures the alignment between predicted and ground-truth proportions across all classes, offering a more nuanced evaluation than standard accuracy in scenarios where individual labels are unavailable.
Conclusion
TabLLP-BDC represents a significant step forward for LLP on tabular data. By bypassing the need for data augmentation and utilizing bag-level differences for supervision, it provides a robust and efficient solution for privacy-preserving machine learning. Future work will focus on refining the bagging dependency and exploring deeper latent insights within aggregate proportions.
Summary updated