[论文解读] Macaw-LLM: Multi-Modal Language Modeling with Image, Audio, Video, and Text Integration
Macaw-LLM 是一个多模态指令微调的大语言模型,通过一个新颖的对齐模块将图像、视频、音频和文本整合在一起,在单一模型内实现统一处理。
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.
研究动机与目标
- 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.
提出的方法
- 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.
实验结果
研究问题
- 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?
主要发现
- 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.
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。