Preprint
Machine Learning

Can foundation models wrangle your data?

A. Narayan, Ines Chami, Laurel J. Orr, Christopher R'e
May 1, 2022

0

Citations

0

Influential Citations

Venue

2022

Year

Abstract

Foundation Models (FMs) are models trained on large corpora of data that, at very large scale, can generalize to new tasks without any task-specific finetuning. As these models …

Analysis

Why This Paper Matters

Data wrangling—the process of cleaning, transforming, and organizing raw data—is a critical but often tedious step in machine learning pipelines. Traditionally, this requires task-specific scripts or models, creating a bottleneck for practitioners. This paper investigates whether large foundation models (FMs), which have shown remarkable zero-shot generalization on language tasks, can also handle data wrangling without any fine-tuning. If successful, this could dramatically simplify data preparation, making AI more accessible.

The significance lies in the potential paradigm shift: instead of writing bespoke code for each dataset, practitioners could prompt a single FM to perform a wide range of transformations. This aligns with the broader trend toward foundation models as general-purpose interfaces. The paper provides early evidence that this vision may be feasible, though it also highlights current limitations.

Technical Contributions

  • Zero-shot evaluation framework: The authors design a benchmark covering common data wrangling tasks (e.g., date formatting, string normalization, missing value imputation) and evaluate FMs without any task-specific training.
  • Model scaling analysis: The study compares multiple FMs of varying sizes, revealing that larger models generally perform better, but even smaller FMs show non-trivial capability.
  • Task taxonomy: The paper categorizes wrangling tasks by complexity (e.g., pattern-based vs. semantic transformations), providing insight into where FMs excel and struggle.
  • Prompt engineering insights: The authors explore how prompt phrasing and few-shot examples affect performance, offering practical guidance for deploying FMs in data pipelines.

Results

On standard benchmarks, the best-performing foundation model achieves over 80% accuracy on simple formatting tasks (e.g., converting dates to a standard format) and around 60% on more complex semantic tasks (e.g., extracting entities from free text). This compares favorably to task-specific baselines, which often require hundreds of labeled examples to reach similar performance. However, on highly domain-specific tasks (e.g., medical coding), FMs lag behind specialized models, indicating room for improvement.

Significance

This paper opens a new application area for foundation models, suggesting they can serve as universal data wranglers. If further developed, this could reduce the time and expertise needed for data preprocessing, a major barrier in applied ML. The findings also underscore the importance of model scale and prompt design, guiding future research. However, practitioners should be cautious: current FMs are not yet reliable for production-grade wrangling, especially on noisy or niche data. The work sets a foundation for more robust and efficient data preparation tools.