atlas

Research map / Large language models / Agents, code and math

The ALCHEmist: Automated Labeling 500x CHEaper than LLM Data Annotators

NeurIPS 2024 · Large language models › Agents, code and math · approach: LLM-guided program synthesis · 3 citations (OpenAlex)

Read the paperCheck your idea against 108,967 papers

AI-extracted summary. Written by AI from the paper's full text. Numbers and claims can be wrong or missing context, so check the paper before you cite or build on it.

Proposes Alchemist, which prompts LLMs to generate labeling programs instead of labeling each data point, aggregates their outputs with weak supervision (Snorkel), and trains a local distilled model, cutting annotation API cost by ~500x.

Problem

Using large pretrained models as data annotators is expensive (per-point API calls), produces static labels that are hard to extend or audit, and struggles with non-text modalities.

Approach

Task LLMs to generate small Python labeling programs (executed locally) rather than querying labels per data point; aggregate noisy program outputs with weak supervision label models, and extend to images by using LLM-identified concepts scored by a local CLIP feature extractor.

Key results

Measured effects reported in the paper

What was changedWhereMeasuredEffect
Replace per-example zero-shot annotation with generated labeling programs and Snorkel aggregationAlchemist with GPT-3.5 · Text datasetsaccuracy or F1-score: YouTube 0.871 -> 0.891; SMS 0.907 -> 0.900; Yelp 0.845 -> 0.575; IMDb 0.737 -> 0.662; MedAbs 0.311 -> 0.346; Cancer 0.71Mixed
Extract task-concept features with CLIP before generating labeling programsAlchemist for Waterbirds · Waterbirdsworst group accuracy: GPT4o, ViT-B/32: 0.367 -> 0.283; Claude 3, ViT-B/32: 0.022 -> 0.463; GPT4o, ViT-L/14: 0.367 -> 0.467; Claude 3, ViT-L/14Mixed
Add dataset descriptions to program-generation prompts (ablation)Alchemist prompting · Text datasetslabel model performanceMixed
Add 5 data exemplars to program-generation prompts (ablation)Alchemist prompting · Text datasetslabel model performanceMixed
Add keywords to program-generation prompts (ablation)Alchemist prompting · Text datasetslabel model performanceMixed
Add specialized labeling rules to program-generation prompts (ablation)Alchemist prompting · Text datasetslabel model performanceMixed
Collect a more diverse set of programs from different prompt categories (ablation)Alchemist · SMS, Yelp, IMDblabel model performanceHelped
Replace Snorkel aggregation with alternative weak-supervision label models (ablation)Alchemist · Text datasetsaccuracy or F1-scoreMixed
Add RoboShot spurious-feature rejection before Alchemist program labeling (ablation)Alchemist with GPT4o · Waterbirdsworst group accuracy: 0.283 -> 0.375 (CLIP ViT-B/32); 0.467 -> 0.569 (CLIP ViT-L/14)Helped
Vary GPT-4 API temperature among 0.0, 0.5, and 1.0 (ablation)Alchemist · YouTube, SMS, French, Cancerlabel model performance: YouTube end model: 0.795, 0.870, 0.803; SMS: 0.866, 0.854, 0.930; French: 0.690, 0.690, 0.690; Cancer: 0.935, 0.940, 0.9No clear effect
Generate programs from labeled examples rather than manually crafted functionsAlchemist compared with human-crafted labeling functions · SMScoverage: 0.41 -> 1.00Helped
Generate programs with GPT4o instead of using human-crafted labeling functionsAlchemist · Census Income Classificationlabel model accuracy: 0.681 -> 0.725Helped

Surprising findings

Limitations

Experimental setup

Datasets: YouTube spam SMS spam Yelp IMDb Finance French book reviews MedAbs Cancer Waterbirds ECG heartbeat Census income

Benchmarks: YouTube SMS Yelp IMDb MedAbs Cancer Finance French Waterbirds WRENCH datasets

Metrics: accuracy F1-score worst group accuracy estimated API cost coverage

Baselines: Zero-shot Prompting Group Prompting WRENCH human-crafted labeling functions Vanilla Alchemist CLIP zero-shot prompting

Builds on: Snorkel WRENCH DataSculpt ScriptoriumWS RoboShot

Closest papers by meaning

Writing a paper in this area? scime draft is a free LaTeX editor with AI included, real-time co-authors and a check of your references and venue rules before you submit. It also imports OpenAI Prism projects.

Open scime draft

Get the next scime Dispatch and a monthly field update

Free. We send a confirmation link first; every email has a one-click unsubscribe. Privacy