Skip to main content
QUICK REVIEW

[论文解读] The ALCHEmist: Automated Labeling 500x CHEaper Than LLM Data Annotators

Tzu-Heng Huang, Chenfeng Cao|arXiv (Cornell University)|Jun 25, 2024
Natural Language Processing TechniquesComputer Science被引用 3
一句话总结

ALCHEmist 系统通过提示大型语言模型生成可重用、可执行的程序来替代昂贵的 LLM 基础数据标注,实现本地化数据标注,将成本降低 500 倍,同时在八个数据集上性能提升或保持不变,平均准确率提高 12.9%,并增强了可审计性和可扩展性。

ABSTRACT

Large pretrained models can be used as annotators, helping replace or augment crowdworkers and enabling distilling generalist models into smaller specialist models. Unfortunately, this comes at a cost: employing top-of-the-line models often requires paying thousands of dollars for API calls, while the resulting datasets are static and challenging to audit. To address these challenges, we propose a simple alternative: rather than directly querying labels from pretrained models, we task models to generate programs that can produce labels. These programs can be stored and applied locally, re-used and extended, and cost orders of magnitude less. Our system, Alchemist, obtains comparable to or better performance than large language model-based annotation in a range of tasks for a fraction of the cost: on average, improvements amount to a 12.9% enhancement while the total labeling costs across all datasets are reduced by a factor of approximately 500x.

研究动机与目标

  • 通过减少昂贵的 API 调用,解决直接使用 LLM 进行数据标注带来的高成本、缺乏可审计性以及灵活性不足的问题。
  • 克服直接使用 LLM 提示生成静态、不可扩展标签在数据标注流水线中的局限性。
  • 通过程序合成实现本地化、可重用且可检查的标注逻辑,提升可审计性和可适应性。
  • 通过将标注逻辑提炼为可执行代码,减少对人工标注数据或重复提示的依赖。
  • 通过两步概念提取与基于特征的程序生成流水线,将该方法扩展至非文本模态。

提出的方法

  • 使用大型语言模型(如 GPT-4、Claude 3)生成确定性、可执行的程序(如正则表达式、关键词匹配)来编码标注逻辑,而非直接生成标签。
  • 将这些程序本地存储并执行,以消除持续的 API 调用成本,将所需 LLM 调用次数从数据点数量减少到程序数量。
  • 应用弱监督技术聚合多个合成程序的输出,提升鲁棒性并减少单个有缺陷程序带来的噪声。
  • 对于非文本模态,采用两步流水线:首先从输入数据中提取高层次概念,然后结合本地特征提取器以指导程序生成。
  • 通过从多个程序中采样以提升程序多样性,并使用集成建模方法提高标签质量和覆盖范围。
  • 将合成程序与 WRENCH 中人工编写的标注函数进行对比,验证其在性能和覆盖范围上的优势。
Figure 1 : Examples of generated programs and their prompts. These are synthesized by GPT-4 for spam detection and cancer identification tasks. Programs use regular expressions (left program) and keyword matching (right program) as their labeling logic to classify data points.
Figure 1 : Examples of generated programs and their prompts. These are synthesized by GPT-4 for spam detection and cancer identification tasks. Programs use regular expressions (left program) and keyword matching (right program) as their labeling logic to classify data points.

实验结果

研究问题

  • RQ1能否通过提示 LLM 生成可重用、可执行的程序,作为替代直接生成标签的准确且低成本的数据标注工具?
  • RQ2与直接使用 LLM 提示相比,基于程序的标注在多大程度上降低了标注成本,同时保持或提升了模型性能?
  • RQ3在弱监督框架中,程序多样性与弱监督如何提升伪标签的鲁棒性和准确性?
  • RQ4能否通过概念提取与基于特征的程序合成,将该方法扩展至非文本模态(如表格或图像数据)?
  • RQ5在 WRENCH 等成熟基准测试中,LLM 生成的程序与人工编写的标注函数相比,其性能和覆盖范围如何?

主要发现

  • 与直接使用 LLM 提示相比,ALCHEmist 将总标注成本降低了约 500 倍,例如 7,569 个样本的数据集,GPT-4 成本从 1,200 美元降至 0.70 美元。
  • 该系统在八个评估数据集中的五个上提升了性能,相较于零样本 LLM 提示,平均准确率提高 12.9%。
  • 合成程序的标签模型覆盖范围高于人工编写的函数——例如,在 SMS 数据集中,ALCHEmist 生成的 10 个程序在性能上匹配或超过 WRENCH 中 73 个手动编写的函数。
  • 通过从多个 LLM 和策略中采样以提升程序多样性,可提高标签质量并减少偏差,在 SMS、Yelp 和 IMDb 数据集中均观察到覆盖范围和性能的提升。
  • 生成的程序实现了完全可审计、可扩展且可本地执行,克服了直接使用 LLM API 标注带来的不透明性和静态特性。
  • 通过两步流水线提取高层次概念并整合本地特征提取器以指导程序生成,该方法可推广至非文本模态。
Figure 2 : Overall workflow for Alchemist.
Figure 2 : Overall workflow for Alchemist.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。