Table of Contents
Fetching ...

Are Large Language Models Good Data Preprocessors?

Elyas Meguellati, Nardiena Pratama, Shazia Sadiq, Gianluca Demartini

TL;DR

This work investigates whether large language models can serve as data preprocessors to refine noisy captions from image captioning systems like BLIP and GIT, improving downstream hierarchical multi-label classification of persuasive memes. It evaluates multiple LLMs (LLaMA 3.1 70B, GPT-4 Turbo, Sonnet 3.5 v2) on the SemEval 2024 Task 4 dataset, using a fixed caption-cleaning prompt and comparing cleaned versus uncleaned captions. Results show modest improvements in downstream F1 scores when using LLM-cleaned captions, with GPT-4 Turbo often delivering the best development performance and LLaMA 70B performing well on test data; however, most improvements are not statistically significant, highlighting context-dependent effectiveness. The findings provide empirical evidence for the potential and limitations of LLM-based preprocessing in challenging, real-world datasets and motivate broader validation across domains and noise profiles.

Abstract

High-quality textual training data is essential for the success of multimodal data processing tasks, yet outputs from image captioning models like BLIP and GIT often contain errors and anomalies that are difficult to rectify using rule-based methods. While recent work addressing this issue has predominantly focused on using GPT models for data preprocessing on relatively simple public datasets, there is a need to explore a broader range of Large Language Models (LLMs) and tackle more challenging and diverse datasets. In this study, we investigate the use of multiple LLMs, including LLaMA 3.1 70B, GPT-4 Turbo, and Sonnet 3.5 v2, to refine and clean the textual outputs of BLIP and GIT. We assess the impact of LLM-assisted data cleaning by comparing downstream-task (SemEval 2024 Subtask "Multilabel Persuasion Detection in Memes") models trained on cleaned versus non-cleaned data. While our experimental results show improvements when using LLM-cleaned captions, statistical tests reveal that most of these improvements are not significant. This suggests that while LLMs have the potential to enhance data cleaning and repairing, their effectiveness may be limited depending on the context they are applied to, the complexity of the task, and the level of noise in the text. Our findings highlight the need for further research into the capabilities and limitations of LLMs in data preprocessing pipelines, especially when dealing with challenging datasets, contributing empirical evidence to the ongoing discussion about integrating LLMs into data preprocessing pipelines.

Are Large Language Models Good Data Preprocessors?

TL;DR

This work investigates whether large language models can serve as data preprocessors to refine noisy captions from image captioning systems like BLIP and GIT, improving downstream hierarchical multi-label classification of persuasive memes. It evaluates multiple LLMs (LLaMA 3.1 70B, GPT-4 Turbo, Sonnet 3.5 v2) on the SemEval 2024 Task 4 dataset, using a fixed caption-cleaning prompt and comparing cleaned versus uncleaned captions. Results show modest improvements in downstream F1 scores when using LLM-cleaned captions, with GPT-4 Turbo often delivering the best development performance and LLaMA 70B performing well on test data; however, most improvements are not statistically significant, highlighting context-dependent effectiveness. The findings provide empirical evidence for the potential and limitations of LLM-based preprocessing in challenging, real-world datasets and motivate broader validation across domains and noise profiles.

Abstract

High-quality textual training data is essential for the success of multimodal data processing tasks, yet outputs from image captioning models like BLIP and GIT often contain errors and anomalies that are difficult to rectify using rule-based methods. While recent work addressing this issue has predominantly focused on using GPT models for data preprocessing on relatively simple public datasets, there is a need to explore a broader range of Large Language Models (LLMs) and tackle more challenging and diverse datasets. In this study, we investigate the use of multiple LLMs, including LLaMA 3.1 70B, GPT-4 Turbo, and Sonnet 3.5 v2, to refine and clean the textual outputs of BLIP and GIT. We assess the impact of LLM-assisted data cleaning by comparing downstream-task (SemEval 2024 Subtask "Multilabel Persuasion Detection in Memes") models trained on cleaned versus non-cleaned data. While our experimental results show improvements when using LLM-cleaned captions, statistical tests reveal that most of these improvements are not significant. This suggests that while LLMs have the potential to enhance data cleaning and repairing, their effectiveness may be limited depending on the context they are applied to, the complexity of the task, and the level of noise in the text. Our findings highlight the need for further research into the capabilities and limitations of LLMs in data preprocessing pipelines, especially when dealing with challenging datasets, contributing empirical evidence to the ongoing discussion about integrating LLMs into data preprocessing pipelines.

Paper Structure

This paper contains 6 sections, 1 figure, 5 tables.

Figures (1)

  • Figure 1: Caption Cleaning Process - Before and After. The original caption is cleaned using three different Large Language Models: Sonnet 3.5, LLaMA 3.1 70B, and GPT-4 Turbo.