Abstract
Neural video compression has emerged as a novel paradigm combining trainable multilayer neural networks and machine learning, achieving competitive rate-distortion (RD) performances. However, these models remain largely impractical due to heavy neural architectures with large memory and computational demands. Furthermore, standard neural models are usually optimized for a single RD tradeoff, requiring multiple models to be stored for different bitrates. In this paper, we propose a slimmable video codec (SlimVC) by integrating a slimmable temporal entropy model within a slimmable autoencoder. Despite the architectural complexity, we demonstrate that slimming is a powerful mechanism to control rate, memory footprint, computational cost, and latency—all critical requirements for practical video compression deployment.
Introduction
Traditional video codecs like H.264 (AVC) and H.265 (HEVC) are designed for flexibility, allowing a single encoder to adapt to varying network conditions and hardware constraints. In contrast, modern neural video codecs (NVCs) are often "rigid." To support multiple bitrates, developers typically must train and deploy several independent models, each optimized for a specific point on the rate-distortion curve. This leads to significant storage overhead and deployment friction.
Beyond rigidity, NVCs are computationally intensive, often exceeding the memory and power budgets of mobile devices. SlimVC addresses these challenges by introducing a dynamic architecture that can scale its internal capacity on the fly, providing a single-model solution for variable-resource environments.
Methodology
Slimmable Neural Layers
The core of SlimVC is the implementation of slimmable convolutional layers. Unlike fixed-width layers, these components allow the codec to adjust the number of active channels (e.g., 25%, 50%, or 100% capacity) during inference. By training the model such that the most essential information is packed into the initial channels, the "slimmed" versions of the network remain functional at lower bitrates and lower computational costs.
Spatiotemporal Entropy Model (STEM)
To reduce the complexity typical of neural video codecs, SlimVC moves away from explicit motion compensation. Most state-of-the-art NVCs rely on heavy optical flow networks to track movement between frames. Instead, SlimVC utilizes a Spatiotemporal Entropy Model (STEM). This model exploits temporal redundancy directly within the entropy coding process—predicting the probability of data symbols based on previous frames—without the need for explicit, resource-heavy motion estimation.
System Architecture
The SlimVC architecture consists of several integrated slimmable modules:
- SlimFE/SlimFD: A slimmable feature autoencoder for encoding and decoding latent representations.
- SlimHE/SlimHD: A slimmable hyper-autoencoder for entropy coding.
- SlimTPM/SlimEPM: The Temporal Prior and Entropy Prior modules that handle the predictive modeling of video sequences.
Two-Stage Training
The model is trained in two distinct phases. First, it is optimized as a simple image compressor using the Open Images and CLIC datasets. In the second stage, temporal modules are introduced, and the system is fine-tuned on the Vimeo-90k video dataset to learn temporal dependencies and motion handling.
Evaluation and Results
Experimental Setup
SlimVC was evaluated using standard industry benchmarks, including the HEVC Class B (1080p) sequences and the Ultra Video Group (UVG) dataset. Performance was measured across various "width factors" to test the effectiveness of the slimming mechanism.
Computational and Memory Efficiency
The slimming mechanism provides dramatic gains in efficiency:
- Speedup: At its lowest quality setting (0.25 width factor), SlimVC achieves a 20x reduction in floating-point operations (FLOPs) compared to its full-capacity setting.
- Memory Scaling: The memory footprint scales linearly with the width factor. For instance, memory requirements drop from approximately 350MB at full capacity to under 100MB at the 0.25 setting.
Rate-Distortion Performance
SlimVC achieves RD performance comparable to the H.264 (veryfast) preset. Crucially, a single SlimVC model performs nearly as well as multiple "Independent VCs" (separate models trained for specific bitrates) while requiring only a fraction of the storage space. While it currently lags behind the most complex, motion-compensated neural codecs (like DVC) in pure quality-per-bit, it offers a much more viable path for real-time applications on resource-constrained hardware.
Discussion and Limitations
While SlimVC represents a significant step toward practical neural video coding, the authors identify several areas for future work. There remains a performance gap between this motion-free approach and heavier models that use explicit motion estimation. Additionally, while slimming reduces FLOPs, certain autoregressive components in the entropy model can still present latency bottlenecks. Future iterations may focus on optimizing the design of slimmable modules to further close the gap with traditional standards like HEVC while maintaining the flexibility of the slimmable architecture.
Conclusion
SlimVC demonstrates that slimmable neural networks are a viable solution for the "inflexibility vs. efficiency" problem in neural video compression. By enabling dynamic adjustment of rate, memory, and computation within a single model, SlimVC provides a flexible framework that can adapt to the diverse requirements of modern video streaming and mobile deployment.
Summary updated