[Paper Review] SEED: Domain-Specific Data Curation With Large Language Models
SEED is an LLM-as-compiler system that automatically generates domain-specific data curation pipelines by composing code, small models, and data-access modules, reducing LLM usage while improving performance.
Data curation tasks that prepare data for analytics are critical for turning data into actionable insights. However, due to the diverse requirements of applications in different domains, generic off-the-shelf tools are typically insufficient. As a result, data scientists often have to develop domain-specific solutions tailored to both the dataset and the task, e.g. writing domain-specific code or training machine learning models on a sufficient number of annotated examples. This process is notoriously difficult and time-consuming. We present SEED, an LLM-as-compiler approach that automatically generates domain-specific data curation solutions via Large Language Models (LLMs). Once the user describes a task, input data, and expected output, the SEED compiler produces a hybrid pipeline that combines LLM querying with more cost-effective alternatives, such as vector-based caching, LLM-generated code, and small models trained on LLM-annotated data. SEED features an optimizer that automatically selects from the four LLM-assisted modules and forms a hybrid execution pipeline that best fits the task at hand. To validate this new, revolutionary approach, we conducted experiments on $9$ datasets spanning over $5$ data curation tasks. In comparison to solutions that use the LLM on every data record, SEED achieves state-of-the-art or comparable few-shot performance, while significantly reducing the number of LLM calls.
Motivation & Objective
- Motivate reducing the time and cost of domain-specific data curation by automatic on-the-fly generation of tailored solutions.
- Develop an LLM-based compiler that produces executable pipelines combining code, small models, and data access modules.
- Limit reliance on per-record LLM calls by orchestrating modules that handle most records while selectively invoking LLMs for difficult cases.
- Leverage domain knowledge and optional tools to guide module selection and plan generation for diverse curation tasks.
Proposed method
- SEED uses a two-step compilation: (a) produce a data curation plan from a user configuration, (b) construct modules and assemble an executable pipeline.
- Modules include code, small models, and data access interfaces; modules may invoke LLMs directly on individual records as needed.
- Code generation employs advising and validation with an LLM advisor, an LLM code generator, and a verifier, enabling iterative refinement.
- Code ensembles are evolved to handle complex logic through an evolutionary algorithm that branches on diverse advice and test cases.
- Model generation uses LLMs as annotators to create small models, including frozen embedding-based retrieval to reuse similar instances and distillation from LLM responses.
- Data access modules enable efficient retrieval from databases and can be used as tools by other modules to aid LLM reasoning.

Experimental results
Research questions
- RQ1Can SEED automatically compile domain-specific data curation solutions from task descriptions and datasets without manual coding or extensive labeling?
- RQ2How effective are generated domain-specific modules (code, small models, data access) compared to generic approaches and manually curated baselines across multiple tasks?
- RQ3What strategies best reduce LLM usage while maintaining accuracy (code ensembles, data access, and frozen models)?
- RQ4How does the two-step SEED pipeline adapt module composition to task and data properties (data cleaning, extraction, annotation, entity resolution, discovery)?
Key findings
- SEED-produced domain-specific solutions significantly outperform generic counterparts across nine datasets and five data curation tasks.
- SEED often approaches the performance of manually curated solutions that use thousands of labeled examples.
- Compared with LLM-on-every-record approaches, SEED achieves state-of-the-art or comparable few-shot performance with far fewer LLM calls.
- Code generation employs an advising-and-validation loop and a code-ensemble evolution to handle complex logic robustly.
- Small models generated from LLM annotations reduce dependency on costly LLM inference.
- Data access modules with query batching and iterative tool invocation substantially lower costs while boosting accuracy.

Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.