A Unified Image and Video Encoder for Multimodal LLMs

Tongtian Yue, Zikang Liu, Longteng Guo, Handong Li, Zhibin Wang, Jun Fu, Zijia Zhao, Xianing Chen, Jun Song, YuCheng, Bo Zheng, Jing LiuNeurIPS 2026

TL;DR

Today’s Multimodal Large Language Models (MLLMs) essentially watch videos like flipbooks—encoding each frame in isolation and forcing the language model to piece together what actually happened over time. This paper introduces FuxViT, a unified vision encoder with a 64K-token context window that processes spatial details and temporal motion together before the LLM ever sees them. By using a clever sparse attention mechanism to look back at only the most relevant past frames, it handles everything from crisp static documents to hour-long videos without melting your GPUs.

What Problem Does This Paper Address?

Imagine trying to follow the plot of a movie, except instead of watching it on a screen, someone hands you thousands of shuffled, isolated Polaroids and asks you to deduce the laws of motion and critique the dialogue simultaneously.

That is roughly what we ask MLLMs to do. Standard vision backbones (like CLIP or SigLIP) were built for static images. When given a video, they chop it into frames, encode each frame independently, and dump a massive, fragmented sequence of visual tokens onto the LLM. Because LLMs are pretrained on text, reconstructing low-level visual continuity from scratch is unnatural and computationally exhausting. Dedicated video encoders exist, of course, but they usually demand rigid resolutions and fixed frame counts, making them clumsy at reading static images. The field lacked a single, flexible visual front-end that understands time natively.

Figure 1: Video encoding paradigms for MLLMs. (A) Per-frame Encoding: Traditional ViTs en- code frames independently, forcing the LLM to infer temporal dynamics from fragmented snapshots. (B) Spatiotemporal Encoding (FuxViT): Our approach models cross-frame interactions within the visual encoder, directly producing temporally coherent evidence. Advantages: This early temporal integration yields information-dense tokens, enhances spatiotemporal grounding, and frees the LLM to focus on complex reasoning rather than temporal reconstruction.

Methods

Initialized from SigLIP2 and paired with a lightweight text decoder during a 4-stage progressive pretraining run (910B total tokens), FuxViT introduces three core innovations to unify images and videos:

  1. Native Spatiotemporal Resolution: Instead of squishing images into rigid squares or forcing fixed video frame rates, FuxViT treats everything as a 3D volume (where a static image just has time $T=1$) using 3D rotary positional embeddings (VRoPE). You can dynamically trade off spatial resolution for higher frame rates within a massive 64K-token budget.
  2. Frame Selective Attention (FSA): Running full self-attention across 64,000 tokens is a quadratic nightmare. FSA solves this with a block-causal design: tokens within the same frame attend to each other bidirectionally, while tokens looking into the past only attend to the Top-$K$ ($K=32$) most relevant historical frames. Relevance is cheaply computed by comparing a query token against the average key of each past frame. For single images, this gracefully simplifies back into standard full attention.
  3. Dual Visual Autoregressive Pretraining: Standard multimodal pretraining only asks the model to predict text captions. FuxViT adds two visual self-supervision losses (using stop-gradients to prevent collapse): Next-Patch Prediction (predicting the adjacent spatial patch to learn fine layout) and Next-Moment Prediction (predicting the exact same spatial patch in the next frame to learn motion).
Figure 2: The overall framework of FuxViT. It natively ingests images and videos at their original spatiotemporal resolutions, processing them through a Vision Transformer equipped with sparse at- tention for efficient long-range modeling. The extracted visual tokens are then fed into a multimodal decoder and jointly optimized through standard text supervision alongside a dual visual autoregres- sive objective to enforce both intra-frame spatial coherence and inter-frame temporal dynamics.

Datasets

While the exact proprietary/open pretraining corpus (spanning recaptioned images, short videos, and hour-scale videos) is deferred to the paper's appendix, the authors use a strict, standardized probing protocol to evaluate FuxViT against other encoders by pairing them with Qwen2-7B-Instruct and Qwen3-8B:

  • Downstream Alignment & Tuning: LLaVA-558K and LLaVA-OneVision (for images); Valley-702K and LLaVA-Video-178K (for videos).
  • Image Benchmarks (9): MMBench, OCRBench, TextVQA, DocVQA, ChartQA, InfoVQA, AI2D, RealWorldQA, and MMStar.
  • Video Benchmarks (7): Video-MME, MVBench, MLVU, NExT-QA, LongVideoBench, LVBench, and TimeScope. No new benchmarks are introduced.

