<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>GNN on Chen Kai Blog</title><link>https://www.chenk.top/zh/tags/gnn/</link><description>Recent content in GNN on Chen Kai Blog</description><generator>Hugo</generator><language>zh-CN</language><lastBuildDate>Fri, 19 Dec 2025 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/zh/tags/gnn/index.xml" rel="self" type="application/rss+xml"/><item><title>推荐系统（七）—— 图神经网络与社交推荐</title><link>https://www.chenk.top/zh/recommendation-systems/07-%E5%9B%BE%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C%E4%B8%8E%E7%A4%BE%E4%BA%A4%E6%8E%A8%E8%8D%90/</link><pubDate>Fri, 19 Dec 2025 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/recommendation-systems/07-%E5%9B%BE%E7%A5%9E%E7%BB%8F%E7%BD%91%E7%BB%9C%E4%B8%8E%E7%A4%BE%E4%BA%A4%E6%8E%A8%E8%8D%90/</guid><description>&lt;p>当 Netflix 决定下一步推荐什么内容时，它并不会孤立地看待你的观看历史。在幕后，其实存在一张复杂的关系网络：电影之间共享演员、用户之间口味重叠、评分信息在整个目录中层层传递。“图”这个视角并非比喻——每一个交互矩阵本质上就是一张图，而将其当作图来处理，能够解锁那些扁平化的用户/物品嵌入所无法表达的丰富信息。&lt;/p></description></item><item><title>偏微分方程与机器学习（八）：反应扩散系统与 GNN</title><link>https://www.chenk.top/zh/pde-ml/08-%E5%8F%8D%E5%BA%94%E6%89%A9%E6%95%A3%E7%B3%BB%E7%BB%9F%E4%B8%8Egnn/</link><pubDate>Wed, 14 Aug 2024 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/pde-ml/08-%E5%8F%8D%E5%BA%94%E6%89%A9%E6%95%A3%E7%B3%BB%E7%BB%9F%E4%B8%8Egnn/</guid><description>&lt;p>深层 GNN 大家都见过它崩——堆到十几层之后所有节点的 embedding 几乎一样，模型“糊掉”了。这个现象有个名字叫 &lt;strong>over-smoothing&lt;/strong>，背后的数学原因其实非常干净：&lt;strong>GNN 的消息传递本质上就是图上的扩散方程&lt;/strong>，扩散到最后所有节点都收敛到同一个常数。&lt;/p></description></item><item><title>HCGR —— Hyperbolic Contrastive Graph Representation Learning for Session-based Recommendation</title><link>https://www.chenk.top/zh/standalone/hcgr-hyperbolic-contrastive-graph-representation-learning-fo/</link><pubDate>Wed, 01 May 2024 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/standalone/hcgr-hyperbolic-contrastive-graph-representation-learning-fo/</guid><description>&lt;p>会话推荐中的“兴趣结构”几乎天然是分层的：用户先点开一个大类（如“跑鞋”），再筛选品牌、尺码和价位，最终选定一个 SKU。这条交互轨迹天然构成一棵树——每次点击都会将候选集大致按固定倍数缩小。问题在于，在欧氏空间中嵌入这类树状结构需要大幅增加维度，以避免叶子节点在表示空间中过度靠近，因为欧氏空间的“体积”只随半径多项式增长；而双曲空间的体积随半径指数级增长，正好与树的分支增长是同一个量级，几维就能把整条长尾摊开。&lt;/p></description></item><item><title>SR-GNN —— Session-based Recommendation with Graph Neural Networks</title><link>https://www.chenk.top/zh/standalone/session-based-recommendation-with-graph-neural-networks/</link><pubDate>Sun, 25 Jun 2023 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/standalone/session-based-recommendation-with-graph-neural-networks/</guid><description>&lt;p>用户依次点击 &lt;strong>A、 B、 C、 B、 D&lt;/strong>。将其输入序列模型，得到的是五个 token 压缩而成的单一隐状态；而输入 SR-GNN，则生成一张有向图——边 &lt;code>B -&amp;gt; C&lt;/code> 即便用户回到 &lt;code>B&lt;/code> 也仍然存在，节点 &lt;code>B&lt;/code> 只出现一次（它的入边和出邻居都会贡献到它的表示上），整段点击的拓扑都被原样保留在邻接矩阵里。这就是 &lt;a href="https://arxiv.org/abs/1811.00855" target="_blank" rel="noopener noreferrer">SR-GNN（Wu 等, AAAI 2019） &lt;span aria-hidden="true" style="font-size:0.75em; opacity:0.55; margin-left:2px;">↗&lt;/span>&lt;/a>
 在多个会话推荐基准上稳稳压过 GRU4Rec、 NARM 等纯序列模型的根本原因。&lt;/p></description></item><item><title>Graph Contextualized Self-Attention Network for Session-based Recommendation</title><link>https://www.chenk.top/zh/standalone/graph-contextualized-self-attention-network-for-session-base/</link><pubDate>Sun, 29 Jan 2023 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/standalone/graph-contextualized-self-attention-network-for-session-base/</guid><description>&lt;p>会话推荐里你能看到的只是一小段匿名点击序列，没有用户画像、历史长期偏好或人口统计，所有信号都封装在这几次点击中。&lt;strong>GC-SAN&lt;/strong>（IJCAI 2019）的思路很务实：把当时最强的两个想法直接叠起来——SR-GNN 的会话图捕捉局部转移结构，Transformer 的自注意力捕捉长距离意图，最后用一个标量权重把“当前点击”和“全局意图”线性融合。它本身不引入新机制，但作为一个基准，至今仍难以被同等参数量级的模型超越。&lt;/p></description></item><item><title>Integrating Large Language Models with Graphical Session-Based Recommendation</title><link>https://www.chenk.top/zh/standalone/integrating-large-language-models-with-graphical-session-bas/</link><pubDate>Sun, 22 Jan 2023 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/standalone/integrating-large-language-models-with-graphical-session-bas/</guid><description>&lt;p>会话推荐（Session-based Recommendation, SBR）本质上是一个“短历史”问题：你只看到用户在一次会话中很短的一段点击序列（通常 3-20 次），就要预测下一个最可能点击的物品。难点在于工程现实——会话短、长尾多、冷启动多，仅依赖交互图（ID + 转移边）往往难以稳定训练：新物品几乎无交互边，长尾物品的边既稀疏又不可靠，用户随意点击还会引入噪声。&lt;/p></description></item><item><title>Graph Neural Networks for Learning Equivariant Representations of Neural Networks</title><link>https://www.chenk.top/zh/standalone/graph-neural-networks-for-learning-equivariant-representatio/</link><pubDate>Sun, 03 Apr 2022 09:00:00 +0000</pubDate><guid>https://www.chenk.top/zh/standalone/graph-neural-networks-for-learning-equivariant-representatio/</guid><description>&lt;p>把一个 MLP 的隐藏单元换个顺序，函数本身不变，但参数向量却完全不同——这是「在网络空间里做学习」绕不开的第一道坎。如果不尊重这种置换对称性，下游模型就需要大量容量来记忆同一个函数的不同写法，从而影响泛化和迁移。 Kofinas 等人在 ICML 2024 的论文 &lt;em>Graph Neural Networks for Learning Equivariant Representations of Neural Networks&lt;/em> 提出了一种简洁的解决方案：将网络视为有向图（神经元为节点，权重为边），并使用对节点置换等变的 GNN 来读取。下面依次介绍为什么需要等变、神经图怎么构造、等变的意义、模型搭建方法以及四类下游任务及其细节与坑。&lt;/p></description></item></channel></rss>