← Latest papers
🤖 machine learning

Contrastive Order Learning: A General Framework for Ordinal Regression

The paper proposes ConOrd, a novel contrastive learning framework for ordinal regression that integrates global batch-wise sample utilization with fine-grained ordinal modeling via soft affinity and disparity weights, achieving state-of-the-art performance across diverse tasks like facial age and quality assessment.

Original authors: Chaewon Lee, BeomJun Shim, Kwang Pyo Choi, Chang-Su Kim

Published 2026-07-10
📖 5 min read🧠 Deep dive

Original authors: Chaewon Lee, BeomJun Shim, Kwang Pyo Choi, Chang-Su Kim

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you're trying to teach a robot to understand the world not just by sorting things into boxes (like "cat" or "dog"), but by understanding the spectrum of things. Think about age: a 10-year-old is closer to a 12-year-old than to a 60-year-old. Or imagine judging the quality of a photo: a slightly blurry picture is "worse" than a sharp one, but "better" than a completely black screen. This is called ordinal regression—learning the order and the distance between ranks.

For a long time, AI researchers have tried two main ways to teach this, and both had a glitch in their logic.

The Old Ways: The "All-or-Nothing" and the "Hard Cutoff"

First, there was Supervised Contrastive Learning. Imagine a teacher showing a student a photo of a 24-year-old. The teacher says, "This is a 24. Everything else is not a 24." The student learns to push the 24-year-old away from everyone else. But here's the problem: the student treats a 25-year-old (who is very similar) exactly the same as a 75-year-old (who is totally different). The teacher ignores the fact that 24 and 25 are neighbors, while 24 and 75 are strangers.

Then came a newer method called RnC (Rank-N-Contrast). This teacher was smarter. They said, "Okay, 24 is the anchor. 25 is a 'positive' friend. But anyone older than 25? They are all 'negative' enemies." The teacher draws a hard line in the sand. If you are older than 25, you are an enemy. But wait—this teacher treats a 26-year-old and a 100-year-old exactly the same. They both get pushed away with the same force. The teacher forgets that the 100-year-old is much further away than the 26-year-old, and that distance matters.

The New Hero: ConOrd (Contrastive Order Learning)

Enter ConOrd, the new framework proposed by Chaewon Lee and their team. They realized that to truly understand order, you can't use hard lines or ignore distances. You need a soft, fuzzy understanding of how far apart things are.

Imagine a new teacher who uses a special kind of magnet.

  • The Soft Magnet: When the robot looks at a 24-year-old, it doesn't just push away everyone else. It looks at a 25-year-old and says, "You're close, so I'll pull you just a tiny bit closer." It looks at a 30-year-old and says, "You're a bit further, so I'll pull you a little less."
  • The Repulsion: Now, look at a 75-year-old. The teacher says, "You are very far away! I need to push you really hard."

This is the magic of ConOrd. Instead of a binary "friend or enemy" list, it assigns a soft weight to every single person in the room based on how far their rank is from the anchor.

  • Small gap? Gentle attraction.
  • Medium gap? Moderate repulsion.
  • Huge gap? Strong repulsion.

The paper argues that previous methods failed because they treated these gaps as "all or nothing." ConOrd fixes this by letting every sample in a batch contribute to the learning, but with a strength that matches their actual rank difference. It's like tuning a radio where you can hear the static of distant stations, but the signal from the closest station is crystal clear.

Did it work? The Proof is in the Pudding

The team didn't just guess; they tested this on real-world problems where order matters. They ran experiments on:

  • Guessing Age: They tested on six different datasets, including faces from the MORPH II and CLAP2015 sets. On the CLAP2015 dataset, their method achieved a Mean Absolute Error (MAE) of 2.46, beating the previous best methods like NumCLIP (which scored 2.55) and OrdinalCLIP (3.20). ConOrd achieved the best performance on all datasets except CACD under the MAE metric, demonstrating strong generalization across diverse age estimation benchmarks.
  • Judging Photo Quality: They tested on five blind image quality datasets. On the BID dataset, ConOrd scored a Spearman's Rank Correlation Coefficient (SRCC) of 0.913 and a Pearson's Linear Correlation Coefficient (PCC) of 0.925, outperforming every other method listed, including complex ones like QCN and VISGA.
  • Judging Video Quality: They tested on video datasets like LSVQ and KoNViD-1k. On the LSVQ-TEST set, ConOrd hit an SRCC of 0.904 and a PCC of 0.904, again beating the competition.

The authors are confident in these results because they controlled the variables. They used the exact same "brain" (a ViT-B encoder) for every method they compared. This means the win wasn't because they used a fancier computer; it was because their "soft magnet" teaching style was simply better.

What They Ruled Out

The paper explicitly argues against the idea that you need to make hard decisions about who is a "positive" and who is a "negative." They showed that methods relying on hard thresholds (like RnC) or ignoring rank distances (like standard contrastive learning) leave performance on the table. They also tested a "naive" version of their idea that used a simple math trick (positive logarithm) but found it made the training unstable and less reliable, so they ruled that out in favor of their specific "soft weight" formula.

The Bottom Line

ConOrd suggests that by treating rank differences as a smooth, continuous scale rather than a list of categories, we can build AI that understands the world's nuances better. It's not just about knowing the order; it's about knowing how far apart things are. The experiments suggest this approach consistently leads to state-of-the-art performance, making it a powerful new tool for tasks ranging from estimating a person's age to judging the quality of a video.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →