Papers › KGAT: Knowledge Graph Attention Network for Recommendation

KGAT: Knowledge Graph Attention Network for Recommendation

20 May 2019arXiv:1905.07854archive 2025-07-28

Xiang Wang, Xiangnan He, Yixin Cao, Meng Liu, Tat-Seng Chua

To provide more accurate, diverse, and explainable recommendation, it is compulsory to go beyond modeling user-item interactions and take side information into account. Traditional methods like factorization machine (FM) cast it as a supervised learning problem, which assumes each interaction as an independent instance with side information encoded. Due to the overlook of the relations among instances or items (e.g., the director of a movie is also an actor of another movie), these methods are insufficient to distill the collaborative signal from the collective behaviors of users. In this work, we investigate the utility of knowledge graph (KG), which breaks down the independent interaction assumption by linking items with their attributes. We argue that in such a hybrid structure of KG and user-item graph, high-order relations --- which connect two items with one or multiple linked attributes --- are an essential factor for successful recommendation. We propose a new method named Knowledge Graph Attention Network (KGAT) which explicitly models the high-order connectivities in KG in an end-to-end fashion. It recursively propagates the embeddings from a node's neighbors (which can be users, items, or attributes) to refine the node's embedding, and employs an attention mechanism to discriminate the importance of the neighbors. Our KGAT is conceptually advantageous to existing KG-based recommendation methods, which either exploit high-order relations by extracting paths or implicitly modeling them with regularization. Empirical results on three public benchmarks show that KGAT significantly outperforms state-of-the-art methods like Neural FM and RippleNet. Further studies verify the efficacy of embedding propagation for high-order relation modeling and the interpretability benefits brought by the attention mechanism.

PaperPDFCodeCode Syntology ran

In Syntology Open this paper in Syntology's Atlas, the map of the papers in Syntology's graph and their citations.

For agents, Syntology's MCP tool lists every function and class Syntology harvested from this paper and whether it ran (how to connect): get_harvested_code_for_paper(arxiv_id="1905.07854")

Code

Syntology Ran 7 of 13 code samples harvested from 3 repositories linked to this paper; 6 have no recorded run. Of those that ran: 1 ran · violated contract; 2 ran · our draft was wrong; 4 ran with no contract checked.

By repository: official repository: 3 samples from 1 repository, 3 ran; community (archive-listed): 10 samples from 2 repositories, 4 ran. The run record, sample by sample. “Ran” means executed on a synthesized input, not that the code is correct or reproduces the paper.

xiangwang1223/knowledge_graph_attention_network officialmentioned in papermentioned on GitHubtfMIT report
LunaBlack/KGAT-pytorch mentioned on GitHubpytorch report
Userepic/KGAT-pytorch-master mentioned on GitHubpytorch report
fumiyo0607/KGAN mentioned on GitHubtf report
giantonia/KGATv2 mentioned on GitHubtf report
jennyzhang0215/DGL-KGAT mentioned on GitHubpytorch report
zju-dbl/metakg mentioned on GitHubpytorchApache-2.0 report

Repository list and official/mentioned flags are the archive's, frozen 2025-07-28. Reachability, where shown, is from one Syntology probe window (2026-09-16 to 2026-09-18); repositories not probed show nothing. GitHub stars are not tracked.

Code Syntology ran Syntology

13 samples harvested; 7 ran; 0 honoured the contract we drafted; 6 have no recorded run. Read from Syntology's graph 2026-09-24; that is when this build read the record, not when the samples ran.

1ran · violated contract
2ran · our draft was wrong
4ran
6unverified

Licence: 1 of the 13 samples is pointer only, meaning Syntology does not serve that copy's text. This page shows no code text for any sample; each one links to its file in the repository.

Harvested from 3 repositories linked to this paper, official or community; each sample names its own and says which. “Ran” means the sample executed on a synthesized input. It does not mean the output is correct, and nothing here reproduces the paper's results. “Honoured” and “violated” refer to a contract Syntology drafted from the code itself; “our draft was wrong” and “fixture could not drive it” are failures of Syntology's instrument, not of the code.

