{"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/discrete-dictionary-based-decomposition-layer","title":"Discrete Dictionary-based Decomposition Layer for Structured Representation Learning","arxiv_id":"2406.06976","date":"2024-06-11","proceeding":null,"authors":["Taewon Park","Hyun-Chul Kim","Minho Lee"],"abstract":"Neuro-symbolic neural networks have been extensively studied to integrate symbolic operations with neural networks, thereby improving systematic generalization. Specifically, Tensor Product Representation (TPR) framework enables neural networks to perform differentiable symbolic operations by encoding the symbolic structure of data within vector spaces. However, TPR-based neural networks often struggle to decompose unseen data into structured TPR representations, undermining their symbolic operations. To address this decomposition problem, we propose a Discrete Dictionary-based Decomposition (D3) layer designed to enhance the decomposition capabilities of TPR-based models. D3 employs discrete, learnable key-value dictionaries trained to capture symbolic features essential for decomposition operations. It leverages the prior knowledge acquired during training to generate structured TPR representations by mapping input data to pre-learned symbolic features within these dictionaries. D3 is a straightforward drop-in layer that can be seamlessly integrated into any TPR-based model without modifications. Our experimental results demonstrate that D3 significantly improves the systematic generalization of various TPR-based models while requiring fewer additional parameters. Notably, D3 outperforms baseline models on the synthetic task that demands the systematic decomposition of unseen combinatorial data.","url_abs":"https://arxiv.org/abs/2406.06976v2","url_pdf":"https://arxiv.org/pdf/2406.06976v2.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":"discrete-dictionary-based-decomposition-layer","repo_url":"https://github.com/taewonpark/d3","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"pytorch","reach":{"status":"ok","spdx":"MIT"}}],"tasks":[{"task_slug":"representation-learning","task_name":"Representation Learning"},{"task_slug":"systematic-generalization","task_name":"Systematic Generalization"}],"methods":[],"datasets_introduced":[],"methods_introduced":[],"results":[],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=2406.06976","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"2406.06976"}},"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/taewonpark/D3","reach":{"status":"ok","spdx":"MIT"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/taewonpark/d3","reach":{"status":"ok","spdx":"MIT"}}],"summary":{"ran":5,"ran_honours":2,"ran_fixture":3,"unverified":4},"by_repo_kind":{"official":{"samples":14,"ran":10,"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":"2fb8cf3ccb006b0e","entry":"HashingSymbol","repo":"taewonpark/d3","repo_kind":"official","path":"SARtask/models/D3_wF.py","file_url":"https://github.com/taewonpark/d3/blob/HEAD/SARtask/models/D3_wF.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":"2fb8cf3ccb006b0e"}},{"code_sha256_prefix":"42d8383d870245ac","entry":"build_ood_binary_dataset","repo":"taewonpark/D3","repo_kind":"official","path":"Sort-of-CLEVR/sort_of_clevr_generator.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/Sort-of-CLEVR/sort_of_clevr_generator.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":"42d8383d870245ac"}},{"code_sha256_prefix":"a0bf524db1b20389","entry":"center_generate","repo":"taewonpark/D3","repo_kind":"official","path":"Sort-of-CLEVR/sort_of_clevr_generator.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/Sort-of-CLEVR/sort_of_clevr_generator.py","link_basis":"plan_row","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":"well_formed","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"a0bf524db1b20389"}},{"code_sha256_prefix":"fa08c36ab5558b55","entry":"elu_p1","repo":"taewonpark/D3","repo_kind":"official","path":"WikiText103/src/utils/D3.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/WikiText103/src/utils/D3.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"fa08c36ab5558b55"}},{"code_sha256_prefix":"bf45a2b233b0a484","entry":"get_normal_values","repo":"taewonpark/D3","repo_kind":"official","path":"Sort-of-CLEVR/model.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/Sort-of-CLEVR/model.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":"bf45a2b233b0a484"}},{"code_sha256_prefix":"19b03c9a66c8c81b","entry":"get_positional","repo":"taewonpark/D3","repo_kind":"official","path":"Sort-of-CLEVR/model.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/Sort-of-CLEVR/model.py","link_basis":"first_harvest_node","language":"python","status":"ran","verification_level":1,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":true,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"19b03c9a66c8c81b"}},{"code_sha256_prefix":"2c1c24e4bcbb631d","entry":"get_uniform_keys","repo":"taewonpark/d3","repo_kind":"official","path":"SARtask/models/D3_wF.py","file_url":"https://github.com/taewonpark/d3/blob/HEAD/SARtask/models/D3_wF.py","link_basis":"first_harvest_node","language":"python","status":"ran_honours","verification_level":1,"contract_check":"HONOURS","metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"2c1c24e4bcbb631d"}},{"code_sha256_prefix":"98edd8073a8cfd5d","entry":"get_uniform_keys","repo":"taewonpark/D3","repo_kind":"official","path":"Sort-of-CLEVR/model.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/Sort-of-CLEVR/model.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":"98edd8073a8cfd5d"}},{"code_sha256_prefix":"379d7685e2a746e5","entry":"sum_norm","repo":"taewonpark/D3","repo_kind":"official","path":"WikiText103/src/utils/D3.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/WikiText103/src/utils/D3.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"379d7685e2a746e5"}},{"code_sha256_prefix":"90f48cc1487150b9","entry":"sum_norm_eps","repo":"taewonpark/D3","repo_kind":"official","path":"WikiText103/src/utils/D3.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/WikiText103/src/utils/D3.py","link_basis":"plan_row","language":"python","status":"ran_fixture","verification_level":1,"contract_check":"RAISES","metamorphic_tier":"invariant","behaviour_fingerprint":false,"licence":"MIT","inline_ok":true,"mcp_get_code":{"code_sha256":"90f48cc1487150b9"}},{"code_sha256_prefix":"785a6e69eb46dd45","entry":"Decomposition","repo":"taewonpark/d3","repo_kind":"official","path":"SARtask/models/D3_wF.py","file_url":"https://github.com/taewonpark/d3/blob/HEAD/SARtask/models/D3_wF.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":"785a6e69eb46dd45"}},{"code_sha256_prefix":"b0a73836f5b2859d","entry":"format_log","repo":"taewonpark/D3","repo_kind":"official","path":"WikiText103/src/eval_sliding_window.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/WikiText103/src/eval_sliding_window.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":"b0a73836f5b2859d"}},{"code_sha256_prefix":"69598ced7806d8c3","entry":"scatter","repo":"taewonpark/D3","repo_kind":"official","path":"WikiText103/src/utils/data_parallel.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/WikiText103/src/utils/data_parallel.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":"69598ced7806d8c3"}},{"code_sha256_prefix":"aa1de448b0528802","entry":"scatter_kwargs","repo":"taewonpark/D3","repo_kind":"official","path":"WikiText103/src/utils/data_parallel.py","file_url":"https://github.com/taewonpark/D3/blob/HEAD/WikiText103/src/utils/data_parallel.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":"aa1de448b0528802"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}