Rate-Distortion Optimization for Ensembles of Non-Reference Metrics

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

TL;DR

This paper tackles the challenge of using non-reference image quality metrics (NRMs) to guide video compression more effectively. They propose a novel approach that optimizes for ensembles of NRMs and introduces a smoothing technique to stabilize NRM gradients, leading to more robust and consistent quality improvements across various metrics and codecs, with significant reductions in encoding time for overfitted codecs.

What Problem Does This Paper Address?

Traditional video compression relies on Rate-Distortion Optimization (RDO) driven by full-reference metrics (FRMs) like Mean Squared Error (MSE). FRMs assume a perfect original as a target, which is problematic for user-generated content (UGC) that is often noisy or already compressed. Non-reference metrics (NRMs) can assess quality without an original, making them ideal for UGC. However, integrating NRMs into RDO has been difficult. A previous method, Linearized NRM (LNRM), uses the NRM's gradient to guide bit allocation, but this approach suffers from the inherent non-linearity and local instability of NRMs, leading to inconsistent gains across different NRMs. This paper aims to overcome these limitations by making NRM-based RDO more robust and generalizable.

Methods

The core of the paper's contribution lies in two key extensions to the LNRM framework:

  • Ensemble Optimization: Instead of optimizing for a single NRM, the authors propose optimizing for a weighted ensemble of multiple NRMs. This approach aims to achieve quality improvements that are consistent across diverse quality predictors, mitigating the biases of individual NRMs.
  • Smoothed LNRM (SLNRM): To address the local instability of NRM gradients, they introduce a smoothing technique. This involves averaging the NRM's gradient over small, imperceptible perturbations of the input image. This "smoothed gradient" is more robust to minor input variations, leading to more stable optimization directions.

These methods are integrated into the RDO process for both hybrid codecs (like AVC) and overfitted codecs (like Cool-chic). For overfitted codecs, the linearization approach significantly reduces computational complexity compared to direct end-to-end optimization of the NRM.

Datasets

  • YouTube UGC dataset: Used for evaluating the proposed framework on sampled frames.
  • KODAK image dataset: Used for generating synthetic UGC examples.

Key Insights and Ideas

  • NRMs are inherently unstable: The non-linear nature of NRMs means their gradients can change drastically with small input variations, making direct gradient-based optimization unreliable.
  • Ensembling is key for robustness: Optimizing for a single NRM can lead to gains for that specific metric but may not generalize or even degrade performance for others. Ensembling NRMs provides a more holistic and robust quality improvement.
  • Smoothing stabilizes gradients: Averaging gradients over small perturbations effectively smooths out local instabilities, leading to more consistent and reliable optimization paths.
  • Linearization offers significant computational benefits: For overfitted codecs, using LNRM (and SLNRM) drastically reduces the computational burden by decoupling NRM evaluation from the iterative encoding process.

Key Results

  • Consistent BD-rate savings: The proposed SLNRM approach consistently achieved higher BD-rate savings compared to LNRM across various NRMs, for both AVC and Cool-chic codecs.
  • Improved generalization: Gains were observed not only for the target NRM but also for other NRMs, demonstrating better generalization of quality improvements.
  • Reduced encoding runtime: For Cool-chic, optimizing with SLNRM led to a substantial reduction in encoding runtime compared to direct NRM optimization, with minimal overhead compared to LNRM.
  • No decoder complexity overhead: The proposed methods do not introduce any additional complexity on the decoder side.
  • Smoothing parameter trade-offs: Experiments showed that a smoothing parameter of $n_s=5$ provided a good balance between performance gains and computational cost.

Limitations and Future Work

  • Computational cost of smoothing: While SLNRM is computationally efficient compared to direct NRM optimization, the smoothing process itself adds some overhead compared to basic LNRM. The paper suggests that this overhead is manageable and often negligible in practice.
  • Future Work: The authors suggest that the proposed framework naturally extends to video coding by incorporating video NRMs. Further exploration of optimal ensemble compositions and smoothing strategies could also be beneficial.

Summary updated

Abstract

Non-reference metrics (NRMs) can assess the visual quality of images and videos without a reference, making them well-suited for the evaluation of user-generated content. Nonetheless, rate-distortion optimization (RDO) in video coding is still mainly driven by full-reference metrics, such as the sum of squared errors, which treat the input as an ideal target. A way to incorporate NRMs into RDO is through linearization (LNRM), where the gradient of the NRM with respect to the input guides bit allocation. While this strategy improves the quality predicted by some metrics, we show that it can yield limited gains or degradations when evaluated with other NRMs. We argue that NRMs are highly non-linear predictors with locally unstable gradients that can compromise the quality of the linearization; furthermore, optimizing a single metric may exploit model-specific biases that do not generalize across quality estimators. Motivated by this observation, we extend the LNRM framework to optimize ensembles of NRMs and, to further improve robustness, we introduce a smoothing-based formulation that stabilizes NRM gradients prior to linearization. Our framework is well-suited to hybrid codecs, and we advocate for its use with overfitted codecs, where it avoids iterative evaluations and backpropagation of neural network-based NRMs, reducing encoder complexity relative to direct NRM optimization. We validate the proposed approach on AVC and Cool-chic, using the YouTube UGC dataset. Experiments demonstrate consistent bitrate savings across multiple NRMs with no decoder complexity overhead and, for Cool-chic, a substantial reduction in encoding runtime compared to direct NRM optimization.
BibTeX
@misc{xiong2026rate,
  author = {Xin Xiong and Samuel Fernández-Menduiña and Eduardo Pavéz and Antonio Ortega and Neil Birkbeck and Balu Adsumilli},
  title = {{Rate-Distortion Optimization for Ensembles of Non-Reference Metrics}},
  year = {2026},
  eprint = {2602.15779},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2602.15779},
}
Figure