Papers › Adapt Before Comparison: A New Perspective on Cross-Domain Few-Shot Segmentation

Adapt Before Comparison: A New Perspective on Cross-Domain Few-Shot Segmentation

27 Feb 2024CVPR 2024 1arXiv:2402.17614archive 2025-07-28

Jonas Herzog

Few-shot segmentation performance declines substantially when facing images from a domain different than the training domain, effectively limiting real-world use cases. To alleviate this, recently cross-domain few-shot segmentation (CD-FSS) has emerged. Works that address this task mainly attempted to learn segmentation on a source domain in a manner that generalizes across domains. Surprisingly, we can outperform these approaches while eliminating the training stage and removing their main segmentation network. We show test-time task-adaption is the key for successful CD-FSS instead. Task-adaption is achieved by appending small networks to the feature pyramid of a conventionally classification-pretrained backbone. To avoid overfitting to the few labeled samples in supervised fine-tuning, consistency across augmented views of input images serves as guidance while learning the parameters of the attached layers. Despite our self-restriction not to use any images other than the few labeled samples at test time, we achieve new state-of-the-art performance in CD-FSS, evidencing the need to rethink approaches for the task.

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

Code

Syntology Ran 17 of 23 code samples harvested from 1 repository linked to this paper; 6 have no recorded run. Of those that ran: 2 ran · honoured contract; 6 ran · fixture could not drive it; 9 ran with no contract checked.

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

vision-kek/abcdfss officialmentioned in papermentioned on GitHubpytorch 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; 17 ran; 2 honoured the contract we drafted; 6 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.

2ran · honoured contract
6ran · fixture could not drive it
9ran
6unverified

Licence: 23 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 Vision-Kek/ABCDFSS. “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.

buildDenseAffinityMat Vision-Kek/ABCDFSS/core/contrastivehead.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · c2fb89e36a52d3fc · report
buildHyperCol vision-kek/abcdfss/core/denseaffinity.py official repository ran no licence file found · pointer only · 247da38da9e3d69a · report
calc_q_pred_coarse_nodetach Vision-Kek/ABCDFSS/core/contrastivehead.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 5cfd57e7b81664c4 · report
ctrstive_prototype_loss Vision-Kek/ABCDFSS/core/contrastivehead.py official repository ran · fixture could not drive it no licence file found · pointer only · fb5084bdcc8fef8d · report
fg_bg_proto Vision-Kek/ABCDFSS/core/contrastivehead.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · 1741736a8a12800e · report
filterDenseAffinityMap Vision-Kek/ABCDFSS/core/contrastivehead.py official repository ran · fixture could not drive it fingerprinted no licence file found · pointer only · c5166df90ef9cdfd · report
fwd_pass_support_imgs vision-kek/abcdfss/utils/crfhelper.py official repository ran no licence file found · pointer only · a813ee834ec01f6f · report
iou vision-kek/abcdfss/utils/segutils.py official repository ran fingerprinted no licence file found · pointer only · 0f163b1b99bd0b94 · report
keep_var_loss Vision-Kek/ABCDFSS/core/contrastivehead.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 4a96ac238387e631 · report
mean vision-kek/abcdfss/utils/commonutils.py official repository ran fingerprinted no licence file found · pointer only · 2fbd545597570f15 · report
otsus vision-kek/abcdfss/utils/segutils.py official repository ran no licence file found · pointer only · e70e62a8a6c5e6bc · report
paste_supports_together vision-kek/abcdfss/core/denseaffinity.py official repository ran fingerprinted no licence file found · pointer only · 0f6e6c300830147d · report
self_attention_loss Vision-Kek/ABCDFSS/core/contrastivehead.py official repository ran · fixture could not drive it no licence file found · pointer only · 4fb5d5624f290f81 · report
ssim Vision-Kek/ABCDFSS/core/contrastivehead.py official repository ran · honoured contract fingerprinted no licence file found · pointer only · 7fa435cfd75709ec · report
tensor_table Vision-Kek/ABCDFSS/core/contrastivehead.py official repository ran · metamorphic tier: deterministic no licence file found · pointer only · 48c15e26ae8b5ded · report
to_cpu vision-kek/abcdfss/utils/commonutils.py official repository ran fingerprinted no licence file found · pointer only · a3d18d17a48bf937 · report
to_cuda vision-kek/abcdfss/utils/commonutils.py official repository ran no licence file found · pointer only · 8c6947459806ae3b · report
ContrastiveFeatureTransformer Vision-Kek/ABCDFSS/core/contrastivehead.py official repository unverified no licence file found · pointer only · 702cac538a6b1126 · report
augwise_proto Vision-Kek/ABCDFSS/core/contrastivehead.py official repository unverified no licence file found · pointer only · 473b271bb4fd5296 · report
dense_info_nce_loss Vision-Kek/ABCDFSS/core/contrastivehead.py official repository unverified no licence file found · pointer only · bece7c16c70daa1d · report
get_augmentations_and_features vision-kek/abcdfss/utils/crfhelper.py official repository unverified no licence file found · pointer only · 216eb9d7ff602b2d · report
opposite_proto_sim_in_aug Vision-Kek/ABCDFSS/core/contrastivehead.py official repository unverified no licence file found · pointer only · 2f9961a082f7c62b · report
proto_align_val_measure Vision-Kek/ABCDFSS/core/contrastivehead.py official repository unverified no licence file found · pointer only · d8b49e0930bd1b01 · report

Tasks

Cross-Domain Few-ShotSegmentation

Results from the paper archive 2025-07-28

No leaderboard rows for this paper in the archive.

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