[Paper Review] SPHINX: The Joint Mixing of Weights, Tasks, and Visual Embeddings for Multi-modal Large Language Models
SPHINX unfreezes the LLM during pre-training, mixes weights from real-world and synthetic data, mixes tuning tasks and visual embeddings, and uses high-resolution sub-image tokens to enhance multi-modal understanding.
We present SPHINX, a versatile multi-modal large language model (MLLM) with a joint mixing of model weights, tuning tasks, and visual embeddings. First, for stronger vision-language alignment, we unfreeze the large language model (LLM) during pre-training, and introduce a weight mix strategy between LLMs trained by real-world and synthetic data. By directly integrating the weights from two domains, the mixed LLM can efficiently incorporate diverse semantics with favorable robustness. Then, to enable multi-purpose capabilities, we mix a variety of tasks for joint visual instruction tuning, and design task-specific instructions to avoid inter-task conflict. In addition to the basic visual question answering, we include more challenging tasks such as region-level understanding, caption grounding, document layout detection, and human pose estimation, contributing to mutual enhancement over different scenarios. Additionally, we propose to extract comprehensive visual embeddings from various network architectures, pre-training paradigms, and information granularity, providing language models with more robust image representations. Based on our proposed joint mixing, SPHINX exhibits superior multi-modal understanding capabilities on a wide range of applications. On top of this, we further propose an efficient strategy aiming to better capture fine-grained appearances of high-resolution images. With a mixing of different scales and high-resolution sub-images, SPHINX attains exceptional visual parsing and reasoning performance on existing evaluation benchmarks. We hope our work may cast a light on the exploration of joint mixing in future MLLM research. Code is released at https://github.com/Alpha-VLLM/LLaMA2-Accessory.
Motivation & Objective
- Motivate expanding the capacity of multi-modal LLMs by integrating domain-diverse knowledge through weight mixing.
- Enable broad visual instruction-following via joint tuning on a diverse set of vision-language tasks.
- Improve visual representations by mixing embeddings from multiple backbones and pre-training paradigms.
- Address high-resolution visual perception by incorporating multi-scale and sub-image tokens.
- Explore practical extensions like language-referred segmentation and image editing through model integration.
Proposed method
- Unfreeze the entire LLM during pre-training to improve vision-language alignment while keeping vision encoders frozen.
- Introduce a weight-mixing strategy that linearly combines real-world and synthetic-domain LLM weights: theta_mix = beta * theta_real + (1 - beta) * theta_syn.
- Mix a broad set of tuning tasks to train the model for versatile visual instruction-following with task-specific prompts to avoid inter-task conflicts.
- Ensemble visual embeddings from diverse backbones (CNN and ViT, supervised and self-supervised, global and local) and concatenate them for robust image representations.
- Mix scales and high-resolution sub-images by processing multiple image crops and a downsampled version in parallel, concatenating token groups to enable fine-grained high-resolution understanding.
- Extend SPHINX with applications like language-referred segmentation by integrating with SAM and image editing via LaMa and Stable Diffusion; demonstrate SPHINX as a universal initialization for visual recognition tasks.
Experimental results
Research questions
- RQ1How does unfreezing the LLM during pre-training affect cross-modal alignment and language capability preservation?
- RQ2Does linear weight mixing of real-world and synthetic-domain LLMs improve robustness and domain-specific knowledge integration?
- RQ3Can joint mixing of multiple visual tasks and diverse embeddings yield superior multi-modal understanding across benchmarks?
- RQ4Can high-resolution sub-image strategies and multi-scale embedding mixtures improve fine-grained visual parsing and region-level reasoning?
- RQ5What are the practical extensions and downstream benefits of SPHINX when combined with other vision foundation models?
Key findings
- SPHINX surpasses previous state-of-the-art MLLM performances on 6 out of 10 benchmarks.
- High-resolution variants SPHINX-1k and SPHINX-2k show improved performance over the base SPHINX on several tasks, notably POPE.
- Mixed-scales high-resolution sub-images enable better fine-grained visual perception without retraining vision encoders.
- Mixed embeddings from diverse backbones and pre-training paradigms yield stronger vision-language alignment and robustness.
- The two-stage training with weight and task mixing maintains language modeling quality while enabling cross-modal capabilities.
- SPHINX demonstrates versatility across general VQA and text-oriented VQA benchmarks, achieving competitive results.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.