Abstract
Generic Event Boundary Detection (GEBD) aims to identify taxonomically independent action boundaries in videos. While essential for temporal video understanding, current state-of-the-art methods are bottlenecked by the computational overhead of decoding compressed video into raw RGB frames. This paper presents an end-to-end framework that operates directly on compressed video data. By leveraging the internal structure of modern codecs—specifically motion vectors and residuals—the proposed method achieves a significant speedup of 4.5x over previous top-performing models while establishing new state-of-the-art accuracy on major benchmarks.
Introduction
The primary challenge in scaling video AI is the "decoding bottleneck." Most deep learning models require raw RGB frames, necessitating a full decompression of the video stream before processing. This process is computationally expensive and storage-intensive. While compressed-domain methods have been explored for action recognition, they often lack the precision required for boundary detection. The difficulty lies in effectively fusing information between high-quality static I-frames and the sparse, motion-heavy P-frames that constitute a compressed video stream.
This research introduces a novel architecture designed to handle the Group of Pictures (GOP) structure of modern codecs like MPEG-4. By treating the compressed data as a first-class citizen, the model avoids redundant decoding and focuses on the inherent motion cues already present in the bitstream.
Methodology
The proposed framework consists of three primary components designed to extract and contrast features within the compressed domain.
1. Spatial-Channel Compressed Encoder (SCCE)
The SCCE is the core innovation of the architecture. In a standard GOP, P-frames only store the changes (residuals) and movement (motion vectors) relative to a reference I-frame. Instead of treating P-frames as degraded images, the SCCE uses high-quality features from the I-frame to "guide" the representation of subsequent P-frames. Through a dual-attention mechanism, the encoder refines features across both spatial dimensions (locating movement) and channel dimensions (identifying objects), ensuring that the sparse P-frame data is enriched by the anchor I-frame's context.
2. Temporal Contrastive Module
To detect a boundary, the model employs a temporal contrastive approach. It analyzes a window of frames preceding and following a candidate timestamp. By calculating the contrast between these two temporal windows, the model identifies significant transitions that signify a "natural" break in action. This approach effectively mimics human perception, which identifies boundaries based on changes in visual consistency.
3. Gaussian Label Smoothing
Boundary annotation is inherently subjective; different annotators may select frames that are slightly offset from one another. To mitigate this ambiguity and improve model convergence, the authors implement Gaussian Label Smoothing. Rather than using binary "hard" labels (0 or 1), the model uses a Gaussian kernel to generate "soft" labels. This allows the model to receive partial credit for predictions that are temporally close to the ground truth, leading to more robust training.
Experimental Results
The model was evaluated primarily on the Kinetics-GEBD dataset, which contains over 54,000 videos and 1.29 million boundaries. To test generalization, the authors also conducted experiments on the UCF101 and HMDB51 action recognition datasets.
Performance and Efficiency
- Accuracy: On Kinetics-GEBD, the model achieved an average F1 score of 0.865, representing an 11.8% absolute improvement over previous baselines.
- Inference Speed: The model processes frames at approximately 4.5ms per frame. In comparison, previous state-of-the-art methods like CLA and CASTANET require 90.2ms and 93.9ms respectively. This represents a massive leap in efficiency, making real-time boundary detection feasible.
- Parallelization: By utilizing a "back-tracing" technique, the model allows every P-frame in a GOP to depend only on the I-frame. This breaks the sequential dependency chain typical of video decoding, enabling massive parallelization during inference.
Discussion and Future Work
While the framework demonstrates exceptional speed and accuracy, it is currently optimized for the GOP structures found in MPEG-4 and H.264. Future iterations may need to adapt to emerging codecs like AV1. Additionally, the sensitivity of the Temporal Contrastive Module to the window size ($k$) suggests that multi-scale windowing could further improve recall for complex transitions.
The success of this compressed-domain approach suggests a paradigm shift for video AI. By bypassing the decoding stage, high-latency tasks such as video object detection and long-term action forecasting could become significantly more accessible for real-world deployment.
Summary updated