SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2306.13856 · NeurIPS · 2023

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

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

arXiv · PDF · Open in the Atlas

Code that ran

18 of 23 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 3 have no contract verdict; 13 failures of our instrument; 5 no recorded run), measured 2026-11-23; repository links from the Papers with Code archive attributed under CC BY-SA, no affiliation; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2306.13856.json · badge: /api/ran/2306.13856.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
raywang335/L2RCLIP canonical (classifier label)
classifier basis: census
9 ran · 2 no recorded run
xk-huang/OrdinalCLIP canonical (classifier label)
classifier basis: census
7 ran · 3 no recorded run
raywang335/l2rclip canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
FunctionStatusWhere it lives
alexnet Ran
ran; our contract draft was wrong, not the code
xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/alexnet.py
code served (permissive licence) · get_code("c064f649a023c5e7")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned AlexNet. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    'pretrained': False,
    'progress': True,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch, torchvision — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type AlexNet — a AlexNet output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a AlexNet output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
conv1x1 Ran
ran; our contract draft was wrong, not the code
xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from medaitech/scrd4ad, is pointer only (licence: NONE) · get_code("2a80220dabcb742a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from medaitech/scrd4ad, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

conv3x3 Ran
ran; our contract draft was wrong, not the code
xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/resnet.py
pointer only (licence: MIT); the stored copy get_code serves, from medaitech/scrd4ad, is pointer only (licence: NONE) · get_code("600ff2c45e0de056")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from medaitech/scrd4ad, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

cosine_dist Ran
ran; our contract draft was wrong, not the code
raywang335/L2RCLIP/loss/triplet_loss.py
pointer only (licence: MIT); the stored copy get_code serves, from stone96123/MDReID, is pointer only (licence: NONE) · get_code("71b4e1d375d8fd78")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from stone96123/MDReID, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

count_num_param Ran
ran on a synthesized input
xk-huang/OrdinalCLIP/ordinalclip/runner/utils.py
code served (permissive licence) · get_code("faff7e0f9f5b24d3")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned int, ndim 0, dtype family int, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear1 = nn.Linear(4, 8)
        self.linear2 = nn.Linear(8, 3)
    
    def forward(self, x):
        x = self.linear1(x)
        x = self.linear2(x)
        return x

model = SimpleModel()

ARGS = {
    "model": model
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type int, ndim 0, dtype family int, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
euclidean_dist Ran
ran; our contract draft was wrong, not the code
raywang335/l2rclip/loss/ordinal_ce.py
code served (permissive licence) · get_code("426c97121a63bbb6")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 3) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create two small tensors with distinct dimensions
# x: [m, d] where m=2, d=4
x = torch.randn(2, 4)

# y: [n, d] where n=3, d=4
y = torch.randn(3, 4)

ARGS = {
    'x': x,
    'y': y,
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 3) — shape (2, 3) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
euclidean_dist Ran
ran; our contract draft was wrong, not the code
raywang335/L2RCLIP/loss/triplet_loss.py
pointer only (licence: MIT); the stored copy get_code serves, from stone96123/MDReID, is pointer only (licence: NONE) · get_code("5315f75bf5367f0a")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from stone96123/MDReID, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

get_logger Ran
ran; our contract draft was wrong, not the code
xk-huang/OrdinalCLIP/ordinalclip/utils/logging.py
code served (permissive licence) · get_code("057d3a33431e9827")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Logger. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import logging
import tempfile

ARGS = {
    'name': 'test_logger',
    'log_file': None,
    'log_level': logging.INFO,
    'file_mode': 'w'
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Logger — a Logger output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Logger output the recorded ndim 0 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
is_seq_of Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
xk-huang/OrdinalCLIP/ordinalclip/utils/registry.py
code served (permissive licence) · get_code("10fed523733edbf9")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned bool, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import collections.abc as abc
import torch

torch.manual_seed(0)

# Test case 1: valid sequence of integers
seq1 = [1, 2, 3, 4]
expected_type1 = int
seq_type1 = None

# Test case 2: valid sequence of strings with explicit seq_type
seq2 = ["a", "b", "c"]
expected_type2 = str
seq_type2 = list

# Test case 3: valid tuple of floats
seq3 = (1.0, 2.5, 3.14)
expected_type3 = float
seq_type3 = tuple

# Use the first test case as the primary ARGS
ARGS = {
    "seq": [1, 2, 3, 4],
    "expected_type": int,
    "seq_type": None
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type bool, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_layers Ran
ran; our contract draft was wrong, not the code
xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/vgg.py
code served (permissive licence) · get_code("b834e29a85d15c71")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Sequential. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
import torch.nn as nn

torch.manual_seed(0)

ARGS = {
    "cfg": [64, "M", 128, 256, "M", 512],
    "batch_norm": False
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Sequential — a Sequential output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Sequential output the recorded ndim 1 and dtype family float describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
normalize Ran
ran; our contract draft was wrong, not the code
raywang335/L2RCLIP/loss/triplet_loss.py
code served (permissive licence) · get_code("e3b2a83f52101f2d")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Tensor, ndim 2, dtype family float, shape (2, 4) as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a small tensor with batch size 2 and feature dimension 4
x = torch.randn(2, 4)

ARGS = {
    "x": x,
    "axis": -1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 2, dtype family float, shape (2, 4) — shape (2, 4) as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
ordinal_entropy Ran
ran; our contract draft was wrong, not the code
raywang335/l2rclip/loss/ordinal_ce.py
code served (permissive licence) · get_code("b96cc34c9484f332")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1) and returned Tensor, ndim 0, dtype family float, shape () as a later run recorded it. The image it ran in was not recorded. If your copy returns the same type, ndim and shape on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct arguments for ordinal_entropy function
batch_size = 2
feature_dim = 4
age_range = [16, 78]

# logits: tensor with shape [batch_size, num_classes] or similar
logits = torch.randn(batch_size, 10)

# img_features: tensor with shape [batch_size, feature_dim]
img_features = torch.randn(batch_size, feature_dim)

# txt_features: tensor with shape [num_ages, feature_dim]
# num_ages should be age_range[1] - age_range[0]
num_ages = age_range[1] - age_range[0]
txt_features = torch.randn(num_ages, feature_dim)

# gt: ground truth ages, tensor with shape [batch_size]
# values should be in range [age_range[0], age_range[1])
gt = torch.tensor([20, 50], dtype=torch.long)

ARGS = {
    "logits": logits,
    "img_features": img_features,
    "txt_features": txt_features,
    "gt": gt,
    "age_range": age_range
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Tensor, ndim 0, dtype family float, shape () — shape () as a later run recorded it
dtype family
int means an integer dtype; float means any other dtype the instrument saw, bool and complex included (fixture_check.py records only these two families)
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
read_image Ran
ran, honoured the contract we drafted
raywang335/L2RCLIP/datasets/bases.py
code served (permissive licence) · get_code("5f1101145f896208")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned Image. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import tempfile
import os
from PIL import Image

# Create a temporary directory and a valid test image
temp_dir = tempfile.mkdtemp()
img_path = os.path.join(temp_dir, "test_image.jpg")

# Create a small valid RGB image and save it
test_img = Image.new('RGB', (4, 3), color=(255, 0, 0))
test_img.save(img_path)

ARGS = {
    'img_path': img_path
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
PIL — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type Image — a Image output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a Image output the recorded ndim 3 and dtype family int describe that coercion, not the output, and are not stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
train_collate_fn Ran
ran; our contract draft was wrong, not the code
raywang335/L2RCLIP/datasets/make_dataloader.py
code served (permissive licence) · get_code("a9297ce0fe9cac98")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Create a batch of 2 samples
# Each sample from __getitem__ returns: (img, pid, camid, viewid, extra_field)

# Create image tensors (e.g., 3 channels, 8x6 spatial dimensions)
img1 = torch.randn(3, 8, 6)
img2 = torch.randn(3, 8, 6)

# Person IDs (integers)
pid1 = 5
pid2 = 12

# Camera IDs (integers)
camid1 = 1
camid2 = 3

# View IDs (integers)
viewid1 = 0
viewid2 = 2

# Extra field (can be anything, will be ignored)
extra1 = "path1"
extra2 = "path2"

# Construct batch as a list of tuples (what DataLoader passes to collate_fn)
batch = [
    (img1, pid1, camid1, viewid1, extra1),
    (img2, pid2, camid2, viewid2, extra2)
]

ARGS = {'batch': batch}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
train_collate_fn Ran
ran on a synthesized input
raywang335/L2RCLIP/datasets/make_dataloader_clipreid.py
code served (permissive licence) · get_code("0b63d2a1df1e76b4")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# Construct sample batch data
# The function expects batch to be an iterable of (img, age) tuples
# where img is a tensor and age is a scalar

img1 = torch.randn(3, 4, 5)  # Channel x Height x Width
age1 = 25

img2 = torch.randn(3, 4, 5)
age2 = 30

batch = [(img1, age1), (img2, age2)]

ARGS = {
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
up_triu Ran
ran, honoured the contract we drafted
raywang335/L2RCLIP/loss/ordinal_ce.py
pointer only (licence: MIT); the stored copy get_code serves, from needylove/regression_tightness, is pointer only (licence: NONE) · get_code("0aa02f11f6d7af87")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (MIT), but get_code serves the stored copy, first harvested from needylove/regression_tightness, and GitHub detected no licence in that repository when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

val_collate_fn Ran
ran; our contract draft was wrong, not the code
raywang335/L2RCLIP/datasets/make_dataloader.py
code served (permissive licence) · get_code("c4ae4a3fc4c4703e")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Sonnet 4.5, prompt python_fixture_v1) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch
from PIL import Image

torch.manual_seed(0)

# Create sample batch data
# Each item in batch is a tuple of (img, pid, camid, viewid, img_path)

# Create small tensors for images (e.g., 3x8x6 images)
img1 = torch.randn(3, 8, 6)
img2 = torch.randn(3, 8, 6)

# Person IDs (can be any hashable type, typically int)
pid1 = 0
pid2 = 1

# Camera IDs (integers)
camid1 = 0
camid2 = 1

# View IDs (integers)
viewid1 = 0
viewid2 = 1

# Image paths (strings)
img_path1 = "/path/to/img1.jpg"
img_path2 = "/path/to/img2.jpg"

# Construct batch as list of tuples
batch = [
    (img1, pid1, camid1, viewid1, img_path1),
    (img2, pid2, camid2, viewid2, img_path2)
]

ARGS = {'batch': batch}
Setup block drafted by
a language model, Claude Sonnet 4.5, prompt python_fixture_v1
Imports
PIL, torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
val_collate_fn Ran
ran on a synthesized input
raywang335/L2RCLIP/datasets/make_dataloader_clipreid.py
code served (permissive licence) · get_code("3c4ce255e7bff04f")
How it ran

Ran in Syntology's sandbox on this synthesized input (drafted by a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API) and returned tuple. The image it ran in was not recorded. If your copy returns the same type on these inputs, it matched what we observed; nothing here checks that. It does NOT mean the output is correct: nothing has compared it to the paper.

import torch

torch.manual_seed(0)

# The function expects a batch which is a list of tuples (img, age)
# where img is a tensor and age is an integer or scalar

# Create sample data: a list of (image_tensor, age_value) tuples
batch = [
    (torch.randn(3, 4, 4), 25),  # image of shape (3, 4, 4), age 25
    (torch.randn(3, 4, 4), 30),  # image of shape (3, 4, 4), age 30
]

ARGS = {
    "batch": batch
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
torch — import names as written, not package names to install; a name the repository itself provides is not a package
Returned
type tuple — a tuple output has no array shape of its own; none is stated
Environment
image not recorded; re-verify against syntology-harvest-sandbox:v5-deps; not recorded for this sample: the harness installs a cuda-to-cpu shim (cuda_shim.py) before every sample and no run records whether a sample needed it; seed: none by the harness; any seed is in the setup block
make_loss Not yet run
unverified (harvested, no recorded run)
raywang335/L2RCLIP/loss/make_loss.py
code served (permissive licence) · get_code("0fe9165ed9ea4d70")
How it ran

no invocation recorded.

ordinal_entropy_stage1 Not yet run
unverified (harvested, no recorded run)
raywang335/L2RCLIP/loss/ordinal_ce_stage1.py
code served (permissive licence) · get_code("81d8962ccb99c2ae")
How it ran

no invocation recorded.

resnet18 Not yet run
unverified (harvested, no recorded run)
xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/resnet.py
code served (permissive licence) · get_code("d2a914b660839f7d")
How it ran

no invocation recorded.

vgg11 Not yet run
unverified (harvested, no recorded run)
xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/vgg.py
code served (permissive licence) · get_code("605fa285c125d097")
How it ran

no invocation recorded.

vgg11_bn Not yet run
unverified (harvested, no recorded run)
xk-huang/OrdinalCLIP/ordinalclip/models/image_encoders/vgg.py
code served (permissive licence) · get_code("71569392426397ab")
How it ran

no invocation recorded.

Also present in other papers' code

Of 23 samples lifted from this paper's linked repositories, 23 carry a function identity and 0 do not. Of the 23 distinct functions with an identity, 16 are also present in other papers whose code we hold (12 with at least one paper dated earlier, 4 the same month, 14 later) and 7 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
conv1x1 112 other papers
40 dated earlier, 4 the same month, 66 later, 2 same year, order not determinable · 6 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.01531 (2018-06)
Deep Mixture of Experts via Shallow Embedding
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 109 more not named here
conv3x3 111 other papers
41 dated earlier, 4 the same month, 64 later, 2 same year, order not determinable · 6 only as an assembly brick
1512.03385 (2015-12)
Deep Residual Learning for Image Recognition
1806.01531 (2018-06)
Deep Mixture of Experts via Shallow Embedding
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 108 more not named here
resnet18 36 other papers
19 dated earlier, 2 the same month, 15 later
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
2002.09564 (2020-02)
Towards Robust and Reproducible Active Learning Using Neural Networks
2003.04297 (2020-03)
Improved Baselines with Momentum Contrastive Learning
and 33 more not named here
normalize 29 other papers
16 dated earlier, 11 later, 2 same year, order not determinable
1609.01775 (2016-09)
Performance Measures and a Data Set for Multi-Target, Multi-Camera Tracking
1804.01438 (2018-04)
Learning Discriminative Features with Multiple Granularities for Person Re-Identification
1811.07130 (2018-11)
Batch DropBlock Network for Person Re-identification and Beyond
and 26 more not named here
cosine_dist 15 other papers
5 dated earlier, 9 later, 1 same year, order not determinable
1609.01775 (2016-09)
Performance Measures and a Data Set for Multi-Target, Multi-Camera Tracking
1804.01438 (2018-04)
Learning Discriminative Features with Multiple Granularities for Person Re-Identification
2105.09701 (2021-05)
An Empirical Study of Vehicle Re-Identification on the AI City Challenge
and 12 more not named here
euclidean_dist 15 other papers
5 dated earlier, 9 later, 1 same year, order not determinable
1609.01775 (2016-09)
Performance Measures and a Data Set for Multi-Target, Multi-Camera Tracking
1804.01438 (2018-04)
Learning Discriminative Features with Multiple Granularities for Person Re-Identification
2105.09701 (2021-05)
An Empirical Study of Vehicle Re-Identification on the AI City Challenge
and 12 more not named here
read_image 10 other papers
8 dated earlier, 2 later
1903.07071 (2019-03)
Bag of Tricks and A Strong Baseline for Deep Person Re-identification
1904.07223 (2019-04)
Joint Discriminative and Generative Learning for Person Re-identification
1905.13143 (2019-05)
Semantics-Aligned Representation Learning for Person Re-identification
and 7 more not named here
make_layers 9 other papers
1 dated earlier, 1 the same month, 7 later
2002.09564 (2020-02)
Towards Robust and Reproducible Active Learning Using Neural Networks
2306.12685 (2023-06)
Rethinking the Backward Propagation for Adversarial Transferability
2308.06248 (2023-08)
FunnyBirds: A Synthetic Vision Dataset for a Part-Based Analysis of Explainable AI Methods
and 6 more not named here
get_logger 4 other papers
4 later
Xue_ULIP-2_Towards_Scalable_Multimodal_Pre-training_for_3D_Understanding_CVPR_2024_paper (2024 (year only))
ULIP-2: Towards Scalable Multimodal Pre-training for 3D Understanding
2405.15463 (2024-05)
PoinTramba: A Hybrid Transformer-Mamba Framework for Point Cloud Analysis
2503.08363 (2025-03)
Parametric Point Cloud Completion for Polygonal Surface Reconstruction
and 1 more not named here
alexnet 3 other papers
2 dated earlier, 1 later
2002.09564 (2020-02)
Towards Robust and Reproducible Active Learning Using Neural Networks
2111.13998 (2021-11)
Targeted Supervised Contrastive Learning for Long-Tailed Recognition
2411.02853 (2024-11)
ADOPT: Modified Adam Can Converge with Any β 2 with the Optimal Rate
is_seq_of 3 other papers
3 later
2402.02500 (2024-02)
Point Cloud Matters: Rethinking the Impact of Different Observation Spaces on Robot Learning
2503.06800 (2025-03)
VideoPhy-2: A Challenging Action-Centric Physical Commonsense Evaluation in Video Generation
2503.16429 (2025-03)
Sonata: Self-Supervised Learning of Reliable Point Representations
up_triu 3 other papers
1 dated earlier, 2 later
2301.08915 (2023-01)
Improving Deep Regression with Ordinal Entropy
2404.13904 (2024-04)
Deep Regression Representation Learning with Topology
2502.09122 (2025-02)
Improving Deep Regression with Tightness
vgg11 3 other papers
3 later
2308.06248 (2023-08)
FunnyBirds: A Synthetic Vision Dataset for a Part-Based Analysis of Explainable AI Methods
2312.06372 (2023-12)
Ternary Spike: Learning Ternary Spikes for Spiking Neural Networks
2407.11910 (2024-07)
Benchmarking the Attribution Quality of Vision Models
vgg11_bn 3 other papers
3 later
2308.06248 (2023-08)
FunnyBirds: A Synthetic Vision Dataset for a Part-Based Analysis of Explainable AI Methods
2312.06372 (2023-12)
Ternary Spike: Learning Ternary Spikes for Spiking Neural Networks
2407.11910 (2024-07)
Benchmarking the Attribution Quality of Vision Models
train_collate_fn 2 other papers
2 dated earlier
2111.00880 (2021-11)
Benchmarks for Corruption Invariant Person Re-identification
2111.12084 (2021-11)
Self-Supervised Pre-Training for Transformer-Based Person Re-Identification
val_collate_fn 2 other papers
2 dated earlier
2111.00880 (2021-11)
Benchmarks for Corruption Invariant Person Re-identification
2111.12084 (2021-11)
Self-Supervised Pre-Training for Transformer-Based Person Re-Identification

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-23.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2306.13856")
get_code_for_paper("2306.13856")
have("2306.13856")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2306.13856.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2306.13856.svg)](https://syntology.ai/paper/2306.13856)

Connect an agent — have() is free.