Skip to main content
QUICK REVIEW

[Paper Review] Macaw-LLM: Multi-Modal Language Modeling with Image, Audio, Video, and Text Integration

Chenyang Lyu, Minghao Wu|arXiv (Cornell University)|Jun 15, 2023
Multimodal Machine Learning ApplicationsComputer Science27 citations
TL;DR

Macaw-LLM is a multi-modal instruction-tuned LLM that integrates image, video, audio, and text through a novel alignment module, enabling unified processing within a single model.

ABSTRACT

Although instruction-tuned large language models (LLMs) have exhibited remarkable capabilities across various NLP tasks, their effectiveness on other data modalities beyond text has not been fully studied. In this work, we propose Macaw-LLM, a novel multi-modal LLM that seamlessly integrates visual, audio, and textual information. Macaw-LLM consists of three main components: a modality module for encoding multi-modal data, a cognitive module for harnessing pretrained LLMs, and an alignment module for harmonizing diverse representations. Our novel alignment module seamlessly bridges multi-modal features to textual features, simplifying the adaptation process from the modality modules to the cognitive module. In addition, we construct a large-scale multi-modal instruction dataset in terms of multi-turn dialogue, including 69K image instances and 50K video instances. We have made our data, code and model publicly available, which we hope can pave the way for future research in multi-modal LLMs and expand the capabilities of LLMs to handle diverse data modalities and address complex real-world scenarios.

Motivation & Objective

  • Motivate extending instruction-tuned LLMs beyond text to handle visual, audio, and video data.
  • Propose an end-to-end architecture that jointly encodes multi-modal data and aligns them with textual embeddings.
  • Introduce a one-step instruction fine-tuning approach that fine-tunes all model parameters end-to-end.
  • Create and release a large-scale multi-modal instruction dataset covering image and video modalities to support multi-modal LLM research.

Proposed method

  • Modalities are encoded with CLIP-ViT-B/16 for images and videos, Whisper-base for audio, and LLaMA-7B as the cognitive/textual backbone.
  • An alignment module uses 1-D convolution and linear layers to compress multi-modal features to a fixed length, then applies attention against textual embeddings to produce aligned representations.
  • Aligned visual, audio, and video representations are integrated with textual embeddings via concatenation to form multi-modal instructions.
  • A one-step instruction fine-tuning objective minimizes the negative log-likelihood over the generated responses, updating all model parameters jointly.
  • The Macaw-LLM instruction dataset is constructed by prompting GPT-3.5-Turbo to generate instruction-response pairs from COCO image captions and Charades/AVSD video captions, supplemented with text-only instruction data (Alpaca).
  • Training setup uses DeepSpeed on 8 Nvidia A100 GPUs, batch size 4 per device, 5 epochs, learning rate 3e-5, warmup 0.03, and FP16.

Experimental results

Research questions

  • RQ1Can a single model process and follow instructions across image, video, audio, and text modalities?
  • RQ2Does a unified alignment approach enable efficient and coherent multi-modal instruction-following within an LLM backbone?
  • RQ3What is the efficacy of a one-step, end-to-end fine-tuning approach for multi-modal LLMs compared to two-stage methods?
  • RQ4Does the proposed Macaw-LLM dataset provide diverse, instruction-aligned multi-modal data to support instruction tuning?]
  • RQ5How well can Macaw-LLM generate and reason over multi-modal content in single-turn dialogues?

Key findings

  • Macaw-LLM integrates multi-modal features into the LLM input sequence via a novel alignment module, enabling unified processing.
  • The model supports simultaneous processing of image, video, audio, and text modalities within a single architecture.
  • A one-step instruction fine-tuning approach coherently aligns modalities and the cognitive LLM without a separate projection-stage training.
  • The authors release a large-scale Macaw-LLM instruction dataset comprising image- and video-grounded instruction-response pairs to facilitate future research.
  • Examples demonstrate image- and video-grounded QA, visual reasoning, and audio-augmented video understanding, indicating strong multi-modal capabilities.

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.