{"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/moco-pretraining-improves-representation-and","title":"MoCo-CXR: MoCo Pretraining Improves Representation and Transferability of Chest X-ray Models","arxiv_id":"2010.05352","date":"2020-10-11","proceeding":null,"authors":["Hari Sowrirajan","Jingbo Yang","Andrew Y. Ng","Pranav Rajpurkar"],"abstract":"Contrastive learning is a form of self-supervision that can leverage unlabeled data to produce pretrained models. While contrastive learning has demonstrated promising results on natural image classification tasks, its application to medical imaging tasks like chest X-ray interpretation has been limited. In this work, we propose MoCo-CXR, which is an adaptation of the contrastive learning method Momentum Contrast (MoCo), to produce models with better representations and initializations for the detection of pathologies in chest X-rays. In detecting pleural effusion, we find that linear models trained on MoCo-CXR-pretrained representations outperform those without MoCo-CXR-pretrained representations, indicating that MoCo-CXR-pretrained representations are of higher-quality. End-to-end fine-tuning experiments reveal that a model initialized via MoCo-CXR-pretraining outperforms its non-MoCo-CXR-pretrained counterpart. We find that MoCo-CXR-pretraining provides the most benefit with limited labeled training data. Finally, we demonstrate similar results on a target Tuberculosis dataset unseen during pretraining, indicating that MoCo-CXR-pretraining endows models with representations and transferability that can be applied across chest X-ray datasets and tasks.","url_abs":"https://arxiv.org/abs/2010.05352v3","url_pdf":"https://arxiv.org/pdf/2010.05352v3.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":"moco-pretraining-improves-representation-and","repo_url":"https://github.com/stanfordmlgroup/MoCo-CXR","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok"}},{"paper_slug":"moco-pretraining-improves-representation-and","repo_url":"https://github.com/stanfordmlgroup/MedSelect","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"Apache-2.0"}}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"image-classification","task_name":"Image Classification"},{"task_slug":"transfer-learning","task_name":"Transfer Learning"},{"task_slug":"image-classification","task_name":"image-classification"}],"methods":[{"method_slug":"batch-normalization","method_name":"Batch Normalization"},{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"},{"method_slug":"infonce","method_name":"InfoNCE"},{"method_slug":"moco","method_name":"MoCo"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2010.05352","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2010.05352"}},"developers":"https://syntology.ai/developers","read_at":"2026-09-24T18:15:14+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/stanfordmlgroup/MedSelect","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/stanfordmlgroup/MoCo-CXR","reach":{"status":"ok"}}],"summary":{"unverified":7},"by_repo_kind":{"official":{"samples":1,"ran":0,"repositories":1},"listed":{"samples":6,"ran":0,"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":1,"samples":[{"code_sha256_prefix":"9b8289076669fe4f","entry":"accuracy","repo":"stanfordmlgroup/MoCo-CXR","repo_kind":"official","path":"moco_pretraining/moco/main_moco.py","file_url":"https://github.com/stanfordmlgroup/MoCo-CXR/blob/HEAD/moco_pretraining/moco/main_moco.py","link_basis":"plan_row","language":"python","status":"unverified","verification_level":0,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"9b8289076669fe4f"}},{"code_sha256_prefix":"b3908d9d2a605c86","entry":"collate_fn","repo":"stanfordmlgroup/MedSelect","repo_kind":"listed","path":"src/utils.py","file_url":"https://github.com/stanfordmlgroup/MedSelect/blob/HEAD/src/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b3908d9d2a605c86"}},{"code_sha256_prefix":"73cecca9f3575f09","entry":"concat_all_gather","repo":"stanfordmlgroup/MedSelect","repo_kind":"listed","path":"src/moco/builder.py","file_url":"https://github.com/stanfordmlgroup/MedSelect/blob/HEAD/src/moco/builder.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"73cecca9f3575f09"}},{"code_sha256_prefix":"677f1011358dc17b","entry":"get_eval_loaders","repo":"stanfordmlgroup/MedSelect","repo_kind":"listed","path":"src/moco/get_loader.py","file_url":"https://github.com/stanfordmlgroup/MedSelect/blob/HEAD/src/moco/get_loader.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"677f1011358dc17b"}},{"code_sha256_prefix":"55935351950f720b","entry":"get_loader","repo":"stanfordmlgroup/MedSelect","repo_kind":"listed","path":"src/moco/get_loader.py","file_url":"https://github.com/stanfordmlgroup/MedSelect/blob/HEAD/src/moco/get_loader.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"55935351950f720b"}},{"code_sha256_prefix":"a0f87cdea6b60076","entry":"random_baseline","repo":"stanfordmlgroup/MedSelect","repo_kind":"listed","path":"src/utils.py","file_url":"https://github.com/stanfordmlgroup/MedSelect/blob/HEAD/src/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a0f87cdea6b60076"}},{"code_sha256_prefix":"3cac019b51caa971","entry":"sample_once","repo":"stanfordmlgroup/MedSelect","repo_kind":"listed","path":"src/utils.py","file_url":"https://github.com/stanfordmlgroup/MedSelect/blob/HEAD/src/utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"3cac019b51caa971"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}