{"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/surrogate-and-invariance-boosted-contrastive","title":"Surrogate- and invariance-boosted contrastive learning for data-scarce applications in science","arxiv_id":"2110.08406","date":"2021-10-15","proceeding":null,"authors":["Charlotte Loh","Thomas Christensen","Rumen Dangovski","Samuel Kim","Marin Soljacic"],"abstract":"Deep learning techniques have been increasingly applied to the natural sciences, e.g., for property prediction and optimization or material discovery. A fundamental ingredient of such approaches is the vast quantity of labelled data needed to train the model; this poses severe challenges in data-scarce settings where obtaining labels requires substantial computational or labor resources. Here, we introduce surrogate- and invariance-boosted contrastive learning (SIB-CL), a deep learning framework which incorporates three ``inexpensive'' and easily obtainable auxiliary information sources to overcome data scarcity. Specifically, these are: 1)~abundant unlabeled data, 2)~prior knowledge of symmetries or invariances and 3)~surrogate data obtained at near-zero cost. We demonstrate SIB-CL's effectiveness and generality on various scientific problems, e.g., predicting the density-of-states of 2D photonic crystals and solving the 3D time-independent Schrodinger equation. SIB-CL consistently results in orders of magnitude reduction in the number of labels needed to achieve the same network accuracies.","url_abs":"https://arxiv.org/abs/2110.08406v1","url_pdf":"https://arxiv.org/pdf/2110.08406v1.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":"surrogate-and-invariance-boosted-contrastive","repo_url":"https://github.com/clott3/sib-cl","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"contrastive-learning","task_name":"Contrastive Learning"},{"task_slug":"property-prediction","task_name":"Property Prediction"}],"methods":[{"method_slug":"contrastive-learning","method_name":"Contrastive Learning"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":null,"atlas_url":"https://app.syntology.ai/?focus=2110.08406","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.08406"}},"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/clott3/sib-cl","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"unverified":6},"by_repo_kind":{"official":{"samples":7,"ran":1,"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":0,"samples":[{"code_sha256_prefix":"b2429807c9efa3f7","entry":"D","repo":"clott3/sib-cl","repo_kind":"official","path":"ssl_mode.py","file_url":"https://github.com/clott3/sib-cl/blob/HEAD/ssl_mode.py","link_basis":"harvester_set","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b2429807c9efa3f7"}},{"code_sha256_prefix":"dd8307c436b6bacd","entry":"calDOSloss","repo":"clott3/sib-cl","repo_kind":"official","path":"loss_func.py","file_url":"https://github.com/clott3/sib-cl/blob/HEAD/loss_func.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"dd8307c436b6bacd"}},{"code_sha256_prefix":"6a575802d4ac9e27","entry":"calpercloss","repo":"clott3/sib-cl","repo_kind":"official","path":"loss_func.py","file_url":"https://github.com/clott3/sib-cl/blob/HEAD/loss_func.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"6a575802d4ac9e27"}},{"code_sha256_prefix":"877c98483eb11ab4","entry":"flip_tensor","repo":"clott3/sib-cl","repo_kind":"official","path":"symop_utils.py","file_url":"https://github.com/clott3/sib-cl/blob/HEAD/symop_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"877c98483eb11ab4"}},{"code_sha256_prefix":"4daa9bcdc82ffce2","entry":"get_best_ptep","repo":"clott3/sib-cl","repo_kind":"official","path":"plot_results.py","file_url":"https://github.com/clott3/sib-cl/blob/HEAD/plot_results.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"4daa9bcdc82ffce2"}},{"code_sha256_prefix":"8a8e45343183ed61","entry":"rotate_tensor","repo":"clott3/sib-cl","repo_kind":"official","path":"symop_utils.py","file_url":"https://github.com/clott3/sib-cl/blob/HEAD/symop_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"8a8e45343183ed61"}},{"code_sha256_prefix":"b00bd750794f2490","entry":"translate_tensor","repo":"clott3/sib-cl","repo_kind":"official","path":"symop_utils.py","file_url":"https://github.com/clott3/sib-cl/blob/HEAD/symop_utils.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"b00bd750794f2490"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}