Rate-Distortion Optimization with Non-Reference Metrics for UGC Compression

Samuel Fernández-Menduiña, Xin Xiong, Eduardo Pavéz, Antonio Ortega, Neil Birkbeck, Balu AdsumilliarXiv 2025 · DOI

TL;DR

This paper introduces a novel Rate-Distortion Optimization (RDO) approach for compressing user-generated content (UGC) that uses non-reference quality metrics (NRMs) instead of traditional full-reference metrics. By linearizing the NRM and incorporating Sum of Squared Errors (SSE) regularization, they achieve significant bitrate savings (over 30%) without increasing decoder complexity, making UGC compression more efficient and perceptually relevant.

What Problem Does This Paper Address?

Online video platforms are flooded with user-generated content (UGC), which is often low-quality due to amateur production and prior compression. Traditional video codecs rely on Rate-Distortion Optimization (RDO) with Full-Reference Metrics (FRMs) like Mean Squared Error (MSE) or Structural Similarity (SSIM). While effective for pristine content, FRMs aim to minimize the difference between the original and compressed video, which can lead to codecs preserving artifacts in already degraded UGC, resulting in suboptimal compression. Non-Reference Metrics (NRMs), which assess quality without a reference, are better suited for UGC as they can plateau at the input's quality level, acknowledging that higher bitrates don't always mean better perceived quality for UGC. However, integrating NRMs into the RDO process is computationally prohibitive because it typically requires encoding, decoding, and evaluating the NRM for every possible coding decision.

Methods

The core innovation is a new RDO cost function that leverages NRMs. The authors achieve this by:

  • Linearizing the NRM: They approximate the NRM of the compressed video using a first-order Taylor expansion around the uncompressed input. This "Linearized NRM" (LNRM) captures how changes in pixel values affect the NRM score. Crucially, this linearized cost can be evaluated block-wise in the transform domain, making it computationally feasible for RDO.
  • SSE Regularization: To prevent the LNRM from deviating too far from the original signal (especially at lower bitrates where the Taylor approximation is less accurate) and to ensure a stable optimization process, they add a Sum of Squared Errors (SSE) term as a regularizer. This encourages the codec to maintain some similarity to the original.
  • Lagrangian Multiplier Derivation: They derive expressions for the SSE regularization parameter and the overall Lagrangian multiplier, drawing parallels to existing SSE-RDO methods, ensuring compatibility with standard codec frameworks.
  • Transform Domain Evaluation: The entire RDO process is performed in the transform domain, which is standard practice for efficient video compression and allows for faster computation of the linearized cost function.

Datasets

  • KODAK dataset: A standard dataset of 24 pristine images used for evaluating the method on non-UGC content.
  • YouTube UGC dataset: A collection of 85 video segments (480x360 pixels) from the YouTube platform, specifically used to evaluate the method on real-world user-generated content.
  • CLIC dataset (synthetic UGC): Used for a perceptual example to illustrate the method's effectiveness in handling banding artifacts.

Key Insights and Ideas

  • NRMs are crucial for UGC: The paper strongly emphasizes that FRMs are fundamentally mismatched for UGC, as they aim for "perfect" quality that is often unattainable or undesirable for noisy inputs. NRMs better reflect the perceptual reality of UGC quality.
  • Linearization is the key to feasibility: The computational barrier to using NRMs in RDO is overcome by linearizing the NRM. This transforms a complex, iterative evaluation into a manageable, block-wise calculation.
  • Regularization balances perception and fidelity: The SSE regularization is vital. It acts as a safety net, preventing the NRM optimization from producing visually jarring results by ensuring the compressed video doesn't stray too far from the original. This highlights a critical trade-off in perceptual compression.
  • No decoder overhead: A significant advantage is that the proposed method only modifies the encoder's RDO process. This means existing decoders can handle the compressed bitstream without any changes, simplifying adoption.

Key Results

  • Significant Bitrate Savings: The proposed LNRM-RDO method achieved bitrate savings of over 30% compared to standard SSE-RDO when targeting specific NRMs (BRISQUE, ARNIQA, VSFA).
  • Improved Target Metric Performance: The RDO process successfully optimized for the chosen NRM, leading to better scores according to that metric.
  • Minimal Encoder Complexity Increase: While the gradient computation adds some overhead, the overall increase in encoder complexity was reported as minimal (around 2-3.5% runtime increase for gradient computation and encoder overhead).
  • No Decoder Complexity: The method is fully compliant with existing video coding standards, meaning no changes are needed on the decoder side.

Limitations and Future Work

  • Taylor Approximation Accuracy: The authors acknowledge that the Taylor expansion's accuracy decreases at lower bitrates. The SSE regularization helps mitigate this, but it's an inherent limitation of the linearization approach.
  • Heuristic for Regularization Parameter: The selection of the regularization parameter $\tau$ is based on a heuristic. While they explore different values, a more principled method for setting this parameter could be beneficial.
  • Future Work: The authors plan to integrate this linearized cost function as a primary metric for training learned video codecs, suggesting a path towards even more advanced and adaptive compression systems. They also aim to explore its application to more complex codecs like VVC and AV1.

Summary updated

Abstract

Service providers must encode a large volume of noisy videos to meet the demand for user-generated content (UGC) in online video-sharing platforms. However, low-quality UGC challenges conventional codecs based on rate-distortion optimization (RDO) with full-reference metrics (FRMs). While effective for pristine videos, FRMs drive codecs to preserve artifacts when the input is degraded, resulting in suboptimal compression. A more suitable approach used to assess UGC quality is based on non-reference metrics (NRMs). However, RDO with NRMs as a measure of distortion requires an iterative workflow of encoding, decoding, and metric evaluation, which is computationally impractical. This paper overcomes this limitation by linearizing the NRM around the uncompressed video. The resulting cost function enables block-wise bit allocation in the transform domain by estimating the alignment of the quantization error with the gradient of the NRM. To avoid large deviations from the input, we add sum of squared errors (SSE) regularization. We derive expressions for both the SSE regularization parameter and the Lagrangian, akin to the relationship used for SSE-RDO. Experiments with images and videos show bitrate savings of more than 30\% over SSE-RDO using the target NRM, with no decoder complexity overhead and minimal encoder complexity increase.
BibTeX
@misc{fernandezmenduina2025rate,
  author = {Samuel Fernández-Menduiña and Xin Xiong and Eduardo Pavéz and Antonio Ortega and Neil Birkbeck and Balu Adsumilli},
  title = {{Rate-Distortion Optimization with Non-Reference Metrics for UGC Compression}},
  year = {2025},
  eprint = {2505.15003},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2505.15003},
}
Figure