TL;DR
This paper introduces SAIL, a novel single-transformer architecture for vision-language understanding that eliminates the need for a separate pre-trained vision encoder. SAIL demonstrates comparable performance to modular models while exhibiting superior data scalability and a more direct, vision-centric information flow, suggesting a promising direction for future multimodal AI development.
What Problem Does This Paper Address?
Multimodal Large Language Models (MLLMs) have shown remarkable progress in understanding and generating content that combines vision and language. However, most existing MLLMs adopt a modular design, relying on a pre-trained vision encoder (like CLIP-ViT) to extract image features, which are then processed alongside text by a large language model (LLM). This modularity, while effective, introduces several limitations: it slows down training and inference, increases deployment complexity, and can limit flexibility. Furthermore, it creates a dependency on external vision encoders, potentially hindering end-to-end learning and scalability. This paper addresses the question of whether a simpler, unified architecture – a single Transformer processing raw image patches and text tokens directly – can achieve competitive performance and what its fundamental properties are, particularly concerning scalability, information flow, and visual representation capabilities.
Methods
The core innovation of SAIL lies in its unified architecture, which eschews a separate vision encoder. Instead, it processes raw image patches and text tokens within a single Transformer. Key methodological adaptations include:
- Mixed Attention Mechanism: For text tokens, standard causal attention is used to maintain autoregressive generation. However, for image tokens within the same image, bidirectional attention is employed. This allows for a richer understanding of spatial relationships and contextual dependencies among visual elements.
- Multimodal Rotary Position Embeddings (M-ROPE): To handle the 2D nature of images and the 1D nature of text, M-ROPE is used to encode positional information, adapting to both height and width for images and maintaining consistency across modalities.
- Unified Input Processing: Image patches are projected into embeddings via a linear layer, and special tokens (
<vision>,</vision>) are used to delineate image spans within the multimodal sequence. - Two-Stage Pretraining:
- Stage 1 (Accelerated Visual Knowledge Acquisition): Focuses on bootstrapping visual understanding by training on large-scale image-text pairs with lower image resolution (224x224) to maximize data throughput. Pure text corpora are interleaved to prevent catastrophic forgetting of linguistic knowledge.
- Stage 2 (Enhancing Any-Resolution Image Understanding): Aims to improve robustness to varying image resolutions by processing images at their native sizes. This stage refines fine-grained visual detail understanding.
- Supervised Fine-Tuning (SFT): The entire network is fine-tuned on multimodal instruction datasets to enhance its ability to follow complex instructions and engage in dialogue.
Datasets
The paper utilizes a combination of publicly available datasets for training and evaluation:
Pretraining Datasets: * Stage 1: Recap-DataComp-1B, SlimPajama (text-only) * Stage 2: Capfusion, OCR from LAION COCO, InfinityMM Stage 2 subset, SlimPajama (text-only)
Supervised Fine-Tuning (SFT) Dataset: * InfinityMM Stage 3 subset
Evaluation Benchmarks: * Vision-Language Tasks: MMBench-EN, SEEDBench-IMG, MMVet, MME, HallusionBench, Math VistaMINI, OCR-Bench, TextVQA, ScienceQA-IMG, AI2D, MM-Star, RealWorldQA. * Vision Representation Learning: ImageNet-1K (classification), ADE20K (semantic segmentation), ARO (attribute, relation, ordering).
Key Insights and Ideas
- The Power of Simplicity: A single Transformer architecture can achieve performance comparable to complex modular MLLMs, challenging the necessity of separate vision encoders.
- Superior Data Scalability: SAIL shows a steeper performance gain as pretraining data increases, suggesting that unified architectures can leverage large-scale data more effectively than modular ones.
- Vision-Centric Information Flow: SAIL exhibits a more direct information flow from visual tokens to prediction tokens compared to modular MLLMs, indicating a stronger emphasis on visual grounding.
- Emergent Vision Encoder: The pre-trained SAIL model inherently functions as a powerful vision encoder, capable of strong performance on vision-only tasks like semantic segmentation, even without explicit vision-specific pre-training objectives.
- Bidirectional Attention for Vision is Key: Enabling bidirectional attention among image patches significantly boosts visual representation learning and overall performance, a feature often overlooked in previous single-transformer MLLMs.
- Importance of Text Data in Pretraining: Interleaving pure text data during pretraining is crucial for maintaining robust language capabilities in the LLM component of the unified model.
Key Results
- Vision-Language Performance: SAIL achieves performance comparable to state-of-the-art modular MLLMs on various vision-language benchmarks, consistently outperforming other single-transformer models.
- Vision Representation: On ImageNet-1K, SAIL achieves a Top-1 accuracy of 84.06% and a Top-5 accuracy of 97.48%, significantly outperforming existing encoder-free alternatives. For semantic segmentation on ADE20K, it achieves an mIoU of 55.30%.
- Scalability: As model size increases, SAIL's training loss decreases, and its performance on downstream VLM tasks improves. In data scaling experiments, SAIL's performance catches up to and matches modular MLLMs at larger data scales (512M image-text pairs).
- Task-Specific Strengths/Weaknesses: SAIL excels at spatial reasoning tasks (e.g., MME Position split) but shows weaknesses in tasks requiring extensive world knowledge, potentially due to less diverse pretraining data.
Limitations and Future Work
- World Knowledge Gap: SAIL underperforms in tasks demanding extensive world knowledge compared to modular MLLMs. The authors hypothesize this is due to a lack of diverse domain-specific data during pretraining, suggesting that scaling up pretraining data diversity could address this.
- Data Diversity for Knowledge-Intensive Tasks: Future work could focus on incorporating more diverse pretraining data to improve performance on knowledge-intensive tasks.
- Further Refinement of Unified Architectures: The authors hope their findings inspire further research to refine and enhance single-transformer architectures for multimodal intelligence.
- Exploring Attention Mechanisms: The paper highlights the under-explored potential of attention mechanisms in cross-modal alignment, suggesting further research in this area.
Summary updated