Papers › Mask Grounding for Referring Image Segmentation

Mask Grounding for Referring Image Segmentation

19 Dec 2023CVPR 2024 1arXiv:2312.12198archive 2025-07-28

Yong Xien Chng, Henry Zheng, Yizeng Han, Xuchong Qiu, Gao Huang

Referring Image Segmentation (RIS) is a challenging task that requires an algorithm to segment objects referred by free-form language expressions. Despite significant progress in recent years, most state-of-the-art (SOTA) methods still suffer from considerable language-image modality gap at the pixel and word level. These methods generally 1) rely on sentence-level language features for language-image alignment and 2) lack explicit training supervision for fine-grained visual grounding. Consequently, they exhibit weak object-level correspondence between visual and language features. Without well-grounded features, prior methods struggle to understand complex expressions that require strong reasoning over relationships among multiple objects, especially when dealing with rarely used or ambiguous clauses. To tackle this challenge, we introduce a novel Mask Grounding auxiliary task that significantly improves visual grounding within language features, by explicitly teaching the model to learn fine-grained correspondence between masked textual tokens and their matching visual objects. Mask Grounding can be directly used on prior RIS methods and consistently bring improvements. Furthermore, to holistically address the modality gap, we also design a cross-modal alignment loss and an accompanying alignment module. These additions work synergistically with Mask Grounding. With all these techniques, our comprehensive approach culminates in MagNet (Mask-grounded Network), an architecture that significantly outperforms prior arts on three key benchmarks (RefCOCO, RefCOCO+ and G-Ref), demonstrating our method's effectiveness in addressing current limitations of RIS algorithms. Our code and pre-trained weights will be released.

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="2312.12198")

Code

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

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

yxchng/mask-grounding officialmentioned on GitHubpytorchAGPL-3.0 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

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

4ran · our draft was wrong
1ran · fixture could not drive it
5ran
3unverified

Licence: 13 of the 13 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 yxchng/mask-grounding. “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 yxchng/mask-grounding/bert/activations.py official repository ran · our draft was wrong fingerprinted AGPL-3.0 (copyleft) · pointer only · 0f786c407fb1ee4c · report
window_partition yxchng/mask-grounding/lib/backbone.py official repository ran · fixture could not drive it fingerprinted AGPL-3.0 (copyleft) · pointer only · 144d10b49baeb8a6 · report
find_pruneable_heads_and_indices yxchng/mask-grounding/bert/modeling_utils.py official repository ran AGPL-3.0 (copyleft) · pointer only · b239247b87d4f3dc · report
gelu_fast yxchng/mask-grounding/bert/activations.py official repository ran · our draft was wrong fingerprinted AGPL-3.0 (copyleft) · pointer only · a4475703ff58ecf9 · report
gelu_new yxchng/mask-grounding/bert/activations.py official repository ran · our draft was wrong fingerprinted AGPL-3.0 (copyleft) · pointer only · dc9ffc0f29e7fa3d · report
mish yxchng/mask-grounding/bert/modeling_bert.py official repository ran fingerprinted AGPL-3.0 (copyleft) · pointer only · 22b41155e451683b · report
pad_if_smaller yxchng/mask-grounding/transforms.py official repository ran AGPL-3.0 (copyleft) · pointer only · 452475fb6da97402 · report
prune_conv1d_layer yxchng/mask-grounding/bert/modeling_utils.py official repository ran AGPL-3.0 (copyleft) · pointer only · b3ee64494a3b6d38 · report
prune_linear_layer yxchng/mask-grounding/bert/modeling_utils.py official repository ran AGPL-3.0 (copyleft) · pointer only · a37615738b3ddcd3 · report
window_reverse yxchng/mask-grounding/lib/backbone.py official repository ran · our draft was wrong AGPL-3.0 (copyleft) · pointer only · 61bf152e6a42a184 · report
lavt yxchng/mask-grounding/lib/multimodal_segmentation.py official repository unverified AGPL-3.0 (copyleft) · pointer only · 67fee1d4b5d4493d · report
lavt_one yxchng/mask-grounding/lib/multimodal_segmentation.py official repository unverified AGPL-3.0 (copyleft) · pointer only · 2944cc78660b63ff · report
load_tf_weights_in_bert yxchng/mask-grounding/bert/modeling_bert.py official repository unverified AGPL-3.0 (copyleft) · pointer only · fb9398de2966d6de · report

Tasks

Image SegmentationReferring Expression SegmentationSegmentationSemantic SegmentationSentenceVisual Groundingcross-modal alignment

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Referring Expression Segmentation RefCOCO testA MagNet Overall IoU 78.24 #10 of 13 Archive leaderboard report
Referring Expression Segmentation RefCOCO testB MagNet Overall IoU 71.05 #10 of 13 Archive leaderboard report
Referring Expression Segmentation RefCOCO+ test B MagNet Overall IoU 58.14 #15 of 30 Archive leaderboard report
Referring Expression Segmentation RefCOCO+ testA MagNet Overall IoU 71.32 #16 of 30 Archive leaderboard report
Referring Expression Segmentation RefCOCO+ val MagNet Overall IoU 66.16 #19 of 33 Archive leaderboard report
Referring Expression Segmentation RefCOCOg-test MagNet Overall IoU 66.03 #14 of 18 Archive leaderboard report
Referring Expression Segmentation RefCOCOg-val MagNet Overall IoU 65.36 #16 of 23 Archive leaderboard report
Referring Expression Segmentation RefCoCo val MagNet Overall IoU 75.24 #18 of 37 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

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