Abstract
Learned image compression (LIC) models are traditionally trained by minimizing a weighted sum of rate ($R$) and distortion ($D$). However, the gradients of these two objectives often exhibit conflicting magnitudes and directions, leading to a "tug-of-war" that hinders convergence to the optimal Pareto front. This paper reformulates LIC training as a Multi-Objective Optimization (MOO) task. We propose two adaptive strategies to balance the improvement speeds of rate and distortion: a trajectory-based gradient descent method for training from scratch and a quadratic programming approach for high-precision fine-tuning. Experimental results demonstrate that our balanced optimization consistently yields a ~2% BD-rate reduction across various state-of-the-art models without any additional inference cost.
Introduction: The Imbalance Problem in LIC
In neural image codecs, the standard loss function is $L = R + \lambda D$. While simple, this formulation assumes that a fixed $\lambda$ can effectively navigate the complex optimization landscape. In practice, the gradients for rate and distortion often compete. One objective may dominate the training process, causing the other to stagnate or even degrade. This imbalance prevents the model from reaching the most efficient trade-off between file size and image quality.
As shown in Figure 1, standard training often results in erratic improvement speeds where one objective lags behind. The proposed balanced approach stabilizes these dynamics, ensuring that neither objective is neglected during the learning process.
Methodology: Multi-Objective Optimization
To address this instability, we treat R-D optimization as a MOO problem, where the goal is to find a descent direction that benefits both objectives simultaneously. We introduce two primary solutions:
1. Gradient Descent over Trajectory (Solution 1)
This "coarse-to-fine" strategy adaptively adjusts the weights of the rate and distortion gradients based on their relative improvement speeds. By maximizing the minimum improvement speed, the optimizer prioritizes the "lagging" objective. This method is robust and well-suited for training models from scratch.
2. Quadratic Programming (Solution 2)
For scenarios requiring higher precision, such as fine-tuning a pre-trained model, we employ a Quadratic Programming (QP) solver. By applying Karush–Kuhn–Tucker (KKT) conditions, we analytically determine the optimal gradient weights that satisfy the balance constraints. While more computationally intensive due to Hessian matrix calculations, it provides a more accurate optimization path.
Weight Renormalization
To maintain numerical stability as loss values diminish toward the end of training, we implement a weight renormalization step. This prevents gradient explosion and ensures consistent updates throughout the training duration.
Experimental Results
We evaluated our methods on three benchmark datasets: Kodak, Tecnick, and CLIC 2022, using state-of-the-art architectures like M&S Hyperprior, ELIC, and TCM-S.
Our balanced R-D optimization achieved an average BD-rate reduction of approximately 2%. Notably, on the CLIC 2022 dataset with the ELIC model, Solution 1 reached a 3.00% reduction. Crucially, these gains are achieved purely through training-time adjustments; the model architecture remains identical, resulting in zero additional computational cost during inference. While training time increases (by ~20% for Solution 1 and ~50% for Solution 2), the performance gains justify the overhead for high-performance applications.
Conclusion
By reframing learned image compression as a multi-objective optimization problem, we provide a principled way to balance the competing demands of file size and image quality. Our adaptive weighting strategies mitigate training instabilities and push LIC models closer to the theoretical R-D limit. Future work will explore lower-complexity alternatives to the QP solver to further reduce training overhead.
Summary updated