SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2111.15174 · 2021

CRIS: CLIP-Driven Referring Image Segmentation

arXiv · PDF · Open in the Atlas

Code that ran

8 of 12 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 0 have no contract verdict; 7 failures of our instrument; 4 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/2111.15174.json · badge: /api/ran/2111.15174.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
DerrickWang005/CRIS.pytorch canonical (classifier label)
classifier basis not recorded on the link
8 ran · 4 no recorded run
FunctionStatusWhere it lives
basic_clean Ran
ran; our contract draft was wrong, not the code
DerrickWang005/CRIS.pytorch/utils/simple_tokenizer.py
pointer only (licence: MIT); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("98f385d847636a3e")
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 ltpwy/MSCI, 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.

conv_layer Ran
ran; our contract draft was wrong, not the code
DerrickWang005/CRIS.pytorch/model/layers.py
pointer only (licence: MIT); the stored copy get_code serves, from franciszzj/tp-sis, is pointer only (licence: NONE) · get_code("dbfe3357dc25ca5f")
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 franciszzj/tp-sis, 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_pairs Ran
ran; our contract draft was wrong, not the code
DerrickWang005/CRIS.pytorch/utils/simple_tokenizer.py
code served (permissive licence) · get_code("d919ae32e5e4e616")
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 set. 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 get_pairs takes a word parameter
# A word is represented as a tuple of symbols (variable-length strings)
# The function iterates through the word and creates pairs of consecutive symbols

word = ("hello", "world", "test")

ARGS = {
    "word": word
}
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 set — a set output has no array shape of its own; none is stated — the instrument coerces any output to an array; for a set 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
init_random_seed Ran
ran, honoured the contract we drafted
DerrickWang005/CRIS.pytorch/utils/misc.py
code served (permissive licence) · get_code("539cbfa1328eb51b")
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. The code mentions cuda, and the harness aliases cuda to the CPU for every sample; whether this run needed that is 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 numpy as np
import torch
import torch.distributed as dist

torch.manual_seed(0)
np.random.seed(0)

ARGS = {
    'seed': None,
    'device': 'cpu',
    'rank': 0,
    'world_size': 1
}
Setup block drafted by
a language model, Claude Haiku 4.5, prompt python_fixture_v1, through the batch API
Imports
numpy, 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
linear_layer Ran
ran; our contract draft was wrong, not the code
DerrickWang005/CRIS.pytorch/model/layers.py
pointer only (licence: MIT); the stored copy get_code serves, from franciszzj/tp-sis, is pointer only (licence: NONE) · get_code("89f9fd49ddec76ba")
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 franciszzj/tp-sis, 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.

load_cfg_from_cfg_file Ran
ran; our contract draft was wrong, not the code
DerrickWang005/CRIS.pytorch/utils/config.py
pointer only (licence: MIT); the stored copy get_code serves, from arya-domain/UA-VLS, is pointer only (licence: NONE) · get_code("cc23416cff396c39")
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 arya-domain/UA-VLS, 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.

trainMetricGPU Ran
ran; our contract draft was wrong, not the code
DerrickWang005/CRIS.pytorch/utils/misc.py
code served (permissive licence) · get_code("78241a45492d6667")
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, ndim 1, 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 takes output and target tensors that must:
# 1. Have the same shape
# 2. Have dim in [2, 3, 4]
# 3. Be flattened to 2D (batch_size, features)
# 4. Support sigmoid, comparison operations, and bool conversion

# Create small tensors with batch_size=2
# Using dim=4 to satisfy the assertion and have a reasonable flattened size
batch_size = 2
spatial_dims = (3, 2)  # 3x2 spatial, will flatten to 6 features per sample

output = torch.randn(batch_size, 1, 3, 2)  # Shape: (2, 1, 3, 2) - dim=4
target = torch.randint(0, 2, (batch_size, 1, 3, 2)).float()  # Same shape, binary values

