Papers › Bidirectional Copy-Paste for Semi-Supervised Medical Image Segmentation

Bidirectional Copy-Paste for Semi-Supervised Medical Image Segmentation

1 May 2023CVPR 2023 1arXiv:2305.00673archive 2025-07-28

Yunhao Bai, Duowen Chen, Qingli Li, Wei Shen, Yan Wang

In semi-supervised medical image segmentation, there exist empirical mismatch problems between labeled and unlabeled data distribution. The knowledge learned from the labeled data may be largely discarded if treating labeled and unlabeled data separately or in an inconsistent manner. We propose a straightforward method for alleviating the problem - copy-pasting labeled and unlabeled data bidirectionally, in a simple Mean Teacher architecture. The method encourages unlabeled data to learn comprehensive common semantics from the labeled data in both inward and outward directions. More importantly, the consistent learning procedure for labeled and unlabeled data can largely reduce the empirical distribution gap. In detail, we copy-paste a random crop from a labeled image (foreground) onto an unlabeled image (background) and an unlabeled image (foreground) onto a labeled image (background), respectively. The two mixed images are fed into a Student network and supervised by the mixed supervisory signals of pseudo-labels and ground-truth. We reveal that the simple mechanism of copy-pasting bidirectionally between labeled and unlabeled data is good enough and the experiments show solid gains (e.g., over 21% Dice improvement on ACDC dataset with 5% labeled data) compared with other state-of-the-arts on various semi-supervised medical image segmentation datasets. Code is available at https://github.com/DeepMed-Lab-ECNU/BCP}.

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

Code

Syntology Ran 6 of 19 code samples harvested from 2 repositories linked to this paper; 13 have no recorded run. Of those that ran: 2 ran · honoured contract; 1 ran · our draft was wrong; 1 ran · fixture could not drive it; 2 ran with no contract checked.

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

HiLab-git/SSL4MIS officialmentioned in papermentioned on GitHubpytorch report
deepmed-lab-ecnu/bcp officialmentioned in papermentioned on GitHubpytorchMIT 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

19 samples harvested; 6 ran; 2 honoured the contract we drafted; 13 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
1ran · our draft was wrong
1ran · fixture could not drive it
2ran
13unverified

Licence: 0 of the 19 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 2 repositories linked to this paper, official or community; each sample names its own and says which. “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.

WeakStrongAugment HiLab-git/SSL4MIS/code/dataloaders/dataset.py official repository ran MIT (permissive) · 6684d7714ad58e8b · report
color_jitter HiLab-git/SSL4MIS/code/dataloaders/dataset.py official repository ran · honoured contract MIT (permissive) · d54bd9f61fb16ee3 · report
get_probability DeepMed-Lab-ECNU/BCP/code/utils/BCP_utils.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · 49da02d1d655ed9e · report
mask_DiceLoss DeepMed-Lab-ECNU/BCP/code/utils/BCP_utils.py official repository ran · metamorphic tier: deterministic MIT (permissive) · 11437f8ee9b097b7 · report
random_rot_flip HiLab-git/SSL4MIS/code/dataloaders/dataset.py official repository ran · honoured contract MIT (permissive) · b747cc536cbf2109 · report
to_one_hot DeepMed-Lab-ECNU/BCP/code/utils/BCP_utils.py official repository ran · fixture could not drive it MIT (permissive) · ae8cca7f206aff6e · report
LargestCC_pancreas deepmed-lab-ecnu/bcp/code/LA_BCP_train.py official repository unverified MIT (permissive) · 50a034d1b41e897e · report
concate_mask deepmed-lab-ecnu/bcp/code/utils/BCP_utils.py official repository unverified MIT (permissive) · f1f6cbaf5ba771ec · report
context_mask deepmed-lab-ecnu/bcp/code/utils/BCP_utils.py official repository unverified MIT (permissive) · c5f63f170e272caa · report
get_ACDC_2DLargestCC deepmed-lab-ecnu/bcp/code/ACDC_BCP_train.py official repository unverified MIT (permissive) · 451e37bdd602a2e2 · report
get_ACDC_LargestCC deepmed-lab-ecnu/bcp/code/ACDC_BCP_train.py official repository unverified MIT (permissive) · 3acc895b1dba4189 · report
get_ACDC_masks deepmed-lab-ecnu/bcp/code/ACDC_BCP_train.py official repository unverified MIT (permissive) · 6bd5afe45408a227 · report
get_ACDC_masks deepmed-lab-ecnu/bcp/code/KDE_demo.py official repository unverified MIT (permissive) · 1279c0b7c31f46f0 · report
get_cut_mask deepmed-lab-ecnu/bcp/code/LA_BCP_train.py official repository unverified MIT (permissive) · b36289c49f14d7c5 · report
get_probability deepmed-lab-ecnu/bcp/code/pancreas/losses.py official repository unverified MIT (permissive) · d07df0bf1e2ed610 · report
mix_loss DeepMed-Lab-ECNU/BCP/code/utils/BCP_utils.py official repository unverified MIT (permissive) · ed4f9ecd63e9fe9f · report
patients_to_slices deepmed-lab-ecnu/bcp/code/KDE_demo.py official repository unverified MIT (permissive) · b4b3d82f0caa5a95 · report
random_mask deepmed-lab-ecnu/bcp/code/utils/BCP_utils.py official repository unverified MIT (permissive) · ce1c2f509485040b · report
softmax_mse_loss deepmed-lab-ecnu/bcp/code/pancreas/losses.py official repository unverified MIT (permissive) · 6768062cc3a09e6f · report

Tasks

Image SegmentationMedical Image SegmentationSemantic SegmentationSemi-Supervised Semantic SegmentationSemi-supervised Medical Image Segmentation

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Semi-supervised Medical Image Segmentation ACDC 10% labeled data BCP Dice (Average) 88.84 #5 of 5 Archive leaderboard report
Semi-supervised Medical Image Segmentation ACDC 20% labeled data BCP Dice (Average) 89.52 #4 of 4 Archive leaderboard report
Semi-supervised Medical Image Segmentation ACDC 5% labeled data BCP Dice (Average) 87.59 #4 of 4 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

Copy-Paste

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