Learning Image and Video Compression Through Spatial-Temporal Energy Compaction.

Zhengxue Cheng, Heming Sun, Masaru Takeuchi, Jiro KattoCVPR 2019

Abstract

Compression has been an important research topic for many decades, to produce a significant impact on data transmission and storage. Recent advances have shown a great potential of learning based image and video compression. Inspired from related works, in this paper, we present an image compression architecture using a convolutional autoencoder, and then generalize image compression to video compression, by adding an interpolation loop into both encoder and decoder sides. Our basic idea is to realize spatial-temporal energy compaction in learning image and video compression. Thereby, we propose to add a spatial energy compaction-based penalty into loss function, to achieve higher image compression performance. Furthermore, based on temporal energy distribution, we propose to select the number of frames in one interpolation loop, adapting to the motion characteristics of video contents. Experimental results demonstrate that our proposed image compression outperforms the latest image compression standard with MS-SSIM quality metric, and provides higher performance compared with state-of-the-art learning compression methods at high bit rates, which benefits from our spatial energy compaction approach. Meanwhile, our proposed video compression approach with temporal energy compaction can significantly outperform MPEG-4, and is competitive with commonly used H.264. Both our image and video compression can produce more visually pleasant results than traditional standards.

Introduction

Traditional image and video codecs, such as JPEG, BPG, and H.264, rely on hand-crafted pipelines involving discrete transforms (like DCT), quantization, and entropy coding. While these standards are highly optimized, they are not necessarily universal for all content types. Recent deep learning approaches using convolutional autoencoders (CAEs) have shown promise, yet they often overlook a fundamental principle of classical signal processing: energy compaction.

In classical theory, the goal is to pack the most significant signal information into as few coefficients as possible. Most neural codecs optimize for a simple rate-distortion trade-off without explicitly encouraging the network to "compact" its internal representations. This paper addresses this gap by introducing a framework that bridges classical energy compaction principles with modern neural networks for both image and video data.

Methodology

The proposed architecture utilizes a two-pronged approach to achieve spatial and temporal efficiency:

1. Spatial Energy Compaction

The system employs a CAE with an analysis transform (encoder) and a synthesis transform (decoder). To improve efficiency, a novel spatial energy compaction-based penalty is added to the loss function. This penalty mimics the behavior of classical transforms (like the Karhunen-Loève Transform) by forcing the network to concentrate the "energy" (variance) of the image into a small number of latent channels, leaving the remaining channels nearly empty.

2. Temporal Energy Compaction and Video Interpolation

To handle video data, the authors introduce an interpolation loop. Rather than compressing every frame independently, the system uses a hierarchical interpolation method to predict intermediate frames.

Furthermore, the system employs Adaptive GOP (Group of Pictures) Selection. By analyzing the "temporal energy" or motion intensity of a sequence, the model automatically decides the interpolation depth. For low-motion sequences, a larger GOP is used to maximize bit savings; for high-motion sequences, the GOP is reduced to prevent error propagation and maintain visual fidelity.

Experimental Evaluation

Datasets and Training

The model was trained on a subset of the ImageNet database, using millions of $128 \times 128$ patches. Evaluation was conducted using the Kodak lossless image database and the CVPR CLIC validation dataset for images, and the Video Trace Library (VTL) for video sequences (e.g., Akiyo, Bus).

Results and Visual Quality

The proposed method outperforms the BPG standard (based on HEVC intra-coding) when measured by the MS-SSIM quality metric, particularly at high bit rates. In video tasks, the codec significantly outperforms MPEG-4 and remains competitive with H.264/AVC.

Visual comparison of reconstructed images (top) and video frames (bottom) showing the proposed method's ability to reduce artifacts compared to traditional standards.

Qualitatively, the model avoids the "blocking artifacts" common in JPEG and H.264 at low bit rates. As seen in the kodim21 test image and the Akiyo video sequence, the neural codec preserves natural-looking textures and sharp edges that traditional standards often render as blocky noise.

Conclusion

By incorporating spatial-temporal energy compaction into a deep learning framework, this research demonstrates that neural codecs can achieve superior visual quality and competitive compression ratios compared to established standards. Future work will explore more complex, context-adaptive entropy models to further enhance compression gains and aim to surpass the performance of HEVC (H.265) across all metrics.

Summary updated

BibTeX
@inproceedings{cheng2019learning,
  author = {Zhengxue Cheng and Heming Sun and Masaru Takeuchi and Jiro Katto},
  title = {{Learning Image and Video Compression Through Spatial-Temporal Energy Compaction.}},
  booktitle = {CVPR},
  year = {2019},
  url = {https://openreview.net/forum?id=SXm2TMldaS},
}
Figure