Fast and Three-rious: Speeding Up Weak Supervision with Triplet Methods

Daniel Y. Fu, Mayee F. Chen, Frederic Sala, Sarah M. Hooper, Kayvon Fatahalian +1 more
2/27/2020
stat.MLcs.LG

Official code: HazyResearch/flyingsquid (315 stars, Python, Apache-2.0, last commit 2020-09-01).

Abstract

Weak supervision is a popular method for building machine learning models without relying on ground truth annotations. Instead, it generates probabilistic training labels by estimating the accuracies of multiple noisy labeling sources (e.g., heuristics, crowd workers).

Show full abstract

Existing approaches use latent variable estimation to model the noisy sources, but these methods can be computationally expensive, scaling superlinearly in the data. In this work, we show that, for a class of latent variable models highly applicable to weak supervision, we can find a closed-form solution to model parameters, obviating the need for iterative solutions like stochastic gradient descent (SGD). We use this insight to build FlyingSquid, a weak supervision framework that runs orders of magnitude faster than previous weak supervision approaches and requires fewer assumptions. In particular, we prove bounds on generalization error without assuming that the latent variable model can exactly parameterize the underlying data distribution. Empirically, we validate FlyingSquid on benchmark weak supervision datasets and find that it achieves the same or higher quality compared to previous approaches without the need to tune an SGD procedure, recovers model parameters 170 times faster on average, and enables new video analysis and online learning applications.

View on arXivView PDF

Code Implementations(1)

Apache-2.0

More interactive weak supervision with FlyingSquid

31523PythonFeb 10, 20206 years agoApache-2.0

Similar Papers

Cite this paper

@article{fu2020fast,
  title  = {Fast and Three-rious: Speeding Up Weak Supervision with Triplet Methods},
  author = {Daniel Y. Fu and Mayee F. Chen and Frederic Sala and Sarah M. Hooper and Kayvon Fatahalian and Christopher Ré},
  year   = {2020},
  eprint = {2002.11955},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2002.11955}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2002.11955.svg)](https://codeofpaper.com/paper/2002.11955)

Discussion