Temporal Saliency-Guided Distillation: A Scalable Framework for Distilling Video Datasets

Xulin Gu, Xinhao Zhong, Zhixing Wei, Yimin Zhou, Shuoyang Sun, Bin Chen, Hongpeng Wang, Yuan Luo

TL;DR

Training deep learning models on massive video datasets is computationally brutal, but traditional dataset distillation methods struggle to compress videos without destroying their motion dynamics. This paper introduces a highly efficient, uni-level video distillation framework guided by a Temporal Saliency-Guided Filter (TSGF). By focusing optimization away from redundant frames and protecting high-motion frames from over-optimization, this method slashes distillation time from days to under an hour while achieving state-of-the-art accuracy.

What Problem Does This Paper Address?

Dataset distillation (DD) is a clever compression technique that synthesizes a tiny, hyper-informative pool of synthetic data (e.g., 1 or 5 videos per class) that can train a model to nearly the same accuracy as the full, massive dataset. While DD has worked wonders for static images, extending it to video datasets has hit a wall due to the sheer dimensionality and temporal complexity of video data.

Existing video dataset distillation methods typically rely on complex, multi-stage pipelines—like distilling static frames first and then using an interpolation model to stitch them into a video. These approaches suffer from conflicting optimization goals, massive computational overhead, and a tendency to wash out crucial motion information, often turning videos into sequences of blurry, homogenized frames.

Methods

The authors bypass the heavy computational costs of traditional bi-level optimization (which requires repeatedly training networks from scratch during distillation) by proposing an efficient uni-level video dataset distillation framework. They first train a standard video classification model on the full dataset to encode its distribution, then directly optimize synthetic video samples to match the model's internal statistics (specifically, Batch Normalization layer statistics) and classification loss.

To preserve motion without incurring the massive storage costs of optical flow, they introduce the Temporal Saliency-Guided Filter (TSGF), which consists of two main parts:

  1. Temporally Guided Video Optimization: The framework calculates inter-frame differences to identify key motion frames. Counterintuitively, to prevent these crucial frames from being ruined by over-optimization, the method applies a smoothing mask that reduces the gradient update magnitude on high-saliency (high-motion) frames.
  2. Temporally Guided Video Augmentation: During the final model training phase, the framework applies video data augmentation (like VideoMix) selectively to non-key frames, ensuring the core motion dynamics remain intact.
Figure 2: Comparison between our TSGF framework and the traditional two-stage video distillation paradigm. While both stages of the traditional approach primarily rely on pixel-level information, our unified framework effectively distills temporal information through a three-stage process. TSGF comprises two key components: TSGFOand TSGFA. During the optimization stage, TSGFO constrains the optimization by computing inter-frame differences. In the evaluation stage, TSGFA guides the data augmentation process to preserve temporal dynamics.

Datasets

The framework was evaluated on four widely recognized video action recognition benchmarks:

  • MiniUCF: A lightweight, 101-class human action recognition subset used for rapid benchmarking.
  • HMDB51: A challenging, small-scale dataset containing 6,766 video clips across 51 action classes.
  • Kinetics-400: A massive, large-scale dataset containing roughly 240,000 clips from YouTube.
  • Something-Something V2 (SSv2): A large-scale dataset focused heavily on fine-grained temporal reasoning and object interactions (e.g., "putting something next to something").

Key Insights and Ideas

  • Less Optimization Protects Motion: A key "aha moment" in this paper is that uniformly optimizing every pixel across all frames destroys temporal flow. By deliberately constraining the optimization of high-motion frames, the framework prevents visual artifacts and retains realistic motion transitions.
  • Uni-Level Efficiency: Decoupling the synthetic data optimization from active model training completely eliminates the intra-batch computational bottleneck, allowing video distillation to scale effectively.
  • Real-Frame Initialization is Essential: Initializing the synthetic videos with real video frames rather than random noise provides a vital temporal prior, giving the optimization process a massive head start in learning realistic dynamics.

Key Results

  • Unprecedented Speedups: As illustrated in Figure 1, the proposed method reduces distillation time to under an hour (across various Images Per Class, or IPC, settings), whereas previous state-of-the-art methods like VDSD required up to 20 hours of compute time. It also operates comfortably within lower GPU memory bounds.
Figure 1: Comparison of test accuracy and distillation cost between different methods across all the IPC set- tings. Our method exhibits superior performance.
  • Staggering Accuracy Gains: On the MiniUCF dataset with 5 images (clips) per class (IPC=5), the method achieved 54.8% top-1 accuracy, outperforming the previous state-of-the-art video distillation method (IDTD at 33.3%) by a massive 21.5%.
  • Large-Scale Performance: On the highly temporal SSv2 dataset (IPC=5), the framework achieved 15.2% accuracy, yielding a 5.7% absolute improvement over prior methods.

Limitations and Future Work

Despite setting new performance benchmarks, the authors point out two main limitations:

  1. The Large-Scale Gap: For massive datasets like Kinetics-400, the compression ratio drops below 1%, leaving a substantial accuracy gap between models trained on distilled datasets versus the full original dataset. Large-scale video distillation remains an open, highly challenging problem.
  2. Lack of Explicit Motion Vectors: The framework currently infers motion implicitly via smoothed inter-frame differences. The authors note that integrating explicit motion compensation techniques, such as optical flow, could further refine how complex temporal dynamics are compressed.

Summary updated

BibTeX
@misc{gu2025temporal,
  author = {Xulin Gu and Xinhao Zhong and Zhixing Wei and Yimin Zhou and Shuoyang Sun and Bin Chen and Hongpeng Wang and Yuan Luo},
  title = {{Temporal Saliency-Guided Distillation: A Scalable Framework for Distilling Video Datasets}},
  year = {2025},
  eprint = {2505.20694},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.20694},
}
Figure