ARGS = {
    "output": output,
    "target": target,
    "threshold": 0.35,
    "pr_iou": 0.5,
}
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, ndim 1, dtype family float — a tuple output has no array shape of its own; none is stated
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
whitespace_clean Ran
ran; our contract draft was wrong, not the code
DerrickWang005/CRIS.pytorch/utils/simple_tokenizer.py
pointer only (licence: MIT); the stored copy get_code serves, from ltpwy/MSCI, is pointer only (licence: NONE) · get_code("9542161e9640b858")
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 ltpwy/MSCI, 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.

build_model Not yet run
unverified (harvested, no recorded run)
DerrickWang005/CRIS.pytorch/model/clip.py
pointer only (licence: MIT); the stored copy get_code serves, from like413/vista, is pointer only (licence: NOASSERTION) · get_code("d761a6dca9831c24")
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 like413/vista, and GitHub could not classify the licence of that repository (NOASSERTION). 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.

concat_all_gather Not yet run
unverified (harvested, no recorded run)
DerrickWang005/CRIS.pytorch/utils/misc.py
code served (permissive licence) · get_code("73cecca9f3575f09")
How it ran

no invocation recorded.

loads_pyarrow Not yet run
unverified (harvested, no recorded run)
DerrickWang005/CRIS.pytorch/utils/dataset.py
code served (permissive licence) · get_code("b4c154b6f0568b6b")
How it ran

no invocation recorded.

merge_cfg_from_list Not yet run
unverified (harvested, no recorded run)
DerrickWang005/CRIS.pytorch/utils/config.py
pointer only (licence: MIT); the stored copy get_code serves, from arya-domain/UA-VLS, is pointer only (licence: NONE) · get_code("022883c7911679b3")
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 arya-domain/UA-VLS, 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.

Also present in other papers' code

