Papers › Contrastive Grouping with Transformer for Referring Image Segmentation

Contrastive Grouping with Transformer for Referring Image Segmentation

2 Sep 2023CVPR 2023 1arXiv:2309.01017archive 2025-07-28

Jiajin Tang, Ge Zheng, Cheng Shi, Sibei Yang

Referring image segmentation aims to segment the target referent in an image conditioning on a natural language expression. Existing one-stage methods employ per-pixel classification frameworks, which attempt straightforwardly to align vision and language at the pixel level, thus failing to capture critical object-level information. In this paper, we propose a mask classification framework, Contrastive Grouping with Transformer network (CGFormer), which explicitly captures object-level information via token-based querying and grouping strategy. Specifically, CGFormer first introduces learnable query tokens to represent objects and then alternately queries linguistic features and groups visual features into the query tokens for object-aware cross-modal reasoning. In addition, CGFormer achieves cross-level interaction by jointly updating the query tokens and decoding masks in every two consecutive layers. Finally, CGFormer cooperates contrastive learning to the grouping strategy to identify the token and its mask corresponding to the referent. Experimental results demonstrate that CGFormer outperforms state-of-the-art methods in both segmentation and generalization settings consistently and significantly.

PaperPDFConference PDFCodeCode Syntology ran

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

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

Code

Syntology Ran 22 of 23 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 8 ran · our draft was wrong; 1 ran · fixture could not drive it; 13 ran with no contract checked.

By repository: official repository: 23 samples from 1 repository, 22 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

toneyaya/cgformer officialmentioned in paperpytorchMIT report

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

Code Syntology ran Syntology

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

8ran · our draft was wrong
1ran · fixture could not drive it
13ran
1unverified

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

Harvested from toneyaya/cgformer. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

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

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

swish toneyaya/cgformer/bert/activations.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 0f786c407fb1ee4c · report
whitespace_tokenize toneyaya/cgformer/bert/tokenization_bert.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · cf9ffa02a42184af · report
window_partition toneyaya/cgformer/model/backbone.py official repository ran · fixture could not drive it fingerprinted MIT (permissive) · 144d10b49baeb8a6 · report
calc_banned_bad_words_ids toneyaya/cgformer/bert/generation_utils.py official repository ran MIT (permissive) · e3ead4161d5e3d4a · report
calc_banned_ngram_tokens toneyaya/cgformer/bert/generation_utils.py official repository ran MIT (permissive) · 8d77347cfa15b834 · report
conv_layer toneyaya/cgformer/model/layers.py official repository ran · our draft was wrong MIT (permissive) · dbfe3357dc25ca5f · report
dice_loss toneyaya/cgformer/model/segmenter.py official repository ran fingerprinted MIT (permissive) · 206e880de1f589bc · report
find_pruneable_heads_and_indices toneyaya/cgformer/bert/modeling_utils.py official repository ran MIT (permissive) · b239247b87d4f3dc · report
gelu_fast toneyaya/cgformer/bert/activations.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · a4475703ff58ecf9 · report
gelu_new toneyaya/cgformer/bert/activations.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · dc9ffc0f29e7fa3d · report
hard_softmax toneyaya/cgformer/model/layers.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · cb0acca1ea9ead1e · report
hf_bucket_url toneyaya/cgformer/bert/file_utils.py official repository ran fingerprinted MIT (permissive) · 070b5bdeecd71825 · report
is_remote_url toneyaya/cgformer/bert/file_utils.py official repository ran MIT (permissive) · 899d1e2736236351 · report
l2norm toneyaya/cgformer/model/layers.py official repository ran fingerprinted MIT (permissive) · 1f0f760eab66c082 · report
load_vocab toneyaya/cgformer/bert/tokenization_bert.py official repository ran · our draft was wrong MIT (permissive) · e7fbc7a74a3457c7 · report
mish toneyaya/cgformer/bert/modeling_bert.py official repository ran fingerprinted MIT (permissive) · 22b41155e451683b · report
prune_conv1d_layer toneyaya/cgformer/bert/modeling_utils.py official repository ran MIT (permissive) · b3ee64494a3b6d38 · report
prune_linear_layer toneyaya/cgformer/bert/modeling_utils.py official repository ran MIT (permissive) · a37615738b3ddcd3 · report
sigmoid_focal_loss toneyaya/cgformer/model/segmenter.py official repository ran MIT (permissive) · e71d9c7dd14f39b8 · report
top_k_top_p_filtering toneyaya/cgformer/bert/generation_utils.py official repository ran MIT (permissive) · 0dc219ab6716a127 · report
url_to_filename toneyaya/cgformer/bert/file_utils.py official repository ran fingerprinted MIT (permissive) · e827d94caab33f59 · report
window_reverse toneyaya/cgformer/model/backbone.py official repository ran · our draft was wrong MIT (permissive) · 61bf152e6a42a184 · report
load_tf_weights_in_bert toneyaya/cgformer/bert/modeling_bert.py official repository unverified MIT (permissive) · fb9398de2966d6de · report

Tasks

Contrastive LearningImage SegmentationObjectSegmentationSemantic Segmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

Methods

ALIGNAbsolute Position EncodingsAdamAttentionBPEContrastive LearningDense ConnectionsDropoutLabel SmoothingLayer NormalizationLinear LayerMulti-Head AttentionPosition-Wise Feed-Forward LayerResidual ConnectionSoftmaxTransformer

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