Learning Dependency Structures for Weak Supervision Models

Paroma Varma, Frederic Sala, Ann He, Alexander Ratner, Christopher Ré

Labeling training data remains a massive bottleneck in modern machine learning. This challenge has driven the rise of weak supervision, a paradigm where developers use multiple noisy, heuristic sources—like keyword rules or distant knowledge bases—to automatically assign labels to unlabeled data. A generative model then combines these noisy labels to estimate the true, unobserved ground truth.

However, a critical challenge arises: these weak supervision sources are rarely independent. For instance, two different heuristics might look for the exact same keyword in a text snippet. If a model naively assumes they are independent, it will "double-count" their votes, drastically overestimating their accuracy and degrading downstream model performance.

While previous work has attempted to learn these dependencies statistically, existing methods require a large amount of unlabeled data. Specifically, the number of samples needed scales linearly with the number of sources $m$ ($\Omega(m \log m)$). If you have hundreds of heuristics but limited unlabeled data, these older methods fail to find the correct dependencies. This paper introduces a Robust PCA-based algorithm to automatically learn hidden dependency structures without needing ground truth labels, achieving optimal sample complexity.

Uncovering Structure with Robust PCA

The authors model the joint distribution of the noisy sources and the unobserved true label as a Markov Random Field (MRF). To find the dependency graph among the sources, the algorithm must examine the inverse covariance matrix.

Because the true label is hidden (latent), the full covariance matrix cannot be directly observed. To overcome this, the authors leverage a clever mathematical decomposition. The observable inverse covariance matrix can be split into two parts:

  1. A sparse matrix representing the actual graph structure (the dependencies between the heuristic sources).
  2. A low-rank matrix representing the mathematical artifact of marginalizing out the hidden true label.

To separate these components, the authors employ Robust Principal Component Analysis (Robust PCA). While Robust PCA is a standard technique, the paper's novel contribution is theoretical: characterizing the effective rank of the covariance matrix in the context of weak supervision.

By defining two structural conditions—Source Block Decay (SBD) and Strong Source Block (SSB)—they prove that the effective rank is much smaller than the true rank. This insight allows their algorithm to require drastically fewer samples to successfully recover the dependency graph.

Key Insights and Theoretical Wins

  • Matching Supervised Rates Without Labels: Under the Strong Source Block (SSB) condition (which implies a dominant cluster of highly correlated sources), the amount of unlabeled data needed scales logarithmically with the number of sources: $\Omega(d^2 \log m)$, where $d$ is the maximum dependency degree. This is a massive breakthrough, matching the optimal theoretical rate for supervised learning where ground truth labels are actually known.
  • The Low "Cost" of Weak Supervision: The authors derive an information-theoretic lower bound to answer a fundamental question: How much harder is structure learning when the true label is hidden? Surprisingly, they found that in the limit, you need no more than twice as many samples as you would in a fully supervised setting.
  • Effective Rank is Key: Standard latent-variable structure learning requires $\Omega(m)$ samples. By proving that weak supervision sources naturally cluster, the authors lowered the effective rank of the matrix, unlocking sublinear and logarithmic sample complexities.

Empirical Results and Data Efficiency

The authors evaluated their method on four real-world weak supervision tasks (Bone Tumor, CDR, IMDb, MS-COCO) and a simulated environment.

Accuracy Boost: The proposed method outperformed models that naively assume source independence by up to 4.64 F1 points. It also beat the previous state-of-the-art structure learning approach for weak supervision (Bach et al., 2017) by up to 4.41 F1 points. For example, on the Bone Tumor task, the method successfully identified two cliques of correlated heuristics (e.g., rules looking at edge sharpness vs. morphology), leading to a +4.13 F1 improvement over prior methods.

Data Efficiency: In simulations, the method successfully recovered the true dependency graph even when the number of data points $n$ was strictly less than the number of sources $m$ (the $n < m$ regime)—a scenario where previous methods completely fail.

Probability of success in recovering the dependency graph under the Strong Source Block condition, comparing rPCA to prior methods.

As shown above, the Robust PCA (rPCA) approach achieves a high probability of success with significantly fewer datapoints compared to prior baselines, empirically validating the theoretical claims of logarithmic sample complexity.

Limitations

While powerful, the approach has a few limitations. The theoretical guarantees rely on a "singleton separator set assumption," meaning the sources must form fully-connected clusters. While common in weak supervision, this may not perfectly reflect all real-world heuristic dependencies. Additionally, because the Robust PCA solver returns a sparse matrix where "zero" entries are just very small numbers, the algorithm requires a manually set threshold hyperparameter to decide which values constitute actual edges in the graph.

Summary updated

BibTeX
@inproceedings{varma2019learning,
  author = {Paroma Varma and Frederic Sala and Ann He and Alexander Ratner and Christopher Ré},
  title = {{Learning Dependency Structures for Weak Supervision Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2019},
  url = {https://openreview.net/forum?id=rJMess-_ZB},
}
Figure