HyperAIHyperAI

Command Palette

Search for a command to run...

3 months ago

Implicit Temporal Modeling with Learnable Alignment for Video Recognition

Shuyuan Tu Qi Dai Zuxuan Wu Zhi-Qi Cheng Han Hu Yu-Gang Jiang

Implicit Temporal Modeling with Learnable Alignment for Video Recognition

Abstract

Contrastive language-image pretraining (CLIP) has demonstrated remarkable success in various image tasks. However, how to extend CLIP with effective temporal modeling is still an open and crucial problem. Existing factorized or joint spatial-temporal modeling trades off between the efficiency and performance. While modeling temporal information within straight through tube is widely adopted in literature, we find that simple frame alignment already provides enough essence without temporal attention. To this end, in this paper, we proposed a novel Implicit Learnable Alignment (ILA) method, which minimizes the temporal modeling effort while achieving incredibly high performance. Specifically, for a frame pair, an interactive point is predicted in each frame, serving as a mutual information rich region. By enhancing the features around the interactive point, two frames are implicitly aligned. The aligned features are then pooled into a single token, which is leveraged in the subsequent spatial self-attention. Our method allows eliminating the costly or insufficient temporal self-attention in video. Extensive experiments on benchmarks demonstrate the superiority and generality of our module. Particularly, the proposed ILA achieves a top-1 accuracy of 88.7% on Kinetics-400 with much fewer FLOPs compared with Swin-L and ViViT-H. Code is released at https://github.com/Francis-Rings/ILA .

Code Repositories

francis-rings/ila
Official
pytorch
Mentioned in GitHub

Benchmarks

BenchmarkMethodologyMetrics
action-classification-on-kinetics-400ILA (ViT-B/32)
Acc@1: 82.4
Acc@5: 95.8
action-classification-on-kinetics-400ILA (ViT-B/16)
Acc@1: 85.7
Acc@5: 97.2
action-classification-on-kinetics-400ILA (ViT-L/14)
Acc@1: 88.7
Acc@5: 97.8
action-recognition-in-videos-on-somethingILA (ViT-L/14)
Top-1 Accuracy: 70.2
Top-5 Accuracy: 91.8
action-recognition-in-videos-on-somethingILA (ViT-B/16)
Top-1 Accuracy: 66.8
Top-5 Accuracy: 90.3

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
Implicit Temporal Modeling with Learnable Alignment for Video Recognition | Papers | HyperAI