Skip to main content
QUICK REVIEW

[Paper Review] Large Language Models as Data Preprocessors

Haochen Zhang, Yuyang Dong|arXiv (Cornell University)|Aug 30, 2023
Topic ModelingComputer Science9 citations
TL;DR

The paper investigates using state-of-the-art LLMs (GPT-3.5, GPT-4, Vicuna-13B) for data preprocessing tasks like error detection, data imputation, schema matching, and entity matching, proposing prompting-based frameworks and reporting results across 12 datasets.

ABSTRACT

Large Language Models (LLMs), typified by OpenAI's GPT, have marked a significant advancement in artificial intelligence. Trained on vast amounts of text data, LLMs are capable of understanding and generating human-like text across a diverse range of topics. This study expands on the applications of LLMs, exploring their potential in data preprocessing, a critical stage in data mining and analytics applications. Aiming at tabular data, we delve into the applicability of state-of-the-art LLMs such as GPT-4 and GPT-4o for a series of preprocessing tasks, including error detection, data imputation, schema matching, and entity matching. Alongside showcasing the inherent capabilities of LLMs, we highlight their limitations, particularly in terms of computational expense and inefficiency. We propose an LLM-based framework for data preprocessing, which integrates cutting-edge prompt engineering techniques, coupled with traditional methods like contextualization and feature selection, to improve the performance and efficiency of these models. The effectiveness of LLMs in data preprocessing is evaluated through an experimental study spanning a variety of public datasets. GPT-4 emerged as a standout, achieving 100\% accuracy or F1 score on 4 of these datasets, suggesting LLMs' immense potential in these tasks. Despite certain limitations, our study underscores the promise of LLMs in this domain and anticipates future developments to overcome current hurdles.

Motivation & Objective

  • Assess the potential of state-of-the-art LLMs for data preprocessing tasks on tabular data.
  • Propose a prompting framework combining zero-shot, few-shot, batch prompting, contextualization, and feature selection.
  • Evaluate LLM performance on error detection, data imputation, schema matching, and entity matching across 12 datasets.

Proposed method

  • Propose an LLM-based data preprocessing framework with motivated prompt design (zero-shot, few-shot, batch prompting) and an answer-with-reasoning format.
  • Use contextualization to convert data instances into natural language prompts for LLMs.
  • Incorporate feature selection when metadata is available to improve task performance.
  • Employ batch prompting to reduce token costs and inference time, with random and cluster batching strategies.
  • Evaluate three LLMs (GPT-3.5, GPT-4, Vicuna-13B) and baselines on four data preprocessing tasks across 12 datasets.
  • Report performance metrics (accuracy for DI/ED, F1 for SM/EM) and conduct ablation studies on prompting components.

Experimental results

Research questions

  • RQ1Can state-of-the-art LLMs effectively perform data preprocessing tasks on tabular data?
  • RQ2How do prompting strategies (zero-shot, few-shot, batch prompting) and contextualization affect accuracy and efficiency in ED, DI, SM, and EM?
  • RQ3Which LLMs best balance accuracy and cost for data preprocessing?
  • RQ4What is the impact of feature selection and batch batching on performance and resource usage?

Key findings

  • GPT-4 generally outperforms existing solutions, achieving 100% accuracy or F1 on 4 of 12 datasets.
  • GPT-3.5 also delivers competitive performance and is recommended for data preprocessing.
  • Vicuna-13B is applicable only in a limited set of cases with mediocre results.
  • Batch prompting and zero-shot reasoning can improve performance, while batch prompting can reduce cost and time with varying effects on accuracy.
  • Feature selection significantly boosts performance in some tasks (e.g., entity matching on Beer dataset).
  • GPT-3.5 can show strong improvements with zero-shot reasoning and few-shot prompting, but batch prompting may have mixed effects.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.