TransVLM: A Vision-Language Framework and Benchmark for Detecting Any Shot Transitions

Ce Chen, Yi Ren, Yuanming Li, Viktor Goriachko, Zhenhui Ye, Zujin Guo, Zhibin Hong, Mingming GongarXiv 2026

TL;DR

The paper introduces TransVLM, a novel vision-language framework that reformulates traditional Shot Boundary Detection (SBD) into a continuous Shot Transition Detection (STD) task. By seamlessly fusing optical flow with RGB frames at the input stage, TransVLM equips Vision-Language Models (VLMs) with strong motion priors to detect both abrupt cuts and complex gradual transitions without incurring any additional computational token overhead.

What Problem Does This Paper Address?

Whether you are training a text-to-video generative model or building a video retrieval system, knowing exactly where one shot ends and another begins is crucial. Historically, this has been handled by Shot Boundary Detection (SBD), which treats the problem as a frame-wise binary classification task to find isolated cut points.

However, traditional SBD methods fall flat when encountering complex, gradual transitions like dissolves, fades, or wipes, frequently leaving behind "dirty" transitional frames. On the flip side, modern general-purpose Vision-Language Models (VLMs) excel at understanding high-level spatial semantics and gradual transitions, but they catastrophically miss fast, abrupt, or subtle cuts. This failure stems from two core limitations: VLMs are inherently biased toward static spatial semantics rather than fine-grained motion, and they rely on sparse, low-frame-rate inputs to avoid memory overflow.

To bridge this gap, the authors formalize the Shot Transition Detection (STD) task, shifting the objective from finding ambiguous boundary points to explicitly predicting continuous temporal segments as structured start and end timestamps.

Limitations of existing SBD and VLM methods across various transition types.

Methods

The authors propose TransVLM, built upon the Qwen3-VL-4B-Instruct backbone, incorporating three key strategies to master both abrupt and gradual transitions:

  1. Feature-Fusion for Motion Priors: To inject motion awareness without slowing down the model, TransVLM extracts optical flow using NeuFlow v2 and converts the raw vectors into a standardized 3-channel color visualization. It then concatenates the RGB frames and the optical flow frames along the channel dimension, creating a 6-channel input tensor. By only modifying the very first layer of the vision encoder (expanding input channels from 3 to 6), the visual token sequence length remains completely unchanged, introducing zero additional computational overhead for the heavy language backbone.
  2. Zero-Padding Weight Initialization: Directly expanding input channels normally risks destabilizing pre-trained models. The authors use a strict zero-padding strategy to initialize the new optical flow channel weights to zero. This ensures that at the start of fine-tuning, the model behaves identically to the original VLM, safely preserving its spatial knowledge while it gradually learns to leverage the motion prior.
  3. Temporal Sliding-Window Inference: To prevent out-of-memory errors on long videos, the framework processes videos using overlapping temporal windows (e.g., a 10-second window with a 9-second stride) and elegantly merges local predictions into global timelines using temporal Non-Maximum Suppression (NMS).
The overall TransVLM framework, including model architecture, data synthesis, and inference pipeline.

Datasets

To train and rigorously evaluate the model, the authors addressed a massive hurdle: public SBD datasets are heavily plagued by label omissions and class imbalances (often containing ~80% normal cuts and very few gradual transitions).

  • The Data Engine: The authors built a scalable data engine powered by FFmpeg that automatically synthesizes continuous video streams from clean shots, supporting 59 distinct transition types (wipes, slides, dissolves, etc.) alongside automatically generated, noise-free JSON labels.
  • The STD Benchmark: They manually re-annotated widely used public datasets (including RAI, BBC, AutoShot, ClipShots, MovieShots2, and SportsShot) to correct boundaries and eliminate noise. Combined with synthetic data, the final evaluation benchmark spans 5,215 videos containing 45,239 transitions, categorized by duration into Cut (<0.1s), Normal (≤1s), and Long (>1s).

Key Insights and Ideas

  • Optical Flow as a VLM Savior: Visualizing the internal token activations reveals that standard color tokens show weak response contrast during fast cuts. Injecting optical flow creates a significantly sharper response contrast at the exact transition frames, making subtle and abrupt cuts highly distinguishable to the language model.
  • Token Length Efficiency: Instead of using a dual-encoder architecture (one for video, one for motion) which would double the visual token count and cause self-attention computational costs to skyrocket, the channel-level concatenation trick keeps the model highly efficient.
  • Uncovering Legacy Label Noise: The authors discovered that public datasets frequently omit obvious shot transitions. By implementing a quality-aware mixed sampling strategy during training, they prevent these noisy public labels from dominating gradient updates.

Key Results

TransVLM demonstrates absolute dominance over traditional heuristic methods, specialized spatiotemporal networks, and top-tier general VLMs:

  • Public Benchmarks: TransVLM achieved a state-of-the-art segment-level $F_1$ score of 78.3% and a frame-level $F_1$ of 56.8%, outperforming highly specialized deep learning models like AutoShot.
  • Synthetic Benchmarks: On the highly challenging synthetic dataset filled with complex effects, TransVLM achieved an unprecedented segment-level $F_1$ of 89.5% and a frame-level $F_1$ of 93.8%, with an astonishingly low Absolute Boundary Error (ABE) of just 0.11 seconds.
  • Efficiency: TransVLM maintains a highly practical Real-Time Factor (RTF) of 0.50, meaning it processes video at twice the speed of real-time playback.

Limitations and Future Work

While TransVLM achieves top-tier precision, the authors note that measuring absolute boundary precision on public datasets remains slightly bottlenecked by the inherent subjective ambiguity of human annotations (i.e., exactly which frame a slow dissolve starts or ends is open to interpretation).

Potential future directions include directly integrating TransVLM into text-to-video (T2V) generation pipelines to automatically filter out unintended transitions during data curation.

Summary updated

Abstract

Traditional Shot Boundary Detection (SBD) inherently struggles with complex transitions by formulating the task around isolated cut points, frequently yielding corrupted video shots. We address this fundamental limitation by formalizing the Shot Transition Detection (STD) task. Rather than searching for ambiguous points, STD explicitly detects the continuous temporal segments of transitions. To tackle this, we propose TransVLM, a Vision-Language Model (VLM) framework for STD. Unlike regular VLMs that predominantly rely on spatial semantics and struggle with fine-grained inter-shot dynamics, our method explicitly injects optical flow as a critical motion prior at the input stage. Through a simple yet effective feature-fusion strategy, TransVLM directly processes concatenated color and motion representations, significantly enhancing its temporal awareness without incurring any additional visual token overhead on the language backbone. To overcome the severe class imbalance in public data, we design a scalable data engine to synthesize diverse transition videos for robust training, alongside a comprehensive benchmark for STD. Extensive experiments demonstrate that TransVLM achieves superior overall performance, outperforming traditional heuristic methods, specialized spatiotemporal networks, and top-tier VLMs. For more related research, please visit HeyGen Research (https://www.heygen.com/research) and HeyGen Avatar-V (https://www.heygen.com/research/avatar-v-model). Project page: https://chence17.github.io/TransVLM/
BibTeX
@misc{chen2026transvlm,
  author = {Ce Chen and Yi Ren and Yuanming Li and Viktor Goriachko and Zhenhui Ye and Zujin Guo and Zhibin Hong and Mingming Gong},
  title = {{TransVLM: A Vision-Language Framework and Benchmark for Detecting Any Shot Transitions}},
  year = {2026},
  eprint = {2604.27975},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2604.27975},
}

Loading related content...

Figure