SPHINX-X: Scaling Data and Parameters for a Family of Multi-modal Large Language Models

Dongyang Liu, Renrui Zhang, Longtian Qiu, Siyuan Huang, Weifeng Lin, Shitian Zhao, Shijie Geng, Ziyi Lin, Peng Jin, Kaipeng Zhang, Wenqi Shao, Chao Xu, Conghui He, Junjun He, Hao Shao, Pan Lu, Yu Qiao, Hongsheng Li, Peng Gao

Introduction

The rapid evolution of Multi-modal Large Language Models (MLLMs) has significantly advanced the state of artificial intelligence, yet many open-source models remain constrained by two primary factors: limited data diversity and rigid parameter scaling. Most existing frameworks struggle with specialized tasks such as dense OCR, document layout analysis, and complex mathematical reasoning, often because they are trained on narrow, natural-image datasets. Furthermore, the lack of architectural flexibility—with most models clustered around the 7B or 13B parameter mark—limits their utility across different hardware constraints, from mobile edge devices to high-performance computing clusters.

SPHINX-X addresses these challenges by introducing a versatile family of MLLMs that scales both parameter counts (from 1.1B to 8×7B) and data variety. By streamlining the architecture into a one-stage training paradigm and incorporating massive new datasets for OCR and visual grounding, SPHINX-X narrows the performance gap between open-source models and proprietary giants like GPT-4V.

Architectural Innovations

SPHINX-X builds upon the original SPHINX framework with several key improvements designed to enhance efficiency and performance:

Mixture of Visual Experts (MoV)

To optimize visual processing, the researchers transitioned from a four-encoder setup to a more efficient "Mixture of Visual Experts." By pruning the visual stack down to two complementary encoders—DINOv2 (self-supervised) and CLIP-ConvNeXt (weakly-supervised)—the model captures both fine-grained structural details and high-level semantic features without the redundant computational overhead of previous iterations.

Efficiency via Skip Tokens

High-resolution image processing often involves dividing images into sub-patches. In many cases, particularly with high-aspect-ratio images, several sub-patches consist primarily of empty padding. SPHINX-X introduces a learnable "skip token" that allows the model to bypass these uninformative regions. This mechanism provides necessary positional hints to the LLM while saving significant FLOPs by avoiding unnecessary processing of zero-value pixels.

One-Stage All-in-One Training

Traditional MLLM training typically involves a multi-stage process: first aligning the vision-language connector, then fine-tuning the language model. SPHINX-X simplifies this into a one-stage paradigm. By unfreezing the LLM and projection layers from the start and training on all data types simultaneously, the researchers found they could achieve superior alignment and performance more efficiently, provided the training data is of sufficiently high quality.

Scaling the Model Family

To provide a spectrum of capabilities, SPHINX-X utilizes different base Large Language Models (LLMs):

  • SPHINX-Tiny: Based on TinyLlama-1.1B, designed for mobile and edge applications.
  • SPHINX-Intern2: Based on InternLM2-7B, offering strong bilingual capabilities.
  • SPHINX-Plus: Based on LLaMA2-13B, balancing performance and resource requirements.
  • SPHINX-MoE: Based on Mixtral-8×7B, utilizing a Mixture-of-Experts architecture for high-end reasoning and complex multi-modal tasks.

Data Strategy: PaperText and Set-of-Mark

The performance of SPHINX-X is heavily attributed to a massive, multi-domain data collection effort, highlighted by two novel datasets:

  1. PaperText: A dataset comprising approximately 3 million text-dense pages rendered from PDFs (sourced from Common Crawl and arXiv). This provides the model with an advanced understanding of document layouts and fine-grained OCR capabilities.
  2. Multi-Domain Set-of-Mark (SoM): Leveraging GPT-4V, the researchers generated detailed captions for images where specific regions were highlighted with marks (boxes, points, polygons). This teaches the model to ground its language in specific visual coordinates, improving its ability to refer to and reason about specific image segments.

Key Results and Benchmarks

SPHINX-X demonstrates state-of-the-art performance across a wide array of benchmarks, often rivaling or exceeding proprietary models:

  • Reasoning and Science: SPHINX-MoE achieved top-tier results on MathVerse (15.6% overall) and SciVerse (37.3%), outperforming many larger models in mathematical and scientific reasoning.
  • Visual Understanding: On the MMVP (visual understanding) and AesBench (aesthetic perception) benchmarks, SPHINX-MoE outperformed GPT-4V, showcasing its superior ability to interpret complex visual scenes.
  • Video Generalization: Despite being trained exclusively on static images, SPHINX-Plus (13B) significantly outperformed dedicated video models like Video-ChatGPT on the Video-Bench suite by treating video frames as high-quality image sequences.
  • OCR Mastery: The inclusion of the PaperText dataset allowed SPHINX-X to excel at text-oriented VQA, significantly outperforming generalist models like LLaVA-1.5.

Limitations and Future Directions

While SPHINX-X represents a significant leap forward for open-source MLLMs, certain challenges remain. The model still faces gaps in highly specialized multi-disciplinary benchmarks like MMMU and CMMMU, which require college-level subject expertise. Additionally, as an image-based model, it lacks native temporal modeling for video, meaning it may struggle with complex motion or timing relationships compared to dedicated video architectures. Future work will focus on incorporating more expert-level data and refining temporal reasoning capabilities to further close the gap with the most advanced proprietary systems.

Summary updated

BibTeX
@inproceedings{liu2024sphinx,
  author = {Dongyang Liu and Renrui Zhang and Longtian Qiu and Siyuan Huang and Weifeng Lin and Shitian Zhao and Shijie Geng and Ziyi Lin and Peng Jin and Kaipeng Zhang and Wenqi Shao and Chao Xu and Conghui He and Junjun He and Hao Shao and Pan Lu and Yu Qiao and Hongsheng Li and Peng Gao},
  title = {{SPHINX-X: Scaling Data and Parameters for a Family of Multi-modal Large Language Models}},
  booktitle = {International Conference on Machine Learning},
  year = {2024},
  url = {https://openreview.net/forum?id=tDMlQkJRhZ},
}
Figure