<?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/en/tags/gnn/</link><description>Recent content in GNN on Chen Kai Blog</description><generator>Hugo</generator><language>en</language><lastBuildDate>Fri, 19 Dec 2025 09:00:00 +0000</lastBuildDate><atom:link href="https://www.chenk.top/en/tags/gnn/index.xml" rel="self" type="application/rss+xml"/><item><title>Recommendation Systems (7): Graph Neural Networks and Social Recommendation</title><link>https://www.chenk.top/en/recommendation-systems/07-graph-neural-networks/</link><pubDate>Fri, 19 Dec 2025 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/recommendation-systems/07-graph-neural-networks/</guid><description>&lt;p>When Netflix decides what to recommend next, it does not look at your watch history in isolation. Behind the scenes there is a web of relationships: movies that share actors, users with overlapping taste, ratings that ripple through the catalogue. The &amp;ldquo;graph&amp;rdquo; view is not a metaphor — every interaction matrix &lt;em>is&lt;/em> a graph, and treating it as one unlocks ideas that flat user/item embeddings cannot express.&lt;/p>
&lt;p>&lt;strong>Graph neural networks&lt;/strong> (GNNs) are the tool that lets us reason over that graph. Instead of learning each user and each item in isolation, a GNN says: &lt;em>your representation is shaped by the company you keep.&lt;/em> That single shift powers Pinterest&amp;rsquo;s billion-node PinSage, the strikingly simple LightGCN that beats heavier baselines on collaborative filtering, and the social-recommendation systems that fuse &amp;ldquo;what you watched&amp;rdquo; with &amp;ldquo;what your friends watched.&amp;rdquo;&lt;/p></description></item><item><title>PDE and ML (8): Reaction-Diffusion Systems and Graph Neural Networks</title><link>https://www.chenk.top/en/pde-ml/08-reaction-diffusion-systems/</link><pubDate>Wed, 14 Aug 2024 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/pde-ml/08-reaction-diffusion-systems/</guid><description>&lt;p>&lt;figure class="article-figure">
 &lt;img src="https://blog-pic-ck.oss-cn-beijing.aliyuncs.com/posts/en/pde-ml/08-Reaction-Diffusion-Systems/illustration_1.png" alt="PDE and ML (8): Reaction-Diffusion Systems and Graph Neural Networks — Chapter overview" loading="lazy" decoding="async" class="content-image">
 
