Mixture of Experts with Uncertainty Voting for Imbalanced Deep Regression Problems

Yuchang Jiang, Vivien Sainte Fare Garnot, Konrad Schindler, Jan Dirk Wegner · DOI

Introduction: The Challenge of Imbalanced Regression

In many real-world machine learning applications, data is rarely distributed uniformly. Whether predicting human age from facial images, estimating wind speeds from satellite data, or determining semantic similarity between texts, datasets typically cluster around "average" values. This phenomenon, known as Data Imbalance, poses a significant challenge for standard deep learning models.

Most regression models utilize Mean Squared Error (MSE) as a loss function, which effectively prioritizes minimizing the average error across the entire dataset. Consequently, these models become highly proficient at predicting common values but fail significantly in rare, "few-shot" regions of the distribution—such as extreme weather events or outlier age groups. While imbalanced classification has been studied extensively, imbalanced regression is inherently more complex because the target values are continuous, making simple re-sampling or re-weighting strategies harder to implement and tune.

Target value distributions for the AgeDB, IMDB-WIKI, Wind, and STS-B datasets, demonstrating significant data imbalance.

The UVOTE Framework

To address these limitations, the authors propose UVOTE (Uncertainty VOTing Ensemble), a novel multi-expert framework designed to specialize in different regions of the data distribution without incurring the heavy computational costs of traditional ensembles.

Multi-headed Architecture

UVOTE utilizes a shared "backbone" encoder (such as a ResNet) that extracts general features from the input $x$ to produce a latent representation $z$. This representation is then fed into $M$ independent regression "heads" or experts ($G_0, \dots, G_{M-1}$). This design is highly efficient, adding only approximately 0.01% more parameters compared to a single-head model.

The UVOTE architecture: a shared trunk feeds into multiple expert heads, with the final prediction selected based on the minimum predicted uncertainty.

Probabilistic Learning and Expert Specialization

Unlike standard regressors that output a single point estimate, each expert in UVOTE predicts both a target value ($\hat{y}$) and its associated aleatoric uncertainty ($\hat{s}$). This is achieved by minimizing the Negative Log-Likelihood (NLL) of a Laplace distribution.

To ensure the experts specialize in different parts of the distribution, each is trained with a different "rebalancing" intensity. For instance, one expert may be trained with equal weights for all samples (focusing on the majority), while another uses inverse-frequency weighting to prioritize rare, few-shot samples.

Uncertainty-Based Aggregation

The core innovation of UVOTE is its inference-time selection mechanism. Rather than averaging the outputs of all experts—which can often lead to "blurry" predictions that regress toward the mean—UVOTE performs a "vote." It examines the uncertainty $\hat{s}$ predicted by each head and selects the prediction from the expert that expresses the highest confidence (the lowest $\hat{s}$). This allows the model to dynamically route each input to the expert most qualified to handle it.

Experimental Setup and Datasets

The framework was evaluated across five diverse benchmarks to demonstrate its generalizability:

  • AgeDB & IMDB-WIKI: Human age estimation from images, heavily skewed toward middle-aged adults.
  • Wind: Estimating wind speed (0–185 knots) from satellite imagery.
  • STS-B: Semantic Textual Similarity, a text-based regression task.
  • NYUd2: A structured regression task involving depth estimation in indoor environments.

Key Insights

  • Uncertainty as a Router: Aleatoric uncertainty—the model's internal estimate of data noise—serves as a highly effective proxy for determining which expert is best suited for a specific sample. UVOTE’s performance closely tracks that of a theoretical "Oracle" selector.
  • NLL vs. MSE: The authors found that switching from standard MSE to a probabilistic NLL loss inherently improves performance on imbalanced data, even before the introduction of the ensemble architecture.
  • KDE for Jagged Distributions: For datasets with irregular distributions (like Wind), utilizing Kernel Density Estimation (KDE) to calculate sample weights proved superior to traditional histogram binning.

Results and Performance

UVOTE achieved new state-of-the-art (SOTA) results across all primary benchmarks, outperforming established methods like RankSim, LDS+FDS, and BalancedMSE. The most dramatic improvements were observed in "few-shot" regions, where UVOTE reduced error by up to 43% compared to vanilla regression models. Furthermore, the model demonstrated superior calibration, meaning its predicted uncertainty accurately reflected its actual error rates.

Limitations and Future Work

While highly effective, UVOTE requires tuning the number of experts ($M$), with 2 or 3 typically being optimal. There is also a minor trade-off where an excessive number of experts can slightly degrade performance on the most common "many-shot" samples. Future research may explore alternative methods for encouraging expert diversity beyond frequency-based weighting, such as feature-space specialization.

Summary updated

BibTeX
@inproceedings{jiang2024mixture,
  author = {Yuchang Jiang and Vivien Sainte Fare Garnot and Konrad Schindler and Jan Dirk Wegner},
  title = {{Mixture of Experts with Uncertainty Voting for Imbalanced Deep Regression Problems}},
  booktitle = {GCPR},
  year = {2024},
  doi = {10.1007/978-3-031-85181-0\_21},
}
Figure