Sparsity-guided Network Design for Frame Interpolation

Tianyu Ding, Luming Liang, Zhihui Zhu, Tianyi Chen, Ilya ZharkovarXiv 2022

Abstract

DNN-based frame interpolation, which generates intermediate frames from two consecutive frames, is often dependent on model architectures with a large number of features, preventing their deployment on systems with limited resources, such as mobile devices. We present a compression-driven network design for frame interpolation that leverages model pruning through sparsity-inducing optimization to greatly reduce the model size while attaining higher performance. Concretely, we begin by compressing the recently proposed AdaCoF model and demonstrating that a 10 times compressed AdaCoF performs similarly to its original counterpart, where different strategies for using layerwise sparsity information as a guide are comprehensively investigated under a variety of hyperparameter settings. We then enhance this compressed model by introducing a multi-resolution warping module, which improves visual consistency with multi-level details. As a result, we achieve a considerable performance gain with a quarter of the size of the original AdaCoF. In addition, our model performs favorably against other state-of-the-art approaches on a wide variety of datasets. We note that the suggested compression-driven framework is generic and can be easily transferred to other DNN-based frame interpolation algorithms.

Introduction

Video Frame Interpolation (VPI) is a critical task for applications like slow-motion video generation and high-refresh-rate display enhancement. While modern Deep Neural Networks (DNNs) have achieved impressive results, they have become increasingly bloated, often exceeding 20 million parameters. This heavy footprint makes deployment on resource-constrained mobile devices nearly impossible. This research addresses the inherent redundancy in these large models, proposing a method to identify and replace inefficient parameters with specialized, high-performance modules.

Methodology

The proposed compression-driven framework consists of two primary stages: sparsity-guided compression and architectural enhancement.

The two-stage framework: (I) Sparsity-guided compression and (II) Architectural enhancement.

Sparsity-Guided Compression

The process begins with a pre-trained baseline model, such as AdaCoF. This model is re-trained using an $l_1$ norm sparsity regularizer and a specialized optimizer to identify unimportant connections. By calculating the density ratio of each layer, the authors construct a new, compact dense network ($M_1$) that reflects the sparsity patterns discovered during pruning.

Architectural Enhancement

Once the model is compressed, the saved "parameter budget" is reallocated to more sophisticated components designed to improve visual quality:

  • Feature Pyramid (FP): Extracts multi-scale features from the encoder to capture broader context.
  • Synthesis Network: Utilizes a GridNet architecture to effectively combine multi-scale features.
  • Path Selection (PS): Implements a learned occlusion mask to intelligently blend warping-based outputs with synthesis-based results.

The models were trained on the Vimeo-90K dataset and evaluated across several benchmarks, including Middlebury, UCF101-DVF, and DAVIS 2016.

Key Results and Insights

A significant finding of this work is the discovery of massive redundancy in existing architectures. For instance, middle layers of the baseline U-Net were found to have density ratios below 10%, indicating that over 90% of their parameters were non-essential.

Qualitative and quantitative comparison of the proposed model against AdaCoF and ground truth.

The final model ("Ours") demonstrates superior efficiency and accuracy:

  • Efficiency: It utilizes only 5.8M parameters, a 75% reduction compared to the enhanced baseline.
  • Accuracy: On the Middlebury dataset, it achieved a PSNR of 37.25 dB, outperforming the original AdaCoF by 1.16 dB.
  • Visual Fidelity: As shown in Figure 1, the model handles complex motion and fine details significantly better than previous methods, avoiding common "hazy" artifacts.

Conclusion

This research demonstrates that compression can serve as a powerful diagnostic tool for network design rather than just a post-processing step. By identifying architectural inefficiencies, researchers can build smaller, more capable models. Future work will explore automating this iterative loop, potentially using Neural Architecture Search (NAS) to further optimize the integration of compression and architectural design.

Summary updated

BibTeX
@misc{ding2022sparsity,
  author = {Tianyu Ding and Luming Liang and Zhihui Zhu and Tianyi Chen and Ilya Zharkov},
  title = {{Sparsity-guided Network Design for Frame Interpolation}},
  year = {2022},
  eprint = {2209.04551},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2209.04551},
}
Figure