TL;DR
This paper introduces UniFilter, a novel MLLM-based classifier that can effectively filter both image-text captions and interleaved documents for high-quality multimodal data. By leveraging a semi-synthetic data generation approach and an efficient MLLM architecture, UniFilter significantly enhances downstream MLLM performance, particularly in zero-shot and in-context learning tasks.
What Problem Does This Paper Address?
The rapid advancement of Multimodal Large Language Models (MLLMs) is heavily reliant on massive datasets. While these models are trained on a mix of image-text captions and interleaved documents, the crucial step of filtering for high-quality interleaved document data has been largely overlooked. Existing methods like CLIPScore are limited to image-text pairs and cannot handle the complex structure of interleaved data. This lack of effective filtering for interleaved data poses a bottleneck for training stronger MLLMs, as noisy or low-quality data can hinder learning.
Methods
The core of this work is UniFilter, a unified multimodal data quality classifier built upon an MLLM architecture. UniFilter can process both image-text captions and interleaved documents, outputting a quality score. To overcome the challenge of obtaining labeled multimodal data, the authors propose a semi-synthetic data generation method. This involves using readily available raw images and employing a proprietary MLLM (Claude-3-Sonnet) to generate corresponding text across four defined quality levels (easy negative, medium negative, hard negative, positive). This approach allows for scalable and cost-effective creation of sample-score pairs for training.
The UniFilter architecture itself is designed for efficiency and capability, incorporating a vision encoder, a visual projector, and an LLM backbone. Through extensive ablation studies, the authors identified an optimal configuration: a SigLIP-SO400M vision encoder, a 2D adaptive average pooling projector, and the Qwen2.5-0.5B LLM. This architecture is trained using Mean-Square-Error (MSE) loss to align the output logit with the synthetic quality labels.
Datasets
- Training Data:
- Semi-synthetic data: Generated using raw images from DataComp (for captions) and OBELICS (for interleaved documents), with synthetic text generated by Claude-3-Sonnet across four quality levels.
- MSCOCO and Flickr: 4k non-synthetic high-quality image-caption data was included.
- Evaluation Data:
- DataComp-medium-128M: Used for MLLM pre-training on curated caption data.
- OBELICS: Used for MLLM pre-training on curated interleaved document data.
- Evaluation Benchmarks:
- VQA Datasets: GQA, VQA-v2, VizWiz, TextVQA, OKVQA (for zero-shot and in-context learning evaluation).
- Multimodal Benchmarks: POPE, MMMU, MMBench, MMStar (for visual supervised fine-tuning evaluation).
Key Insights and Ideas
- Unified Filtering is Crucial: The paper highlights that a single model capable of filtering both caption and interleaved data is more efficient and effective than separate specialized filters.
- Synthetic Data is a Game-Changer: The semi-synthetic approach effectively addresses the scarcity of high-quality labeled multimodal data, enabling the training of robust data quality classifiers.
- MLLMs as Quality Classifiers: Leveraging MLLMs for data quality assessment is shown to be superior to traditional methods like CLIPScore, especially for complex data structures like interleaved documents.
- Interleaved Data Quality Matters: Pre-training MLLMs on high-quality interleaved data significantly boosts in-context learning capabilities, particularly in zero-shot scenarios.
- Architecture Matters for Efficiency: The choice of vision encoder, projector, and LLM backbone significantly impacts both the performance and inference speed of the quality classifier.
Key Results
- Improved MLLM Performance: MLLMs pre-trained on data filtered by UniFilter significantly outperform those trained on baseline-filtered data.
- On zero-shot VQA datasets, UniFilter-curated data led to better performance than SOTA CLIP-based and MLM-based filtering methods.
- For interleaved data, UniFilter improved 4-shot and 8-shot in-context learning by +0.7 and +2.8 average accuracy, respectively, over the DFN baseline.
- Zero-shot in-context learning saw even larger gains, with +3.2 average VQA improvements.
- Post-SFT Gains: Fine-tuned MLLMs pre-trained with UniFilter data showed substantial improvements, achieving +3.1 average VQA accuracy, +1.5 MMMU accuracy, and +1.6 MMBench accuracy over baselines.
- Efficiency: UniFilter achieves a high inference throughput of 130 samples/s, slightly outperforming CLIPScore. The chosen architecture also balances performance and computational cost.
Limitations and Future Work
- Dependency on Proprietary MLLMs: The quality of the synthetic text generated for training UniFilter is dependent on the capabilities of the proprietary language model used (e.g., Claude-3-Sonnet).
- Cost of Synthetic Data: Generating the initial 80k synthetic data points incurred a cost of several hundred US dollars for API access.
- Potential Safety Concerns: Synthetic text can introduce potential safety concerns, which the authors mitigated using a safety classifier (Llama-guard).
- Future Work: The authors suggest exploring the use of advanced open-source LLMs (like Qwen2.5-VL-72B) for data generation to achieve comparable or better quality classification performance. They also propose further investigation into the impact of filtering fraction and system prompts on in-context learning.
Summary updated