Efficient Movie Scene Detection using State-Space Transformers

Md Mohaiminul Islam, Mahmudul Hasan, Kishan Shamsundar Athrey, Tony Braskich, Gedas Bertasius
12/29/2022
cs.CV
transformer-attentionstate-space-mamba

Official code: md-mohaiminul/TranS4mer (34 stars, Python, Apache-2.0, last commit 2023-06-02).

Abstract

The ability to distinguish between different movie scenes is critical for understanding the storyline of a movie. However, accurately detecting movie scenes is often challenging as it requires the ability to reason over very long movie segments.

Show full abstract

This is in contrast to most existing video recognition models, which are typically designed for short-range video analysis. This work proposes a State-Space Transformer model that can efficiently capture dependencies in long movie videos for accurate movie scene detection. Our model, dubbed TranS4mer, is built using a novel S4A building block, which combines the strengths of structured state-space sequence (S4) and self-attention (A) layers. Given a sequence of frames divided into movie shots (uninterrupted periods where the camera position does not change), the S4A block first applies self-attention to capture short-range intra-shot dependencies. Afterward, the state-space operation in the S4A block is used to aggregate long-range inter-shot cues. The final TranS4mer model, which can be trained end-to-end, is obtained by stacking the S4A blocks one after the other multiple times. Our proposed TranS4mer outperforms all prior methods in three movie scene detection datasets, including MovieNet, BBC, and OVSD, while also being $2\times$ faster and requiring $3\times$ less GPU memory than standard Transformer models. We will release our code and models.

View on arXivView PDF

Code Implementations(1)

Apache-2.0
343Python, CudaJun 2, 20233 years agoApache-2.0

Similar Papers

Cite this paper

@article{islam2022efficient,
  title  = {Efficient Movie Scene Detection using State-Space Transformers},
  author = {Md Mohaiminul Islam and Mahmudul Hasan and Kishan Shamsundar Athrey and Tony Braskich and Gedas Bertasius},
  year   = {2022},
  eprint = {2212.14427},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2212.14427}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2212.14427.svg)](https://codeofpaper.com/paper/2212.14427)

Discussion