Papers › Context-Aware Mixup for Domain Adaptive Semantic Segmentation

Context-Aware Mixup for Domain Adaptive Semantic Segmentation

8 Aug 2021arXiv:2108.03557archive 2025-07-28

Qianyu Zhou, Zhengyang Feng, Qiqi Gu, Jiangmiao Pang, Guangliang Cheng, Xuequan Lu, Jianping Shi, Lizhuang Ma

Unsupervised domain adaptation (UDA) aims to adapt a model of the labeled source domain to an unlabeled target domain. Existing UDA-based semantic segmentation approaches always reduce the domain shifts in pixel level, feature level, and output level. However, almost all of them largely neglect the contextual dependency, which is generally shared across different domains, leading to less-desired performance. In this paper, we propose a novel Context-Aware Mixup (CAMix) framework for domain adaptive semantic segmentation, which exploits this important clue of context-dependency as explicit prior knowledge in a fully end-to-end trainable manner for enhancing the adaptability toward the target domain. Firstly, we present a contextual mask generation strategy by leveraging the accumulated spatial distributions and prior contextual relationships. The generated contextual mask is critical in this work and will guide the context-aware domain mixup on three different levels. Besides, provided the context knowledge, we introduce a significance-reweighted consistency loss to penalize the inconsistency between the mixed student prediction and the mixed teacher prediction, which alleviates the negative transfer of the adaptation, e.g., early performance degradation. Extensive experiments and analysis demonstrate the effectiveness of our method against the state-of-the-art approaches on widely-used UDA benchmarks.

PaperPDFCodeCode 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="2108.03557")

Code

Syntology Ran 3 of 4 code samples harvested from 1 repository linked to this paper; 1 has no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · fixture could not drive it.

By repository: official repository: 3 samples from 1 repository, 2 ran; 1 identical to code first harvested elsewhere. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

qianyuzqy/CAMix officialmentioned 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

4 samples harvested; 3 ran; 2 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.

2ran · honoured contract
1ran · fixture could not drive it
1unverified

Licence: 1 of the 4 samples is 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 qianyuzqy/CAMix. Some samples are identical code Syntology first harvested from another repository; for those, this paper's copy is not located and its licence is not recorded. “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.

get_label_vector qianyuzqy/CAMix/evaluateUDA.py official repository ran · fixture could not drive it fingerprinted Apache-2.0 (permissive) · 799a094d0124a46c · report
get_mean_std qianyuzqy/CAMix/camix_transforms.py official repository ran · honoured contract Apache-2.0 (permissive) · 018647a91dc50805 · report
get_iou qianyuzqy/CAMix/evaluateUDA.py official repository unverified Apache-2.0 (permissive) · 9d6e0a9afb10b95a · report
color_map identical code first harvested elsewhere ran · honoured contract fingerprinted licence of this copy not recorded · fcbd501f30a007d4 · report

Tasks

Domain AdaptationImage-to-Image TranslationSemantic SegmentationSynthetic-to-Real TranslationUnsupervised Domain Adaptation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Image-to-Image Translation GTAV-to-Cityscapes Labels CAMix (w DAFormer) mIoU 70.0 #6 of 22 Archive leaderboard report
Image-to-Image Translation GTAV-to-Cityscapes Labels CAMix (w Deeplabv2 ResNet 101) mIoU 55.2 #16 of 22 Archive leaderboard report
Image-to-Image Translation SYNTHIA-to-Cityscapes CAMix (w DAFormer) mIoU (13 classes) 69.2 #5 of 28 Archive leaderboard report
Image-to-Image Translation SYNTHIA-to-Cityscapes CAMix (w Deeplabv2 ResNet 101) mIoU (13 classes) 59.7 #12 of 28 Archive leaderboard report
Synthetic-to-Real Translation GTAV-to-Cityscapes Labels CAMix (w DAFormer) mIoU 70.0 #9 of 73 Archive leaderboard report
Synthetic-to-Real Translation GTAV-to-Cityscapes Labels CAMix (w Deeplabv2 ResNet101) mIoU 55.2 #29 of 73 Archive leaderboard report
Synthetic-to-Real Translation SYNTHIA-to-Cityscapes CAMix (w DAFormer) MIoU (13 classes) 69.2 #34 of 38 Archive leaderboard report
Synthetic-to-Real Translation SYNTHIA-to-Cityscapes CAMix (ResNet 101) MIoU (13 classes) 59.7 #35 of 38 Archive leaderboard report
Unsupervised Domain Adaptation GTAV-to-Cityscapes Labels CAMix (w DAFormer) mIoU 70.0 #8 of 20 Archive leaderboard report
Unsupervised Domain Adaptation GTAV-to-Cityscapes Labels CAMix (w Deeplabv2 ResNet 101) mIoU 55.2 #16 of 20 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.

Methods

Mixup

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