SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · openreview_yMYRr00HFS

Robust Cross-Modal Retrieval via Generative Semantic Refinement and Exclusion-Guided Adaptation

Xinbo Gao, Nannan Wang, Xin Wei, Mingrui Zhu, Qin Yang, Yanjia Li, Jiasun Feng

OpenReview · Open in the Atlas

Code that ran

6 of 18 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; 0 honoured the contract we drafted, 0 violated it and 5 have no contract verdict; 1 failure of our instrument; 12 no recorded run), measured 2026-11-24; 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/openreview_yMYRr00HFS.json · badge: /api/ran/openreview_yMYRr00HFS.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
XLearning-SCU/2025-ICLR-TCR canonical (classifier label)
classifier basis: census
6 ran · 12 no recorded run
FunctionStatusWhere it lives
compute_modality_gap Ran
ran on a synthesized input
XLearning-SCU/2025-ICLR-TCR/losses.py
code served (permissive licence) · get_code("ddd920ac7f6ff436")
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 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
import torch.nn.functional as F

torch.manual_seed(0)

# Create small tensors for image and text embeddings
# Batch size: 2, Embedding dimension: 4
all_image_embeds = torch.randn(2, 4)
all_text_embeds = torch.randn(2, 4)

ARGS = {
    "all_image_embeds": all_image_embeds,
    "all_text_embeds": all_text_embeds,
}
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 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
entropy_loss_against_noisy Ran
ran on a synthesized input
XLearning-SCU/2025-ICLR-TCR/losses.py
code served (permissive licence) · get_code("cc26a312e1f7a513")
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 0, dtype family float; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 small tensors with distinct shapes
# outputs: logits tensor, used by softmax_entropy which expects 2D tensor (batch_size, num_classes)
outputs = torch.randn(2, 4)

# entropy_queue: a tensor that will have .max() called on it
# Should contain some entropy values for realistic testing
entropy_queue = torch.tensor([0.5, 1.2, 0.8, 1.5])

# eps: small epsilon value for numerical stability (has default)
eps = 0.001

ARGS = {
    "outputs": outputs,
    "entropy_queue": entropy_queue,
    "eps": eps,
}
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 0, dtype family float — no output shape is stated: observe_signature.py could not observe it (import:OSError)
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
forward_and_adapt Ran
ran on a synthesized input
XLearning-SCU/2025-ICLR-TCR/models/tta_baselines/tcr.py
code served (permissive licence) · get_code("8e45fbea284679e4")
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
import torch.nn as nn
from unittest.mock import Mock

torch.manual_seed(0)

class SimpleModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.linear = nn.Linear(4, 4)
    
    def forward_tta(self, modality_query, device, queue_list, max_queue_size, update_signal, step, args):
        # Returns (loss_REM, loss_UNI, loss_EMG, queue_list, outputs)
        loss_REM = torch.tensor(0.5, requires_grad=True)
        loss_UNI = torch.tensor(0.3, requires_grad=True)
        loss_EMG = torch.tensor(0.2, requires_grad=True)
        outputs = torch.randn(2, 4)
        return loss_REM, loss_UNI, loss_EMG, queue_list, outputs

class ModelWrapper(nn.Module):
    def __init__(self):
        super().__init__()
        self.module = SimpleModel()

class MetricLogger:
    def __init__(self):
        self.metrics = {}
    
    def update(self, **kwargs):
        for k, v in kwargs.items():
            self.metrics[k] = v

class ArgsConfig:
    def __init__(self):
        self.some_param = 1.0

modality_query = torch.randn(2, 4)
device = torch.device('cpu')
args = ArgsConfig()
metric_logger = MetricLogger()
queue_list = [torch.randn(2, 4) for _ in range(2)]
max_queue_size = 128
update_signal = True
step = 0

model = ModelWrapper()
optimizer = torch.optim.SGD(model.parameters(), lr=0.01)

ARGS = {
    'modality_query': modality_query,
    'device': device,
    'args': args,
    'metric_logger': metric_logger,
    'queue_list': queue_list,
    'max_queue_size': max_queue_size,
    'update_signal': update_signal,
    'step': step,
    'model': model,
    'optimizer': optimizer,
}
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
freeze_parameters Ran
ran on a synthesized input
XLearning-SCU/2025-ICLR-TCR/models/clip_reid_tta.py
code served (permissive licence) · get_code("2cf61bc3eafe5265")
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 MainModel. 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)

# Create a minimal LayerNorm module for testing
class MinimalLayerNorm(nn.Module):
    def __init__(self):
        super().__init__()
        self.ln = nn.LayerNorm(4)
    
    def forward(self, x):
        return self.ln(x)

# Create a minimal visual submodule with named parameters including 'ln'
class VisualModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.ln_1 = nn.LayerNorm(4)
        self.ln_2 = nn.LayerNorm(4)
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create a minimal transformer submodule with named parameters including 'ln'
class TransformerModule(nn.Module):
    def __init__(self):
        super().__init__()
        self.ln_1 = nn.LayerNorm(4)
        self.ln_2 = nn.LayerNorm(4)
        self.linear = nn.Linear(4, 3)
    
    def forward(self, x):
        return self.linear(x)

# Create a minimal base_model with visual and transformer attributes
class BaseModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.visual = VisualModule()
        self.transformer = TransformerModule()
    
    def forward(self, x):
        return x

# Create the main model with a base_model attribute
class MainModel(nn.Module):
    def __init__(self):
        super().__init__()
        self.base_model = BaseModel()
    
    def forward(self, x):
        return self.base_model(x)

# Instantiate the model
model = MainModel()

