Introduction
Multimodal Large Language Models (MLLMs) typically bridge the gap between vision and language by using a simple connector, such as a Multi-Layer Perceptron (MLP), to project visual features into the language model's input space. However, this approach creates a fundamental structural misalignment: while textual inputs are discrete tokens indexed from a learnable embedding table, visual inputs remain continuous and unstructured. Ovis addresses this by introducing a structural alignment strategy that treats visual patches as "visual words," enabling a more seamless fusion of multimodal information.
Structural Embedding Alignment
The core innovation of Ovis is the replacement of standard linear connectors with a Structural Embedding Alignment mechanism. This architecture mimics the way Large Language Models (LLMs) process text by introducing a dedicated visual vocabulary.
The process involves three main components:
- Visual Tokenizer: A linear head maps continuous visual tokens from a pre-trained Vision Transformer (ViT) into a probability distribution over a large visual vocabulary (approximately 131k entries).
- Visual Embedding Table: A learnable look-up table stores embeddings for these visual "words."
- Probabilistic Indexing: To account for the semantic complexity of image patches, Ovis uses "soft quantization." Instead of a hard assignment to a single word, the final visual embedding is calculated as the expected value of entries from the visual embedding table, weighted by the tokenizer's output distribution.
This method preserves the nuance of visual data while providing the LLM with the structured input format it is optimized to handle. Analysis shows that these distributions are naturally sparse, with only a tiny fraction of the vocabulary being active for any given patch, mirroring the sparsity of natural language.
Training Methodology
Ovis is trained in a three-stage pipeline designed to progressively align the vision and language components:
- Stage 1 (Alignment): The LLM is frozen while the visual head and embedding table are trained on large-scale image-caption pairs (COYO-10M).
- Stage 2 (Refinement): The vision encoder and visual head are fine-tuned on high-quality, detailed image descriptions (ShareGPT4V).
- Stage 3 (Instruction Tuning): The entire model, including the LLM, is unfrozen for full-parameter multimodal instruction tuning using a mix of open-source and high-quality synthetic datasets.
Performance and Benchmarks
Ovis demonstrates state-of-the-art performance across a wide range of multimodal benchmarks, including MMMU, MMBench, and MathVista.
Key results include:
- Tier Dominance: Ovis-Llama3-8B outperforms comparable 7B-8B models like LLaVA-v1.5 and Monkey across almost all benchmarks.
- Surpassing Proprietary Models: Ovis-Qwen1.5-14B exceeds the performance of the high-resource proprietary model Qwen-VL-Plus overall.
- Reasoning and Hallucination: The model shows strong mathematical reasoning capabilities (scoring 43.4 on MathVista-Mini) and a reduced rate of hallucination in benchmarks like HallusionBench, suggesting that structural alignment provides a firmer "anchor" for visual reasoning.
Conclusion and Future Work
Ovis proves that structural alignment is a powerful alternative to simple projection-based connectors in MLLMs. By treating visual data with the same structural logic as text, Ovis achieves superior cross-modal fusion. Future iterations aim to address current limitations, such as handling high-resolution images through dynamic cropping and extending the architecture to support multi-image and video reasoning.
Summary updated