UFVideo: Towards Unified Fine-Grained Video Cooperative Understanding with Large Language Models

Hewen Pan, Cong Wei, Dashuang Liang, Zepeng Huang, Pengfei Gao, Ziqi Zhou, Lulu Xue, Pengfei Yan, Xiaoming Wei, Minghui Li, Shengshan Hu

TL;DR

UFVideo is the first Video Large Language Model (Video LLM) that unifies video understanding across global, pixel, and temporal scales within a single architecture. By introducing a novel visual-language guided alignment strategy and a new cooperative benchmark (UFVideo-Bench), the model demonstrates that multi-grained video tasks—like textual QA, pixel-level segmentation, and timestamp grounding—can mutually enhance one another, outperforming both specialized models and strong commercial baselines like GPT-4o.

What Problem Does This Paper Address?

While multi-modal LLMs have made massive strides in video analysis, existing models suffer from fragmentation. They are typically specialized for isolated tasks: some excel at global understanding (e.g., video captioning and open-ended QA), others at pixel-level tasks (e.g., object tracking and segmentation), and some at temporal grounding (locating when an event happens).

However, real-world video understanding is inherently multi-grained and cooperative. For instance, a system might need to identify an object, track its precise pixel mask, and determine the exact time window of its action all at once. Existing Video LLMs isolate these granularities during generation, failing to leverage the natural synergy where temporal context helps object referring, and holistic video knowledge aids fine-grained segmentation. UFVideo bridges this gap by unifying global, pixel, and temporal scales into a single model.

Methods

UFVideo achieves unified multi-grained video understanding through a single LLM backbone combined with a vision encoder (SigLIP-so400m) and a mask decoder (adapted from SAM2).

[Video & Text Input] ──> [Vision Encoder / Tokenizer] ──> [LLM Backbone] ──> Text / Time Outputs
                                                                │
                                                                └──> [SAM2 Mask Decoder] ──> Pixel Masks

The core technical innovations include:

  • Visual-Language Guided Alignment: The authors introduce specialized tokens to handle different granularities uniformly within the text space:
  • <Video> for video frame inputs.
  • <Ref> as a placeholder to inject object-specific visual prompt features.
  • <Seg> to mark where the LLM should generate segmentation masks. The hidden states corresponding to these tokens are extracted and mapped via a projection layer to the SAM2 mask decoder.
  • Relative Temporal Tokens (<Temp-τ>): Instead of forcing the LLM to predict absolute timestamps (e.g., "3.2s"), which vary wildly across videos, UFVideo samples video durations into a fixed number of bins ($N_t = 100$). The model learns to predict these relative bins, which are then scaled back to actual timestamps.
  • Two-Phase Training Strategy:
    • Stage 1 (Alignment): The model aligns temporal grounding and segmentation tasks using 58K temporal grounding and 70K segmentation data samples.
  • Stage 2 (Joint Training): The entire architecture (projector, LLM, and mask decoder) is jointly trained on approximately 3 million multi-task samples to foster mutual task enhancement.

Datasets

The model was evaluated across a comprehensive suite of 9 public benchmarks alongside a newly introduced dataset:

  • UFVideo-Bench (New): A benchmark specifically designed to evaluate multi-grained video cooperative understanding. It introduces three distinct collaborative tasks:
  • PixRQA (Pixel-level Video Referring QA): Combines question answering with pixel-level object segmentation.
  • PixHQA (Pixel-level Video Highlight QA): Requires answering questions and segmenting objects at specific, highlighted timestamps.
  • PixTRQA (Pixel-level Video Temporal Retrieval QA): The most challenging task, requiring the model to output a textual answer, locate the temporal event window, and generate pixel masks simultaneously.
  • Public Benchmarks: MVBench (general video QA); VideoRefer-Bench-D & Q (object referring); MeViS, Ref-YouTube-VOS, Ref-DAVIS17, and ReVOS (video object segmentation); and Charades-STA (temporal grounding).
Figure 1. Illustration of the video understanding tasks supported by UFVideo. To the best of our knowledge, UFVideo is the first unified method flexibly supports general video understanding, temporal video grounding, video object referring, referring and reasoning video object segmentation. Representative examples from a novel UFVideo-Bench demonstrating joint multi-grained video cooperative understanding through three tasks: PixRQA, PixHQA and PixTRQA.

Key Insights and Ideas

  • The Synergy of Granularities: A key "aha moment" from the ablation studies is that training a model on pixel-level segmentation and temporal grounding simultaneously does not dilute performance. Instead, the tasks are complementary: learning fine-grained temporal boundaries improves spatial segmentation, and vice versa.
  • The Power of Relative Time Bins: Autoregressive LLMs struggle with absolute numerical timestamps. Discretizing time into relative tokens (<Temp-τ>) provides a uniform token space that allows the LLM to reason about time as easily as it reasons about text.
  • Seamless Mask Decoding: By treating segmentation masks as language-driven embeddings extracted via a special <Seg> token, the model successfully bridges the gap between autoregressive text generation and dense pixel prediction without requiring separate, disjoint pipelines.

Key Results

UFVideo achieves state-of-the-art performance across all evaluated granularities:

  • General Video Understanding: On MVBench, UFVideo (7B) achieved an average score of 67.3%, outperforming GPT-4V (43.5%) and matching/surpassing top open-source models like Qwen2-VL-7B (67.0%).
  • Reasoning Video Segmentation: On the challenging ReVOS benchmark, which requires segmenting objects based on implicit, complex instructions, UFVideo achieved a J&F score of 64.8, outperforming the previous state-of-the-art video LLM, RGA3 (58.0), by a massive 11.7%.
  • Temporal Grounding: On Charades-STA, it achieved 44.7% tIoU, outperforming specialized temporal models like LLaVA-ST (42.4%).
  • Cooperative Tasks (UFVideo-Bench): UFVideo consistently outperformed massive commercial models like GPT-4o and strong open baselines (Qwen3-VL) across PixRQA, PixHQA, and PixTRQA tasks, proving the value of its unified training architecture.

Limitations and Future Work

  • Fixed Temporal Resolution: The model relies on a fixed number of temporal tokens ($N_t=100$). While effective for short-to-medium clips, this fixed binning strategy might limit the precision of temporal grounding in extremely long videos (e.g., full-length movies or hours-long surveillance footage).
  • Computational Complexity: Dynamic embedding training is required for each batch due to the varying number of objects requested for segmentation, which introduces engineering and computational overhead.
  • Future Directions: The authors suggest exploring tighter integration of audio modalities and scaling up the underlying LLM backbone to further boost complex, multi-step video reasoning capabilities.

Summary updated

BibTeX
@inproceedings{pan2026ufvideo,
  author = {Hewen Pan and Cong Wei and Dashuang Liang and Zepeng Huang and Pengfei Gao and Ziqi Zhou and Lulu Xue and Pengfei Yan and Xiaoming Wei and Minghui Li and Shengshan Hu},
  title = {{UFVideo: Towards Unified Fine-Grained Video Cooperative Understanding with Large Language Models}},
  booktitle = {IEEE/CVF Conference on Computer Vision and Pattern Recognition},
  year = {2026},
  url = {https://openreview.net/forum?id=dtTWiyAJHD},
}
Figure