Abstract
Current Video-LLMs often struggle with the "arrow of time," frequently failing to distinguish between directional actions like "pulling left" versus "pulling right." This paper introduces STAVEQ2, an architecture that integrates stacked temporal attention modules directly into the vision encoder. By interleaving temporal and spatial attention and utilizing 1D Rotary Position Embeddings, STAVEQ2 achieves state-of-the-art performance on temporal reasoning benchmarks, outperforming GPT-4o on Video-MME with a score of 73.9%.
The Challenge of Temporal Reasoning
Multimodal Large Language Models (MLLMs) have mastered static image description, but their video counterparts often treat clips as mere collections of frames. This approach delegates temporal sequence modeling entirely to the LLM backbone, which frequently fails to capture fine-grained dynamics.
The authors highlight a "temporal blindness" in existing models, noting that even top-tier models like Qwen2-VL struggle with directional tasks. Interestingly, they discovered an "In-Context Paradox" where few-shot prompting—providing examples in the prompt—actually decreased performance, suggesting a fundamental architectural deficit in processing temporal logic.
Methodology: Stacked Temporal Attention (STA)
STAVEQ2 addresses this by embedding temporal understanding within the vision encoder itself. The core innovation is the Stacked Temporal Attention (STA) module:
- Interleaved Layers: A dedicated temporal attention layer is added immediately after the spatial attention layer in each transformer block of the vision encoder.
- Parameter Efficiency: The temporal attention uses up to four times fewer heads than spatial attention, maintaining high performance with minimal computational overhead.
- 1D Rotary Position Embeddings (RoPE): While spatial layers use 2D RoPE for location, temporal layers use 1D RoPE to encode the sequence of events ("when").
- Two-Stage Training: The model is first trained by initializing temporal blocks to zero (preserving spatial capabilities) and then fine-tuned using LoRA to align spatiotemporal features with the LLM.
Datasets and Evaluation
The researchers developed new datasets to stress-test temporal logic:
- SSv2-T10: A subset of Something-Something v2 with 10 "temporal mirror" classes (e.g., "Pulling left to right" vs. "right to left").
- SSv2-VSM: A Visual Similarity Matching task requiring models to match actions based on temporal similarity.
- WebVid-QA: A curated instruction-tuning dataset.
Key Results
STAVEQ2 demonstrates superior performance across multiple benchmarks:
- Video-MME: STAVEQ2 72B achieved 73.9% accuracy, surpassing GPT-4o (71.9%).
- VITATECS: The 7B model reached 87.6% directional accuracy, significantly outperforming Qwen2.5-VL 7B (80.0%).
- Action Recognition: Applying STA to the InternVideo2 vision-only model set a new SOTA on the full SSv2 benchmark with 78.0% accuracy.
Conclusion
The success of STAVEQ2 suggests that temporal understanding should not be "outsourced" to the LLM. By encoding temporal relationships directly into visual tokens at the encoder level, the model achieves a more "native" understanding of video dynamics. Future work will explore scaling this architecture during the initial pretraining phases of foundation models to further unlock its potential.
Summary updated