Of 12 samples lifted from this paper's linked repositories, 12 carry a function identity and 0 do not. Of the 12 distinct functions with an identity, 12 are also present in other papers whose code we hold (7 with at least one paper dated earlier, 1 the same month, 12 later) and 0 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
get_pairs 258 other papers
16 dated earlier, 241 later, 1 undated · 4 only as an assembly brick
1802.06474 (2018-02)
A Closed-form Solution to Photorealistic Image Stylization
1803.01128 (2018-03)
Seq2Sick: Evaluating the Robustness of Sequence-to-Sequence Models with Adversarial Examples
1809.00125 (2018-09)
Simple Fusion: Return of the Language Model
and 255 more not named here
whitespace_clean 231 other papers
4 dated earlier, 226 later, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 228 more not named here
basic_clean 218 other papers
4 dated earlier, 213 later, 1 undated · 4 only as an assembly brick
1901.07441 (2019-01)
PadChest: A large chest x-ray image dataset with multi-label annotated reports
2107.06383 (2021-07)
How Much Can CLIP Benefit Vision-and-Language Tasks?
2108.10904 (2021-08)
SimVLM: Simple Visual Language Model Pretraining with Weak Supervision
and 215 more not named here
concat_all_gather 138 other papers
29 dated earlier, 2 the same month, 105 later, 2 same year, order not determinable · 33 only as an assembly brick
1710.09412 (2017-10)
mixup: BEYOND EMPIRICAL RISK MINIMIZATION
1905.04899 (2019-05)
CutMix: Regularization Strategy to Train Strong Classifiers with Localizable Features
1905.12794 (2019-05)
Fashion IQ: A New Dataset Towards Retrieving Images by Natural Language Feedback
and 135 more not named here
merge_cfg_from_list 23 other papers
2 dated earlier, 21 later
2003.13328 (2020-03)
Strip Pooling: Rethinking Spatial Pooling for Scene Parsing
2108.05293 (2021-08)
Few-Shot Segmentation with Global and Local Contrastive Learning
2203.07615 (2022-03)
Learning What Not to Segment: A New Perspective on Few-Shot Segmentation
and 20 more not named here
load_cfg_from_cfg_file 22 other papers
2 dated earlier, 20 later
2003.13328 (2020-03)
Strip Pooling: Rethinking Spatial Pooling for Scene Parsing
2108.05293 (2021-08)
Few-Shot Segmentation with Global and Local Contrastive Learning
2203.07615 (2022-03)
Learning What Not to Segment: A New Perspective on Few-Shot Segmentation
and 19 more not named here
conv_layer 9 other papers
9 later
2210.10276 (2022-10)
CLIP-Driven Fine-grained Text-Image Person Re-identification
2306.09244 (2023-06)
Text Promptable Surgical Instrument Segmentation with Vision-Language Models
2307.11545 (2023-07)
Bridging Vision and Language Encoders: Parameter-Efficient Tuning for Referring Image Segmentation
and 6 more not named here
linear_layer 7 other papers
7 later
2210.10276 (2022-10)
CLIP-Driven Fine-grained Text-Image Person Re-identification
2306.09244 (2023-06)
Text Promptable Surgical Instrument Segmentation with Vision-Language Models
2307.11545 (2023-07)
Bridging Vision and Language Encoders: Parameter-Efficient Tuning for Referring Image Segmentation
and 4 more not named here
loads_pyarrow 6 other papers
1 dated earlier, 5 later
2110.07402 (2021-10)
Self-Supervised Learning by Estimating Twin Class Distributions
2202.07800 (2022-02)
Not All Patches are What You Need: Expediting Vision Transformers via Token Reorganizations
2209.04996 (2022-09)
Switchable Online Knowledge Distillation
and 3 more not named here
build_model 3 other papers
3 later
2306.09244 (2023-06)
Text Promptable Surgical Instrument Segmentation with Vision-Language Models
2312.01623 (2023-12)
Universal Segmentation at Arbitrary Granularity with Language Instruction
2410.23828 (2024-10)
Show Me What and Where has Changed? Question Answering and Grounding for Remote Sensing Change Detection
init_random_seed 2 other papers
2 later
2307.11545 (2023-07)
Bridging Vision and Language Encoders: Parameter-Efficient Tuning for Referring Image Segmentation
2501.08580 (2025-01)
Densely Connected Parameter-Efficient Tuning for Referring Image Segmentation
trainMetricGPU 2 other papers
2 later
2307.11545 (2023-07)
Bridging Vision and Language Encoders: Parameter-Efficient Tuning for Referring Image Segmentation
2501.08580 (2025-01)
Densely Connected Parameter-Efficient Tuning for Referring Image Segmentation

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

Referring image segmentation aims to segment a referent via a natural linguistic expression.Due to the distinct data properties between text and image, it is challenging for a network to well align text and pixel-level features. Existing approaches use pretrained models to facilitate learning, yet separately transfer the language/vision knowledge from pretrained models, ignoring the multi-modal corresponding information. Inspired by the recent advance in Contrastive Language-Image Pretraining (CLIP), in this paper, we propose an end-to-end CLIP-Driven Referring Image Segmentation framework (CRIS). To transfer the multi-modal knowledge effectively, CRIS resorts to vision-language decoding and contrastive learning for achieving the text-to-pixel alignment. More specifically, we design a vision-language decoder to propagate fine-grained semantic information from textual representations to each pixel-level activation, which promotes consistency between the two modalities. In addition, we present text-to-pixel contrastive learning to explicitly enforce the text feature similar to the related pixel-level features and dissimilar to the irrelevances. The experimental results on three benchmark datasets demonstrate that our proposed framework significantly outperforms the state-of-the-art performance without any post-processing. The code will be released.

For agents

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

get_harvested_code_for_paper("2111.15174")
get_code_for_paper("2111.15174")
have("2111.15174")

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

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

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

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

Connect an agent — have() is free.