Train a Unified Multimodal Data Quality Classifier with Synthetic Data

Weizhi Wang, Rongmei Lin, Shiyang Li, Colin Lockard, Ritesh Sarkhel, Sanket Lokegaonkar, Jingbo Shang, Xifeng Yan, Nasser Zalmout, Xian Li · OpenReview

Abstract: The Multimodal Large Language Models (MLLMs) are continually pre-trained on a mixture of image-text caption data and interleaved document data, while the high-quality data filtering towards image-text interleaved document data is under-explored. We propose to train an efficient MLLM as a Unified Mulitmodal Data Quality Classifier to Filter both high-quality image-text caption and interleaved data (UniFilter). To address the challenge of collecting diverse labeled multimodal data, we introduce a semi-synthetic approach that leverages readily available raw images and generates corresponding text across four quality levels. This method enables efficient creation of sample-score pairs for both caption and interleaved document data to train UniFilter. We apply UniFilter to curate high-quality caption data from DataComp caption dataset and interleaved data from the OBELICS image-text interleaved dataset. MLLMs pre-trained on the filtered data demonstrate significantly enhanced capabilities compared to those trained on baseline-filtered data, achieving stronger zero-shot reasoning and in-context learning capabilities. After visual supervised fine-tuning, these UniFilter-induced MLLMs achieve stronger performance on various benchmarks, highlighting the downstream benefits of high-quality multimodal pre-training. We release the synthetic training data used for training UniFilter, the UniFilter model checkpoints, and the high-quality interleaved document subset OBELICS-HQ, curated by UniFilter, to the community for reproduction and further development.

Introduction

In the development of Multimodal Large Language Models (MLLMs), the focus has increasingly shifted from simply increasing data volume to improving data quality. While massive web-scale datasets like DataComp and OBELICS provide the necessary scale, they are often plagued by noise. Traditional filtering methods, such as CLIPScore, measure the mathematical similarity between an image and a caption but face significant limitations. Specifically, they struggle with interleaved documents—where multiple images are integrated with long-form text—and lack the linguistic nuance to distinguish between high-quality descriptions and those with subtle errors.

To overcome these hurdles, we introduce UniFilter, a lightweight MLLM designed to serve as a unified classifier for both image-text captions and interleaved data. By utilizing a semi-synthetic training approach, UniFilter achieves high accuracy and efficiency, significantly boosting the performance of downstream models.

Methodology

Semi-Synthetic Data Generation

Collecting high-quality human labels for billions of data points is prohibitively expensive. Instead, we employ a semi-synthetic pipeline using a "teacher" model (Claude-3-Sonnet) to generate training data. We sample real images from web datasets and prompt the teacher to create text across four distinct quality levels: Easy Negative (unrelated), Medium Negative (significant errors), Hard Negative (subtle errors), and Positive (high-quality, aligned).

The UniFilter data synthesis pipeline, illustrating the process of generating synthetic captions and paragraphs across four quality levels from raw web images.

This approach resulted in 80,000 sample-score pairs, providing the fine-grained gradient necessary for the filter to learn complex spatial and linguistic relationships. The inclusion of "Hard Negatives" is particularly crucial for training the model to detect subtle mismatches that simpler similarity scores might miss.

UniFilter Architecture

UniFilter is designed for maximum efficiency without sacrificing performance. The architecture integrates a SigLIP-SO-400M vision encoder with a Qwen-2.5 LLM backbone (available in 0.5B and 1.5B parameter versions). An adaptive average pooling projector is used to compress image tokens, reducing computational overhead.

The UniFilter model architecture, showing the processing paths for single-image captions and multi-image interleaved documents.

A linear classification head is added to the LLM backbone, allowing the model to output a single quality score. This unified structure enables the model to handle both simple image-caption pairs and complex, multi-image interleaved documents within the same framework.

Datasets and Training

UniFilter was trained on the 80k synthetic samples supplemented by 4k "gold standard" samples from MSCOCO and Flickr. We utilized the trained classifier to curate OBELICS-HQ, a high-quality subset of 5 million interleaved documents from the original OBELICS dataset, which we have released to the community.

Key Results

The impact of UniFilter-curated data on downstream MLLM performance is substantial:

  • Zero-Shot Reasoning: Models pre-trained on UniFilter-filtered data showed an average improvement of +3.1 points across various Visual Question Answering (VQA) tasks.
  • In-Context Learning: On 8-shot VQA benchmarks, UniFilter-induced models outperformed the DFN baseline by +2.8 points, demonstrating the value of high-quality interleaved data for teaching models to learn from examples.
  • Efficiency: The 0.5B version of UniFilter achieves a throughput of 130 samples per second, making it faster than many CLIP-based alternatives while providing superior accuracy.
  • Benchmark Excellence: After fine-tuning, UniFilter-based models achieved superior results on expert-level benchmarks, including MMMU (+1.5 points) and MMBench.

Conclusion

UniFilter represents a significant step forward in multimodal data curation. By leveraging synthetic data and a lightweight MLLM architecture, we provide a scalable and effective solution for filtering high-quality pre-training data. While the model's performance is currently tied to the quality of the synthetic "teacher," future work will focus on expanding this approach to more diverse data types and optimizing data retention thresholds for various downstream tasks.

Summary updated

BibTeX
@inproceedings{wang2025train,
  author = {Weizhi Wang and Rongmei Lin and Shiyang Li and Colin Lockard and Ritesh Sarkhel and Sanket Lokegaonkar and Jingbo Shang and Xifeng Yan and Nasser Zalmout and Xian Li},
  title = {{Train a Unified Multimodal Data Quality Classifier with Synthetic Data}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2025},
  url = {https://openreview.net/forum?id=l5DNft6HaA},
}
Figure