Learning the Structure of Generative Models without Labeled Data

Stephen H. Bach, Bryan Dawei He, Alexander Ratner, Christopher Ré

Abstract

Weak supervision frameworks allow users to programmatically label large datasets using noisy heuristics, but these sources often exhibit complex dependencies that can degrade model performance if ignored. We present a method for automatically learning the dependency structure of these generative models without ground-truth labels. By optimizing an $\ell_1$-regularized marginal pseudolikelihood, our approach identifies correlations significantly faster than traditional maximum likelihood methods while improving the accuracy of synthesized training labels.

Introduction

In modern machine learning, the primary bottleneck is often the acquisition of large-scale hand-labeled datasets. Weak supervision frameworks, such as Snorkel, address this by enabling users to write labeling functions (LFs)—simple scripts or heuristics that provide noisy labels. However, LFs are rarely independent; for instance, multiple LFs might rely on the same keywords or patterns. If a generative model assumes independence, it may "double-count" correlated votes, leading to overconfident and inaccurate labels. Traditionally, specifying these dependencies required manual effort, which is both tedious and error-prone. This work introduces an automated approach to discovering these dependencies directly from unlabeled data.

Methodology: Marginal Pseudolikelihood

The proposed structure estimation method is based on $\ell_1$-regularized marginal pseudolikelihood. The core innovation lies in the objective function: instead of maximizing the likelihood of the entire joint distribution—which is computationally prohibitive due to latent true labels—the method optimizes the probability of one LF's output conditioned on all others.

Because the true class label ($y$) is unobserved, it is marginalized out. Given that $y$ is typically a low-cardinality variable (e.g., binary), this summation is exact and efficient. Unlike standard Maximum Likelihood Estimation (MLE), which often requires slow approximations like Gibbs sampling, the gradient of the pseudolikelihood objective can be computed in closed form. To ensure a sparse and interpretable dependency graph, $\ell_1$ regularization is applied, implemented via stochastic gradient descent (SGD) with an online truncated gradient.

Experimental Results

The method was evaluated on synthetic simulations and three real-world information extraction tasks: Disease Tagging (233 LFs), Chemical-Disease relation extraction (33 LFs), and Device Polarity extraction (12 LFs).

Computational Efficiency

A primary advantage of the pseudolikelihood approach is its speed. By bypassing the need for sampling-based approximations, the method achieves a 100x speedup over MLE baselines. As shown below, for a system with 100 LFs, the proposed method completes in approximately 15 seconds, whereas the MLE baseline requires over 40 minutes.

Running time comparison showing the 100x speedup of pseudolikelihood over maximum likelihood.

Selection Precision and Accuracy

On synthetic data, the method demonstrated superior precision in identifying dependencies. It selected significantly fewer extraneous (false positive) correlations than the MLE baseline while maintaining comparable recall. This precision prevents the model from being cluttered with spurious dependencies that could degrade performance.

Average number of extraneous correlations selected, demonstrating higher precision for the pseudolikelihood method.

On real-world tasks, automatically learning the structure provided an average improvement of 1.5 F1 points over a standard "conditionally independent" model. In the Disease Tagging task, the improvement reached 2.6 F1 points, highlighting the practical utility of automated structure learning in complex domains.

Conclusion

This work demonstrates that the dependency structure of weak supervision sources can be learned efficiently and accurately without labeled data. The use of marginal pseudolikelihood offers a scalable, high-speed alternative to traditional MLE, providing both theoretical guarantees of sublinear sample complexity and empirical gains in label quality. Future work includes extending this framework to continuous outputs and higher-order dependencies.

Summary updated

BibTeX
@inproceedings{bach2017learning,
  author = {Stephen H. Bach and Bryan Dawei He and Alexander Ratner and Christopher Ré},
  title = {{Learning the Structure of Generative Models without Labeled Data}},
  booktitle = {International Conference on Machine Learning},
  year = {2017},
}
Figure