Skip to main content
QUICK REVIEW

[Paper Review] Balanced MSE for Imbalanced Visual Regression

Jiawei Ren, Mingyuan Zhang|arXiv (Cornell University)|Mar 30, 2022
Imbalanced Data Classification TechniquesComputer Science6 citations
TL;DR

This paper proposes Balanced MSE, a statistically principled loss function that corrects label distribution imbalance in visual regression by leveraging training label priors to enable balanced prediction. It outperforms standard MSE and reweighting methods, especially under high skewness, and is the first general solution for high-dimensional imbalanced regression with minimal computational overhead.

ABSTRACT

Data imbalance exists ubiquitously in real-world visual regressions, e.g., age estimation and pose estimation, hurting the model's generalizability and fairness. Thus, imbalanced regression gains increasing research attention recently. Compared to imbalanced classification, imbalanced regression focuses on continuous labels, which can be boundless and high-dimensional and hence more challenging. In this work, we identify that the widely used Mean Square Error (MSE) loss function can be ineffective in imbalanced regression. We revisit MSE from a statistical view and propose a novel loss function, Balanced MSE, to accommodate the imbalanced training label distribution. We further design multiple implementations of Balanced MSE to tackle different real-world scenarios, particularly including the one that requires no prior knowledge about the training label distribution. Moreover, to the best of our knowledge, Balanced MSE is the first general solution to high-dimensional imbalanced regression. Extensive experiments on both synthetic and three real-world benchmarks demonstrate the effectiveness of Balanced MSE.

Motivation & Objective

  • Address the challenge of data imbalance in visual regression tasks such as age and pose estimation, where rare labels are underrepresented in training data.
  • Overcome the limitations of standard Mean Square Error (MSE), which propagates label imbalance into predictions and degrades performance on rare classes.
  • Develop a general-purpose solution for high-dimensional imbalanced regression, applicable even without prior knowledge of the training label distribution.
  • Ensure robustness to label distribution skewness and random seed variation, which plague existing reweighting-based approaches.

Proposed method

  • Reinterpret MSE from a statistical perspective, framing it as minimizing negative log-likelihood (NLL) under a Gaussian prediction distribution.
  • Propose Balanced MSE as a correction to MSE that uses the training label distribution to transform the target prediction distribution from balanced test distribution to training-compatible form.
  • Implement Balanced MSE via two variants: a closed-form Gaussian-averaged implementation (GAI) and a differentiable Monte Carlo approximation (BMC) for scalability.
  • Introduce a learnable isotropic noise scale parameter to model uncertainty, which is jointly optimized with model weights.
  • Use a Gaussian Mixture Model (GMM) with K components to estimate the training label distribution, enabling flexible modeling of complex label skewness.
  • Apply the method to both synthetic benchmarks and real-world tasks including age estimation, depth estimation, and 3D human mesh recovery (HMR).

Experimental results

Research questions

  • RQ1How does standard MSE perform under severe label distribution skewness in visual regression, and why does it fail on rare labels?
  • RQ2Can a statistically principled loss function be designed to correct for label imbalance without requiring prior knowledge of the label distribution?
  • RQ3How does Balanced MSE compare to reweighting-based methods in terms of robustness to distribution skewness and random seed variation?
  • RQ4Can Balanced MSE generalize to high-dimensional regression tasks such as 3D human mesh recovery with multi-dimensional continuous labels?

Key findings

  • Balanced MSE achieves significantly lower mean absolute error (MAE) than standard MSE and reweighting on synthetic 1D and 2D imbalanced regression benchmarks, especially under high skewness.
  • On the IMDB-WIKI-DIR benchmark, Balanced MSE reduces MAE by 1.5–2.5 points across all label groups (many, medium, few, all), with the largest improvement on rare (few) labels.
  • The method is robust to random seed variation, unlike reweighting, which shows high variance in performance across different random initializations.
  • The GAI and BMC implementations of Balanced MSE achieve comparable performance, with BMC being more scalable and suitable for complex label distributions.
  • Joint optimization of the noise scale parameter leads to better trade-offs between head and tail label performance than fixed noise scales.
  • Computational overhead of Balanced MSE is negligible—only ~0.3 seconds per iteration on IMDB-WIKI-DIR—making it practical for real-world deployment.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.