{"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/lensiam-self-supervised-learning-on-strong","title":"LenSiam: Self-Supervised Learning on Strong Gravitational Lens Images","arxiv_id":"2311.10100","date":"2023-11-09","proceeding":null,"authors":["Po-Wen Chang","Kuan-Wei Huang","Joshua Fagin","James Hung-Hsu Chan","Joshua Yao-Yu Lin"],"abstract":"Self-supervised learning has been known for learning good representations from data without the need for annotated labels. We explore the simple siamese (SimSiam) architecture for representation learning on strong gravitational lens images. Commonly used image augmentations tend to change lens properties; for example, zoom-in would affect the Einstein radius. To create image pairs representing the same underlying lens model, we introduce a lens augmentation method to preserve lens properties by fixing the lens model while varying the source galaxies. Our research demonstrates this lens augmentation works well with SimSiam for learning the lens image representation without labels, so we name it LenSiam. We also show that a pre-trained LenSiam model can benefit downstream tasks. We open-source our code and datasets at https://github.com/kuanweih/LenSiam .","url_abs":"https://arxiv.org/abs/2311.10100v1","url_pdf":"https://arxiv.org/pdf/2311.10100v1.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":"links_only","authors_date_abstract":"arXiv metadata, CC0 1.0 (https://info.arxiv.org/help/license), from the Kaggle arXiv metadata snapshot of 2026-09-12"},"code_links":[{"paper_slug":"lensiam-self-supervised-learning-on-strong","repo_url":"https://github.com/kuanweih/lensiam","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2311.10100","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2311.10100"}},"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":"deterministic:regex_extraction","url":"https://github.com/kuanweih/LenSiam","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/kuanweih/lensiam","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran_fixture":1,"ran":4,"unverified":3},"by_repo_kind":{"official":{"samples":8,"ran":5,"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":"def8badf3c93e6c8","entry":"D","repo":"kuanweih/lensiam","repo_kind":"official","path":"models/simsiam.py","file_url":"https://github.com/kuanweih/lensiam/blob/HEAD/models/simsiam.py","link_basis":"first_harvest_node","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":"def8badf3c93e6c8"}},{"code_sha256_prefix":"5a8d86f629190099","entry":"SimSiam","repo":"kuanweih/lensiam","repo_kind":"official","path":"models/simsiam.py","file_url":"https://github.com/kuanweih/lensiam/blob/HEAD/models/simsiam.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"5a8d86f629190099"}},{"code_sha256_prefix":"73f2575431870404","entry":"calc_representations_testset","repo":"kuanweih/lensiam","repo_kind":"official","path":"calc_umap.py","file_url":"https://github.com/kuanweih/lensiam/blob/HEAD/calc_umap.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"73f2575431870404"}},{"code_sha256_prefix":"a7c3e42bae03ff81","entry":"prediction_MLP","repo":"kuanweih/lensiam","repo_kind":"official","path":"models/simsiam.py","file_url":"https://github.com/kuanweih/lensiam/blob/HEAD/models/simsiam.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a7c3e42bae03ff81"}},{"code_sha256_prefix":"98b3137575de1164","entry":"projection_MLP","repo":"kuanweih/lensiam","repo_kind":"official","path":"models/simsiam.py","file_url":"https://github.com/kuanweih/lensiam/blob/HEAD/models/simsiam.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"98b3137575de1164"}},{"code_sha256_prefix":"804b21ed30af9ab5","entry":"get_2022_lens_geoff","repo":"kuanweih/LenSiam","repo_kind":"official","path":"datasets/umap_testsets.py","file_url":"https://github.com/kuanweih/LenSiam/blob/HEAD/datasets/umap_testsets.py","link_basis":"first_harvest_node","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":"804b21ed30af9ab5"}},{"code_sha256_prefix":"394335aacae69cd8","entry":"get_real_hst","repo":"kuanweih/LenSiam","repo_kind":"official","path":"datasets/umap_testsets.py","file_url":"https://github.com/kuanweih/LenSiam/blob/HEAD/datasets/umap_testsets.py","link_basis":"first_harvest_node","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":"394335aacae69cd8"}},{"code_sha256_prefix":"73490b5ff6960373","entry":"get_stl10","repo":"kuanweih/LenSiam","repo_kind":"official","path":"datasets/umap_testsets.py","file_url":"https://github.com/kuanweih/LenSiam/blob/HEAD/datasets/umap_testsets.py","link_basis":"first_harvest_node","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":"73490b5ff6960373"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}