&lt;/figure>
&lt;/p>
&lt;hr>
&lt;p>Anyone who has trained a deep GNN has seen it collapse — past a dozen or so layers, every node&amp;rsquo;s embedding becomes nearly identical and the model goes mush. There is a name for this — &lt;strong>over-smoothing&lt;/strong> — and the underlying math is surprisingly clean: &lt;strong>GNN message passing is essentially a diffusion equation on the graph&lt;/strong>, and diffusion&amp;rsquo;s long-time behavior is to flatten everything to a constant.&lt;/p></description></item><item><title>HCGR: Hyperbolic Contrastive Graph Representation Learning for Session-based Recommendation</title><link>https://www.chenk.top/en/standalone/hcgr/</link><pubDate>Wed, 01 May 2024 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/standalone/hcgr/</guid><description>&lt;p>A user opens a sneaker app, taps &amp;ldquo;running shoes,&amp;rdquo; drills into a brand, then a price band, and finally a single SKU. This trajectory forms a &lt;em>tree&lt;/em>: each click narrows the candidate set roughly multiplicatively. In Euclidean space, you need many dimensions to keep all the leaves of the tree apart because the volume grows polynomially with radius. In hyperbolic space, volume grows &lt;em>exponentially&lt;/em> with radius, so the tree fits naturally — a few dimensions are enough to keep the long tail untangled.&lt;/p></description></item><item><title>paper2repo: GitHub Repository Recommendation for Academic Papers</title><link>https://www.chenk.top/en/standalone/paper2repo-github-repository-recommendation/</link><pubDate>Mon, 26 Jun 2023 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/standalone/paper2repo-github-repository-recommendation/</guid><description>&lt;p>You read a paper, want the code, but the &amp;ldquo;code available at&amp;rdquo; link is dead, missing, or points to a stub. Search engines resort to keyword matching in the README, which works for popular repos with descriptive names but fails for others. paper2repo (WWW 2020) frames this as a cross-platform recommendation problem: learn an embedding space where a paper abstract and a GitHub repository can be compared directly using a dot product, then rank them.&lt;/p></description></item><item><title>Session-based Recommendation with Graph Neural Networks (SR-GNN)</title><link>https://www.chenk.top/en/standalone/session-based-recommendation-with-graph-neural-networks/</link><pubDate>Sun, 25 Jun 2023 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/standalone/session-based-recommendation-with-graph-neural-networks/</guid><description>&lt;p>A user clicks &lt;strong>A, B, C, B, D&lt;/strong>. A sequence model reads this as five tokens and folds them into a hidden state. &lt;strong>SR-GNN&lt;/strong> sees a &lt;em>graph&lt;/em> in which the edge &lt;code>B -&amp;gt; C&lt;/code> survives even after the user returns to &lt;code>B&lt;/code>, the node &lt;code>B&lt;/code> is reused (so its in/out neighbours both inform its embedding), and the geometry of the click stream is preserved as adjacency. That structural insight is why &lt;a href="https://arxiv.org/abs/1811.00855" target="_blank" rel="noopener noreferrer">SR-GNN (Wu et al., AAAI 2019) &lt;span aria-hidden="true" style="font-size:0.75em; opacity:0.55; margin-left:2px;">↗&lt;/span>&lt;/a>
 outperforms purely sequential baselines such as GRU4Rec and NARM on standard session-based recommendation (SBR) benchmarks.&lt;/p></description></item><item><title>Graph Contextualized Self-Attention Network (GC-SAN) for Session-based Recommendation</title><link>https://www.chenk.top/en/standalone/gcsan/</link><pubDate>Sun, 29 Jan 2023 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/standalone/gcsan/</guid><description>&lt;p>In session-based recommendation you only see a short anonymous click sequence — no user profile, no long history, no demographics. Every signal you have lives inside that single window. &lt;strong>GC-SAN&lt;/strong> (IJCAI 2019) takes the strongest two ideas of the time — SR-GNN&amp;rsquo;s session graph and the Transformer&amp;rsquo;s self-attention — and stacks them: a &lt;em>graph&lt;/em> view captures local transition patterns and loops, a &lt;em>sequence&lt;/em> view captures long-range intent, and a tiny weighted sum decides how much of each to trust. The result is a clean &amp;ldquo;best of both worlds&amp;rdquo; baseline that is genuinely hard to beat at its parameter budget.&lt;/p></description></item><item><title>LLMGR: Integrating Large Language Models with Graphical Session-Based Recommendation</title><link>https://www.chenk.top/en/standalone/llmgr/</link><pubDate>Sun, 22 Jan 2023 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/standalone/llmgr/</guid><description>&lt;p>Session-based recommendation relies on the click graph. New items lack edges, and long-tail items have a few noisy ones. Each item has a title and description, but the model never uses them. &lt;strong>LLMGR&lt;/strong> addresses this by treating the LLM as a &amp;ldquo;semantic engine&amp;rdquo; that converts text into representations a graph encoder can use, then lets a GNN handle ranking. On Amazon Music/Beauty/Pantry, the results show HR@20 up ~8.68%, NDCG@20 up ~10.71%, and MRR@20 up ~11.75% over the strongest GNN baseline, with the biggest gains for cold-start items.&lt;/p></description></item><item><title>Graph Neural Networks for Learning Equivariant Representations of Neural Networks</title><link>https://www.chenk.top/en/standalone/gnn-equivariant-representations/</link><pubDate>Sun, 03 Apr 2022 09:00:00 +0000</pubDate><guid>https://www.chenk.top/en/standalone/gnn-equivariant-representations/</guid><description>&lt;p>Shuffling the hidden neurons of a trained MLP yields the exact same function, but the flat parameter vector looks entirely different. This fact ruins most attempts at &amp;ldquo;learning over neural networks&amp;rdquo;: naive representations treat two functionally identical models as unrelated points in parameter space, causing the downstream learner to waste capacity rediscovering a symmetry it should have for free. This paper, &lt;em>Graph Neural Networks for Learning Equivariant Representations of Neural Networks&lt;/em> (Kofinas et al., ICML 2024), proposes a clean fix: turn the network into a graph and use a GNN whose architecture natively respects the relevant permutation symmetry.&lt;/p></description></item></channel></rss>