A General Framework for Learning from Weak Supervision

Hao Chen, Jindong Wang, Lei Feng, Xiang Li, Yidong Wang, Xing Xie, Masashi Sugiyama, Rita Singh, Bhiksha Raj

Introduction

Weakly Supervised Learning (WSL) has emerged as a critical paradigm for training deep learning models when perfect, instance-level annotations are unavailable. In many real-world applications, labels are expensive, biased, or restricted by privacy concerns, leading to datasets characterized by partial labels, aggregate statistics, or pairwise observations. Historically, the WSL field has been fragmented, with researchers developing bespoke algorithms for specific types of supervision. This paper presents the General Framework for Learning from Weak Supervision (GLWS), a unified approach that treats various forms of weak supervision as logical constraints modeled through Non-deterministic Finite Automata (NFA).

The Problem of Computational Complexity

The primary challenge in WSL is the computational cost of "guessing" true labels from imperfect data. For instance, in "Label Proportion" learning—where a model is given the count of classes in a bag of instances—the number of possible valid labelings can grow factorially ($O(L!)$) or quadratically relative to the number of instances. This complexity has previously limited the scalability of universal frameworks, making them unusable for large-scale datasets or complex group-level constraints.

The GLWS Framework

GLWS addresses these challenges by treating unknown true labels as missing data within an Expectation-Maximization (EM) loop. The framework's core innovation lies in the "Expectation" step, which utilizes sequential modeling to solve global constraints efficiently.

NFA Modeling and Trellis Expansion

Any form of weak supervision can be viewed as a set of logical constraints on a sequence of data. GLWS represents these constraints as an NFA. For example, a constraint such as "at least one positive instance in this group" is translated into a state machine. By combining this NFA with the model’s own instance-level predictions, the framework constructs a "trellis"—a graph representing all valid labeling paths that satisfy the weak supervision.

Linear Time Optimization

To navigate the trellis, GLWS employs a classic Forward-Backward algorithm, a dynamic programming approach common in Hidden Markov Models (HMMs). This allows the framework to calculate the probability of any specific label being correct in linear time ($O(L)$) relative to the sequence length. To maintain this efficiency in multi-class problems, GLWS uses a "one-vs-rest" binary decomposition, treating each class as a separate binary problem to prevent the NFA state space from exploding.

Experimental Evaluation

The framework was evaluated across 11 different weak supervision settings, including partial labels, aggregate statistics, and pairwise comparisons. Testing was conducted on several standard computer vision benchmarks:

  • CIFAR-10 & CIFAR-100
  • STL-10
  • ImageNet-100
  • MNIST & Fashion-MNIST

In addition to the framework, the authors released a comprehensive codebase implementing baselines for all 11 settings, establishing a new benchmark for the WSL community.

Key Results and Insights

GLWS demonstrated significant improvements in both performance and scalability:

  • State-of-the-Art Performance: GLWS consistently outperformed specialized algorithms across all 11 scenarios. Notably, on ImageNet-100 with partial labels, GLWS improved accuracy by 1.28% over the previous best method, RCR.
  • Unprecedented Scalability: By reducing complexity to $O(L)$, GLWS successfully processed large "bags" of instances in label proportion settings that were computationally impossible for previous universal methods like UUM.
  • Training Stability: Unlike "Count Loss" methods that often suffer from mathematical instability, the EM-based approach in GLWS showed smoother convergence and narrower error bars, indicating a more robust learning process.

Limitations and Future Work

While GLWS provides a powerful unified framework, the current reliance on binary decomposition may overlook complex inter-class correlations. Additionally, the model assumes that the weak supervision provided is perfectly accurate. Future research may focus on incorporating noise models into the EM framework to handle "noisy" or inaccurate weak labels and applying NFA minimization techniques to further optimize the state space and processing speed.

Conclusion

GLWS represents a significant step toward a universal theory of learning from weak supervision. By reframing logical constraints as sequential state machines, it collapses the computational complexity of WSL, allowing for scalable, stable, and high-performance learning across a vast array of data labeling challenges.

Summary updated

BibTeX
@inproceedings{chen2024general,
  author = {Hao Chen and Jindong Wang and Lei Feng and Xiang Li and Yidong Wang and Xing Xie and Masashi Sugiyama and Rita Singh and Bhiksha Raj},
  title = {{A General Framework for Learning from Weak Supervision}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=7sgqXa4aNM},
}
Figure