Low-Complexity Transform Adjustments for Video Coding

Amir Said, Hilmi E. Egilmez, Yung-Hsuan Chao

Abstract

Modern video coding standards like Versatile Video Coding (VVC) achieve high compression efficiency by employing asymmetric transforms such as DST-7 and DCT-8. However, these transforms lack the regular structure of the traditional DCT-2, leading to significant computational overhead, particularly for large transform sizes. This paper describes a method to approximate these expensive transforms by applying sparse orthogonal "adjustment" matrices to highly optimized core transforms. By prioritizing the approximation of low-frequency basis vectors, the proposed method maintains VVC's coding efficiency while reducing hardware complexity, enabling the practical implementation of 64-point asymmetric transforms.

Introduction

In contemporary video compression, residuals—the difference between predicted and actual frames—are transformed from the spatial domain to the frequency domain to facilitate efficient coding. While the Discrete Cosine Transform (DCT-2) has long been the industry standard due to its symmetry and fast implementation, it cannot capture all statistical nuances of modern video data.

Standards like VVC introduce asymmetric transforms (DST-7 and DCT-8) that offer coding gains exceeding 1%. Unfortunately, these transforms are computationally expensive because they lack the recursive structure of DCT-2. As transform sizes increase to 32 or 64 points, the multiplication and memory requirements become prohibitive for real-time hardware. Consequently, these high-performance transforms are often restricted to smaller blocks, limiting potential compression gains. This research addresses this bottleneck by introducing low-complexity sparse adjustments.

Methods

The proposed approach avoids implementing complex transforms from scratch. Instead, it utilizes a "building block" strategy where a computationally inexpensive core transform (such as DCT-2) is modified by a sparse orthogonal adjustment matrix. Two primary strategies were developed:

  1. Pre-adjustment: A sparse band matrix is applied before the core transform.
  2. Post-adjustment: A block sparse matrix (specifically a top-left sub-block) is applied after the core transform.
Sparse adjustment matrix structures: (a) Band matrix for pre-adjustment and (b) Top-left sub-block for post-adjustment.

To determine the optimal values for these sparse matrices, the researchers employed a non-convex constrained optimization framework. The objective was to minimize the weighted least-squares error between the target "ideal" transform and the adjusted approximation. A critical aspect of this optimization was prioritizing the low-frequency basis vectors, which carry the majority of signal energy in video residuals.

Key Insights and Ideas

The Pareto Principle of Frequencies

A perfect mathematical replica of a transform is not required to capture its compression benefits. By focusing adjustment efforts on low-frequency components, the researchers achieved nearly identical coding efficiency to the full transforms with significantly fewer operations. This is visualized by comparing the adjusted basis vectors to the target DST-7 basis.

Comparison of transform basis vectors and their differences from the target DST-7 transform.

Exploiting Transform Symmetry

The researchers leveraged the fact that DCT-8 is essentially a "flipped" version of DST-7. By exploiting this relationship, they could compute adjustments for both transforms simultaneously using the same number of operations, providing a significant boost to encoder efficiency.

Hardware Throughput

In hardware design, cost is often dictated by worst-case complexity. By reducing the number of multiplications per coefficient (e.g., from 64 down to 36 for large transforms), this method makes 64-point asymmetric transforms commercially viable for the first time.

Key Results

Evaluation using the VVC Reference Software (VTM-3.0) under Common Test Conditions (CTC) yielded the following results:

  • Computational Speedup: The 8x8 sub-block adjustment method proved to be more than five times faster than standard full matrix multiplication implementations.
  • Coding Efficiency: The approximations resulted in negligible losses in BD-rate compared to the original "true" transforms.
  • Enabling Large Transforms: The low-complexity adjustments enabled the use of 64-point DST-7 and DCT-8 transforms. This provided an additional 0.45% coding gain for Ultra High Definition (UHD) video without increasing the worst-case hardware complexity.
  • Memory Efficiency: The 8x8 sub-block adjustment reduced the memory required for transform coefficients by approximately 1 kilobyte.

Conclusion

This research demonstrates that sparse adjustment matrices can effectively bridge the gap between high-performance asymmetric transforms and the stringent complexity requirements of real-time video hardware. While the current parameters are tuned for DST-7 and DCT-8 within the VVC framework, the underlying optimization framework is generalizable. Future work may involve re-optimizing these matrices as video standards evolve and new coding tools are introduced that change the statistical nature of video residuals.

Summary updated

BibTeX
@inproceedings{said2019low,
  author = {Amir Said and Hilmi E. Egilmez and Yung-Hsuan Chao},
  title = {{Low-Complexity Transform Adjustments for Video Coding}},
  booktitle = {ICIP},
  year = {2019},
  doi = {10.1109/icip.2019.8803788},
}
Figure