Data Processing Techniques for Modern Multimodal Models

Han Ding, Yinheng Li, Han Ding 0004, Hang Chen

TL;DR

This paper provides a comprehensive review of data processing techniques crucial for training modern multimodal models, particularly diffusion models and multimodal large language models (MLLMs). It categorizes these techniques into data quality, quantity, distribution, and safety, offering a structured framework to guide developers in building more robust and effective AI systems.

What Problem Does This Paper Address?

The rapid advancement of multimodal AI, especially in areas like text-to-image generation (diffusion models) and vision-language understanding (MLLMs), is heavily reliant on the quality and characteristics of the training data. However, the sheer scale and complexity of data required present significant challenges. Simply collecting vast amounts of raw data isn't enough; it needs meticulous processing to ensure it's clean, representative, safe, and well-aligned across different modalities. This paper addresses the need for a structured understanding and categorization of these essential data processing techniques, which are often handled ad-hoc, to guide researchers and developers in building better multimodal models.

Methods

The authors propose a data processing workflow that generally involves collecting raw or curated data, followed by a processing stage that enhances data quality, ensures safety, and optimizes distribution. This process is iterative, with model performance feedback informing adjustments to data processing. The paper categorizes techniques into four main areas:

  • Data Quality: This involves filtering and augmentation.
  • Filtering: Techniques include image resolution and aspect ratio filters, aesthetic scoring (using annotators or model-guided filters), and source-based filtering (e.g., using user engagement metrics). For text, filters focus on identifying errors, poor alignment, and overall quality.
  • Augmentation: This leverages early model versions or LLMs (like ChatGPT) to generate synthetic, high-quality text captions or even image-text pairs to enrich datasets.
  • Data Quantity: While acknowledged as important, this is noted as being highly dependent on specific use cases and data sources, and thus not the primary focus of this review.
  • Data Distribution: This aims to create balanced and diverse datasets. Techniques include sampling based on noun phrase frequency for text and using image classification models to balance visual concepts. Image deduplication is also highlighted.
  • Data Safety: This addresses toxic content and social bias.
  • Toxic Data: Filtering involves wordlists for text and CLIP embeddings to compare images with toxic text. Specialized classifiers are also used.
  • Social Bias and Fairness: This is an emerging area, with techniques like counterfactual data augmentation (CAD) being explored for text. However, much of the current work focuses on model training rather than data processing for bias mitigation.

Datasets

The paper discusses several key datasets used in multimodal model training:

  • LAION-5B: A large-scale, web-crawled dataset frequently used for training diffusion models.
  • Conceptual Captions (CC): A widely used dataset for image captioning and pretraining vision-language models.
  • WIT (Wikipedia-based Image Text Dataset): Another significant dataset for multimodal learning.
  • MMC4: A curated dataset mentioned for its use in developing vision-language models.
  • LLaVA-1.5, MiniGPT-4, BLIP, BLIP-2, Stable Diffusion (various versions), EMU, Deep Floyd: These are models that either use existing datasets or have their own curated/private datasets for training and fine-tuning. The paper also mentions datasets like COCO, Visual Genome, SBU, and Instruct-158K for fine-tuning.

Key Insights and Ideas

  • Data Processing is Iterative: The paper emphasizes that data processing isn't a one-off step but an iterative cycle. Model performance and failure analysis should feed back into refining data processing techniques.
  • Modality-Specific Focus: Diffusion models tend to prioritize image quality (resolution, aesthetics), while MLLMs focus more on text quality and its alignment with images.
  • The Rise of Model-Guided Filtering: There's a growing trend of using LLMs (like ChatGPT) and other pre-trained models (like CLIP) to automate and enhance data filtering, though human annotators remain crucial, especially for fine-tuning.
  • Data Safety is Crucial but Complex: While filtering toxic content is relatively established, addressing social bias and fairness in multimodal data is a more nuanced and ongoing challenge.
  • Synthetic Data Generation is Powerful: Using LLMs to generate synthetic captions and text-image pairs is proving to be an effective way to improve text alignment and overall data quality, particularly for MLLMs.

Key Results

The paper doesn't present new quantitative results from its own experiments but rather synthesizes findings from influential multimodal models. It highlights that:

  • Models like Stable Diffusion, EMU, and BLIP utilize resolution, aesthetic, and aspect ratio filters to improve image quality.
  • MLLMs like LLaVA and MiniGPT-4 employ text-oriented balancing and use LLMs for generating high-quality captions and conversational data.
  • CLIP scores are widely used to filter image-text pairs for better multimodal alignment.
  • The scale and quality of training datasets, like LAION-5B, are directly correlated with improvements in vision-language models.

Limitations and Future Work

  • Data Quantity Not Deeply Explored: The paper acknowledges that data quantity, while important, is highly dependent on specific use cases and data sources, and thus was not a primary focus of their review.
  • Bias Mitigation is Nascent: While toxic data filtering is relatively successful, mitigating social bias and promoting fairness in multimodal data processing is an emerging research area with significant room for improvement. Most current work focuses on model training rather than data processing for bias.
  • No Standardized Framework: The authors note that data processing is an iterative process with no single standard set of steps, as choices depend on specific tasks and model performance.

Future work could involve developing more robust methods for addressing social bias in data processing, exploring novel data augmentation techniques, and creating more standardized yet flexible frameworks for data processing across diverse multimodal tasks.

Summary updated

BibTeX
@inproceedings{ding2024data,
  author = {Han Ding and Yinheng Li and Han Ding and Hang Chen},
  title = {{Data Processing Techniques for Modern Multimodal Models}},
  booktitle = {Ipta},
  year = {2024},
  doi = {10.1109/ipta62886.2024.10755555},
}
Figure