On Characterizing and Mitigating Imbalances in Multi-Instance Partial Label Learning

Kaifu Wang, Efthymia Tsamoura, Dan Roth · OpenReview

Introduction: The Hidden Bias in Logic

Neurosymbolic (NeSy) learning integrates neural networks' perceptual capabilities with symbolic logic's reasoning. A typical Multi-Instance Partial Label Learning (MI-PLL) scenario involves training on "weak labels"—for instance, providing only the maximum value of a set of MNIST digits rather than individual labels. While this approach reduces the need for granular supervision, it introduces a significant challenge: learning imbalance.

Unlike standard deep learning, where imbalances usually stem from long-tailed data distributions, imbalances in NeSy systems can be induced by the symbolic logic itself. Even with a perfectly balanced dataset, the logical function $\sigma$ (e.g., "MAX") can make certain classes much harder to learn by providing rarer or more ambiguous supervision signals.

Per-class accuracy on MNIST under MI-PLL supervision, showing significant learning imbalances.

Theoretical Characterization

The authors provide a theoretical framework to characterize these imbalances. By deriving class-specific risk bounds that depend on the symbolic function $\sigma$, they prove that logic-induced imbalance is a fundamental property of MI-PLL. For example, in a "MAX" task, the digit '0' only appears in one specific combination that yields a '0', whereas '9' appears in many. This disparity in "logical visibility" directly translates to performance gaps across classes.

Methodology: Estimation and Mitigation

The paper proposes a three-pronged strategy to address these imbalances:

1. Recovering Hidden Priors (Label Ratio Solver)

Since true labels are hidden, the class distribution (marginals) is unknown. The authors introduce a Label Ratio Solver (Algorithm 1) that estimates these hidden marginals by solving a system of polynomial equations based on the observed distribution of weak labels. This allows the model to "see" the underlying distribution it is meant to learn.

Comparison of estimated class-specific ratios (red) vs. true ratios (blue) for the MAX-3 task.

2. Training-Time Mitigation (LP Pseudolabeling)

To incorporate these estimated priors during training, the authors use a Linear Programming (LP) formulation. This approach finds pseudo-labels for a batch of data that simultaneously satisfy logical constraints and align with the estimated class distribution, preventing the model from collapsing toward easier-to-learn classes.

3. Testing-Time Adjustment (CAROT)

For inference, the authors present CAROT (Confidence-Adjustment via Robust semi-constrained Optimal Transport). CAROT treats a batch of test instances as an optimal transport problem, adjusting raw model scores to match the expected class distribution while staying close to the model's original confidence. This batch-level reasoning helps rebalance predictions during the final inference step.

Experimental Results

The proposed methods were evaluated on benchmarks including MAX-M, SUM-M, and Handwritten Formula (HWF-M) tasks. Key findings include:

  • Significant Accuracy Gains: The techniques improved accuracy by up to 14% over strong baselines like Semantic Loss (SL).
  • Superior Robustness: CAROT outperformed standard long-tail fixes like Logit Adjustment, which often fail when true class priors are unknown or noisy.
  • Handling Dual Imbalance: The methods proved effective even when both logic-induced and data-induced (long-tail) imbalances were present simultaneously.

Conclusion and Future Work

This work highlights that logic is not a neutral component in learning; it can actively introduce bias. By mathematically recovering hidden priors and enforcing them as constraints, the authors provide a robust path forward for NeSy systems. Future research will focus on scaling the NP-hard LP formulations and improving marginal estimation for more complex, non-i.i.d. data scenarios.

Summary updated

BibTeX
@misc{wang2024characterizing,
  author = {Kaifu Wang and Efthymia Tsamoura and Dan Roth},
  title = {{On Characterizing and Mitigating Imbalances in Multi-Instance Partial Label Learning}},
  year = {2024},
  eprint = {2407.10000},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2407.10000},
}
Figure