{"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/a-capsule-network-based-embedding-model-for-1","title":"A Capsule Network-based Embedding Model for Knowledge Graph Completion and Search Personalization","arxiv_id":"1808.04122","date":"2018-08-13","proceeding":"NAACL 2019 6","authors":["Dai Quoc Nguyen","Thanh Vu","Tu Dinh Nguyen","Dat Quoc Nguyen","Dinh Phung"],"abstract":"In this paper, we introduce an embedding model, named CapsE, exploring a\ncapsule network to model relationship triples (subject, relation, object). Our\nCapsE represents each triple as a 3-column matrix where each column vector\nrepresents the embedding of an element in the triple. This 3-column matrix is\nthen fed to a convolution layer where multiple filters are operated to generate\ndifferent feature maps. These feature maps are reconstructed into corresponding\ncapsules which are then routed to another capsule to produce a continuous\nvector. The length of this vector is used to measure the plausibility score of\nthe triple. Our proposed CapsE obtains better performance than previous\nstate-of-the-art embedding models for knowledge graph completion on two\nbenchmark datasets WN18RR and FB15k-237, and outperforms strong search\npersonalization baselines on SEARCH17.","url_abs":"http://arxiv.org/abs/1808.04122v3","url_pdf":"http://arxiv.org/pdf/1808.04122v3.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":"a-capsule-network-based-embedding-model-for-1","repo_url":"https://github.com/daiquocnguyen/CapsE","is_official":1,"mentioned_in_paper":1,"mentioned_in_github":1,"framework":"tf","reach":{"status":"ok","spdx":"Apache-2.0"}},{"paper_slug":"a-capsule-network-based-embedding-model-for-1","repo_url":"https://github.com/daiquocnguyen/ConvKB","is_official":0,"mentioned_in_paper":0,"mentioned_in_github":1,"framework":"tf","reach":null}],"tasks":[{"task_slug":"knowledge-graph-completion","task_name":"Knowledge Graph Completion"},{"task_slug":"link-prediction","task_name":"Link Prediction"}],"methods":[{"method_slug":"convolution","method_name":"Convolution"}],"datasets_introduced":[],"methods_introduced":[],"results":[{"leaderboard":"/sota/link-prediction-on-wn18rr","task":"Link Prediction","dataset":"WN18RR","model":"CapsE","rank_in_archive_order":44,"of":75,"metrics":{"Hits@10":"0.56","MR":"719.0","MRR":"0.415"},"uses_additional_data":false}],"syntology":{"atlas_url":"https://app.syntology.ai/?focus=1808.04122","mcp":{"get_harvested_code_for_paper":{"arxiv_id":"1808.04122"}},"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/daiquocnguyen/CapsE","reach":{"status":"ok","spdx":"Apache-2.0"}},{"provenance":"external:paperswithcode_snapshot_2025-07-28","url":"https://github.com/daiquocnguyen/ConvKB","reach":null}],"summary":{"unverified":7},"by_repo_kind":{"official":{"samples":7,"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":"8254437f82bb7032","entry":"assignEmbeddings","repo":"daiquocnguyen/CapsE","repo_kind":"official","path":"builddata_ecir.py","file_url":"https://github.com/daiquocnguyen/CapsE/blob/HEAD/builddata_ecir.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"8254437f82bb7032"}},{"code_sha256_prefix":"24a6fe3889b241f3","entry":"init_dataset_ecir","repo":"daiquocnguyen/CapsE","repo_kind":"official","path":"builddata_ecir.py","file_url":"https://github.com/daiquocnguyen/CapsE/blob/HEAD/builddata_ecir.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"24a6fe3889b241f3"}},{"code_sha256_prefix":"a4febf650e2dc53c","entry":"init_norm_Vector","repo":"daiquocnguyen/CapsE","repo_kind":"official","path":"builddata_softplus.py","file_url":"https://github.com/daiquocnguyen/CapsE/blob/HEAD/builddata_softplus.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"a4febf650e2dc53c"}},{"code_sha256_prefix":"e1642aeda2a336f1","entry":"parse_line","repo":"daiquocnguyen/CapsE","repo_kind":"official","path":"builddata_softplus.py","file_url":"https://github.com/daiquocnguyen/CapsE/blob/HEAD/builddata_softplus.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"e1642aeda2a336f1"}},{"code_sha256_prefix":"b66238861fb279c7","entry":"read_from_id","repo":"daiquocnguyen/CapsE","repo_kind":"official","path":"builddata_ecir.py","file_url":"https://github.com/daiquocnguyen/CapsE/blob/HEAD/builddata_ecir.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"b66238861fb279c7"}},{"code_sha256_prefix":"ec06ba2f35ee2f52","entry":"routing","repo":"daiquocnguyen/CapsE","repo_kind":"official","path":"capsuleLayer.py","file_url":"https://github.com/daiquocnguyen/CapsE/blob/HEAD/capsuleLayer.py","link_basis":"first_harvest_node","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"ec06ba2f35ee2f52"}},{"code_sha256_prefix":"521985ebd5591503","entry":"squash","repo":"daiquocnguyen/CapsE","repo_kind":"official","path":"capsuleLayer.py","file_url":"https://github.com/daiquocnguyen/CapsE/blob/HEAD/capsuleLayer.py","link_basis":"harvester_set","language":"python","status":"unverified","verification_level":0,"contract_check":null,"metamorphic_tier":null,"behaviour_fingerprint":false,"licence":"Apache-2.0","inline_ok":true,"mcp_get_code":{"code_sha256":"521985ebd5591503"}}]},"arxiv_metadata":null,"syntology_extracted_results":null}