# Define ARGS dictionary with all parameters
ARGS = {
    'model': model,
    'only_visual': True
}
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 MainModel — a MainModel output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a MainModel 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
resize_pos_embed Ran
ran; our contract draft was wrong, not the code
XLearning-SCU/2025-ICLR-TCR/models/clip_reid_model.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from wentaotan/mllm4text-reid, is pointer only (licence: NONE) · get_code("489d084ef038d428")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from wentaotan/mllm4text-reid, 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.

softmax_entropy Ran
ran on a synthesized input
XLearning-SCU/2025-ICLR-TCR/losses.py
code served (permissive licence) · get_code("61925d8cd706d85d")
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; no output shape is stated. The image it ran in was not recorded. If your copy returns the same type and ndim 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 softmax_entropy takes a tensor of logits and computes entropy
# It expects a 2D tensor where dimension 1 is the logit dimension
# The function calls:
# - x.softmax(1) - softmax along dimension 1
# - x.log_softmax(1) - log softmax along dimension 1
# - element-wise multiplication and negation

# Create a small 2D tensor (batch_size=2, num_classes=4)
x = torch.randn(2, 4)

ARGS = {
    "x": x
}
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 — no output shape is stated: observe_signature.py could not observe it (import:OSError)
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
all_gather_with_grad Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/ddp.py
code served (permissive licence) · get_code("aaf3b629a2583e5a")
How it ran

no invocation recorded.

build_CLIP_from_openai_pretrained Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/models/clip_reid_model.py
code served (permissive licence) · get_code("1ec452fe47fb3dbd")
How it ran

no invocation recorded.

clip_retrieval Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/models/clip_tta.py
code served (permissive licence) · get_code("0f918cdf8e372fc6")
How it ran

no invocation recorded.

clip_retrieval Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/models/fashion_clip_tta.py
code served (permissive licence) · get_code("024614ff65d48331")
How it ran

no invocation recorded.

concat_all_gather Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/ddp.py
code served (permissive licence) · get_code("4c4576841d70ace1")
How it ran

no invocation recorded.

get_image_embeds_blip Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/models/blip_tta.py
code served (permissive licence) · get_code("7a0dd1bed7ac7d2e")
How it ran

no invocation recorded.

get_text_embeds_blip Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/models/blip_tta.py
code served (permissive licence) · get_code("5de675cef8a37e46")
How it ran

no invocation recorded.

itm_eval Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/evaluation.py
code served (permissive licence) · get_code("2bb9dbc8eb563360")
How it ran

no invocation recorded.

load Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/models/clip_tta.py
pointer only (licence: Apache-2.0); the stored copy get_code serves, from mrflogs/ICLR24, is pointer only (licence: NONE) · get_code("f6f30e41636ae569")
How it ran

The body of this sample is withheld: this paper's link allows the body inline (Apache-2.0), but get_code serves the stored copy, first harvested from mrflogs/ICLR24, 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. No invocation recorded.

load_checkpoint Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/models/clip_reid_tta.py
code served (permissive licence) · get_code("2f1eb800a4f0bc41")
How it ran

no invocation recorded.

load_checkpoint Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/models/clip_tta.py
code served (permissive licence) · get_code("743b4a511ee73c4c")
How it ran

no invocation recorded.

reid_clip_retrieval Not yet run
unverified (harvested, no recorded run)
XLearning-SCU/2025-ICLR-TCR/models/clip_reid_tta.py
code served (permissive licence) · get_code("aadf072bdc3e1e1b")
How it ran

no invocation recorded.

Also present in other papers' code

Of 18 samples lifted from this paper's linked repositories, 18 carry a function identity and 0 do not. Of the 18 distinct functions with an identity, 2 are also present in other papers whose code we hold (0 with at least one paper dated earlier, 0 the same month, 0 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
load 23 other papers
23 same year, order not determinable
2208.05318 (2022-08)
Generative Action Description Prompts for Skeleton-based Action Recognition
2210.01115 (2022-10)
LASP: Text-to-Text Optimization for Language-Aware Soft Prompting of Vision & Language Models
2212.04501 (2022-12)
Learning Video Representations from Large Language Models
and 20 more not named here
resize_pos_embed 3 other papers
3 same year, order not determinable
2303.12501 (2023-03)
Cross-Modal Implicit Relation Reasoning and Aligning for Text-to-Image Person Retrieval
2308.09911 (2023-08)
Noisy-Correspondence Learning for Text-to-Image Person Re-identification
2405.04940 (2024-05)
Harnessing the Power of MLLMs for Transferable Text-to-Image Person ReID

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-24.

Repositories linked to this paper

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

Abstract

Vision-Language Pre-trained (VLP) models are vulnerable to real-world query noise. Current cross-modal Test-Time Adaptation (TTA) methods often rely on high-confidence predictions, which induces confirmation bias and neglects the informative signals in ambiguous Low-Confidence Queries. To address this, we propose Generative Semantic Refinement and Exclusion-Guided Adaptation (ReEx), a robust retrieval framework that extends adaptation to the entire query stream. Specifically, textual structural noise is rectified by a Generative Semantic Refinement (GSR) module, which employs Confidence-Guided Dynamic Fusion to anchor LLM-based repairs and prevent semantic drift. To exploit ambiguous data, adaptation is driven by Exclusion-Guided Proxy Contrastive Learning (EPCL), which imposes negative constraints via Exclusion Sets of unlikely candidates. Experimental results on COCO-C and Flickr-C demonstrate that ReEx consistently outperforms existing TTA methods, achieving significant robustness gains with a justifiable computational tradeoff. Code will be made available at https: //github.com/qinyxdu/ReEx.

For agents

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

get_harvested_code_for_paper("openreview_yMYRr00HFS")
get_code_for_paper("openreview_yMYRr00HFS")
have("openreview_yMYRr00HFS")

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

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

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

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

Connect an agent — have() is free.