Skip to main content
QUICK REVIEW

[Paper Review] DeepSpeed-VisualChat: Multi-Round Multi-Image Interleave Chat via Multi-Modal Causal Attention

Zhewei Yao, Xiaoxia Wu|arXiv (Cornell University)|Sep 25, 2023
Multimodal Machine Learning ApplicationsComputer Science4 citations
TL;DR

DeepSpeed-VisualChat introduces a fully open-source framework for multi-round, multi-image dialogues using a novel Multi-Modal Causal Attention (MMCA) mechanism that enables efficient, scalable, and parameter-free attention across vision and language modalities. It achieves state-of-the-art scalability up to 70B parameter language models through data blending and optimized training, outperforming existing models in interleaved visual-textual reasoning without additional parameters or training costs.

ABSTRACT

Most of the existing multi-modal models, hindered by their incapacity to adeptly manage interleaved image-and-text inputs in multi-image, multi-round dialogues, face substantial constraints in resource allocation for training and data accessibility, impacting their adaptability and scalability across varied interaction realms. To address this, we present the DeepSpeed-VisualChat framework, designed to optimize Large Language Models (LLMs) by incorporating multi-modal capabilities, with a focus on enhancing the proficiency of Large Vision and Language Models in handling interleaved inputs. Our framework is notable for (1) its open-source support for multi-round and multi-image dialogues, (2) introducing an innovative multi-modal causal attention mechanism, and (3) utilizing data blending techniques on existing datasets to assure seamless interactions in multi-round, multi-image conversations. Compared to existing frameworks, DeepSpeed-VisualChat shows superior scalability up to 70B parameter language model size, representing a significant advancement in multi-modal language models and setting a solid foundation for future explorations.

Motivation & Objective

  • To address the lack of open-source, scalable frameworks for multi-round, multi-image, interleaved text-and-image dialogues in vision-language models.
  • To overcome limitations in existing models that cannot effectively handle interleaved inputs or scale beyond small LLMs (e.g., 7B–13B parameters).
  • To develop a parameter-efficient attention mechanism that avoids additional modules while enabling strong cross-modal alignment.
  • To improve training efficiency and model generalization through data blending techniques on existing datasets.
  • To demonstrate scalability of vision-language models up to 70B parameters using the DeepSpeed framework.

Proposed method

  • Proposes Multi-Modal Causal Attention (MMCA), a modality-specific attention mechanism that computes attention independently per modality while enabling cross-modal interaction without additional parameters.
  • Employs data blending techniques to synthesize interleaved image-text conversations from existing datasets, overcoming the scarcity of such training data.
  • Utilizes the DeepSpeed framework to train large-scale models (up to 70B parameters) with ZeRO optimization, enabling efficient and scalable training.
  • Adopts a vision encoder (2B parameters) and a LLaMa-2 language decoder (13B or 70B), with projection layers for modality fusion, though Vision Transformer projections were abandoned due to no performance gain.
  • Applies prompt tuning and hyperparameter adaptation to optimize performance, particularly for larger models like LLaMa-2-70B.
  • Conducts ablation studies comparing models trained with and without SparklesChat data to analyze prompt sensitivity and hallucination trade-offs.

Experimental results

Research questions

  • RQ1Can a fully open-source framework support multi-round, multi-image dialogues with interleaved text and image inputs?
  • RQ2Does the proposed Multi-Modal Causal Attention (MMCA) mechanism achieve performance comparable to cross-attention while avoiding additional parameters?
  • RQ3Can data blending techniques effectively simulate interleaved visual-textual conversations from non-interleaved datasets?
  • RQ4To what extent can vision-language models scale to 70B parameters while maintaining training efficiency and performance?
  • RQ5How does the inclusion of external data (e.g., SparklesChat) affect model robustness and prompt sensitivity?

Key findings

  • DeepSpeed-VisualChat achieves superior scalability, successfully training a 70B parameter language model with a 2B visual encoder, demonstrating feasibility at scale.
  • The MMCA mechanism enables strong cross-modal alignment without introducing additional parameters, improving training data efficiency compared to standard causal attention.
  • Incorporating SparklesChat data enhances narrative generation but increases prompt sensitivity, suggesting potential distributional imbalances in the training data.
  • Models trained with data blending show improved generalization in multi-image, multi-round dialogue tasks, though performance degrades with complex blending strategies involving image reordering.
  • The 13B model variant (DeepSpeed-VisualChat-13B-Set2) exhibits higher prompt sensitivity than the baseline (Set1), indicating that data composition significantly affects model robustness.
  • Training the 70B model with hyperparameters tuned for 13B models yielded suboptimal results, indicating a need for model-specific hyperparameter adaptation in future work.

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.