{"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/self-supervised-representation-learning-on-1","title":"Hyper-Representations: Self-Supervised Representation Learning on Neural Network Weights for Model Characteristic Prediction","arxiv_id":"2110.15288","date":"2021-10-28","proceeding":"NeurIPS 2021 12","authors":["Konstantin Schürholt","Dimche Kostadinov","Damian Borth"],"abstract":"Self-Supervised Learning (SSL) has been shown to learn useful and information-preserving representations. Neural Networks (NNs) are widely applied, yet their weight space is still not fully understood. Therefore, we propose to use SSL to learn hyper-representations of the weights of populations of NNs. To that end, we introduce domain specific data augmentations and an adapted attention architecture. Our empirical evaluation demonstrates that self-supervised representation learning in this domain is able to recover diverse NN model characteristics. Further, we show that the proposed learned representations outperform prior work for predicting hyper-parameters, test accuracy, and generalization gap as well as transfer to out-of-distribution settings.","url_abs":"https://arxiv.org/abs/2110.15288v5","url_pdf":"https://arxiv.org/pdf/2110.15288v5.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":"self-supervised-representation-learning-on-1","repo_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":0,"framework":"pytorch","reach":null}],"tasks":[{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"self-supervised-learning","task_name":"Self-Supervised Learning"}],"methods":[{"method_slug":"absolute-position-encodings","method_name":"Absolute Position Encodings"},{"method_slug":"attention","method_name":"Attention"},{"method_slug":"bpe","method_name":"BPE"},{"method_slug":"contrastive-multiview-coding","method_name":"Contrastive Multiview Coding"},{"method_slug":"dense-connections","method_name":"Dense Connections"},{"method_slug":"dropout","method_name":"Dropout"},{"method_slug":"infonce","method_name":"InfoNCE"},{"method_slug":"layer-normalization","method_name":"Layer Normalization"},{"method_slug":"linear-layer","method_name":"Linear Layer"},{"method_slug":"multi-head-attention","method_name":"Multi-Head Attention"},{"method_slug":"position-wise-feed-forward-layer","method_name":"Position-Wise Feed-Forward Layer"},{"method_slug":"residual-connection","method_name":"Residual Connection"},{"method_slug":"test","method_name":"Test"},{"method_slug":"transformer","method_name":"Transformer"}],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"syntology_url":"https://syntology.ai/paper/2110.15288","atlas_url":"https://app.syntology.ai/?focus=2110.15288","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2110.15288"}},"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/hsg-aiml/neurips_2021-weight_space_learning","reach":null}],"summary":{"ran":8,"ran_violates":1,"unverified":6},"by_repo_kind":{"official":{"samples":15,"ran":9,"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":15,"samples":[{"code_sha256_prefix":"46bd4536097074a2","entry":"AE","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"46bd4536097074a2"}},{"code_sha256_prefix":"2c46d19912a394d0","entry":"Decoder","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"2c46d19912a394d0"}},{"code_sha256_prefix":"8c1e454314c0328f","entry":"Encoder","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"8c1e454314c0328f"}},{"code_sha256_prefix":"1ab0b229f58bc5e7","entry":"NT_Xent","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"1ab0b229f58bc5e7"}},{"code_sha256_prefix":"fef06fc631c15acb","entry":"NT_Xent_pos","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"fef06fc631c15acb"}},{"code_sha256_prefix":"726fa65b04e8959a","entry":"ProjectionHead","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"726fa65b04e8959a"}},{"code_sha256_prefix":"5175c7399d3a091e","entry":"ReconLoss","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":"deterministic","behaviour_fingerprint":true,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"5175c7399d3a091e"}},{"code_sha256_prefix":"cad9c43c2ba56e9f","entry":"ResBlock","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"cad9c43c2ba56e9f"}},{"code_sha256_prefix":"47f26b184e0a12b8","entry":"compute_outdim","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_net.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_net.py","link_basis":"first_harvest_node","language":"python","status":"ran_violates","verification_level":1,"contract_check":"VIOLATES","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"NONE","inline_ok":false,"mcp_get_code":{"code_sha256":"47f26b184e0a12b8"}},{"code_sha256_prefix":"06892429dbe9ea1c","entry":"AE_attn","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.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":"06892429dbe9ea1c"}},{"code_sha256_prefix":"53c9fb5f84e680c5","entry":"DecoderTransformer","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.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":"53c9fb5f84e680c5"}},{"code_sha256_prefix":"d37df2bc77de97fa","entry":"EncoderTransformer","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.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":"d37df2bc77de97fa"}},{"code_sha256_prefix":"99c94955fd98d5dd","entry":"GammaContrastReconLoss","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.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":"99c94955fd98d5dd"}},{"code_sha256_prefix":"99c404958aba899c","entry":"SimCLRAEModule","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.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":"99c404958aba899c"}},{"code_sha256_prefix":"a73e4907ef2d9664","entry":"printProgressBar","repo":"hsg-aiml/neurips_2021-weight_space_learning","repo_kind":"official","path":"modules/model_definitions/def_simclr_ae_module.py","file_url":"https://github.com/hsg-aiml/neurips_2021-weight_space_learning/blob/HEAD/modules/model_definitions/def_simclr_ae_module.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":"a73e4907ef2d9664"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}