ScriptoriumWS: A Code Generation Assistant for Weak Supervision

Tzu-Heng Huang, Catherine Cao, Spencer Schoenberg, Harit Vishwakarma, Nicholas Roberts +1 more
2/17/2025
cs.LG

No confident code implementation found for this paper. 5 possible matches can be shown below.

Abstract

Weak supervision is a popular framework for overcoming the labeled data bottleneck: the need to obtain labels for training data. In weak supervision, multiple noisy-but-cheap sources are used to provide guesses of the label and are aggregated to produce high-quality pseudolabels. These sources are often expressed as small programs written by domain experts -- and so are expensive to obtain. Instead, we argue for using code-generation models to act as coding assistants for crafting weak supervision sources. We study prompting strategies to maximize the quality of the generated sources, settling on a multi-tier strategy that incorporates multiple types of information. We explore how to best combine hand-written and generated sources. Using these insights, we introduce ScriptoriumWS, a weak supervision system that, when compared to hand-crafted sources, maintains accuracy and greatly improves coverage.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 5 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{huang2025scriptoriumws,
  title  = {ScriptoriumWS: A Code Generation Assistant for Weak Supervision},
  author = {Tzu-Heng Huang and Catherine Cao and Spencer Schoenberg and Harit Vishwakarma and Nicholas Roberts and Frederic Sala},
  year   = {2025},
  eprint = {2502.12366},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2502.12366v1}
}

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/2502.12366.svg)](https://codeofpaper.com/paper/2502.12366)

Discussion