SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2410.02369 · NeurIPS · 2024

Unleashing the Potential of the Diffusion Model in Few-shot Semantic Segmentation

Yang Liu, Xinlong Wang, Chunhua Shen, Hao Chen, Muzhi Zhu, Zekai Luo, Chenchen Jing, Guangkai Xu

arXiv · PDF · Open in the Atlas

Code that ran

4 of 4 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, 2 violated it and 0 have no contract verdict; 2 failures of our instrument; 0 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/2410.02369.json · badge: /api/ran/2410.02369.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/DiffewS canonical (classifier label)
classifier basis: classifier_2025
2 ran · 0 no recorded run
aim-uofa/diffews canonical (classifier label)
classifier basis: census
2 ran · 0 no recorded run
FunctionStatusWhere it lives
get_test_dataloader Ran
ran; our contract draft was wrong, not the code
aim-uofa/DiffewS/train_tools/train_icl_multitask_nocrop_nearest_nshot_v3.py
pointer only (licence: NOASSERTION) · get_code("28409ff8b4768607")
How it ran

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

isinstance_str Ran
ran, violated the contract we drafted
aim-uofa/diffews/diffews/models/unet_2d_condition.py
pointer only (licence: NONE) · get_code("cd5d5067de871c97")
How it ran

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

isinstance_str Ran
ran, violated the contract we drafted
aim-uofa/diffews/diffews/models/unet_2d_condition_attn.py
pointer only (licence: NONE); the stored copy get_code serves, from WenboLuu/ToMA, is pointer only (licence: NONE) · get_code("4d43c39d84b84472")
How it ran

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

pyramid_noise_like Ran
ran; the contract check could not run (RAISES, DEP_MISSING or TIMEOUT)
aim-uofa/DiffewS/train_tools/train_icl_multitask_nocrop_nearest_nshot_v3.py
pointer only (licence: NOASSERTION) · get_code("64d63260ebc6e238")
How it ran

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

Also present in other papers' code

Of 4 samples lifted from this paper's linked repositories, 4 carry a function identity and 0 do not. Of the 3 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 1 later) and 2 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
isinstance_str 10 other papers
6 dated earlier, 4 later
2303.17604 (2023-03)
Token Merging for Fast Stable Diffusion
2307.10373 (2023-07)
TokenFlow: Consistent Diffusion Features for Consistent Video Editing
2312.02212 (2023-12)
Portrait Diffusion: Training-free Face Stylization with Chain-of-Painting
and 7 more not named here

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

The Diffusion Model has not only garnered noteworthy achievements in the realm of image generation but has also demonstrated its potential as an effective pretraining method utilizing unlabeled data. Drawing from the extensive potential unveiled by the Diffusion Model in both semantic correspondence and open vocabulary segmentation, our work initiates an investigation into employing the Latent Diffusion Model for Few-shot Semantic Segmentation. Recently, inspired by the in-context learning ability of large language models, Few-shot Semantic Segmentation has evolved into In-context Segmentation tasks, morphing into a crucial element in assessing generalist segmentation models. In this context, we concentrate on Few-shot Semantic Segmentation, establishing a solid foundation for the future development of a Diffusion-based generalist model for segmentation. Our initial focus lies in understanding how to facilitate interaction between the query image and the support image, resulting in the proposal of a KV fusion method within the self-attention framework. Subsequently, we delve deeper into optimizing the infusion of information from the support mask and simultaneously re-evaluating how to provide reasonable supervision from the query mask. Based on our analysis, we establish a simple and effective framework named DiffewS, maximally retaining the original Latent Diffusion Model's generative framework and effectively utilizing the pre-training prior. Experimental results demonstrate that our method significantly outperforms the previous SOTA models in multiple settings. Code is released at: https://github.com/aim-uofa/DiffewS * MZ, YL and ZL contributed eqaully. 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.02369")
get_code_for_paper("2410.02369")
have("2410.02369")

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

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

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

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

Connect an agent — have() is free.