Key Insights and Ideas

  • Frames are nature's semantic blocks: In ablations, routing sparse attention over arbitrary chunks of tokens (e.g., blocks of 256 or 1024 tokens) hurt accuracy because it sliced right through spatial layouts. Treating whole frames as the routing unit gave better accuracy at lower compute.
  • Early fusion buys massive token efficiency: When visual tokens already carry temporal context, you need far fewer of them. FuxViT processing just 16 frames matches the accuracy of a strong single-frame baseline (Qwen3-ViT) processing 64 frames, at a fraction of the total ViT + LLM FLOPs.
  • Content-based time travel: Visualizing FSA reveals that if an object (like a remote control) appears early in a video, vanishes during a long demonstration, and reappears minutes later, FSA dynamically spikes its attention right back to those early frames, bridging huge temporal gaps without keeping irrelevant middle frames in the compute budget.

Key Results

Across all 16 benchmarks, FuxViT (412M parameters) consistently beats image-centric (CLIP, SigLIP2, Qwen3-ViT), video-centric (VideoMAEv2, V-JEPA-2), and unified (OV-Encoder) baselines:

  • Image Mastery: Paired with Qwen3-8B, FuxViT hits a 76.3% average across the 9 image benchmarks (+2.4% over OV-Encoder and +3.1% over the larger 576M Qwen3-ViT), shining on fine-grained tasks like DocVQA (92.2%).
  • Video Dominance: Paired with Qwen3-8B, it scores 64.8% across the 7 video tasks (+4.0% over OV-Encoder). On TimeScope—a benchmark demanding long-horizon temporal tracking—it leaps to 79.9%, crushing OV-Encoder by +13.9%.
  • Compute Savings & Extrapolation: FSA retains near-identical accuracy to full attention (56.5% vs. 57.0% in ablations) while slashing ViT-side compute by ~72% (70.3 vs. 253.5 TFLOPs). Even better, despite training on a 64K token limit, FuxViT extrapolates zero-shot up to 256K tokens at inference time, pushing average video accuracy from 60.6% (at 64K) up to 62.8%.

Limitations and Future Work

The authors point out two main constraints:

  • Static Routing Budget: FuxViT currently hardcodes $K=32$ historical frames across every single layer. A static security camera feed and a chaotic action movie obviously have different temporal complexities, so future work will explore adaptive routing budgets tailored to visual content.
  • Single Model Scale: Experiments focus solely on an ~400M-parameter encoder. How this unified architecture scales down for edge devices—or scales up into the multi-billion-parameter regime—remains an open question for future exploration.

Summary updated

Abstract

Multimodal large language models (MLLMs) have rapidly advanced machine intelligence by integrating visual perception with powerful linguistic reasoning. However existing visual backbones predominantly encode videos in a rigid per-frame manner and delegate temporal modeling entirely to the language model. This paradigm fundamentally constrains long-range temporal understanding and imposes severe computational inefficiencies. To resolve these bottlenecks we propose FuxViT, a unified Vision Transformer natively supporting a 64K-token context window to seamlessly process diverse inputs ranging from static images to hour-scale videos. By employing a joint spatiotemporal pretraining paradigm, FuxViT generates highly coherent and information-rich visual representations. This strategic early fusion frees the downstream language model from reconstructing low-level temporal structures to focus entirely on high-level reasoning. Furthermore we introduce Frame Selective Attention (FSA) as a native sparse routing mechanism. FSA dynamically attends to the most relevant historical frames to achieve exceptional computational efficiency without sacrificing fine-grained spatial or temporal details. Extensive experiments across 16 image and video benchmarks demonstrate that FuxViT consistently outperforms existing baselines and establishes itself as a vastly superior alternative to standard static ViTs for multimodal understanding. We will fully open-source all model checkpoints.
BibTeX
@inproceedings{yue2026unified,
  author = {Tongtian Yue and Zikang Liu and Longteng Guo and Handong Li and Zhibin Wang and Jun Fu and Zijia Zhao and Xianing Chen and Jun Song and YuCheng and Bo Zheng and Jing Liu},
  title = {{A Unified Image and Video Encoder for Multimodal LLMs}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=9MSdZWbWLg},
}
Figure