HyperAIHyperAI

Command Palette

Search for a command to run...

5 months ago

vid-TLDR: Training Free Token merging for Light-weight Video Transformer

Joonmyung Choi; Sanghyeok Lee; Jaewon Chu; Minhyuk Choi; Hyunwoo J. Kim

vid-TLDR: Training Free Token merging for Light-weight Video Transformer

Abstract

Video Transformers have become the prevalent solution for various video downstream tasks with superior expressive power and flexibility. However, these video transformers suffer from heavy computational costs induced by the massive number of tokens across the entire video frames, which has been the major barrier to training the model. Further, the patches irrelevant to the main contents, e.g., backgrounds, degrade the generalization performance of models. To tackle these issues, we propose training free token merging for lightweight video Transformer (vid-TLDR) that aims to enhance the efficiency of video Transformers by merging the background tokens without additional training. For vid-TLDR, we introduce a novel approach to capture the salient regions in videos only with the attention map. Further, we introduce the saliency-aware token merging strategy by dropping the background tokens and sharpening the object scores. Our experiments show that vid-TLDR significantly mitigates the computational complexity of video Transformers while achieving competitive performance compared to the base model without vid-TLDR. Code is available at https://github.com/mlvlab/vid-TLDR.

Code Repositories

mlvlab/vid-tldr
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
video-retrieval-on-activitynetvid-TLDR (UMT-L)
text-to-video R@1: 66.7
text-to-video R@10: 94.4
text-to-video R@5: 88.6
video-to-text R@1: 63.9
video-to-text R@10: 94.5
video-to-text R@5: 88.7
video-retrieval-on-didemovid-TLDR (UMT-L)
text-to-video R@1: 72.3
text-to-video R@10: 94.2
text-to-video R@5: 91.2
video-to-text R@1: 68.5
video-to-text R@10: 93.8
video-to-text R@5: 89.8
video-retrieval-on-lsmdcvid-TLDR (UMT-L)
text-to-video R@1: 43.1
text-to-video R@10: 71.4
text-to-video R@5: 64.5
video-to-text R@1: 40.7
video-to-text R@10: 63.6
video-to-text R@5: 70.2
video-retrieval-on-msr-vttvid-TLDR (UMT-L)
text-to-video R@1: 58.1
text-to-video R@10: 81.6
text-to-video R@5: 81.0
video-to-text R@1: 58.7
video-to-text R@10: 86.9
video-to-text R@5: 81.6
video-retrieval-on-msvdvid-TLDR (UMT-L)
text-to-video R@1: 57.9
text-to-video R@10: 89.4
text-to-video R@5: 83.8
video-to-text R@1: 82.7
video-to-text R@10: 96.3
video-to-text R@5: 94.5
video-retrieval-on-ssv2-label-retrievalvid-TLDR (UMT-L)
text-to-video R@1: 73.1
text-to-video R@10: 96.6
text-to-video R@5: 93.3
video-retrieval-on-ssv2-template-retrievalvid-TLDR (UMT-L)
text-to-video R@1: 90.2
text-to-video R@10: 100.0
text-to-video R@5: 100.0
visual-question-answering-on-msrvtt-qa-1vid-TLDR (UMT-L)
Accuracy: 0.470
visual-question-answering-on-msvd-qa-1vid-TLDR (UMT-L)
Accuracy: 0.549
zero-shot-video-retrieval-on-activitynetvid-TLDR (UMT-L)
text-to-video R@1: 42.8
text-to-video R@10: 79.6
text-to-video R@5: 69.4
video-to-text R@1: 41.2
video-to-text R@10: 79.1
video-to-text R@5: 68.2
zero-shot-video-retrieval-on-didemovid-TLDR (UMT-L)
text-to-video R@1: 52.0
text-to-video R@10: 81.0
text-to-video R@5: 74.0
video-to-text R@1: 52.0
video-to-text R@10: 83.8
video-to-text R@5: 75.9
zero-shot-video-retrieval-on-msr-vttvid-TLDR (UMT-L)
text-to-video R@1: 42.1
text-to-video R@10: 72.4
text-to-video R@5: 63.9
video-to-text R@1: 37.7
video-to-text R@10: 69.4
video-to-text R@5: 59.8
zero-shot-video-retrieval-on-msvdvid-TLDR (UMT-L)
text-to-video R@1: 50.0
text-to-video R@10: 85.5
text-to-video R@5: 77.6
video-to-text R@1: 75.7
video-to-text R@10: 95.1
video-to-text R@5: 90.0

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