TL;DR
VisionWeave introduces "elastic visual representation weaving," a native capability that allows Multimodal Large Language Models (MLLMs) to adaptively allocate visual tokens based on content. By using a gated spatial pooler and a learned granularity router, the system saves an average of 43% in visual tokens while retaining 98.9% of native performance, leading to a 2.3x throughput increase in production serving engines.
What Problem Does This Paper Address?
Modern MLLMs are computationally expensive because they process images and videos as dense, fixed-size grids of patch tokens. This "one-size-fits-all" approach is inefficient: a clear blue sky requires far less representational capacity than a dense block of handwritten text.
Existing solutions generally fall into two camps, both with flaws:
- Downsampling: Uniformly reduces resolution, sacrificing fine-grained details necessary for tasks like OCR or document understanding.
- Token Pruning/Merging: Heuristically removes tokens deemed "unimportant." These often create "holes" in the visual field, degrade performance on grounding tasks, and are notoriously difficult to integrate into optimized serving infrastructures like SGLang or vLLM.
VisionWeave seeks to make content-adaptive granularity a native capability of the model, ensuring the LLM can "weave" together fine and coarse representations without losing spatial coherence or task generalization.
Methods
The authors introduce two primary architectural components integrated into the Qwen model family:
- Gated Spatial Pooler: Instead of simple mean pooling, this learnable module maps 2x2 neighborhoods of patch features into a single "coarse" token. It uses content-dependent weighting to ensure that even compressed tokens retain the most salient information.
- Granularity Router: This module probes features at multiple depths of the Vision Transformer (ViT). It makes a binary decision for every 2x2 block: should we use four fine-grained tokens or one coarse-grained token?
A critical innovation is the use of Shared MRoPE (Multimodal Rotary Positional Embedding). To keep the LLM from getting confused by the mixed resolutions, coarse tokens are assigned half-integer coordinates corresponding to the geometric center of the four fine tokens they replace.
The model is trained via a three-stage self-distillation process:
- Coarse-grained Distillation: Training the pooler by forcing the model to use only coarse tokens.
- Soft-mixing Distillation: Training the router using a differentiable "soft" mixture of fine and coarse tokens.
- Mixed-granularity Distillation: Final fine-tuning on the actual "hard" routing logic used at inference.
Datasets
The models (Qwen3.5-4B and Qwen3.8-27B) were trained on a mixture of ~0.78 million samples across three domains:
- Image Understanding: LLaVA-OneVision.
- Video Understanding: LLaVA-Video-178K.
- GUI Grounding: UGround.
Evaluation spanned eight diverse benchmarks including RealWorldQA (natural images), DocVQA/InfoVQA (documents), ScreenSpotV2 (GUI), and Video-MME (video).
Key Insights and Ideas
- Granularity vs. Pruning: The authors argue that granularity is a better axis for efficiency than pruning. By keeping a coarse representation of "unimportant" areas rather than deleting them entirely, the model maintains full spatial coverage. This is why VisionWeave significantly outperforms baselines like FastV on grounding tasks.
- Native Integration: By treating this as a native capability learned through distillation, the model learns to "expect" mixed-granularity inputs. This avoids the training-inference mismatch that plagues post-hoc pruning methods.
- Serving-First Design: The method was designed to be compatible with SGLang. By doubling position coordinates and halving rotary frequencies, they successfully implemented half-integer RoPE support in standard serving kernels, proving that elastic representations can yield real-world speedups.
- Inference-Time Control: Users can adjust a "routing threshold" at runtime. This allows a single deployed model to switch between "high-accuracy mode" (more fine tokens) and "high-speed mode" (more coarse tokens) without retraining.
Key Results
- Performance Retention: On Qwen3.8-27B, VisionWeave retained 98.9% of the native model's performance while saving 43.0% of tokens. In contrast, pruning baselines like VisionZip dropped to ~88% performance at a similar 50% savings target.
- Throughput Gains: When deployed on SGLang using two A100 GPUs, VisionWeave achieved a 2.30x end-to-end throughput gain.
- Latency Reduction: The method reduced the mean Time to First Token (TTFT) by 54.4% and the mean Time Per Output Token (TPOT) by 60.6%.
- Robustness: As shown in Figure 5, VisionWeave maintains a more favorable Pareto frontier (accuracy vs. tokens) across different resolutions compared to standard downsampling.
Limitations and Future Work
- Training Cost: Establishing this capability is expensive, requiring over 30,000 A100 GPU-hours for the 27B model.
- Granularity Levels: The current work only explores two levels (1x1 and 2x2). The authors suggest that moving to richer, multi-scale representations (e.g., 4x4 or 8x8) could yield even higher gains.
- Pre-training: Currently, the capability is added via post-training distillation. The authors envision a future where elastic weaving is part of the base model's initial pre-training phase.
- Router Complexity: The current router is relatively simple; more sophisticated architectural choices for the router remain unexplored.
Summary updated