Papers › Learning-to-Rank Meets Language: Boosting Language-Driven Ordering Alignment for...

Learning-to-Rank Meets Language: Boosting Language-Driven Ordering Alignment for Ordinal Classification

24 Jun 2023NeurIPS 2023 11arXiv:2306.13856archive 2025-07-28

Rui Wang, Peipei Li, Huaibo Huang, Chunshui Cao, Ran He, Zhaofeng He

We present a novel language-driven ordering alignment method for ordinal classification. The labels in ordinal classification contain additional ordering relations, making them prone to overfitting when relying solely on training data. Recent developments in pre-trained vision-language models inspire us to leverage the rich ordinal priors in human language by converting the original task into a visionlanguage alignment task. Consequently, we propose L2RCLIP, which fully utilizes the language priors from two perspectives. First, we introduce a complementary prompt tuning technique called RankFormer, designed to enhance the ordering relation of original rank prompts. It employs token-level attention with residual-style prompt blending in the word embedding space. Second, to further incorporate language priors, we revisit the approximate bound optimization of vanilla cross-entropy loss and restructure it within the cross-modal embedding space. Consequently, we propose a cross-modal ordinal pairwise loss to refine the CLIP feature space, where texts and images maintain both semantic alignment and ordering alignment. Extensive experiments on three ordinal classification tasks, including facial age estimation, historical color image (HCI) classification, and aesthetic assessment demonstrate its promising performance. The code is available at https://github.com/raywang335/L2RCLIP.

PaperPDFConference PDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="2306.13856")

Code

Syntology Ran 9 of 23 code samples harvested from 2 repositories linked to this paper; 14 have no recorded run. Of those that ran: 1 ran · honoured contract; 7 ran · our draft was wrong; 1 ran with no contract checked.

By repository: official repository: 13 samples from 1 repository, 6 ran; community (archive-listed): 10 samples from 1 repository, 3 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

raywang335/l2rclip officialmentioned in paperpytorchMIT report
xk-huang/OrdinalCLIP mentioned on GitHubpytorchMIT report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

23 samples harvested; 9 ran; 1 honoured the contract we drafted; 14 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · honoured contract
7ran · our draft was wrong
1ran
14unverified

Licence: 0 of the 23 samples are pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 2 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: Syntology found this repository in the paper's own text; whether it is the authors' implementation is not asserted. community: Not in the archive's code links for this paper; a community repository Syntology harvested. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

euclidean_dist raywang335/l2rclip/loss/ordinal_ce.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 426c97121a63bbb6 · report
normalize raywang335/L2RCLIP/loss/triplet_loss.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · e3b2a83f52101f2d · report
ordinal_entropy raywang335/l2rclip/loss/ordinal_ce.py official repository ran · our draft was wrong MIT (permissive) · b96cc34c9484f332 · report
train_collate_fn raywang335/L2RCLIP/datasets/make_dataloader.py official repository ran · our draft was wrong MIT (permissive) · a9297ce0fe9cac98 · report
up_triu raywang335/L2RCLIP/loss/ordinal_ce.py official repository ran · honoured contract fingerprinted MIT (permissive) · 0aa02f11f6d7af87 · report
val_collate_fn raywang335/L2RCLIP/datasets/make_dataloader.py official repository ran · our draft was wrong MIT (permissive) · c4ae4a3fc4c4703e · report
cosine_dist raywang335/L2RCLIP/loss/triplet_loss.py official repository unverified MIT (permissive) · 71b4e1d375d8fd78 · report
euclidean_dist raywang335/L2RCLIP/loss/triplet_loss.py official repository unverified MIT (permissive) · 5315f75bf5367f0a · report
make_loss raywang335/L2RCLIP/loss/make_loss.py official repository unverified MIT (permissive) · 0fe9165ed9ea4d70 · report
ordinal_entropy_stage1 raywang335/L2RCLIP/loss/ordinal_ce_stage1.py official repository unverified MIT (permissive) · 81d8962ccb99c2ae · report
read_image raywang335/L2RCLIP/datasets/bases.py official repository unverified MIT (permissive) · 5f1101145f896208 · report
train_collate_fn raywang335/L2RCLIP/datasets/make_dataloader_clipreid.py official repository unverified MIT (permissive) · 0b63d2a1df1e76b4 · report
val_collate_fn raywang335/L2RCLIP/datasets/make_dataloader_clipreid.py official repository unverified MIT (permissive) · 3c4ce255e7bff04f · report
conv1x1 xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/resnet.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 2a80220dabcb742a · report
conv3x3 xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/resnet.py community (archive-listed) ran · our draft was wrong MIT (permissive) · 600ff2c45e0de056 · report
make_layers xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/vgg.py community (archive-listed) ran MIT (permissive) · b834e29a85d15c71 · report
alexnet xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/alexnet.py community (archive-listed) unverified MIT (permissive) · c064f649a023c5e7 · report
count_num_param xk-huang/OrdinalCLIP/ordinalclip/runner/utils.py community (archive-listed) unverified MIT (permissive) · faff7e0f9f5b24d3 · report
get_logger xk-huang/OrdinalCLIP/ordinalclip/utils/logging.py community (archive-listed) unverified MIT (permissive) · 057d3a33431e9827 · report
is_seq_of xk-huang/OrdinalCLIP/ordinalclip/utils/registry.py community (archive-listed) unverified MIT (permissive) · 10fed523733edbf9 · report
resnet18 xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/resnet.py community (archive-listed) unverified MIT (permissive) · d2a914b660839f7d · report
vgg11 xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/vgg.py community (archive-listed) unverified MIT (permissive) · 605fa285c125d097 · report
vgg11_bn xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/vgg.py community (archive-listed) unverified MIT (permissive) · 71569392426397ab · report

Tasks

Age EstimationClassificationLearning-To-RankOrdinal Classification

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

CLIP

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections