Making Reliable and Flexible Decisions in Long-tailed Classification

Bolian Li, Ruqi Zhang

TL;DR

Standard long-tailed classification methods treat all misclassifications equally, but in the real world, defaulting to a common "head" class when encountering a rare "tail" class can be catastrophic (e.g., misclassifying a pedestrian as an empty road). This paper introduces RF-DLC, a framework grounded in Bayesian Decision Theory that incorporates task-specific "utility matrices" to minimize high-risk errors. By optimizing for decision risk rather than just raw accuracy, RF-DLC significantly reduces dangerous misclassifications while simultaneously improving overall and tail-class performance.

What Problem Does This Paper Address?

Machine learning models trained on long-tailed datasets—where a few "head" classes have abundant data but most "tail" classes are severely underrepresented—tend to perform poorly on rare categories. Existing solutions typically try to fix this by re-weighting the loss function or adjusting model logits to boost tail-class accuracy.

However, these approaches overlook a critical reality: not all errors carry the same risk. In a medical diagnosis scenario, misclassifying a patient with a rare disease (tail class) as healthy (head class) has far more severe consequences than the reverse. Similarly, an autonomous vehicle mispredicting a rare cyclist as a common vehicle or road feature can lead to fatal accidents. Because standard models are biased toward head classes, they exhibit a high rate of misclassifying tail samples as head samples. This paper addresses the lack of a flexible framework that can account for these asymmetric misprediction costs during both training and inference.

Methods

The authors propose RF-DLC (Making Reliable and Flexible Decisions in Long-tailed Classification), which seamlessly blends data distribution shifts with decision risk using Bayesian Decision Theory.

Key components include:

  1. Integrated Gain Objective: Instead of maximizing standard likelihood, the training objective maximizes an "integrated gain" that accounts for the discrepancy between the long-tailed training distribution and the desired uniform testing distribution.
  2. Utility Matrices ($U$): RF-DLC allows users to define a custom matrix that penalizes or rewards specific decisions based on the task's real-world risks. For example, a "tail-sensitive" utility matrix places heavy negative penalties on false head predictions.
Figure 1: Examples of utility matrices, designed for (a) standard and (b) tail-sensitive classifications, along with (c) class-sensitive classification for bird-plane misprediction and (d) meta-class-sensitive classification for mammal-vehicle misprediction. The entries in the matrix reflect the risk levels (−1 is the most risky) and can be flexibly assigned based on task requirements.
  1. Particle-based Variational Inference: To handle the intractable posterior distribution of deep networks, the framework uses an ensemble of models (referred to as "particles").
  2. Repulsive Regularization: Derived mathematically from the objective's KL-divergence term, a repulsive force pushes the ensemble particles away from each other during training. This ensures diversity in the model predictions and prevents them from collapsing into the same sub-optimal solution.

Datasets

The authors evaluated RF-DLC across several standard and real-world long-tailed benchmarks:

  • CIFAR10-LT & CIFAR100-LT: Artificially imbalanced versions of standard image datasets.
  • ImageNet-LT: A large-scale long-tailed image dataset.
  • iNaturalist: A massive, naturally long-tailed dataset for species classification.
  • DermaMNIST: A real-world medical image dataset with a high imbalance ratio (~60) used to test the framework's clinical viability.

Key Insights and Ideas

  • Decisions > Metrics: The core philosophy shifts from optimizing abstract metrics (like macro-F1) to optimizing actual decision utility. By encoding human domain expertise directly into the utility matrix, the model learns to be cautious where it matters most.
  • The False Head Rate (FHR): The authors introduce a new metric, FHR, defined as the ratio of tail-class samples incorrectly predicted as head-class samples. This directly quantifies the "default to the majority" risk that plagues long-tailed models.
  • Elegant Diversity: Rather than arbitrarily enforcing ensemble diversity, RF-DLC's repulsive force naturally emerges from the mathematics of loss-calibrated variational inference.

Key Results

RF-DLC consistently outperformed competitive long-tailed baselines (such as RIDE and TLC) across multiple dimensions:

  • Drastic Reduction in FHR: As shown in the evaluation below, RF-DLC achieved the lowest False Head Rate across all tested datasets and tail ratios. For instance, on CIFAR10-LT, the average FHR dropped to 9.25% compared to CE's 35.91% and RIDE's 15.50%.
Table 1: False Head Rate evaluation for tail-sensitive long-tailed classification (%). Three datasets and three tail region settings are considered. Our method consistently outperforms all baselines across all settings.
  • No Accuracy Trade-off: Remarkably, minimizing risk did not hurt standard performance. RF-DLC achieved state-of-the-art top-1 overall accuracy on CIFAR100-LT (50.24%) and ImageNet-LT (55.73%), while significantly boosting accuracy on tail classes.
  • Superior Calibration: In uncertainty quantification tests, RF-DLC yielded substantially lower Expected Calibration Error (ECE), meaning the model's confidence scores are much more reliable for downstream decision-making.
  • Medical Impact: On the DermaMNIST dataset, RF-DLC raised overall accuracy to 77.67% (outperforming CE by over 8%) while slashing the average FHR from 47.00% down to 28.46%.

Limitations and Future Work

While highly effective, the authors note a few limitations:

  • Limited to Classification: The current framework is designed strictly for categorical data and does not yet support long-tailed regression problems (e.g., predicting continuous rare values).
  • Assumption of Semantic Identity: The method assumes that the training and testing sets share identical semantic classes, meaning it is not yet optimized for out-of-distribution (OOD) scenarios where entirely new classes might appear at test time.

Summary updated

Abstract

Long-tailed classification is challenging due to its heavy imbalance in class probabilities. While existing methods often focus on overall accuracy or accuracy for tail classes, they overlook a critical aspect: certain types of errors can carry greater risks than others in real-world long-tailed problems. For example, misclassifying patients (a tail class) as healthy individuals (a head class) entails far more serious consequences than the reverse scenario. To address this critical issue, we introduce Making Reliable and Flexible Decisions in Long-tailed Classification (RF-DLC), a novel framework aimed at reliable predictions in long-tailed problems. Leveraging Bayesian Decision Theory, we introduce an integrated gain to seamlessly combine long-tailed data distributions and the decision-making procedure. We further propose an efficient variational optimization strategy for the decision risk objective. Our method adapts readily to diverse utility matrices, which can be designed for specific tasks, ensuring its flexibility for different problem settings. In empirical evaluation, we design a new metric, False Head Rate, to quantify tail-sensitivity risk, along with comprehensive experiments on multiple real-world tasks, including large-scale image classification and uncertainty quantification, to demonstrate the reliability and flexibility of our method.
BibTeX
@article{li2025making,
  author = {Bolian Li and Ruqi Zhang},
  title = {{Making Reliable and Flexible Decisions in Long-tailed Classification}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2025},
}
Figure