Skip to main content
QUICK REVIEW

[Paper Review] Inferring Generative Model Structure with Static Analysis

Paroma Varma, Bryan He|arXiv (Cornell University)|Sep 7, 2017
Multimodal Machine Learning ApplicationsComputer Science9 references36 citations
TL;DR

Coral infers generative model structure for weak supervision by statically analyzing heuristic code to detect shared domain-specific primitives, enabling quasilinear sample complexity and significantly reducing data needs. It improves F1 by up to 3.81 points and boosts discriminative model accuracy by 3.07 points over fully supervised baselines when labeling radiology data without ground truth.

ABSTRACT

Obtaining enough labeled data to robustly train complex discriminative models is a major bottleneck in the machine learning pipeline. A popular solution is combining multiple sources of weak supervision using generative models. The structure of these models affects training label quality, but is difficult to learn without any ground truth labels. We instead rely on these weak supervision sources having some structure by virtue of being encoded programmatically. We present Coral, a paradigm that infers generative model structure by statically analyzing the code for these heuristics, thus reducing the data required to learn structure significantly. We prove that Coral's sample complexity scales quasilinearly with the number of heuristics and number of relations found, improving over the standard sample complexity, which is exponential in $n$ for identifying $n^{ extrm{th}}$ degree relations. Experimentally, Coral matches or outperforms traditional structure learning approaches by up to 3.81 F1 points. Using Coral to model dependencies instead of assuming independence results in better performance than a fully supervised model by 3.07 accuracy points when heuristics are used to label radiology data without ground truth labels.

Motivation & Objective

  • To address the high data cost of learning generative model structure for weak supervision sources.
  • To reduce reliance on labeled data for structure learning by exploiting programmatic heuristics' shared inputs.
  • To enable efficient inference of complex, high-order dependencies among heuristics without manual specification.
  • To improve the accuracy of probabilistic training labels assigned by generative models in low-resource settings.
  • To demonstrate that static analysis of heuristic code can outperform traditional structure learning in both accuracy and efficiency.

Proposed method

  • Coral performs static analysis on source code of heuristic functions and domain-specific primitives to identify shared inputs.
  • It constructs a dependency structure by grouping heuristics that operate over the same primitives, forming a factor graph with latent true labels.
  • The method leverages the programmatic nature of heuristics to infer relations without requiring labeled data, reducing sample complexity to quasilinear scaling.
  • Coral models the joint distribution over heuristics and primitives using a generative model that estimates heuristic accuracies and infers true labels.
  • It uses a factor graph representation where heuristics are conditionally dependent on shared primitives and the true class label.
  • The approach avoids exponential sample complexity by predefining dependencies via code analysis instead of learning them from data.

Experimental results

Research questions

  • RQ1Can static analysis of heuristic code be used to infer generative model structure without labeled data?
  • RQ2Does inferring dependencies via code analysis reduce sample complexity compared to data-driven structure learning?
  • RQ3Can Coral improve label quality and downstream discriminative model performance when ground truth labels are unavailable?
  • RQ4How does Coral’s performance compare to traditional structure learning in terms of F1 and accuracy under weak supervision?
  • RQ5To what extent can Coral capture high-order dependencies among heuristics that standard methods miss?

Key findings

  • Coral reduces sample complexity to quasilinear scaling with the number of heuristics and relations, improving over exponential scaling in standard approaches.
  • Coral achieves up to 3.81 F1 point improvement over traditional structure learning methods in experimental evaluations.
  • When applied to radiology data without ground truth labels, Coral-enhanced training data improves discriminative model accuracy by 3.07 points.
  • For image classification, 6 heuristics using only location and object labels trained a model within 0.74 F1 points of a fully supervised model on Visual Genome.
  • Coral’s static analysis identifies dependencies in constant time regardless of dependency degree, enabling efficient detection of high-order relations.
  • The method outperforms fully supervised baselines in low-data regimes by effectively modeling complex dependencies among weak supervision sources.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.