SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2404.17753 · CVPR · 2024

Leveraging Cross-Modal Neighbor Representation for Improved CLIP Classification

Han-Jia Ye, De-Chuan Zhan, Chao Yi, Lu Ren

arXiv · PDF · Open in the Atlas

Code that ran

11 of 20 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; 1 honoured the contract we drafted, 0 violated it and 1 has no contract verdict; 9 failures of our instrument; 9 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/2404.17753.json · badge: /api/ran/2404.17753.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
ycaigogogo/cvpr24-coder canonical (classifier label)
classifier basis: census
7 ran · 7 no recorded run
YCaigogogo/CVPR24-CODER community
Papers with Code archive
4 ran · 2 no recorded run
FunctionStatusWhere it lives
get_abs_path Ran
ran; our contract draft was wrong, not the code
ycaigogogo/cvpr24-coder/datasets/dataset_config.py
pointer only (licence: NONE) · get_code("cd842675cb581de9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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_ana_templates Ran
ran; our contract draft was wrong, not the code
YCaigogogo/CVPR24-CODER/CODER/CODER.py
pointer only (licence: NONE) · get_code("a64d39d1a99f8f42")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YCaigogogo/CVPR24-CODER 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_att_templates Ran
ran on a synthesized input
YCaigogogo/CVPR24-CODER/CODER/CODER.py
pointer only (licence: NONE) · get_code("979ae65cc828c9e4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YCaigogogo/CVPR24-CODER 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_class_names Ran
ran; our contract draft was wrong, not the code
ycaigogogo/cvpr24-coder/classify_zero_shot.py
pointer only (licence: NONE) · get_code("644c2a9c22e5f2f2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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_name_templates Ran
ran; our contract draft was wrong, not the code
YCaigogogo/CVPR24-CODER/CODER/CODER.py
pointer only (licence: NONE) · get_code("86c82affa2d154f9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YCaigogogo/CVPR24-CODER 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_ovo_templates Ran
ran; our contract draft was wrong, not the code
YCaigogogo/CVPR24-CODER/CODER/CODER.py
pointer only (licence: NONE) · get_code("51bee0de7e56c2ea")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YCaigogogo/CVPR24-CODER 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.

heuristic_classifier Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
ycaigogogo/cvpr24-coder/classify_zero_shot.py
pointer only (licence: NONE) · get_code("1d5e24ac93408ca4")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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.

load_pickle Ran
ran; our contract draft was wrong, not the code
ycaigogogo/cvpr24-coder/datasets/dataset_class.py
pointer only (licence: NONE) · get_code("d9847cc2f8495b76")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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.

minmax_normalization Ran
ran; our contract draft was wrong, not the code
ycaigogogo/cvpr24-coder/utils.py
pointer only (licence: NONE) · get_code("d94bc26deebfbac5")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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.

pil_loader Ran
ran, honoured the contract we drafted
ycaigogogo/cvpr24-coder/datasets/dataset_class.py
pointer only (licence: NONE) · get_code("f321f54723433661")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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.

update_cfg Ran
ran; our contract draft was wrong, not the code
ycaigogogo/cvpr24-coder/utils.py
pointer only (licence: NONE) · get_code("9b9ce4000929d33f")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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.

CODER Not yet run
unverified (harvested, no recorded run)
YCaigogogo/CVPR24-CODER/CODER/CODER.py
pointer only (licence: NONE) · get_code("cdb65597626e1418")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YCaigogogo/CVPR24-CODER 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. No invocation recorded.

build_model Not yet run
unverified (harvested, no recorded run)
ycaigogogo/cvpr24-coder/CLIP/clip/model.py
pointer only (licence: NONE) · get_code("39e6b23b55f376ea")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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. No invocation recorded.

cls_acc Not yet run
unverified (harvested, no recorded run)
ycaigogogo/cvpr24-coder/utils.py
pointer only (licence: NONE) · get_code("f2a0a5061e7c204e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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. No invocation recorded.

get_cache Not yet run
unverified (harvested, no recorded run)
ycaigogogo/cvpr24-coder/classify_few_shot.py
pointer only (licence: NONE) · get_code("6ee57d74d436ecab")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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. No invocation recorded.

get_templates Not yet run
unverified (harvested, no recorded run)
YCaigogogo/CVPR24-CODER/CODER/CODER.py
pointer only (licence: NONE) · get_code("5e8258eccc2a7bfa")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, YCaigogogo/CVPR24-CODER 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. No invocation recorded.

get_templates Not yet run
unverified (harvested, no recorded run)
ycaigogogo/cvpr24-coder/CODER/template.py
pointer only (licence: NONE) · get_code("669c0f6e8ba13fa3")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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. No invocation recorded.

get_test_feature Not yet run
unverified (harvested, no recorded run)
ycaigogogo/cvpr24-coder/classify_few_shot.py
pointer only (licence: NONE) · get_code("216a738551d825eb")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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. No invocation recorded.

get_val_feature Not yet run
unverified (harvested, no recorded run)
ycaigogogo/cvpr24-coder/classify_few_shot.py
pointer only (licence: NONE) · get_code("558e0e421031aff9")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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. No invocation recorded.

modify_top_gap Not yet run
unverified (harvested, no recorded run)
ycaigogogo/cvpr24-coder/classify_zero_shot.py
pointer only (licence: NONE) · get_code("5e6389c00af848a2")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, ycaigogogo/cvpr24-coder 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. No invocation recorded.

Also present in other papers' code

Of 20 samples lifted from this paper's linked repositories, 20 carry a function identity and 0 do not. Of the 19 distinct functions with an identity, 3 are also present in other papers whose code we hold (3 with at least one paper dated earlier, 2 the same month, 3 later) and 16 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
pil_loader 66 other papers
45 dated earlier, 3 the same month, 16 later, 2 same year, order not determinable
1502.03044 (2015-02)
Show, Attend and Tell: Neural Image Caption Generation with Visual Attention
1710.10196 (2017-10)
Progressive Growing of GANs for Improved Quality, Stability, and Variation
1711.02512 (2017-11)
Fine-tuning CNN Image Retrieval with No Human Annotation
and 63 more not named here
build_model 53 other papers
20 dated earlier, 3 the same month, 28 later, 2 same year, order not determinable
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2210.01115 (2022-10)
LASP: Text-to-Text Optimization for Language-Aware Soft Prompting of Vision & Language Models
2211.09552 (2022-11)
UniFormerV2: Spatiotemporal Learning by Arming Image ViTs with Video UniFormer
and 50 more not named here
cls_acc 12 other papers
4 dated earlier, 8 later · 2 only as an assembly brick
2210.01253 (2022-10)
PLOT: PROMPT LEARNING WITH OPTIMAL TRANS-PORT FOR VISION-LANGUAGE MODELS
2402.04087 (2024-02)
A Hard-to-Beat Baseline for Training-free CLIP-based Adaptation
2403.12964 (2024-03)
Enhancing Vision-Language Few-Shot Adaptation with Negative Learning
and 9 more not named here

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

CLIP showcases exceptional cross-modal matching capabilities due to its training on image-text contrastive learning tasks. However, without specific optimization for unimodal scenarios, its performance in single-modality feature extraction might be suboptimal. Despite this, some studies have directly used CLIP's image encoder for tasks like fewshot classification, introducing a misalignment between its pre-training objectives and feature extraction methods. This inconsistency can diminish the quality of the image's feature representation, adversely affecting CLIP's effectiveness in target tasks. In this paper, we view text features as precise neighbors of image features in CLIP's space and present a novel CrOss-moDal nEighbor Representation (CODER) based on the distance structure between images and their neighbor texts. This feature extraction method aligns better with CLIP's pre-training objectives, thereby fully leveraging CLIP's robust cross-modal capabilities. The key to construct a high-quality CODER lies in how to create a vast amount of high-quality and diverse texts to match with images. We introduce the Auto Text Generator (ATG) to automatically generate the required texts in a data-free and training-free manner. We apply CODER to CLIP's zero-shot and few-shot image classification tasks. Experiment results across various datasets and models confirm CODER's effectiveness. Code is available at: https: //github.com/YCaigogogo/CVPR24-CODER.

For agents

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

get_harvested_code_for_paper("2404.17753")
get_code_for_paper("2404.17753")
have("2404.17753")

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

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

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

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

Connect an agent — have() is free.