SnapCap: Efficient Snapshot Compressive Video Captioning

Jianqiao Sun, Yudi Su, Hao Zhang, Ziheng Cheng, Zequn Zeng, Zhengjue Wang, Bo Chen, Xin YuanarXiv 2024 · DOI

Abstract

Traditional video captioning (VC) systems rely on a computationally expensive "reconstruct-then-caption" pipeline, which introduces significant latency and redundancy. We present SnapCap, a novel end-to-end framework that generates captions directly from snapshot compressive measurements. By leveraging knowledge distillation from a pre-trained CLIP teacher and a dual-objective training strategy, SnapCap bypasses video reconstruction entirely. Experimental results on MSRVTT and MSVD benchmarks demonstrate that SnapCap achieves state-of-the-art captioning performance while operating 3x to 38x faster than existing two-stage methods and requiring substantially less GPU memory.

Introduction

Standard video captioning pipelines typically follow a "capture-compress-decompress-caption" sequence. High-definition cameras capture frames that are compressed for storage or transmission. To generate a caption, the system must first reconstruct the original video frames—a process that is computationally intensive and often redundant if the final goal is a high-level semantic description rather than pixel-perfect restoration.

This "reconstruct-then-caption" approach is inherently inefficient. The authors propose that semantic understanding can be achieved directly from compressed sensor data. However, snapshot compressive sensing (SCS) measurements are often heavily blurred and visually unrecognizable to standard computer vision models, making direct "blind" captioning a significant technical challenge.

Comparison of the SnapCap end-to-end pipeline (c) against traditional (a) and two-stage reconstruction-based (b) solutions.

Methodology

SnapCap utilizes Video Snapshot Compressive Sensing (SCS), specifically systems like the Coded Aperture Compressive Temporal Imaging (CACTI) camera. In this setup, multiple high-speed video frames are modulated by dynamic masks and integrated into a single 2D measurement. To bridge the gap between these blurry measurements and meaningful text, SnapCap employs three primary strategies:

  1. Knowledge Distillation (KD) from CLIP: A "Teacher-Student" architecture is employed where a teacher model (using a pre-trained CLIP image encoder) extracts language-aligned visual features from original high-quality frames. The SnapCap student model is trained to extract nearly identical features from the compressed measurements.
  2. Dual-Objective Training: The model includes a Video Reconstruction Regularization branch during training. This forces the encoder to capture essential spatial and temporal details. Crucially, this module is discarded during inference to maintain high speed.
  3. Transformer-based Generator: Extracted features are processed by a lightweight projector and a Transformer-based decoder to generate the final caption.

Experimental Evaluation

The model was evaluated on the MSRVTT (10,000 clips) and MSVD (1,970 clips) benchmarks. Additionally, the authors validated the system using real-world data captured by a physical CACTI system to ensure feasibility outside of simulated environments.

Performance and Efficiency

SnapCap demonstrates a superior balance of speed, memory usage, and accuracy:

  • Inference Speed: SnapCap achieves an inference time of approximately 281ms per video, representing a 3x to 38x speedup over two-stage methods that require explicit reconstruction.
  • Accuracy: On the MSRVTT dataset, SnapCap achieved a CIDEr score of 52.2, outperforming many traditional methods that utilize full, uncompressed video frames.
  • Resource Efficiency: The model requires significantly less GPU memory (~6.1 GB) compared to high-end reconstruction-based models like STFormer (~17.0 GB).
Quantitative comparison of GPU memory, inference time, and CIDEr scores across various models. SnapCap (red) demonstrates the best trade-off between accuracy and efficiency.

Conclusion

SnapCap proves that high-fidelity video reconstruction is not a prerequisite for accurate video captioning. By shifting the focus from pixel restoration to semantic feature extraction in the latent space, SnapCap eliminates the primary bottleneck in compressive video understanding. Future work may extend this reconstruction-free philosophy to other tasks such as action recognition and video question answering, further optimizing for diverse real-world sensor conditions.

Summary updated

BibTeX
@misc{sun2024snapcap,
  author = {Jianqiao Sun and Yudi Su and Hao Zhang and Ziheng Cheng and Zequn Zeng and Zhengjue Wang and Bo Chen and Xin Yuan},
  title = {{SnapCap: Efficient Snapshot Compressive Video Captioning}},
  year = {2024},
  eprint = {2401.04903},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2401.04903},
}
Figure