Skip to main content
QUICK REVIEW

[Paper Review] Time Is MattEr: Temporal Self-supervision for Video Transformers

Sukmin Yun, Jaehyung Kim|arXiv (Cornell University)|Jul 19, 2022
Human Pose and Action RecognitionComputer Science8 citations
TL;DR

This paper proposes TIME (Time Is MattEr), a simple yet effective self-supervised method to improve video representation learning by explicitly debiasing Video Transformers from spurious spatial correlations and enhancing temporal modeling. It introduces frame-order prediction and temporal flow direction prediction as auxiliary tasks, significantly boosting performance on Something-Something-v2 and improving robustness to background shifts in image classification.

ABSTRACT

Understanding temporal dynamics of video is an essential aspect of learning better video representations. Recently, transformer-based architectural designs have been extensively explored for video tasks due to their capability to capture long-term dependency of input sequences. However, we found that these Video Transformers are still biased to learn spatial dynamics rather than temporal ones, and debiasing the spurious correlation is critical for their performance. Based on the observations, we design simple yet effective self-supervised tasks for video models to learn temporal dynamics better. Specifically, for debiasing the spatial bias, our method learns the temporal order of video frames as extra self-supervision and enforces the randomly shuffled frames to have low-confidence outputs. Also, our method learns the temporal flow direction of video tokens among consecutive frames for enhancing the correlation toward temporal dynamics. Under various video action recognition tasks, we demonstrate the effectiveness of our method and its compatibility with state-of-the-art Video Transformers.

Motivation & Objective

  • To address the limitation that Video Transformers are biased toward learning spatial dynamics rather than temporal dynamics.
  • To investigate whether self-supervised temporal modeling can improve video representation learning beyond architectural innovations.
  • To reduce spurious correlations between spatial features and video action recognition by enforcing low-confidence predictions on shuffled frames.
  • To enhance temporal modeling by learning the flow direction of video tokens across consecutive frames.
  • To demonstrate compatibility and consistent gains across multiple state-of-the-art Video Transformers on action recognition benchmarks.

Proposed method

  • Introduces a frame-level self-supervised task to predict the correct temporal order of video frames, using cross-entropy loss on the predicted order.
  • Implements a debiasing objective that penalizes high-confidence predictions on randomly shuffled video frames, using KL divergence to encourage uncertainty.
  • Proposes a token-level self-supervision task to predict the temporal flow direction (9 types: 8 directions + center) between consecutive frames using an attention-based module.
  • Leverages Gunnar Farnebäck’s optical flow algorithm to generate ground-truth flow labels for the token-level task.
  • Applies the loss functions jointly with the main video classification objective in an end-to-end trainable manner.
  • Extends the method to image classification by adapting the frame-order and debiasing objectives to reduce background bias, showing improved robustness on backgrounds challenge benchmarks.

Experimental results

Research questions

  • RQ1Can self-supervised temporal modeling effectively reduce the bias of Video Transformers toward spatial dynamics in video understanding?
  • RQ2Does learning the temporal order of frames improve the generalization and robustness of video representations?
  • RQ3Can predicting the flow direction of video tokens enhance the model's ability to capture long-range temporal dependencies?
  • RQ4To what extent can the proposed self-supervised objectives improve performance across diverse Video Transformer architectures?
  • RQ5Can the same self-supervised principles be extended to image classification to mitigate background bias?

Key findings

  • The proposed TIME method consistently improves state-of-the-art Video Transformers on the Something-Something-v2 benchmark, demonstrating strong compatibility and performance gains.
  • On the Something-Something-v2 dataset, the method significantly reduces the accuracy gap between original and shuffled videos, indicating reduced spatial bias.
  • The model achieves a 58.91% top-1 accuracy on the Only-FG background shift benchmark, improving from 50.27% with the baseline, showing strong robustness to background shifts.
  • The frame-order prediction and debiasing objectives contribute orthogonally to performance gains, with the combined loss yielding a 58.91% accuracy compared to 54.15% with only the order loss.
  • The method generalizes to image classification, improving top-1 accuracy from 77.26% to 83.26% on ImageNet-9 and from 50.27% to 58.91% on the Only-FG background shift benchmark.
  • The synergy between temporal order prediction and background debiasing leads to a significant and consistent performance boost across multiple benchmarks, confirming the method's robustness and generalizability.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.