[Paper Review] Two-Stream temporal transformer for video action classification
Introduces a two-stream video classifier using a transformer backbone to jointly model content (RGB frames) and movement (optical flow) with self-attention, achieving strong results on UCF101, HMDB51, and Something-Something V2.
Motion representation plays an important role in video understanding and has many applications including action recognition, robot and autonomous guidance or others. Lately, transformer networks, through their self-attention mechanism capabilities, have proved their efficiency in many applications. In this study, we introduce a new two-stream transformer video classifier, which extracts spatio-temporal information from content and optical flow representing movement information. The proposed model identifies self-attention features across the joint optical flow and temporal frame domain and represents their relationships within the transformer encoder mechanism. The experimental results show that our proposed methodology provides excellent classification results on three well-known video datasets of human activities.
Motivation & Objective
- Motivate improved video action recognition by leveraging transformer-based self-attention across content and motion representations.
- Propose a two-stream transformer architecture that fuses frame-based and optical flow features within a unified encoder.
- Evaluate performance on standard benchmarks and compare with state-of-the-art two-stream and transformer-based methods.
Proposed method
- Predict optical flow between consecutive frames with a neural flow model (RAFT).
- Process both RGB frames and predicted optical flow as inputs to a transformer encoder that learns spatio-temporal self-attention.
- Fuse the two streams via a two-stream transformer input schema and apply multi-head attention for joint representation learning.
- Use a pre-trained video transformer backbone (MViTv1/MViTv2/Swin) as temporal feature extractor and adapt with an 8-head MHA and 768-channel final features.
- Train with cross-entropy loss, apply dropout, and employ early stopping based on validation loss.
Experimental results
Research questions
- RQ1Can a transformer-based two-stream architecture effectively fuse appearance and motion information for action recognition?
- RQ2How does joint self-attention over RGB and optical-flow features compare to traditional fusion in two-stream networks?
- RQ3What performance gains are achievable on UCF101, HMDB51, and Something-Something V2 when using a two-stream transformer with pre-trained backbones?],
- RQ4key_findings':['The proposed two-stream transformer achieves significant improvements over baselines on UCF101 and HMDB51, with up to 10.9% relative improvement over the nearest baseline on UCF101 and up to 25.92% on HMDB51.','On Something-Something V2, the method shows notable gains over baselines with up to 6.82% absolute improvement without data augmentation.','Using RAFT-based optical flow and transformer fusion yields competitive results across datasets compared to MViTv1/MViTv2 and Swin backbones.','The two-stream fusion enables learning relationships between content and motion within the transformer encoder rather than simple feature concatenation.','Optical flow estimated from synthetic training data (FlyingChairs/FlyingThings3D) can generalize to real video, though noisy flow can occur and improves with better flow estimation.','The approach demonstrates strong results with small models (MViTv1-B, MViTv2-S, Swin-S) pretrained on Kinetics-400 and finetuned on target datasets.'],
- RQ5table_headers":[
Key findings
- The proposed two-stream transformer achieves significant improvements over baselines on UCF101 and HMDB51, with up to 10.9% relative improvement over the nearest baseline on UCF101 and up to 25.92% on HMDB51.
- On Something-Something V2, the method shows notable gains over baselines with up to 6.82% absolute improvement without data augmentation.
- Using RAFT-based optical flow and transformer fusion yields competitive results across datasets compared to MViTv1/MViTv2 and Swin backbones.
- The two-stream fusion enables learning relationships between content and motion within the transformer encoder rather than simple feature concatenation.
- Optical flow estimated from synthetic training data (FlyingChairs/FlyingThings3D) can generalize to real video, though noisy flow can occur and improves with better flow estimation.
- The approach demonstrates strong results with small models (MViTv1-B, MViTv2-S, Swin-S) pretrained on Kinetics-400 and finetuned on target datasets.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.