{"about":{"site":"https://codewithpapers.app","non_affiliation":"Code with Papers and Syntology are not affiliated with, endorsed by, or sponsored by Papers with Code, Meta, or the pwc-archive mirror.","licence":"CC BY-SA 4.0","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","attribution":"https://codewithpapers.app/attribution","modified":"archive material modified by Syntology; see the attribution page"},"url":"/paper/mix-domain-contrastive-learning-for-unpaired","title":"Mix-Domain Contrastive Learning for Unpaired H&E-to-IHC Stain Translation","arxiv_id":"2406.11799","date":"2024-06-17","proceeding":null,"authors":["Song Wang","Zhong Zhang","Huan Yan","Ming Xu","Guanghui Wang"],"abstract":"H&E-to-IHC stain translation techniques offer a promising solution for precise cancer diagnosis, especially in low-resource regions where there is a shortage of health professionals and limited access to expensive equipment. Considering the pixel-level misalignment of H&E-IHC image pairs, current research explores the pathological consistency between patches from the same positions of the image pair. However, most of them overemphasize the correspondence between domains or patches, overlooking the side information provided by the non-corresponding objects. In this paper, we propose a Mix-Domain Contrastive Learning (MDCL) method to leverage the supervision information in unpaired H&E-to-IHC stain translation. Specifically, the proposed MDCL method aggregates the inter-domain and intra-domain pathology information by estimating the correlation between the anchor patch and all the patches from the matching images, encouraging the network to learn additional contrastive knowledge from mixed domains. With the mix-domain pathology information aggregation, MDCL enhances the pathological consistency between the corresponding patches and the component discrepancy of the patches from the different positions of the generated IHC image. Extensive experiments on two H&E-to-IHC stain translation datasets, namely MIST and BCI, demonstrate that the proposed method achieves state-of-the-art performance across multiple metrics.","url_abs":"https://arxiv.org/abs/2406.11799v2","url_pdf":"https://arxiv.org/pdf/2406.11799v2.pdf","source":{"archive":"pwc-archive (Hugging Face), CC BY-SA 4.0","snapshot":"2025-07-28","licence_url":"https://creativecommons.org/licenses/by-sa/4.0/legalcode","row_kind":"abstracts"},"code_links":[{"paper_slug":"mix-domain-contrastive-learning-for-unpaired","repo_url":"https://github.com/ssongwang/mix-domaincontrastivelearning","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"translation","task_name":"Translation"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2406.11799","atlas_url":"https://app.syntology.ai/?focus=2406.11799","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.11799"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-25T09:33:49+00:00","read_at_is":"when the build read Syntology's graph, not when any sample ran","claim":"Per-sample execution status on synthesized fixtures; not a correctness claim about the paper. Samples come from repositories linked to the paper, official or community; repo_kind says which.","repos":[{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/ssongwang/mix-domaincontrastivelearning","reach":{"status":"ok"}}],"summary":{"ran_honours":1,"ran_draft_wrong":2,"unverified":4},"by_repo_kind":{"official":{"samples":7,"ran":3,"repositories":1}},"repo_kind_vocabulary":{"official":"The archive marks this repository official for the paper","named_in_paper":"The archive records that the paper mentions this repository; it is not marked official","listed":"In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper","found_in_text":"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"},"n_pointer_only_for_licence":7,"samples":[{"code_sha256_prefix":"acc24402a2d089fa","entry":"get_filter","repo":"ssongwang/mix-domaincontrastivelearning","repo_kind":"official","path":"models/networks.py","file_url":"https://github.com/ssongwang/mix-domaincontrastivelearning/blob/HEAD/models/networks.py","link_basis":"harvester_set","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"acc24402a2d089fa"}},{"code_sha256_prefix":"b27dffc0609fbec0","entry":"get_norm_layer","repo":"ssongwang/mix-domaincontrastivelearning","repo_kind":"official","path":"models/networks.py","file_url":"https://github.com/ssongwang/mix-domaincontrastivelearning/blob/HEAD/models/networks.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"b27dffc0609fbec0"}},{"code_sha256_prefix":"50aa4a59fe718c61","entry":"get_pad_layer","repo":"ssongwang/mix-domaincontrastivelearning","repo_kind":"official","path":"models/networks.py","file_url":"https://github.com/ssongwang/mix-domaincontrastivelearning/blob/HEAD/models/networks.py","link_basis":"harvester_set","language":"python","status":"ran_draft_wrong","verification_level":1,"contract_check":"OUTPUT_MISDECLARED","metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"50aa4a59fe718c61"}},{"code_sha256_prefix":"1d6a8004fcb7969c","entry":"calculate_kid_given_paths","repo":"ssongwang/mix-domaincontrastivelearning","repo_kind":"official","path":"util/kid_score.py","file_url":"https://github.com/ssongwang/mix-domaincontrastivelearning/blob/HEAD/util/kid_score.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1d6a8004fcb7969c"}},{"code_sha256_prefix":"52a83caf0655bb7d","entry":"extract_lenet_features","repo":"ssongwang/mix-domaincontrastivelearning","repo_kind":"official","path":"util/kid_score.py","file_url":"https://github.com/ssongwang/mix-domaincontrastivelearning/blob/HEAD/util/kid_score.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"52a83caf0655bb7d"}},{"code_sha256_prefix":"0efffbfa7278dd55","entry":"find_launcher_using_name","repo":"ssongwang/mix-domaincontrastivelearning","repo_kind":"official","path":"experiments/__main__.py","file_url":"https://github.com/ssongwang/mix-domaincontrastivelearning/blob/HEAD/experiments/__main__.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"0efffbfa7278dd55"}},{"code_sha256_prefix":"7b41327814ab3634","entry":"get_activations","repo":"ssongwang/mix-domaincontrastivelearning","repo_kind":"official","path":"util/kid_score.py","file_url":"https://github.com/ssongwang/mix-domaincontrastivelearning/blob/HEAD/util/kid_score.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"7b41327814ab3634"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}