MOSAIC: Adaptive Inter-layer Composition for Efficient Heterogeneous Vision-Language Models

Yuncheng Yang, Feiyang Ye, Shixian Luo, Yinna Zhu, Lianlei Shan, Wangcai Zhao, Kuo Zhang, Yan Chen, Yong Wu, Yan XiearXiv 2026

TL;DR

MOSAIC is a new framework that automatically transforms standard, "homogeneous" Vision-Language Models (VLMs) into highly efficient "heterogeneous" architectures. By using a multi-objective search to mix different attention mechanisms (like linear and sparse attention) and pruning feed-forward networks, it achieves a 2.54x decoding speedup while matching the accuracy of its teacher model—all at less than 2% of the original training cost.

What Problem Does This Paper Address?

Modern Vision-Language Models (VLMs) are typically built using "homogeneous" Transformer architectures, where every layer uses the same dense self-attention mechanism. While effective, this is computationally expensive. The quadratic complexity of standard attention makes these models slow, especially when dealing with long video sequences or high-resolution images.

Researchers have tried building "heterogeneous" models that interleave efficient operators (like Mamba blocks or linear attention), but these designs are usually handcrafted with static, periodic patterns (e.g., "one full attention layer every four layers"). These manual designs are often sub-optimal and don't account for the fact that different hardware (GPUs vs. edge devices) handles different operators with varying efficiency. MOSAIC aims to automate this design process, making it both data-driven and hardware-aware.

Methods

The MOSAIC (Multi-Objective Search for Adaptive Inter-layer Composition) method consists of two main phases:

  1. Heterogeneous Architecture Search:
    • Search Space: For every layer, the algorithm can choose from a library of "efficient variants," including Grouped-Query Attention (GQA), Kimi Delta Attention (KDA), Gated Delta Networks (GDN), Multi-head Latent Attention (MLA), and Sliding Window Attention (SWA). It also searches for the optimal width of Feed-Forward Networks (FFN) through structured pruning.
  2. Multi-Objective Mixed Integer Programming (MIP): Instead of just looking at one metric, MOSAIC formulates a math problem to find the architecture that maximizes performance across multiple capabilities (like perplexity and benchmark scores) while staying strictly under a user-defined hardware latency budget.
  3. Two-Stage Parameter Recovery: Changing a model's architecture mid-stream usually tanks its performance. To fix this, the authors use:

  4. Global Off-Policy Distillation: Stabilizing the student model's internal representations by having it mimic the output distribution of the original teacher.

  5. Dual-Teacher On-Policy Distillation: A "best of both worlds" approach where the model learns from a massive 235B oracle teacher for new knowledge while using the original 4B teacher to maintain distributional stability.
Figure 2. Overview of the MOSAIC method, which consists of two steps: (1) Heterogeneous Architecture Search, which identifies the optimal structure via BLD and multi-objective MIP; (2) Two-Stage Parameter Recovery, which recovers model performance through global off-policy distillation followed by a dual-teacher on-policy distillation. The resulting MOSAIC-4B inherits heterogeneous designs, achieves significant inference acceleration and matches the performance of its homogeneous teacher.

Datasets

The authors utilized a diverse training corpus of approximately 32 million samples, including:

  • Text: Olmo3 and ClimbMix.
  • Multimodal: LLaVA-OneVision-1.5 (midtrain and instruct splits), LLaVA-Video-178K, and several reasoning datasets like CLEVR and NExT-QA.
  • Evaluation: A massive suite of 19 benchmarks, including MME, MMMU, and ScienceQA for images; MVBench and Video-MME for video; and ARC-Challenge and GSM-8K for text.

Key Insights and Ideas

  • Layer-Specific Needs: The search revealed that different depths of the network benefit from different mechanisms. Sliding Window Attention (SWA) is consistently preferred in shallow layers for local context, while Linear Attention (KDA/GDN) dominates the middle layers to drive latency reduction. Global mechanisms like MLA are retained in the final layers to aggregate high-quality representations.
  • The "Free Lunch" of Distillation: By starting with the weights of a pre-trained teacher and using a clever search/recovery pipeline, they achieved state-of-the-art efficiency with a tiny fraction (<2%) of the original training budget.
  • Beyond KL Divergence: A major finding was that searching based on KL divergence alone is insufficient. Incorporating actual downstream benchmark scores into the search objective (Multi-Objective MIP) significantly improved the final model's reasoning capabilities.

Key Results

The authors validated their method by creating MOSAIC-4B, derived from Qwen3-VL-4B-Instruct.

  • Speed: It achieved a 1.76x prefilling speedup and a 2.54x decoding acceleration (Time Per Output Token).
  • Accuracy: Despite the aggressive speedup, MOSAIC-4B matched the performance of the original Qwen3-VL-4B across 19 benchmarks, effectively outperforming other 2B and 4B heterogeneous baselines like InternVL3.5 and Molmo2.
  • Scalability: For users needing even more speed, a "Flash" variant achieved a 4.42x decoding speedup with only a minor (3-point) drop in overall average performance.
Figure 3. Left: The time to first token (TTFT) of Qwen3-VL-4B- Instruct and MOSAIC. Right: The time per output token (TPOT) of Qwen3-VL-4B-Instruct and MOSAIC, with the prefix length fixed at 96k tokens.

Limitations and Future Work

  • Hardware Dependency: Because the search is "hardware-aware," the optimal architecture found for one GPU (e.g., NVIDIA H800) might not be the absolute best for a different chip or an edge device.
  • Teacher Ceiling: The student model's performance is inherently influenced by the quality of the teacher models used during distillation.
  • Future Directions: The authors suggest exploring even larger search spaces and applying MOSAIC to massive models (70B+ parameters) to see if the efficiency gains scale linearly.

Summary updated

BibTeX
@misc{yang2026mosaic,
  author = {Yuncheng Yang and Feiyang Ye and Shixian Luo and Yinna Zhu and Lianlei Shan and Wangcai Zhao and Kuo Zhang and Yan Chen and Yong Wu and Yan Xie},
  title = {{MOSAIC: Adaptive Inter-layer Composition for Efficient Heterogeneous Vision-Language Models}},
  year = {2026},
  eprint = {2607.09029},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.09029},
}
Figure