TL;DR
This paper introduces AnyMAL, a unified language model capable of understanding and generating text from diverse inputs like images, video, audio, and motion sensor data. By leveraging and extending existing large language models (LLMs) like LLaMA-2, AnyMAL achieves state-of-the-art performance on various multimodal tasks, demonstrating a significant step towards more versatile AI assistants.
What Problem Does This Paper Address?
The field of AI has seen remarkable progress with Large Language Models (LLMs) that excel at understanding and generating human text. However, a significant challenge remains in enabling these powerful models to seamlessly integrate and reason over information from multiple sensory modalities beyond just text. While some multimodal models exist, they often focus on only one or two additional modalities (e.g., text and image) and are frequently proprietary, limiting broader research and development. This paper aims to bridge this gap by creating a single, scalable model that can handle "any modality" and perform complex reasoning across them.
Methods
The core of AnyMAL is built upon existing state-of-the-art LLMs, specifically LLaMA-2-70B-chat, to retain their strong text-based reasoning capabilities. The novelty lies in how other modalities are integrated:
- Modality Alignment: AnyMAL uses a "zoo" of pre-trained modality-specific encoders (e.g., CLIP for images, CLAP for audio, IMU2CLIP for motion sensors, and Intervideo for video). These encoders transform input signals into the same joint textual embedding space as the LLM. This is achieved through projection layers (like Perceiver Resamplers or linear layers) that map the encoded modality features into the LLM's token embedding space. Crucially, the LLM itself is frozen during this pre-training phase, allowing for faster convergence and leveraging its existing knowledge.
- Multimodal Instruction Tuning: To further enhance the model's ability to follow instructions across modalities, AnyMAL is fine-tuned on a custom-collected dataset called MM-IT. This dataset contains high-quality, manually curated instruction-response pairs covering diverse topics and tasks, going beyond simple question-answering. Synthetic data is also generated using LLMs to augment this dataset.
- Efficient Scaling: To handle the massive scale of training, the authors employ quantization strategies (4-bit and 8-bit) which significantly reduce memory requirements, enabling the training of a 70B parameter model on a single 80GB VRAM GPU.
Datasets
- Pre-training:
- Image: Cleaned subset of LAION-2B.
- Audio: AudioSet, AudioCaps, CLOTHO.
- IMU & Text: Ego4D dataset.
- General Multimodal: A large dataset of over 200 million images, 2.2 million audio clips, 500,000 IMU time-series, and 28 million videos were used for projection layer pre-training.
- Fine-tuning (MM-IT Dataset):
- Manual Annotation: 60,000 high-quality multimodal instruction tuning examples collected manually.
- Synthetic Data: 150,000 image-instruction-response pairs generated using LLaMA-2.
The MM-IT dataset is highlighted as a novel benchmark for complex multimodal reasoning tasks, differing from existing datasets by focusing on diverse, unconstrained tasks beyond simple QAs and requiring a deeper understanding of multimodal context.
Key Insights and Ideas
- Unified Embedding Space is Key: The core idea of projecting all modalities into a shared textual embedding space is a powerful and efficient way to enable multimodal reasoning within a single LLM.
- LLM Freezing for Efficiency: Freezing the LLM parameters during modality alignment pre-training is a smart strategy that allows the model to inherit LLM capabilities quickly and efficiently, without the prohibitive cost of end-to-end training.
- Quality over Quantity for Fine-tuning: The authors found that their manually collected, high-quality MM-IT dataset, despite being smaller than some synthetic datasets, led to significant improvements in instruction-following. This suggests that carefully curated data is crucial for robust multimodal understanding.
- Scaling LLM Size Matters: The 70B parameter AnyMAL model consistently outperformed its smaller counterparts, underscoring the importance of scaling LLM size for complex multimodal reasoning, an aspect often overlooked in prior work.
- Versatility Beyond Vision: AnyMAL demonstrates strong performance not only in vision-language tasks but also in audio and IMU signal understanding, showcasing its true "any-modality" potential.
Key Results
- State-of-the-Art Performance: AnyMAL achieved state-of-the-art (SOTA) zero-shot performance on various multimodal tasks, including image captioning (e.g., +8.4% CIDEr on COCO) and audio captioning (e.g., +10.9pp CIDEr on AudioCaps).
- Human Evaluation Wins: In human evaluations for image-based reasoning, AnyMAL showed a smaller gap compared to human-annotated responses than baseline models like LLaVA and MiniGPT4, with the fully instruction-tuned model achieving the highest win rate.
- Efficient Training: The use of quantization allowed for training a 70B parameter model on a single 80GB VRAM GPU, a significant feat for such large models.
- Multimodal Reasoning Examples: The paper showcases impressive qualitative examples, such as generating a social media caption for a biking view combined with IMU sensor data, or describing a scene with interleaved image and motion cues.
Limitations and Future Work
- Grounding Challenges: The model occasionally prioritizes generated text over the input image, potentially inheriting biases from the LLM. This might require architectural adjustments or unfreezing LLM parameters, which would increase computational costs.
- Visual Concept Limitations: Understanding of visual concepts is still constrained by the quantity of paired image-text data. Incorporating external knowledge retrieval, similar to text-only LLMs, could enhance this.
- Modality Scope: The current work focuses on four modalities (image, video, audio, IMU). While the approach is extensible, its effectiveness with other modalities needs further substantiation.
- Future Work: The authors plan to explore further training with human feedback data (e.g., RLHF) to improve model safety and integrity. They also suggest that architectural adjustments or unfreezing LLM parameters could address grounding issues.
Summary updated