Abstract
This paper introduces SAIL, a single transformer unified multimodal large language model (MLLM) that integrates raw pixel encoding and language decoding within a singular architecture. Unlike existing modular MLLMs, which rely on a pre-trained vision transformer (ViT), SAIL eliminates the need for a separate vision encoder, presenting a more minimalist architecture design. Instead of introducing novel architectural components, SAIL adapts mix-attention mechanisms and multimodal positional encodings to better align with the distinct characteristics of visual and textual modalities. We systematically compare SAIL's properties—including scalability, cross-modal information flow patterns, and visual representation capabilities—with those of modular MLLMs. By scaling both training data and model size, SAIL achieves performance comparable to modular MLLMs. Notably, the removal of pretrained ViT components enhances SAIL's scalability and results in significantly different cross-modal information flow patterns. Moreover, SAIL demonstrates strong visual representation capabilities, achieving results on par with ViT-22B in vision tasks such as semantic segmentation.
Introduction
Most current Multimodal Large Language Models (MLLMs), such as LLaVA, utilize a "modular" architecture where a frozen, pre-trained vision encoder (ViT) extracts features that are subsequently projected into a Large Language Model (LLM). While effective, this approach suffers from fragmentation between visual and textual processing, inflexibility due to reliance on specific pre-trained biases, and increased complexity in aligning disparate modules.
The SAIL (Single trAnsformer for vIsion and Language) framework addresses these issues by processing raw image patches and text tokens together within a single Transformer backbone. This research investigates whether such a unified architecture can scale effectively to match or exceed the performance of modular systems.
Methodology
SAIL utilizes a standard Transformer backbone, initialized from Mistral-7B, with specific modifications to handle multimodal inputs:
- Unified Architecture: Images are partitioned into raw patches and projected directly into the same embedding space as text tokens, removing the need for a separate ViT.
- Mixed Attention Mechanism: To accommodate the different natures of vision and language, SAIL employs bidirectional attention for image patches (allowing global visual context) and causal attention for text tokens (preserving generative capabilities).
- Multimodal RoPE (M-RoPE): Rotary Positional Embeddings are adapted to handle 2D spatial coordinates for images and 1D sequences for text, ensuring the model maintains spatial awareness.
The training process involves two stages: an initial accelerated knowledge acquisition phase using low-resolution images (224x224) on 512 million pairs, followed by an "Any-Resolution" training phase to capture high-resolution details necessary for tasks like OCR and chart analysis.
Empirical Analysis and Results
The core finding of this study is the "Scaling Cross-Over." While modular models benefit from pre-trained encoders in low-data regimes, SAIL exhibits a significantly steeper scaling curve. As training data reaches 512 million samples, SAIL's performance converges with and begins to match modular counterparts.
Key Insights
- Visual Grounding: Attention map analysis shows that SAIL allocates 60-80% of its attention to image tokens during text prediction, compared to only 10-30% in modular models like LLaVA. This indicates superior visual grounding.
- Emergent Vision Capabilities: Despite not being trained as a standalone vision model, SAIL's internal representations allow it to perform on par with ViT-22B in semantic segmentation tasks.
- Spatial Reasoning: SAIL significantly outperforms modular models on benchmarks requiring geometric and positional understanding, such as the MME Position split.
Across 13 vision-language benchmarks, SAIL-7B achieves a normalized average score of 60.51, matching LLaVA-1.5 and outperforming other encoder-free models like EVE.
Discussion and Conclusion
While SAIL demonstrates impressive scalability and visual grounding, it currently lags in "World Knowledge" (e.g., identifying rare entities) compared to models using CLIP/SigLIP encoders pre-trained on billions of web images. However, the results suggest that scaling data diversity and model parameters can bridge this gap. SAIL proves that a simpler, unified architecture is not only viable but potentially superior for deep cross-modal integration and spatial reasoning.
Summary updated