TC-LLaVA: Rethinking the Transfer of LLava from Image to Video Understanding with Temporal Considerations

Mingze Gao, Jingyu Liu, Mingda Li, Jiangtao Xie, Qingbin Liu, Kevin Zhao, Xi Chen, Hui Xiong

Abstract

Multimodal Large Language Models (MLLMs) have significantly improved performance across various image-language applications. Recently, there has been a growing interest in adapting image pre-trained MLLMs for video-related tasks. However, most efforts concentrate on enhancing the vision encoder and projector components, while the core part, Large Language Models (LLMs), remains comparatively under-explored. In this paper, we propose two strategies to enhance the model's capability in video understanding tasks by improving inter-layer attention computation in LLMs. Specifically, the first approach focuses on the enhancement of Rotary Position Embedding (RoPE) with Temporal-Aware Dual RoPE, which introduces temporal position information to strengthen the MLLM's temporal modeling capabilities while preserving the relative position relationships of both visual and text tokens. The second approach involves enhancing the Attention Mask with the Frame-wise Block Causal Attention Mask, a simple yet effective method that broadens visual token interactions within and across video frames while maintaining the causal inference mechanism. Based on these proposed methods, we adapt LLaVA for video understanding tasks, naming it Temporal-Considered LLaVA (TC-LLaVA). Our TC-LLaVA achieves new state-of-the-art performance across various video understanding benchmarks with only supervised fine-tuning (SFT) on video-related datasets.

Introduction

Most current video MLLMs treat a video simply as a long sequence of concatenated image frames. This approach suffers from two major flaws: Modality Blindness and Temporal Neglect. Vanilla attention mechanisms treat visual and text tokens identically, failing to account for the unique spatial-temporal relationships inherent in video data. Standard position embeddings, like RoPE, assign unique IDs to every token in sequence, ignoring the fact that tokens within the same frame share a temporal context.

Comparison between Vanilla Attention and TC Attention in describing complex yoga poses. TC Attention captures the temporal sequence of actions more accurately.

This neglect often results in "hallucinations," where models fail to capture complex motion and generate inaccurate descriptions. TC-LLaVA addresses this by rethinking how the LLM itself processes temporal data, ensuring the "brain" of the model is structurally aware of time.

Methods

TC-LLaVA introduces two core architectural modifications to the LLM's attention mechanism to better handle video sequences.

1. Temporal-Aware Dual RoPE (TAD-RoPE)

Standard Rotary Position Embeddings (RoPE) provide global relative positioning. TC-LLaVA adds a second, temporal-aware layer where all visual tokens belonging to the same video frame are assigned the same temporal position ID. This allows the model to preserve global sequence order while explicitly encoding inter-frame relationships, helping the LLM understand the passage of time across the video sequence.

2. Frame-wise Block Causal Attention Mask (FwBC)

Standard LLMs use a causal mask, restricting tokens to only attend to preceding tokens. While necessary for text generation, this is overly restrictive for visual tokens. The FwBC mask allows visual tokens within the same frame to attend to each other bidirectionally in a block-wise fashion. However, it maintains a causal relationship across different frames and for the final text output, balancing spatial understanding with the causal logic required for language modeling.

The overall architecture of TC-LLaVA, highlighting the Temporal-Aware Dual RoPE and the Frame-wise Block Causal Mask within the TC Attention Layer.

Results and Discussion

TC-LLaVA was trained on a massive collection of 783k video instruction samples and evaluated across major benchmarks including MSVD-QA, MSRVTT-QA, and MVBench.

Key findings include:

  • State-of-the-Art Performance: TC-LLaVA (7B) achieved an average score of 56.6% on MVBench, leading other open-source models and maintaining a 13.1% lead over GPT-4V across 20 diverse tasks.
  • Superiority over GPT-4V: The model outperformed GPT-4V by 2.5% on MSVD-QA and 7.9% on TGIF-QA, demonstrating the effectiveness of temporal-aware attention.
  • Temporal Precision: Significant gains were observed in time-sensitive tasks such as Action Sequence (AS), Moving Count (MC), and State Change (SC).

Conclusion

TC-LLaVA demonstrates that the LLM is a critical component in video understanding that requires structural awareness of time. By introducing TAD-RoPE and FwBC masks, the model achieves a better balance between spatial and temporal comprehension. Future work will explore scaling these attention patterns to longer video sequences and extending the temporal-aware logic to other modalities like audio.

Summary updated

BibTeX
@inproceedings{gao2025tc,
  author = {Mingze Gao and Jingyu Liu and Mingda Li and Jiangtao Xie and Qingbin Liu and Kevin Zhao and Xi Chen and Hui Xiong},
  title = {{TC-LLaVA: Rethinking the Transfer of LLava from Image to Video Understanding with Temporal Considerations}},
  booktitle = {AAAI Conference on Artificial Intelligence},
  year = {2025},
  url = {https://openreview.net/forum?id=T1D6wbZ6IR},
}
Figure