Rank-based Decomposable Losses in Machine Learning: A Survey

Shu Hu, Xin Wang, Siwei Lyu · DOI

Abstract

Standard machine learning objectives often rely on Empirical Risk Minimization (ERM), which averages losses across samples. However, this approach can be sensitive to outliers and imbalanced data. This paper surveys "rank-based decomposable losses," a framework that sorts individual errors or scores before aggregation. By formalizing the concept of an "aggregator," the authors unify various robust and specialized loss functions into a single taxonomy, providing a systematic approach for designing more robust and fair learning objectives.

Introduction

In machine learning, the loss function serves as the primary signal for model optimization. While the standard average loss is common, it often fails in the presence of outliers or significant class imbalance. A recent survey by Hu et al. titled "Rank-based Decomposable Losses in Machine Learning: A Survey" proposes that ranking errors before aggregation can lead to more robust, fair, and precise models.

The Problem with Empirical Risk Minimization

The standard Empirical Risk Minimization (ERM) approach minimizes the average loss across all training samples. While mathematically convenient, the average is sensitive to outliers—where a single large error can disproportionately influence the model—and can be "blind" to minority groups in imbalanced datasets. While specialized alternatives like Top-k or trimmed losses exist, they have often been treated as isolated techniques. This survey aims to provide a unified language for these "sorting-based" methods, focusing specifically on decomposable losses that remain computationally efficient for modern deep learning.

Methods: The Power of the Aggregator

The core contribution of this work is the formalization of the Aggregator: a set function that maps a collection of individual values (such as per-sample losses or per-class scores) to a single numerical value based on their rank.

Taxonomy of rank-based losses.

The authors categorize rank-based losses into two primary levels:

  1. Aggregate Loss (Sample Level): Combining losses across different training examples.
  2. Individual Loss (Label Level): Combining scores across different possible classes for a single example.

Primary Categories of Aggregators

The survey identifies several key aggregators, ranging from standard averages to more complex ranked ranges:

  • Average: The standard ERM approach.
  • Maximum: Focuses on the worst-performing sample (Minimax learning).
  • Median: Provides robustness by ignoring the tails of the distribution.
  • Top-k and Average Top-k (ATk): Focuses on the $k$ largest values; ATk is mathematically linked to Conditional Value at Risk (CVaR).
  • Average Bottom-k (ABk): Focuses on "easy" samples to prevent overlearning from noisy labels.
  • Average of Ranked Range (AoRR): A flexible aggregator that considers a specific "slice" of the sorted list.
Relationships between various rank-based aggregators.

Key Insights and Unification

A major insight in the survey is the mathematical link between machine learning aggregators and financial risk management, specifically the equivalence between the ATk aggregator and "Expected Shortfall" (CVaR). Furthermore, the authors demonstrate that many specialized losses are specific instances of the Average of Ranked Range (AoRR), which stands as the most general framework in current literature.

By focusing on decomposable losses, the framework ensures that these methods can be optimized using standard Stochastic Gradient Descent (SGD), making them practical for large-scale deep learning applications.

Limitations and Future Directions

Despite their potential, rank-based losses face challenges:

  • Computational Overhead: Sorting $n$ items introduces $O(n \log n)$ complexity, which can impact training speed on massive datasets.
  • Hyperparameter Sensitivity: Aggregators like AoRR require careful tuning of parameters like $m$ and $k$.
  • Theoretical Gaps: Newer aggregators like "Close-k" require more rigorous generalization bounds and statistical consistency proofs.
  • Nested Aggregators: Combining different aggregators (e.g., an ATk individual loss within an ABk aggregate loss) remains a promising but under-explored research area.

This survey provides a comprehensive "menu" for loss function design, moving beyond simple averages toward objectives that better reflect real-world data complexity.

Summary updated

BibTeX
@article{hu2023rank,
  author = {Shu Hu and Xin Wang and Siwei Lyu},
  title = {{Rank-based Decomposable Losses in Machine Learning: A Survey}},
  journal = {IEEE Trans. Pattern Anal. Mach. Intell.},
  year = {2023},
  doi = {10.1109/tpami.2023.3296062},
}
Figure