【斯坦福CS224W图机器学习】08 图嵌入

本文介绍了三种图嵌入方法:1)节点嵌入求和/平均;2)虚拟节点表示子图嵌入;3)匿名随机游走嵌入。匿名随机游走方法通过忽略节点身份生成指数级数量的游走序列,并用其概率分布表示图。进一步提出了学习行走嵌入的思想,不仅记录行走次数,还学习每个行走的嵌入。这些方法在图分类、异常检测等任务中有应用。
摘要由CSDN通过智能技术生成

08 图嵌入

图嵌入

目标:想要嵌入一个子图或整个图,图形嵌入: Z G Z_G ZG

在这里插入图片描述

任务:

分类有毒分子和无毒分子,

识别异常图等

-方法1

简单的想法1:

在(子)图上运行标准的图形嵌入技术,然后只计算(子)图中的节点嵌入的总和(或平均值)。

在这里插入图片描述

2016年,杜维诺等人根据分子的图结构对分子进行分类。

-方法2

想法2:引入“虚拟节点”来表示(子)图,并运行标准图嵌入技术

在这里插入图片描述

由Li等人,2016年提出,作为子图嵌入的一般技术.

-方法3 Anonymous Walks Embedding

States in anonymous walks correspond to the index of the first time we visited the node in a random walk

在这里插入图片描述

Anonymous Walk Embeddings, ICML 2018 https://arxiv.org/pdf/1805.11921.pdf

忽略所访问节点的身份(因此是匿名)

在这里插入图片描述

匿名随机随机游走的序列数量

匿名随机游走的数量呈指数级增长:

There are 5 anon. walks w i w_i wi of length 3:

w 1 w_1 w1=111, w 2 w_2 w2=112, w 3 w_3 w3= 121, w 4 w_4 w4= 122, w 5 w_5 w5= 123

在这里插入图片描述

使用Anonymous Walks 嵌入图形

-Simulate anonymous walks w i w_i wi of l l l steps and record their counts

-Represent the graph as a probability distribution over these walks

在这里插入图片描述

在这里插入图片描述

我们可以进一步增强这个想法

New Idea: Learn Walk Embeddings

我们不是简单地表示每次行走的次数,而是学习嵌入

在这里插入图片描述

如何嵌入呢?(s.t.:使得,满足于)

在这里插入图片描述

Learn Walk Embeddings

在这里插入图片描述

在这里插入图片描述

在这里插入图片描述

总结

We discussed 3 ideas to graph embeddings

Approach 1: Embed nodes and sum/avg them

Approach 2: Create super-node that spans the (sub) graph and then embed that node

Approach 3: Anonymous Walk Embeddings

Idea 1: Sample the anon. walks and represent the graph as fraction of times each anon walk occurs

Idea 2: Embed anonymous walks, concatenate their embeddings to get a graph embedding

节点嵌入的应用

在这里插入图片描述

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值