Each sample ends with its code_sha256, Syntology's identity for that exact code. An agent fetches the stored sample with Syntology's MCP tool get_code(code_sha256="…") (how to connect); click an identity to copy that call.

Repository labels, per sample. official repository: The archive marks this repository official for the paper. named in the paper: The archive records that the paper mentions this repository; it is not marked official. community (archive-listed): In the archive's code links for this paper, not marked official and not recorded as mentioned in the paper. found in paper text by Syntology: 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. Samples from a repository marked official are listed first. Licence labels name the repository's licence as recorded at harvest. “Pointer only” means Syntology does not serve that copy's text, for one of four reasons: no licence file was found; the licence was not identified; the licence is recorded as permissive but that copy's record is not marked cleared; or the licence is outside the permissive list Syntology serves text under (MIT, Apache-2.0, BSD and similar). Some licences outside that list permit redistribution, such as WTFPL, and GPL-3.0 under its conditions; they are simply not on the list. Hover a licence label for the reason. File links open the file on GitHub at the default branch, which may have changed since the harvest.

hasNumbers xiangwang1223/knowledge_graph_attention_network/Model/utility/helper.py official repository ran · violated contract MIT (permissive) · f16f715a59169c8a · report
txt2list xiangwang1223/knowledge_graph_attention_network/Model/utility/helper.py official repository ran · our draft was wrong MIT (permissive) · b07be870060c7e26 · report
uni2str xiangwang1223/knowledge_graph_attention_network/Model/utility/helper.py official repository ran · our draft was wrong fingerprinted MIT (permissive) · ddd78902563c0d71 · report
average_precision zju-dbl/metakg/utility/metrics.py community (archive-listed) ran Apache-2.0 (permissive) · ea02c0066939a02c · report
precision_at_k zju-dbl/metakg/utility/metrics.py community (archive-listed) ran Apache-2.0 (permissive) · de0d0e47ac6bbe6c · report
read_cf zju-dbl/metakg/utility/data_loader.py community (archive-listed) ran Apache-2.0 (permissive) · a943eb44a36720f5 · report
recall zju-dbl/metakg/utility/metrics.py community (archive-listed) ran Apache-2.0 (permissive) · 4437293713f250ee · report
evaluate LunaBlack/KGAT-pytorch/main_kgat.py community (archive-listed) unverified no licence file found · pointer only · 9a27969aaabab082 · report
get_auc zju-dbl/metakg/utility/evaluate.py community (archive-listed) unverified Apache-2.0 (permissive) · 0671d5a4cbb1c2ac · report
read_item_list zju-dbl/metakg/construct_data.py community (archive-listed) unverified Apache-2.0 (permissive) · 3f00ab41756c7332 · report
read_triplets zju-dbl/metakg/utility/data_loader.py community (archive-listed) unverified Apache-2.0 (permissive) · a62b98b0ef1ddefd · report
read_user_list zju-dbl/metakg/construct_data.py community (archive-listed) unverified Apache-2.0 (permissive) · 62574d6b7ffda3a6 · report
remap_item zju-dbl/metakg/utility/data_loader.py community (archive-listed) unverified Apache-2.0 (permissive) · 9d48d59360417a6e · report

Tasks

Explainable RecommendationGraph Neural NetworkKnowledge GraphsRecommendation Systems

Results from the paper archive 2025-07-28

TaskDatasetModelMetricValueRank at snapshotLeaderboardReport
Link Prediction MovieLens 25M KGAT Hits@10 0.8147 #3 of 7 Archive leaderboard report
Link Prediction MovieLens 25M KGAT nDCG@10 0.5236 #3 of 7 Archive leaderboard report
Link Prediction Yelp KGAT HR@10 0.8762 #2 of 9 Archive leaderboard report
Link Prediction Yelp KGAT nDCG@10 0.6136 #2 of 9 Archive leaderboard report

Ranks are positions in the archive's leaderboards as they stood at the 2025-07-28 snapshot. Results published since then are not among these rows, so a rank here is not a current standing.

Methods

Interpretability

Report a problem or propose a change · a person checks every report against the paper or source before anything changes; decisions are listed on /corrections