TL;DR
Phantom is a family of lightweight Large Language and Vision Models (LLVMs, from 0.5B to 7B parameters) that rivals much larger closed- and open-source models. It introduces Phantom Dimension—a mechanism that temporarily doubles the latent hidden dimension during self-attention via cross-attention with the sequence start token—paired with Phantom Optimization (PO), a preference-tuning strategy that actively penalizes ambiguous or incorrect answers during vision-language alignment.
What Problem Does This Paper Address?
While vision-language models have scaled rapidly to tens of billions of parameters (e.g., 26B to 80B), running them on edge devices, smartphones, or robotics platforms remains impractical due to severe memory and compute constraints. Prior lightweight LLVM efforts generally compress architectures, prune weights, or bolt on extra visual encoders and specialized projectors. However, these techniques often fail to expand the model's fundamental capacity to store and reason over multimodal representations within constrained parameters.
The authors address a central challenge: How can we substantially increase the representation capacity and learning capabilities of compact LLVMs without permanently bloating physical parameter counts or compromising pretrained language representations?
Methods
Phantom introduces two primary components:
- Phantom Dimension:
- Standard attention projects hidden states to dimension $d$. In Phantom, the start-of-sequence (
sos) token representation from the linear QKV projection is cross-attended with user prompt tokens via Multi-Head Cross-Attention (MHCA) to produce dynamic expansion matrices ($Q^*_l, K^*_l, V^*_l$). - These matrices are concatenated dimension-wise with the original query, key, and value matrices, effectively doubling the latent attention dimension from $d$ to $2d$ during Multi-Head Self-Attention (MHSA).
- After attention, the $2d$ representation is split into two halves and compressed back to $d$ via a gating mechanism that uses learned, softmax-normalized weighted averaging.
- Overhead: This adds only 1.2M to 6.2M parameters per model (a negligible fraction of total weights) and adds only ~10% latency overhead during inference when combined with FlashAttention-2 and custom key-value caching.
- Phantom Optimization (PO):
- Rather than solely relying on standard autoregressive Supervised Fine-Tuning (SFT), Phantom applies a SimPO-inspired reference-free preference loss ($L_\text{PO}$) alongside SFT to steer the model toward correct answers and explicitly suppress incorrect/confusing ones.
- Crucially, PO is applied only in Stage 1 (aligning vision and language while the pretrained LLM backbone is frozen, training only the projector and Phantom Dimension modules). In Stage 2, all weights are unfrozen for end-to-end instruction tuning. Confining PO to Stage 1 prevents degrading the base LLM’s generative capabilities.
Input (X) ---> Linear QKV ---> [Q_l, K_l, V_l]
|
(sos token slice)
v
MHCA Expansion ---> [Q*_l, K*_l, V*_l]
|
Concatenate along hidden dimension: [Q_l; Q*_l], [K_l; K*_l], [V_l; V*_l] (Size: 2d)
|
Expanded MHSA
|
Split into halves & Softmax Weighted Averaging ---> Output (Size: d)
Datasets
- Pretraining & Alignment: 2.8M visual instruction samples spanning diverse capabilities (from ShareGPT4o, ShareGPT4V, ALLaVA, MiniGemini, LLaVA-HD, mPLUG-DocOwl1.5, MathInstruct, MathPlus, etc.).
- Phantom Triples (Curated): 2M tuples of
(question, correct_answer, incorrect_or_ambiguous_answer). Negative samples were generated via GPT-4o-mini, filtered with GPT-4o, and validated through human spot-checks. - Evaluation Benchmarks: Evaluated comprehensively across 15+ benchmarks including MM-Vet / MM-Vet-v2, MathVista, ChartQA, ScienceQA-IMG, BLINK, SEED-Bench-2-Plus, LLaVA-Wilder, MMStar, and VisualWebBench.
Key Insights and Ideas
- Latent expansion without parameter explosion: Instead of adding more transformer layers or wider feed-forward blocks, temporarily expanding hidden dimensions specifically inside attention provides a transient workspace for multimodal interaction without inflating inference KV-cache size or parameter counts permanently.
- Timing of Preference Optimization matters: Applying preference optimization (PO) across the entire model in end-to-end tuning degrades generative fluency. Applying PO strictly during the frozen-LLM alignment stage guides visual grounding without harming language priors.
- Learned compression outperforms naive operations: Weighted-average projection back to dimension $d$ consistently outperforms simple averaging or summation.
Key Results
- Phantom-7B outperforms larger & closed models:
- Achieves 70.8 on MM-Vet (outperforming GPT-4V at 63.6, LLaVA-NeXT-34B at 47.3, and Qwen2-VL-7B at 62.0).
- Reaches 70.9 on MathVista (surpassing GPT-4V's 69.1 and Cambrian-1-8B's 49.0).
- Scores 87.8 on ChartQA and 83.7 on LLaVA-Wilder (beating GPT-4V at 71.5).
- Extreme sub-billion efficiency:
- Phantom-0.5B hits 45.7 on MM-Vet and 51.7 on MathVista, compared to LLaVA-OneVision-0.5B's 29.1 and 34.8.
- Ablations validate both components:
- Disabling Phantom Dimension drops Phantom-7B's MM-Vet score from 70.8 to 54.8.
- Adding Phantom Dimension and Phantom Triples to external models (e.g., LLaVA-OneVision-72B and Qwen2-VL-72B) yields consistent improvements (+8.1 and +5.6 on MM-Vet, respectively).
Limitations and Future Work
- Architectural implementation requirements: Incorporating cross-attention and custom dimension splitting within self-attention requires low-level transformer modifications rather than drop-in weight swaps.
- Reliance on frontier models for negative generation: Generating and filtering 2M high-quality negative and ambiguous responses required proprietary closed-source models (GPT-4o / GPT-4o-mini).
- Future Work: The authors plan to investigate layer-wise cross-architecture distillation to transfer multimodal representations directly from larger open LLVMs into compact designs without relying on proprietary synthetic pipelines.
Summary updated