TempFlex: Advancing MLLMs with Temporal Perception and Natively Scalable Resolution Encoding

Zhanyu Wang, Chen Tang, Haoyu He, Kuan Feng, Chao Wang, Bingni Zhang, Xiaolei Xu, Shen Wang, Luping ZhouTMLR 2025

TL;DR

This paper introduces TempFlex-VL, a novel multimodal large language model (MLLM) that tackles two key limitations in current models: excessive visual tokens and a lack of temporal reasoning. By employing a resolution-agnostic visual encoder and a Temporal Fiber Fusion module, TempFlex-VL achieves state-of-the-art performance on image and video tasks while significantly improving token efficiency.

What Problem Does This Paper Address?

Modern multimodal large language models (MLLMs) have shown impressive capabilities in understanding and reasoning across text, images, and videos. However, existing approaches often struggle with two main challenges:

  1. Excessive Visual Tokens and Broken Global Context: To handle high-resolution images, many MLLMs resort to "tiled patch encoding," where an image is broken into many small patches. This leads to an explosion in the number of visual tokens, overwhelming the model and disrupting the global context. It's like trying to understand a whole room by only looking at individual LEGO bricks without seeing how they fit together.
  2. Lack of Temporal Reasoning: For video understanding, most MLLMs treat each frame as an independent image, failing to capture the crucial temporal dynamics, motion patterns, and causal relationships that define video content. This is akin to watching a movie by looking at each frame in isolation, missing the narrative flow and action.

These limitations hinder MLLMs' ability to effectively process and reason about complex, high-resolution visual data, especially in video.

Methods

TempFlex-VL introduces two core architectural enhancements to address these problems:

  1. Resolution-Agnostic Visual Encoder: Instead of tiling images, TempFlex-VL uses a vision encoder (SigLIP2-patch16-naflex) that can directly process images at their native resolution. This preserves the global context and significantly reduces the number of visual tokens compared to tiled approaches. The authors achieve this by extending the positional embedding length and using a pixel unshuffle operation with a patch merger to compress features while maintaining spatial integrity. This is like being able to zoom out and see the whole picture without losing detail.
  2. Temporal Fiber Fusion (TFF): This is a lightweight, plug-and-play module designed to inject temporal reasoning into frame-level features. TFF operates on "temporal fibers" – sequences of features from the same spatial location across different frames. It comprises three complementary pathways:
  3. Local Path: Uses dynamic convolutions to capture fine-grained motion between adjacent frames.
  4. Memory Path: Employs a gated accumulator to maintain long-term dependencies.
  5. Periodic Path: Uses a periodic encoder to detect recurring patterns (like flashes or oscillations). These pathways are adaptively fused, allowing the model to learn diverse temporal structures without overfitting. This is like having specialized sensors to detect different types of movement and patterns in a video.

Datasets

  • TempFlex-2M: A newly curated, large-scale synthetic video-text corpus containing 2 million samples. This dataset was generated in a single stage using GPT-4o with direct visual prompting, aiming for temporally aligned and semantically rich narrations. It's designed to overcome the information bottlenecks of previous multi-stage synthetic data generation methods.
  • Existing Datasets: The paper also leverages existing datasets for training and evaluation, including LLaVA-Video-178K, FineVideo, OpenVid-1M, VATEX, and others for image-text alignment and instruction tuning.

Key Insights and Ideas

  • Native Resolution is Key for Efficiency and Context: The paper strongly demonstrates that processing images at their native resolution, rather than tiling, is crucial for both preserving global context and drastically reducing token count. This offers a significant efficiency gain without sacrificing accuracy.
  • Decomposing Temporal Reasoning: The Temporal Fiber Fusion module's success highlights the benefit of explicitly modeling different temporal aspects (local motion, long-term memory, periodic patterns) and fusing them. This modular approach allows for better adaptation to diverse video content.
  • Synthetic Data for Temporal Understanding: The creation of TempFlex-2M underscores the growing importance of high-quality synthetic data, particularly for complex tasks like video instruction tuning, where diverse and temporally rich annotations are essential.
  • Generality Across LLM Backbones: TempFlex-VL's architecture is shown to be effective when instantiated with different LLM backbones (Gemma3-4B and Qwen3-4B), indicating its broad applicability.

Key Results

  • State-of-the-Art Performance: TempFlex-VL variants achieved state-of-the-art or competitive results on numerous image and video benchmarks, including MMStar, MMBench, AI2D, DocVQA, TextVQA, MMBench-Video, MLVUval, LongVideoBenchval, and TempCompass.
  • Token Efficiency: The native resolution encoding strategy reduced visual token count by at least 72% compared to tiled-patch encoding. For example, at 1152x1152 resolution, TempFlex generated 2,048 tokens compared to 7,290 for tiled-patch.
  • Improved Accuracy on High-Resolution Tasks: TempFlex significantly outperformed baselines on high-resolution benchmarks like DocVQA (90.1% vs. 47.6% for fix-resolution and 85.4% for tiled-patch).
  • Effective Temporal Reasoning: The Temporal Fiber Fusion module contributed to significant performance improvements across video benchmarks, confirming its effectiveness in capturing temporal dynamics.
  • Qualitative Success: The paper includes qualitative examples showcasing TempFlex-VL's ability to understand fine-grained visual details, document content, and complex video narratives.

Limitations and Future Work

  • Lack of Reinforcement Learning: While TempFlex-VL benefits from strong supervised pre-training, it has not been post-trained with reinforcement learning (RL) techniques. The authors suggest that integrating RL for reward modeling and preference optimization could further align its outputs with user preferences and push its capabilities beyond the current supervised ceiling.
  • Further Exploration of Temporal Dynamics: While TFF is effective, future work could explore more advanced temporal modeling techniques or further refine the fusion mechanisms.

Summary updated

BibTeX
@article{wang2025tempflex,
  author = {Zhanyu Wang and Chen Tang and Haoyu He and Kuan Feng and Chao Wang and Bingni Zhang and Xiaolei XU and SHEN WANG and Luping Zhou},
  title = {{TempFlex: Advancing MLLMs with Temporal Perception and Natively Scalable Resolution Encoding}},
  journal = {Accepted by TMLR},
  year = {2025},
  url = {https://openreview.net/forum?id=ietYdtRB3h},
}
Figure