当前位置:网站首页>【GCN-RS】MCL: Mixed-Centric Loss for Collaborative Filtering (WWW‘22)
【GCN-RS】MCL: Mixed-Centric Loss for Collaborative Filtering (WWW‘22)
2022-07-25 11:11:00 【chad_lee】
MCL: Mixed-Centric Loss for Collaborative Filtering (WWW’22)
Pointwise和pairwise损失函数挖掘的信息太少了,只是采样样本,然后更新权重
为了从可用的偏好信息中挖掘更多的信号,考虑了难样本和全局信息。
先采集难样本
E E E是欧式距离。
难正样本是指正样本的距离比 距离最小的负样本的距离减阈值 还要大的样本。
E u j > min k ∈ N u E u k − ϵ E_{u j}>\min _{k \in N_{u}} E_{u k}-\epsilon Euj>k∈NuminEuk−ϵ
难负样本是指负样本的距离比 距离最大的正样本的距离加阈值 还要小的样本。
E u k < max j ∈ P u E u j + ϵ E_{u k}<\max _{j \in P_{u}} E_{u j}+\epsilon Euk<j∈PumaxEuj+ϵ
混合中心loss (CML)
采集得到的正负样本集合分别为: P u s , N u s \mathrm{P}_{\mathrm{u}}^{\mathrm{s}}, \mathrm{N}_{\mathrm{u}}^{\mathrm{s}} Pus,Nus。在训练过程中,给定一个batch B(包含m个用户),定义损失函数:
L M C L = 1 α log [ 1 + 1 m ∑ u ∈ B ∑ j ∈ P u s e α ( E u j + λ p ) ] + 1 β log [ 1 + 1 m ∑ u ∈ B ∑ k ∈ N u s e − β ( E u k + λ n ) ] \begin{aligned} L_{M C L} &=\frac{1}{\alpha} \log \left[1+\frac{1}{m} \sum_{u \in B} \sum_{j \in P_{u}^{s}} e^{\alpha\left(E_{u j}+\lambda_{p}\right)}\right] \\ &+\frac{1}{\beta} \log \left[1+\frac{1}{m} \sum_{u \in B} \sum_{k \in N_{u}^{s}} e^{-\beta\left(E_{u k}+\lambda_{n}\right)}\right] \end{aligned} LMCL=α1log⎣⎡1+m1u∈B∑j∈Pus∑eα(Euj+λp)⎦⎤+β1log⎣⎡1+m1u∈B∑k∈Nus∑e−β(Euk+λn)⎦⎤
解释为什么设计这个loss,这个loss对于一对正样本的影响:
∂ L ∂ E u j = w u j + = 1 m ⋅ e α E u j e − α λ p + 1 m ∑ u ′ ∈ B ∑ i ∈ P u ′ s e α E u ′ i = 1 m ⋅ 1 w 1 + ( u , j ) + w 2 + ( u , j ) + w 3 + ( u , j ) \begin{aligned} \frac{\partial L}{\partial E_{u j}} =w_{u j}^{+} &=\frac{1}{m} \cdot \frac{e^{\alpha E_{u j}}}{e^{-\alpha \lambda_{p}+\frac{1}{m}} \sum_{u^{\prime} \in B} \sum_{i \in P_{u^{\prime}}^{s}} e^{\alpha E_{u^{\prime} i}}} \\ &=\frac{1}{m} \cdot \frac{1}{w_{1}^{+}(u, j)+w_{2}^{+}(u, j)+w_{3}^{+}(u, j)} \end{aligned} ∂Euj∂L=wuj+=m1⋅e−αλp+m1∑u′∈B∑i∈Pu′seαEu′ieαEuj=m1⋅w1+(u,j)+w2+(u,j)+w3+(u,j)1

- 用户-物品中心( w 1 + w_1^+ w1+):仅和用户-物品的距离有关,越远 w 1 w_1 w1越小,loss越大。
- 同类型中心( w 2 + w_2^+ w2+):计算当前正样本物品 j j j与用户其他正难样本之间的关系。如果正样本物品 j j j与用户的距离比其他难正样本的距离更大,则 w 1 w_1 w1越小,loss越大。这类似于对物品embedding空间加一个约束,希望相同类型物品与用户的距离相似(在embedding空间,同一个用户交互过的物品,围绕在用户附近。)
- 同批次中心( w 3 + w_3^+ w3+):和同一个batch中的其他用户进行对比,提供了跨用户的额外一致性,希望每个用户和其正样本的距离都相同。

边栏推荐
- Information management system for typical works of urban sculpture (picture sharing system SSM)
- Oracle parsing XML with the same name
- 硬件连接服务器 tcp通讯协议 gateway
- A beautiful gift for girls from programmers, H5 cube, beautiful, exquisite, HD
- [imx6ull notes] - a preliminary exploration of the underlying driver of the kernel
- 相似矩阵,可对角化条件
- [leetcode brush questions]
- brpc源码解析(八)—— 基础类EventDispatcher详解
- 【leetcode刷题】
- W5500通过上位机控制实现调节LED灯带的亮度
猜你喜欢

"Mqtt protocol explanation and Practice (access to onenet)" of wiznet w5500 series training activities

brpc源码解析(一)—— rpc服务添加以及服务器启动主要过程

【USB设备设计】--复合设备,双HID高速(64Byte 和 1024Byte)

How to solve the problem that "w5500 chip cannot connect to the server immediately after power failure and restart in tcp_client mode"

Multi-Label Image Classification(多标签图像分类)

winddows 计划任务执行bat 执行PHP文件 失败的解决办法

Common linear modulation methods based on MATLAB

剑指 Offer 22. 链表中倒数第k个节点

brpc源码解析(七)—— worker基于ParkingLot的bthread调度
![[MySQL learning 09]](/img/27/2578f320789ed32552d6f69f14a151.png)
[MySQL learning 09]
随机推荐
brpc源码解析(四)—— Bthread机制
Varest blueprint settings JSON
Management of software defects
return 和 finally的执行顺序 ?各位大佬请看过来,
【USB设备设计】--复合设备,双HID高速(64Byte 和 1024Byte)
油猴脚本链接
W5500 is in TCP_ In server mode, you cannot Ping or communicate in the switch / router network.
JaveScript循环
创新突破!亚信科技助力中国移动某省完成核心账务数据库自主可控改造
Review in the middle of 2022 | understand the latest progress of pre training model
The bank's wealth management subsidiary accumulates power to distribute a shares; The rectification of cash management financial products was accelerated
Maskgae: masked graph modeling meets graph autoencoders
Objects in JS
Dynamic planning problem 03_ Maximum sub segment sum
JDBC summary
The principle analysis of filter to solve the request parameter garbled code
Reflection reflection
winddows 计划任务执行bat 执行PHP文件 失败的解决办法
Intelligent information retrieval(智能信息检索综述)
Go 垃圾回收器指南