Geometric Order Learning for Rank Estimation

Seon-Ho Lee, Nyeong Ho Shin, Chang-Su KimNeurIPS 2022

Introduction

Rank estimation, or ordinal regression, involves predicting classes that have a natural, sequential order—such as age, movie ratings, or historical decades. Standard classification treats these classes as independent buckets, ignoring the inherent relationships between them (e.g., a 19-year-old is "closer" to a 20-year-old than a 60-year-old).

Existing "Order Learning" methods attempt to address this by comparing pairs of objects, but they often ignore the magnitude of the difference (the "metric" information). Conversely, "Metric Learning" focuses on distances but frequently fails to arrange classes in a consistent directional line. This leads to "jumbled" embedding spaces where different ranks overlap confusingly.

To solve this, Geometric Order Learning (GOL) structures an embedding space using two specific geometric rules: direction represents the order of ranks, and distance represents the metric difference between them. By enforcing these constraints during training, the model can estimate ranks using a simple, lightning-fast $k$-nearest neighbor ($k$-NN) search, achieving state-of-the-art results across various tasks.

Methods

The core of GOL is the construction of a unit hypersphere embedding space governed by three primary loss functions.

GOL Architecture
  1. Order Constraint: The authors introduce learnable reference points ($r_0, r_1, \dots, r_{M-1}$) for each rank. For any two instances $x$ and $y$, the vector between their embeddings should align with the "forward" or "backward" direction defined by these reference points. This ensures that as ranks increase, the data points move in a consistent direction.
  2. Metric Constraint: This ensures that the distance between two points in the embedding space reflects their rank difference. It uses the reference points to "attract" or "repel" instances. For example, if $x$ is much younger than $y$, the metric loss pushes them further apart along the established rank direction.
  3. Center Loss: To keep the space tidy, this loss encourages instances of the same rank to cluster tightly around their respective reference point.

Inference: Unlike previous comparison-based models that required complex recursive logic or hundreds of pairwise comparisons to estimate a single rank, GOL simply maps a test image into the space and performs a $k$-NN search. The estimated rank is the average rank of its $k$ nearest neighbors.

Key Insights and Results

GOL was evaluated across several diverse domains, including facial age estimation (MORPH II, CACD, UTK, Adience), historical color image (HCI) dating, and aesthetic score regression.

Structuring the Embedding Space

A key insight of GOL is treating rank as a vector. The transition from "Rank 1" to "Rank 2" is a vector similar in direction to "Rank 10" to "Rank 11," creating a consistent "flow" in the embedding space. Instead of comparing random pairs of images, using fixed but learnable reference points provides a global "map" that guides all instances into the correct relative positions.

Embedding Space Comparison

Visualizations of the embedding space demonstrate that GOL creates a clear, non-overlapping sequence of ranks. In contrast, traditional order learning or metric learning methods often result in scattered clusters or overlapping clouds where the sequential order is lost. To quantify this, the authors proposed the Discriminative Ratio for Ranking (DRR), which weights distances by rank differences, providing a better tool to evaluate ordinal embedding quality.

Performance and Efficiency

  • State-of-the-Art Accuracy: GOL achieved the best performance in 20 out of 25 benchmark tests across the three main tasks. On the MORPH II dataset for facial aging, GOL achieved a Mean Absolute Error (MAE) of 2.17, outperforming complex ensemble models.
  • Speed: By moving the complexity to the training phase (structuring the space), the testing phase becomes trivial. Testing time per instance was reduced to just 0.07 ms, making GOL roughly 160x faster than previous order-learning benchmarks.

Limitations and Future Work

While highly effective, GOL has a few limitations. The final structure of the space may depend on the initialization of the learnable reference points. Additionally, the model uses a fixed threshold to decide if two ranks are "similar" or "different." In some domains, the "distance" between ranks might not be uniform (e.g., the biological difference between age 1 and 2 is larger than between 50 and 51), which a fixed threshold might struggle to capture.

Future work could extend this geometric approach to other structured label spaces, such as hierarchical classification or multi-dimensional ranking.

Summary updated

BibTeX
@inproceedings{lee2022geometric,
  author = {Seon-Ho Lee and Nyeong Ho Shin and Chang-Su Kim},
  title = {{Geometric Order Learning for Rank Estimation}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2022},
  url = {https://openreview.net/forum?id=agNTJU1QNw},
}
Figure