Temporal Perceiver: A General Architecture for Arbitrary Boundary Detection

Jing Tan, Yuhong Wang, Gangshan Wu, Limin Wang

TL;DR

Temporal Perceiver is a unified Transformer-based architecture designed to detect video boundaries at any granularity—from rapid camera shots to long-form movie scenes. By using a small set of "latent queries" to compress redundant video data, it achieves state-of-the-art accuracy across five major benchmarks while reducing computational complexity from quadratic to linear.

What Problem Does This Paper Address?

In long-form video understanding, the first step is often segmenting the video into meaningful units. This is known as Generic Boundary Detection (GBD). However, GBD is challenging because boundaries occur at different scales:

  1. Shot-level: Rapid transitions between camera angles.
  2. Event-level: Changes in action or subject (e.g., a kid sitting down vs. making a snowman).
  3. Scene-level: High-level plot transitions in movies.

Historically, researchers built specialized, fragmented models for each level—using simple CNNs for shots and complex LSTMs for scenes—often followed by messy post-processing steps like "watershed" algorithms to clean up results. Furthermore, standard Transformers struggle with long videos because their memory usage grows quadratically ($O(N^2)$) with video length. The authors sought a single, efficient architecture that could handle any boundary type without specialized "hacks."

Methods

The authors introduce the Temporal Perceiver, which treats boundary detection as a sparse query-based task (inspired by DETR). The architecture consists of two main stages:

  • Latent Compression (The Encoder): Instead of processing every frame with full self-attention, the model uses a small set of learnable latent feature queries ($M$) to "read" the input video ($N$ frames) via cross-attention. This reduces complexity to $O(NM)$, making it linear relative to video length.
  • Boundary Queries: Specifically designed to attend to regions of semantic incoherence (transitions).
  • Context Queries: Designed to cluster regions of semantic coherence (redundant frames within a segment).
  • Alignment Loss: To ensure the boundary queries actually look at boundaries, the authors propose a novel loss that forces the cross-attention maps to align with high-probability boundary candidates.
  • Sparse Detection (The Decoder): A Transformer decoder takes the compressed latent features and uses a set of proposal queries to directly regress the final boundary locations and confidence scores. This eliminates the need for manual post-processing.

Datasets

The model was evaluated on five diverse benchmarks covering different granularities:

  • SoccerNet-v2: Shot-level boundaries in sports broadcasts.
  • Kinetics-GEBD & TAPOS: Event-level boundaries in action and Olympic videos.
  • MovieScenes & MovieNet: Scene-level boundaries in full-length feature films.

Key Insights and Ideas

  • Redundancy is a Feature, Not a Bug: The authors realized that most frames in a video segment are semantically redundant. By forcing the model to compress these into "context queries," they free up the "boundary queries" to focus exclusively on the transitions.
  • Linear Scaling: By fixing the number of latent units ($M$), the model can process much longer video sequences than a standard Transformer without hitting memory walls.
  • Unified Logic: The paper proves that shot, event, and scene detection are fundamentally the same mathematical problem—identifying semantic incoherence—just at different temporal scales.
  • End-to-End Simplicity: By using a sparse detection head, the model outputs a clean list of timestamps, avoiding the "double-counting" issues that plague dense prediction models.

Key Results

The Temporal Perceiver achieved State-of-the-Art (SOTA) results on all five benchmarks using only RGB features:

  • Kinetics-GEBD: 86.0% average-f1 score.
  • SoccerNet-v2: 81.9% average-mAP.
  • MovieNet: 53.3% AP, outperforming previous multi-modal SOTA models despite using only visual data.
  • Efficiency: On the MovieNet dataset, it processed videos 6x faster than the previous leading method (LGSS) and used significantly fewer FLOPs (49G vs 8141G).

Limitations and Future Work

  • Backbone Dependency: The model currently relies on a pre-trained ResNet50 or CSN backbone to extract initial features. Its performance is capped by the quality of these features.
  • Compression "Sweet Spot": Ablation studies showed that compressing the video too much (below 50% of original length) leads to information loss, while too little compression retains too much noise/redundancy.
  • Future Directions: The authors suggest integrating multi-modal inputs (audio and subtitles) into the Perceiver framework, which could further boost performance in complex movie scene detection where dialogue is a key boundary indicator.

Summary updated

BibTeX
@article{tan2024temporal,
  author = {Jing Tan and Yuhong Wang and Gangshan Wu and Limin Wang},
  title = {{Temporal Perceiver: A General Architecture for Arbitrary Boundary Detection}},
  journal = {IEEE Transactions on Pattern Analysis and Machine Intelligence},
  year = {2024},
  url = {https://openreview.net/forum?id=U97EXSimqB},
}
Figure