Alfred: A system for promptedweak supervision

1Citations
Citations of this article
12Readers
Mendeley users who have this article in their library.

Abstract

Alfred is the first system for programmatic weak supervision (PWS) that creates training data for machine learning by prompting. In contrast to typical PWS systems where weak supervision sources are programs coded by experts, Alfred enables users to encode their subject matter expertise via natural language prompts for language and vision-language models. Alfred provides a simple Python interface for the key steps of this emerging paradigm, with a high-Throughput backend for large-scale data labeling. Users can quickly create, evaluate, and refine their prompt-based weak supervision sources; map the results to weak labels; and resolve their disagreements with a label model. Alfred enables a seamless local development experience backed by models served from self-managed computing clusters. It automatically optimizes the execution of prompts with optimized batching mechanisms. We find that this optimization improves query throughput by 2.9× versus a naive approach. We present two example use cases demonstrating Alfred on YouTube comment spam detection and pet breeds classification. Alfred is open source, available at https://github.com/BatsResearch/alfred.

Cite

CITATION STYLE

APA

Yu, P., & Bach, S. H. (2023). Alfred: A system for promptedweak supervision. In Proceedings of the Annual Meeting of the Association for Computational Linguistics (Vol. 3, pp. 479–488). Association for Computational Linguistics (ACL). https://doi.org/10.18653/v1/2023.acl-demo.46

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free