HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

TESTA: Temporal-Spatial Token Aggregation for Long-form Video-Language Understanding

Shuhuai Ren; Sishuo Chen; Shicheng Li; Xu Sun; Lu Hou

TESTA: Temporal-Spatial Token Aggregation for Long-form Video-Language Understanding

Abstract

Large-scale video-language pre-training has made remarkable strides in advancing video-language understanding tasks. However, the heavy computational burden of video encoding remains a formidable efficiency bottleneck, particularly for long-form videos. These videos contain massive visual tokens due to their inherent 3D properties and spatiotemporal redundancy, making it challenging to capture complex temporal and spatial relationships. To tackle this issue, we propose an efficient method called TEmporal-Spatial Token Aggregation (TESTA). TESTA condenses video semantics by adaptively aggregating similar frames, as well as similar patches within each frame. TESTA can reduce the number of visual tokens by 75% and thus accelerate video encoding. Building upon TESTA, we introduce a pre-trained video-language model equipped with a divided space-time token aggregation module in each video encoder block. We evaluate our model on five datasets for paragraph-to-video retrieval and long-form VideoQA tasks. Experimental results show that TESTA improves computing efficiency by 1.7 times, and achieves significant performance gains from its scalability in processing longer input frames, e.g., +13.7 R@1 on QuerYD and +6.5 R@1 on Condensed Movie.

Code Repositories

renshuhuai-andy/testa
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
video-question-answering-on-activitynet-qaTESTA (ViT-B/16)
Accuracy: 45
video-retrieval-on-activitynetTESTA (ViT-B/16)
text-to-video R@1: 54.8
text-to-video R@10: 89.6
text-to-video R@5: 80.8
video-retrieval-on-condensed-moviesTESTA (ViT-B/16)
text-to-video R@1: 24.9
text-to-video R@10: 55.1
text-to-video R@5: 46.5
video-retrieval-on-didemoTESTA (ViT-B/16)
text-to-video R@1: 61.2
text-to-video R@10: 91.5
text-to-video R@5: 87.2
video-retrieval-on-querydTESTA (ViT-B/16)
text-to-video R@1: 83.4
text-to-video R@10: 95.3
text-to-video R@5: 93.8

Build AI with AI

From idea to launch — accelerate your AI development with free AI co-coding, out-of-the-box environment and best price of GPUs.

AI Co-coding
Ready-to-use GPUs
Best Pricing
Get Started

Hyper Newsletters

Subscribe to our latest updates
We will deliver the latest updates of the week to your inbox at nine o'clock every Monday morning
Powered by MailChimp