Abstract
The forthcoming Versatile Video Coding (VVC) standard adopts the trellis-coded quantization, which leverages the delicate trellis graph to map the quantization candidates within one block into the optimal path. Despite the high compression efficiency, the complex trellis search with soft decision quantization may hinder the applications due to high complexity and low throughput capacity. To reduce the complexity, in this paper, we propose a low complexity trellis-coded quantization scheme in a scientifically sound way with theoretical modeling of the rate and distortion. As such, the trellis departure point can be adaptively adjusted, and unnecessarily visited branches are accordingly pruned, leading to the shrink of total trellis stages and simplification of transition branches. Extensive experimental results on the VVC test model show that the proposed scheme is effective in reducing the encoding complexity by 11% and 5% with all intra and random access configurations, respectively, at the cost of only 0.11% and 0.05% BD-Rate increase. Meanwhile, on average 24% and 27% quantization time savings can be achieved under all intra and random access configurations. Due to the excellent performance, the VVC test model has adopted one implementation of the proposed scheme.
Introduction
In the realm of video compression, the Versatile Video Coding (VVC) standard achieves state-of-the-art efficiency by employing advanced techniques like Trellis-Coded Quantization (TCQ). Unlike traditional "hard-decision" quantization that rounds values to the nearest integer, TCQ is a "soft-decision" method. It treats the quantization of a block of transform coefficients as a pathfinding problem on a trellis graph, using the Viterbi algorithm to find a path that minimizes the joint Rate-Distortion (RD) cost. However, this optimality comes at a significant computational price, making TCQ a major bottleneck for real-time encoding and hardware implementation.
Proposed Low-Complexity TCQ
The proposed scheme reduces the complexity of TCQ through a two-pronged approach: statistical modeling and adaptive trellis pruning.
Statistical Rate-Distortion Modeling
The core of the optimization lies in the ability to estimate the bit rate and distortion of a block without performing full entropy coding. By assuming that transform coefficients follow a Laplacian distribution, the authors derived models where the bit rate $R$ is approximated as a linear combination of the $\ell_0$-norm (number of non-zero coefficients) and the $\ell_1$-norm (sum of absolute values).
As shown in the scatter plots above, there is a strong correlation between the actual rate $R$ and the estimated rate $\hat{R}$ across various Quantization Parameters (QP). This statistical foundation allows the encoder to make high-level pruning decisions early in the process.
Adaptive Departure and Trellis Pruning
Leveraging the RD model, the scheme introduces two key simplifications:
- Adaptive Trellis Departure Point: High-frequency coefficients often quantize to zero. By calculating an RD-based threshold, the encoder can automatically set small coefficients to zero and postpone the start (departure point) of the Viterbi search, effectively shrinking the number of trellis stages.
- Trellis Pruning: Within the active trellis, unlikely quantization candidates and their associated transition branches are identified and "pruned" based on their estimated RD costs.
This pruning process, illustrated above, significantly reduces the number of calculations required at each stage of the trellis, leading to higher throughput.
Experimental Results
The proposed scheme was evaluated using the VVC Test Model (VTM-4.0) under the JVET Common Test Conditions. The results demonstrate a highly favorable trade-off between complexity reduction and compression performance:
- Time Savings: The scheme achieved an average quantization time saving of 24% for All Intra (AI) and 27% for Random Access (RA) configurations. This translated to overall encoding time reductions of 11% and 5%, respectively.
- Compression Efficiency: The impact on video quality was negligible, with a BD-rate increase of only 0.11% (AI) and 0.05% (RA).
Conclusion
By integrating theoretical RD modeling with adaptive trellis pruning, this work successfully addresses the high complexity of TCQ in VVC. The efficiency of the proposed method led to its adoption in the VVC reference software, providing a practical path for high-performance video coding in resource-constrained environments.
Summary updated