Spatial-temporal residue network based in-loop filter for video coding

Chuanmin Jia, Shiqi Wang, Xinfeng Zhang, Shanshe Wang, Siwei MaVCIP 2017 · DOI

Abstract

Deep learning has demonstrated tremendous breakthroughs in the area of image/video processing. In this paper, a spatial-temporal residue network (STResNet) based in-loop filter is proposed to suppress visual artifacts such as blocking and ringing in video coding. Specifically, the spatial and temporal information is jointly exploited by taking both the current block and the co-located block in the reference frame into consideration during the processing of the in-loop filter. The architecture of STResNet consists of a compact convolutional structure which shows hospitality to memory and coding complexity. Moreover, to fully adapt to the input content and improve the performance of the proposed in-loop filter, a coding tree unit (CTU) level control flag is applied in the sense of rate-distortion optimization. Extensive experimental results show that our scheme provides up to 5.1% bit-rate reduction compared to the state-of-the-art video coding standard.

Introduction

Video compression is a fundamental trade-off between file size and visual quality. Modern standards like HEVC (H.265) utilize lossy compression techniques that often introduce unwanted visual artifacts, most notably blocking (visible boundaries between coding blocks) and ringing (halos around sharp edges). While HEVC includes hand-crafted filters such as the Deblocking Filter (DBF) and Sample Adaptive Offset (SAO) to mitigate these issues, these methods are relatively simple and fail to capture the complex distortion patterns inherent in high-compression scenarios.

Recent deep-learning approaches have attempted to replace these filters with convolutional neural networks (CNNs). However, many existing models focus solely on spatial data within a single frame, ignoring the significant temporal information available in neighboring video frames. This paper addresses this gap by proposing STResNet, which leverages both spatial and temporal context to enhance reconstruction quality.

Methodology

STResNet Architecture

The proposed Spatial-Temporal Residue Network (STResNet) is integrated directly into the HEVC encoding/decoding loop after the SAO stage. The network is designed with four primary convolutional layers to maintain computational efficiency while maximizing restoration performance.

The architecture of STResNet showing spatial-temporal fusion and residue learning.

Key technical features of the architecture include:

  • Spatial-Temporal Fusion: Unlike single-image models, STResNet takes two inputs: the current distorted block and the co-located block from the previous reference frame. This allows the network to "borrow" high-frequency details from the reference frame that may have been lost in the current frame's compression.
  • Residue Learning: The network is trained to predict a "residue" (the difference between the distorted and original signal) rather than the entire clean image. This approach speeds up training convergence and improves numerical stability.
  • Compact Design: To minimize memory overhead, the network uses a limited number of parameters (~11,464), making it more suitable for integration into video codecs than deeper computer vision models.

CTU-Level Control

To ensure the filter only improves the final output, the encoder employs Rate-Distortion Optimization (RDO) at the Coding Tree Unit (CTU) level. For every 64x64 block, the encoder decides whether to apply the STResNet filter or bypass it based on which option yields the best signal-to-noise ratio relative to the bit-rate cost of the control flag.

Experimental Results

Training and Evaluation

The model was trained using high-definition (1080p) sequences from the AVS2 test set, generating over 313,000 training samples per Quantization Parameter (QP). Evaluation was conducted on standard HEVC common test sequences (Classes B through E).

Performance Metrics

STResNet achieved an average BD-rate reduction of 1.3% across all test classes. The most significant gains were observed in Class E (teleconferencing video), where bit-rate savings reached up to 5.1%.

BD-rate reduction results for various video sequences under Random Access configuration.

Qualitative analysis confirms that the filter effectively reduces ringing artifacts around text and sharp edges compared to the standard HEVC anchor. While the compact architecture is memory-efficient, the current CPU-based implementation results in a ~35% increase in encoding time and a ~700% increase in decoding time, suggesting the need for hardware acceleration in practical deployments.

Conclusion

STResNet demonstrates that incorporating temporal information into in-loop filtering significantly enhances video compression efficiency. By using a compact 4-layer architecture and CTU-level RDO control, the proposed method achieves substantial bit-rate savings with manageable complexity. Future work will explore expanding the filter to chroma channels and incorporating motion compensation to further refine the temporal branch's effectiveness.

Summary updated

BibTeX
@inproceedings{jia2017spatial,
  author = {Chuanmin Jia and Shiqi Wang and Xinfeng Zhang and Shanshe Wang and Siwei Ma},
  title = {{Spatial-temporal residue network based in-loop filter for video coding}},
  booktitle = {VCIP},
  year = {2017},
  doi = {10.1109/vcip.2017.8305149},
}
Figure