arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2305.18623cs.LGcs.CL
收藏

Alfred:一个用于提示式弱监督的系统

Alfred: A System for Prompted Weak Supervision

Brown University(布朗大学)

Peilin Yu, Stephen H. Bach

AI总结:

Alfred 是首个基于提示的程序化弱监督系统,通过自然语言提示替代专家编程来创建训练数据,并提供高效后端与优化批处理,将查询吞吐量提升 2.9 倍。

摘要:

Alfred 是首个用于程序化弱监督(PWS)的系统,它通过提示为机器学习创建训练数据。与典型的 PWS 系统(其中弱监督源是由专家编写的程序)不同,Alfred 使用户能够通过面向语言和视觉-语言模型的自然语言提示来编码其领域专业知识。Alfred 为这一新兴范式的关键步骤提供了一个简单的 Python 接口,并配备了一个用于大规模数据标注的高吞吐量后端。用户可以快速创建、评估和优化其基于提示的弱监督源;将结果映射为弱标签;并通过标签模型解决它们之间的分歧。Alfred 提供了一种无缝的本地开发体验,其背后由自管理计算集群上服务的模型提供支持。它通过优化的批处理机制自动优化提示的执行。我们发现,与朴素方法相比,这种优化将查询吞吐量提高了 2.9 倍。我们展示了两个示例用例,演示了 Alfred 在 YouTube 垃圾评论检测和宠物品种分类中的应用。Alfred 是开源的,可在 https://github.com/BatsResearch/alfred 获取。

英文摘要:

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.9x 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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