Fast Encoding and Decoding for Implicit Video Representation

Hao Chen, Saining Xie, Ser-Nam Lim, Abhinav Shrivastava

Abstract

Implicit Neural Representations (INRs) have emerged as a powerful paradigm for video compression and enhancement, yet their practical adoption is hindered by the prohibitive computational cost of per-video optimization. This paper presents Fast NeRV, a framework designed to overcome the encoding and decoding bottlenecks of traditional INRs. By employing a transformer-based hyper-network (NeRV-Enc) for feed-forward weight prediction and a parallelized decoder (NeRV-Dec) utilizing group convolutions, the proposed method achieves a $10^4\times$ speedup in encoding and an $11\times$ speedup in decoding compared to standard baselines and codecs like H.264.

Introduction

Implicit Neural Representations (INRs) represent video as a continuous function, typically mapping a time index $t$ to a frame. While effective for tasks like compression, standard INRs require "overfitting" a network to each specific video via iterative gradient descent. This encoding process is extremely slow, often taking minutes or hours, which precludes real-time use or large-scale processing. Additionally, traditional video codecs (e.g., H.264) are often CPU-bound, creating data-loading bottlenecks in deep learning pipelines.

Methodology

Fast NeRV addresses these challenges through three key innovations:

  1. NeRV-Enc (The Hyper-network): Instead of iterative optimization, a Transformer-based hyper-network takes video patches as input and directly predicts video-specific weights for the decoder. This feed-forward approach enables near-instantaneous encoding.
  2. Layer-Adaptive Weight Tokens: Recognizing that different decoder layers contribute differently to reconstruction quality, the authors introduce a scheme to adaptively distribute weight tokens across layers. This optimizes the parameter budget for better reconstruction.
  3. NeRV-Dec (The Parallel Decoder): To accelerate playback, the decoder utilizes group convolutions. This allows for simultaneous decoding of multiple frames or videos directly on the GPU, bypassing sequential CPU-based bottlenecks.
The NeRV-Enc and NeRV-Dec pipeline for fast encoding and decoding.

Experimental Results

The framework was evaluated on major benchmarks including Kinetics-400, Something-Something V2, and UCF101. Key findings include:

  • Encoding Efficiency: NeRV-Enc achieves a $10^4\times$ speedup over the original NeRV baseline, moving from hundreds of training epochs to a single forward pass.
  • Decoding Performance: NeRV-Dec is $11\times$ faster than H.264 and $8.9\times$ faster than the original NeRV.
  • System-Level Gains: The approach is $2.5\times$ faster than loading raw frames from RAM while maintaining a $65\times$ smaller storage footprint.
Performance trade-offs for encoding time, decoding speed, and video size.

Discussion and Limitations

Fast NeRV demonstrates that hyper-networks can effectively generalize to unseen videos, making INRs viable for large-scale applications. By treating video loading as a GPU-native inference task, it eliminates significant data-loading overheads in self-supervised learning. However, a compression gap remains compared to state-of-the-art codecs like AV1, and scaling the hyper-network architecture to 4K resolution or long-form video remains an area for future research.

Summary updated

BibTeX
@inproceedings{chen2024fast,
  author = {Hao Chen and Saining Xie and Ser-Nam Lim and Abhinav Shrivastava},
  title = {{Fast Encoding and Decoding for Implicit Video Representation}},
  booktitle = {European Conference on Computer Vision},
  year = {2024},
  doi = {10.1007/978-3-031-72933-1\_23},
}
Figure