SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.04842 · NeurIPS · 2024

A Simple Image Segmentation Framework via In-Context Examples

Yang Liu, Xinlong Wang, Chunhua Shen, Hao Chen, Muzhi Zhu, Chenchen Jing, Hengtao Li

arXiv · PDF · Open in the Atlas

Code that ran

10 of 11 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; 9 failures of our instrument; 1 no recorded run), measured 2026-11-22; 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/2410.04842.json · badge: /api/ran/2410.04842.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
aim-uofa/SINE canonical (classifier label)
classifier basis: census
10 ran · 1 no recorded run
FunctionStatusWhere it lives
all_gather Ran
ran; our contract draft was wrong, not the code
aim-uofa/SINE/sine/utils/comm.py
pointer only (licence: NOASSERTION) · get_code("1666068b54bd01a0")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, aim-uofa/SINE (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. A run is recorded.

batch_dice_loss Ran
ran; our contract draft was wrong, not the code
aim-uofa/SINE/sine/model/matcher.py
pointer only (licence: NONE) · get_code("bc2cb481a75c370d")
How it ran

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

calculate_uncertainty Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aim-uofa/SINE/sine/model/criterion.py
pointer only (licence: NONE) · get_code("2dcb8123d89bb1ff")
How it ran

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

dice_loss Ran
ran; our contract draft was wrong, not the code
aim-uofa/SINE/sine/model/criterion.py
pointer only (licence: NOASSERTION) · get_code("d50eb3fbba28dbbf")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, aim-uofa/SINE (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. A run is recorded.

gather Ran
ran; our contract draft was wrong, not the code
aim-uofa/SINE/sine/utils/comm.py
pointer only (licence: NOASSERTION) · get_code("18bde1ccecf78eba")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, aim-uofa/SINE (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. A run is recorded.

get_classification_logits Ran
ran; our contract draft was wrong, not the code
aim-uofa/SINE/sine/model/transformer_decoder/mformer.py
pointer only (licence: NOASSERTION) · get_code("ded3458cc8c21f23")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, aim-uofa/SINE (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. A run is recorded.

nested_tensor_from_tensor_list Ran
ran; our contract draft was wrong, not the code
aim-uofa/SINE/sine/utils/misc.py
pointer only (licence: NONE) · get_code("58cc9ff3bf75e753")
How it ran

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

reduce_dict Ran
ran; our contract draft was wrong, not the code
aim-uofa/SINE/sine/utils/comm.py
pointer only (licence: NOASSERTION) · get_code("53838c15d969eb79")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, aim-uofa/SINE (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. A run is recorded.

sigmoid_ce_loss Ran
ran; our contract draft was wrong, not the code
aim-uofa/SINE/sine/model/criterion.py
pointer only (licence: NOASSERTION) · get_code("7130af6c2979dba8")
How it ran

The body of this sample is withheld: GitHub could not classify the licence of this paper's repository, aim-uofa/SINE (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. A run is recorded.

trivial_batch_collator Ran
ran, honoured the contract we drafted
aim-uofa/SINE/sine/utils/utils.py
pointer only (licence: NONE); the stored copy get_code serves, from PKU-EPIC/GAPartNet, is pointer only (licence: NONE) · get_code("87e36ec29dea3d10")
How it ran

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

batch_sigmoid_ce_loss Not yet run
unverified (harvested, no recorded run)
aim-uofa/SINE/sine/model/matcher.py
pointer only (licence: NONE) · get_code("1edd24985036b0bf")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, aim-uofa/SINE 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 11 samples lifted from this paper's linked repositories, 11 carry a function identity and 0 do not. Of the 11 distinct functions with an identity, 8 are also present in other papers whose code we hold (8 with at least one paper dated earlier, 0 the same month, 6 later) and 3 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
nested_tensor_from_tensor_list 55 other papers
47 dated earlier, 6 later, 2 same year, order not determinable · 17 only as an assembly brick
1608.03983 (2016-08)
SGDR: Stochastic Gradient Descent with Warm Restarts
2005.12872 (2020-05)
End-to-End Object Detection with Transformers
2101.01909 (2021-01)
Line Segment Detection Using Transformers without Edges
and 52 more not named here
batch_dice_loss 44 other papers
37 dated earlier, 6 later, 1 same year, order not determinable
2112.01527 (2021-12)
Masked-attention Mask Transformer for Universal Image Segmentation
2112.10764 (2021-12)
Mask2Former for Video Instance Segmentation
2203.03605 (2022-03)
DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
and 41 more not named here
batch_sigmoid_ce_loss 44 other papers
37 dated earlier, 6 later, 1 same year, order not determinable
2112.01527 (2021-12)
Masked-attention Mask Transformer for Universal Image Segmentation
2112.10764 (2021-12)
Mask2Former for Video Instance Segmentation
2203.03605 (2022-03)
DINO: DETR with Improved DeNoising Anchor Boxes for End-to-End Object Detection
and 41 more not named here
calculate_uncertainty 34 other papers
29 dated earlier, 3 later, 2 same year, order not determinable
2112.01527 (2021-12)
Masked-attention Mask Transformer for Universal Image Segmentation
2112.10764 (2021-12)
Mask2Former for Video Instance Segmentation
2203.04187 (2022-03)
RankSeg: Adaptive Pixel Classification with Image Category Ranking for Segmentation
and 31 more not named here
reduce_dict 15 other papers
13 dated earlier, 2 later
2003.04030 (2020-03)
Learning Delicate Local Representations for Multi-Person Pose Estimation
2004.01946 (2020-04)
Weakly-Supervised Mesh-Convolutional Hand Reconstruction in the Wild
2108.02833 (2021-08)
Elaborative Rehearsal for Zero-shot Action Recognition
and 12 more not named here
trivial_batch_collator 9 other papers
7 dated earlier, 1 later, 1 same year, order not determinable
2208.05647 (2022-08)
PPMN: Pixel-Phrase Matching Network for One-Stage Panoptic Narrative Grounding
2211.05272 (2022-11)
GAPartNet: Cross-Category Domain-Generalizable Object Perception and Manipulation via Generalizable and Actionable Parts
2303.07347 (2023-03)
TriDet: Temporal Action Detection with Relative Boundary Modeling
and 6 more not named here
all_gather 4 other papers
4 dated earlier
2208.02817 (2022-08)
Occupancy Planes for Single-view RGB-D Human Reconstruction
2301.10908 (2023-01)
Distilling Cognitive Backdoor Patterns within an Image
2303.15062 (2023-03)
The Devil is in the Points: Weakly Semi-Supervised Instance Segmentation via Point-Guided Mask Representation
and 1 more not named here
gather 3 other papers
3 dated earlier
2208.02817 (2022-08)
Occupancy Planes for Single-view RGB-D Human Reconstruction
2303.15062 (2023-03)
The Devil is in the Points: Weakly Semi-Supervised Instance Segmentation via Point-Guided Mask Representation
2401.10215 (2024-01)
GPAvatar: Generalizable and Precise Head Avatar from Image(s)

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

Repositories linked to this paper

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

Abstract

Recently, there have been explorations of generalist segmentation models that can effectively tackle a variety of image segmentation tasks within a unified in-context learning framework. However, these methods still struggle with task ambiguity in in-context segmentation, as not all in-context examples can accurately convey the task information. In order to address this issue, we present SINE, a simple image Segmentation framework utilizing in-context examples. Our approach leverages a Transformer encoder-decoder structure, where the encoder provides high-quality image representations, and the decoder is designed to yield multiple task-specific output masks to effectively eliminate task ambiguity. Specifically, we introduce an In-context Interaction module to complement in-context information and produce correlations between the target image and the in-context example and a Matching Transformer that uses fixed matching and a Hungarian algorithm to eliminate differences between different tasks. In addition, we have further perfected the current evaluation system for in-context image segmentation, aiming to facilitate a holistic appraisal of these models. Experiments on various segmentation tasks show the effectiveness of the proposed method. Our code is released at: https://github.com/aim-uofa/SINE * HC is the corresponding author. 38th Conference on Neural Information Processing Systems (NeurIPS 2024).

For agents

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

get_harvested_code_for_paper("2410.04842")
get_code_for_paper("2410.04842")
have("2410.04842")

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

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

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

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

Connect an agent — have() is free.