{"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/learning-with-holographic-reduced","title":"Learning with Holographic Reduced Representations","arxiv_id":"2109.02157","date":"2021-09-05","proceeding":"NeurIPS 2021 12","authors":["Ashwinkumar Ganesan","Hang Gao","Sunil Gandhi","Edward Raff","Tim Oates","James Holt","Mark McLean"],"abstract":"Holographic Reduced Representations (HRR) are a method for performing symbolic AI on top of real-valued vectors by associating each vector with an abstract concept, and providing mathematical operations to manipulate vectors as if they were classic symbolic objects. This method has seen little use outside of older symbolic AI work and cognitive science. Our goal is to revisit this approach to understand if it is viable for enabling a hybrid neural-symbolic approach to learning as a differentiable component of a deep learning architecture. HRRs today are not effective in a differentiable solution due to numerical instability, a problem we solve by introducing a projection step that forces the vectors to exist in a well behaved point in space. In doing so we improve the concept retrieval efficacy of HRRs by over $100\\times$. Using multi-label classification we demonstrate how to leverage the symbolic HRR properties to develop an output layer and loss function that is able to learn effectively, and allows us to investigate some of the pros and cons of an HRR neuro-symbolic learning approach. Our code can be found at https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","url_abs":"https://arxiv.org/abs/2109.02157v2","url_pdf":"https://arxiv.org/pdf/2109.02157v2.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":"learning-with-holographic-reduced","repo_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"multi-label-classification-2","task_name":"MUlTI-LABEL-ClASSIFICATION"},{"task_slug":"multi-label-classification","task_name":"Multi-Label Classification"},{"task_slug":"retrieval","task_name":"Retrieval"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2109.02157","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2109.02157"}},"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/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"unverified":11},"by_repo_kind":{"official":{"samples":11,"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":0,"samples":[{"code_sha256_prefix":"d2bfb4dfdeec9aee","entry":"baseline_test","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"lib/model.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/lib/model.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":"d2bfb4dfdeec9aee"}},{"code_sha256_prefix":"528eac8c11f5eb28","entry":"baseline_train","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"lib/model.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/lib/model.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":"528eac8c11f5eb28"}},{"code_sha256_prefix":"9f884a4269a73b4e","entry":"circular_conv","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"lib/mathops.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/lib/mathops.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":"9f884a4269a73b4e"}},{"code_sha256_prefix":"5c9ad0b9818d84e5","entry":"complex_division","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"lib/mathops.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/lib/mathops.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":"5c9ad0b9818d84e5"}},{"code_sha256_prefix":"a01531e7c5e28798","entry":"complex_multiplication","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"lib/mathops.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/lib/mathops.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":"a01531e7c5e28798"}},{"code_sha256_prefix":"6cac5107499ce4f4","entry":"gen_rand_vec","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"lib/embeddings.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/lib/embeddings.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":"6cac5107499ce4f4"}},{"code_sha256_prefix":"35040e193c018346","entry":"generate_vectors","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"lib/embeddings.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/lib/embeddings.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":"35040e193c018346"}},{"code_sha256_prefix":"6470efd911336ea8","entry":"mbprecision","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"lib/metrics.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/lib/metrics.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":"6470efd911336ea8"}},{"code_sha256_prefix":"ffdd5ec12ec03c09","entry":"mbrecall","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"lib/metrics.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/lib/metrics.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":"ffdd5ec12ec03c09"}},{"code_sha256_prefix":"79f411e19bb4fac3","entry":"reduce_dimensions","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"build_label_vectors.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/build_label_vectors.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":"79f411e19bb4fac3"}},{"code_sha256_prefix":"364b63d35d4fd454","entry":"spp_loss","repo":"NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations","repo_kind":"official","path":"lib/model.py","file_url":"https://github.com/NeuromorphicComputationResearchProgram/Learning-with-Holographic-Reduced-Representations/blob/HEAD/lib/model.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":"364b63d35d4fd454"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}