知识图谱与推荐系统之RippleNet

在这里插入图片描述
上一篇介绍了依次训练的DKN模型,本文介绍连个训练的RippleNet模型。

在DKN中,我们需要首先学习到entity的向量和relation的向量,但是学习到的向量,其目的是为了还原知识图谱中的三元组关系,而并非是为了我们的推荐任务而学习的。因此今天我们来介绍一下知识图谱和推荐系统进行联合训练的一种网络结构:RippleNet。

论文

在这里插入图片描述

KG-aware recommendation 可以分为两类: embedding-based methods and path-based methods,有以下问题:
在这里插入图片描述

目的:RippleNet, an end-to-end framework for knowledge-graph-aware recommendation. RippleNet is designed for click-through rate (CTR) prediction, which takes a user-item pair as input and outputs the probability of the user engaging (e.g., clicking, browsing) the item.

主要思想:The key idea behind RippleNet is preference propagation(偏好传播): For each user, RippleNet treats his historical interests as a seed set in the KG, then extends the user’s interests iteratively along KG links to discover his hierarchical potential interests with respect to a candidate item.
在这里插入图片描述
有上述两个方法的优点:(1) RippleNet incorporates the KGE methods into recommendation naturally by preference propagation; (2) RippleNet can automatically discover possible paths from an item in a user’s history to a candidate item, without any sort of hand-crafted design.

模型的基本框架
在这里插入图片描述

模型输入输出在这里插入图片描述

定义1:在这里插入图片描述

定义2:
在这里插入图片描述
问题:
在这里插入图片描述

最终的预测值是通过item embedding和user embedding得到的,item embedding通过embedding 层可以直接得到,关键是user embedding的获取。user embedding是通过图中的绿色矩形表示的向量相加得到的,接下来,以第一个绿色矩形表示的向量为例,来看一下具体是如何计算的。
在这里插入图片描述

在这里插入图片描述

在这里插入图片描述
模型输出:
在这里插入图片描述
损失函数:
在这里插入图片描述

论文原文地址:https://arxiv.org/pdf/1803.03467.pdf
代码地址:https://github.com/hwwang55/RippleNet

  • 6
    点赞
  • 65
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值