Posts by Tags

3D

Why Geometry Matters in Graph Neural Networks

5 minute read

Published:

Many real-world graphs are embedded in 3D space — molecules, proteins, point clouds, crystal structures. Standard GNNs ignore coordinates and only use connectivity. Geometric GNNs incorporate spatial positions and must respect physical symmetries.

ADMET

GNNs for Molecules: Drug Discovery and Material Design

5 minute read

Published:

Graph neural networks are transforming computational drug discovery. Molecules are natural graphs, and GNNs learn molecular representations that predict toxicity, solubility, binding affinity, and synthesis feasibility — tasks that previously required expensive laboratory experiments.

APPNP

APPNP: Personalized PageRank Meets Graph Neural Networks

5 minute read

Published:

APPNP decouples feature transformation from propagation. A neural network transforms features first; then Personalized PageRank propagates the result. This enables deep propagation without over-smoothing.

BERT

Bodnar

Neural Sheaf Diffusion: Learning Sheaves End-to-End

7 minute read

Published:

Neural Sheaf Diffusion (Bodnar et al., 2022) learns the sheaf restriction maps from data using a neural network, then performs diffusion with the learned Sheaf Laplacian. This gives a principled, topology-grounded GNN that handles heterophily without heuristic fixes.

CGODE

Graph Neural ODEs: Continuous-Time Graph Dynamics

7 minute read

Published:

Neural ODEs replace discrete layer-by-layer computation with continuous dynamics governed by a differential equation. Graph Neural ODEs apply this to graph data — treating node embeddings as a dynamical system evolving in continuous time.

ChebNet

Chebyshev

ComplEx

Knowledge Graph Embeddings vs GNNs

6 minute read

Published:

Knowledge graph completion can be solved with shallow KG embeddings (TransE, DistMult, ComplEx) or with structural GNNs (R-GCN, CompGCN). Each approach has different inductive biases and failure modes. Understanding when to use each is the central design decision for KG tasks.

DCRNN

GNNs for Traffic Forecasting

6 minute read

Published:

Traffic prediction is a canonical spatio-temporal graph task: sensors on roads form a fixed graph, and speed/volume measurements evolve over time. GNNs capture spatial correlations between sensors; RNNs or convolutions capture temporal patterns. Together they achieve state-of-the-art traffic forecasting.

Spatio-Temporal GNNs: Learning on Graphs Through Time

6 minute read

Published:

Spatio-temporal GNNs combine spatial message passing with temporal sequence modelling. They are the dominant approach for traffic forecasting, weather prediction, and any task where measurements at sensor nodes evolve over time on a fixed graph.

Defferrard

DimeNet

Molecular GNNs: Learning on Atoms and Bonds

6 minute read

Published:

Molecules are graphs. Molecular GNNs predict chemical properties from structure. The best models use 3D coordinates and bond angles — not just connectivity.

Dirichlet-energy

The Sheaf Laplacian: Spectral Theory for Sheaves

7 minute read

Published:

The Sheaf Laplacian generalises the graph Laplacian by incorporating per-edge restriction maps. Its spectrum reveals how consistent data is under the sheaf. Sheaf diffusion with this Laplacian generalises GCN to handle heterophilic graphs.

DistMult

Knowledge Graph Embeddings vs GNNs

6 minute read

Published:

Knowledge graph completion can be solved with shallow KG embeddings (TransE, DistMult, ComplEx) or with structural GNNs (R-GCN, CompGCN). Each approach has different inductive biases and failure modes. Understanding when to use each is the central design decision for KG tasks.

E(n)

EGNN: E(n)-Equivariant Graph Neural Networks

6 minute read

Published:

EGNN achieves E(n)-equivariance with a simple update rule: positions updated via weighted sums of relative position vectors, features updated via invariant distances. No spherical harmonics needed.

Equivariance: What It Means and Why It Matters

6 minute read

Published:

Equivariance formalises the idea that a function should ‘commute with symmetry transformations.’ A rotation-equivariant model applied to rotated input gives the rotated output — no extra training needed. This is the foundation for geometric deep learning.

EGNN

EGNN: E(n)-Equivariant Graph Neural Networks

6 minute read

Published:

EGNN achieves E(n)-equivariance with a simple update rule: positions updated via weighted sums of relative position vectors, features updated via invariant distances. No spherical harmonics needed.

FFN

The Transformer Block: Putting It All Together

7 minute read

Published:

A single Transformer block combines attention, residuals, layer norm, and an FFN into one reusable unit. Understanding this block is understanding the Transformer.

FoPE

FoPE: Fourier Position Embedding for Length Generalization

6 minute read

Published:

FoPE rethinks long-context positional encoding from a frequency-domain perspective. Instead of only stretching RoPE heuristically, it explicitly improves attention’s periodic extension so Transformers generalize more gracefully to longer sequences.

Fourier

FoPE: Fourier Position Embedding for Length Generalization

6 minute read

Published:

FoPE rethinks long-context positional encoding from a frequency-domain perspective. Instead of only stretching RoPE heuristically, it explicitly improves attention’s periodic extension so Transformers generalize more gracefully to longer sequences.

Graph Fourier Transform: The Spectral View of Graphs

6 minute read

Published:

The Graph Fourier Transform decomposes a signal on a graph into frequency components using the Laplacian’s eigenvectors. This spectral view is the mathematical foundation behind spectral GNNs like ChebNet and GCN.

Freebase

GNNs for Knowledge Graphs: Reasoning and Completion

6 minute read

Published:

Knowledge graphs encode human knowledge as typed entity-relation triples. GNNs enable structure-aware entity representation, multi-hop reasoning, knowledge base completion, and entity alignment — tasks that shallow embedding methods cannot fully solve.

GAT

MPNN: The General Message Passing Neural Network Framework

6 minute read

Published:

The MPNN framework (Gilmer et al., 2017) unifies GCN, GAT, GIN, GraphSAGE, and almost all spatial GNNs under one abstraction: message functions, aggregation, and update. Understanding MPNN means understanding the whole GNN family.

GCN

MPNN: The General Message Passing Neural Network Framework

6 minute read

Published:

The MPNN framework (Gilmer et al., 2017) unifies GCN, GAT, GIN, GraphSAGE, and almost all spatial GNNs under one abstraction: message functions, aggregation, and update. Understanding MPNN means understanding the whole GNN family.

GCNII

Depth in GNNs: Why Deeper Is Not Always Better

6 minute read

Published:

In Transformers, depth = expressiveness. In GNNs, depth = both expressiveness AND over-smoothing. The optimal GNN depth is rarely more than 3-4 layers — fundamentally different from the hundreds of layers in modern LLMs.

GIN

Graph Classification: From Node Embeddings to Graph Embeddings

6 minute read

Published:

Graph classification is the task of predicting a label for an entire graph. It requires composing message passing (node embeddings), readout (graph embedding), and a classifier — and all three choices interact to determine model expressiveness.

The Weisfeiler-Lehman Test: How Powerful Are GNNs?

7 minute read

Published:

The 1-WL graph isomorphism test provides the exact upper bound on message-passing GNN expressivity. GIN achieves this bound. Any pair of graphs that 1-WL cannot distinguish cannot be distinguished by any MPNN.

MPNN: The General Message Passing Neural Network Framework

6 minute read

Published:

The MPNN framework (Gilmer et al., 2017) unifies GCN, GAT, GIN, GraphSAGE, and almost all spatial GNNs under one abstraction: message functions, aggregation, and update. Understanding MPNN means understanding the whole GNN family.

GNN

Why GNNs Need Positional Encodings

5 minute read

Published:

Message-passing GNNs are permutation-equivariant by design — they cannot assign unique positions to nodes. Without positional encodings, symmetric nodes are indistinguishable. Here is why that matters and how to fix it.

Depth in GNNs: Why Deeper Is Not Always Better

6 minute read

Published:

In Transformers, depth = expressiveness. In GNNs, depth = both expressiveness AND over-smoothing. The optimal GNN depth is rarely more than 3-4 layers — fundamentally different from the hundreds of layers in modern LLMs.

Over-smoothing vs Over-squashing: The Difference

7 minute read

Published:

Oversmoothing and oversquashing are both problems with deep GNNs, but they affect different nodes, have different causes, and require different fixes. Confusing them leads to applying the wrong solution.

Oversmoothing: When All Node Embeddings Become the Same

7 minute read

Published:

Stack enough GNN layers and all node embeddings converge to the same vector — making the model useless. Oversmoothing is not a training problem; it is a mathematical inevitability of iterated averaging.

GPT

Graphormer

Shortest-Path Encodings for Graph Transformers

4 minute read

Published:

Shortest-path distances between nodes can be encoded as attention biases or node features — directly informing the model about graph proximity without requiring message passing.

Graphormer: Transformers with Structural Biases for Graphs

6 minute read

Published:

Graphormer encodes graph structure directly into Transformer attention via three biases: node centrality, spatial encoding (shortest paths), and edge encoding. It won the OGB-LSC 2021 competition on molecular property prediction.

H2GCN

Sheaf Neural Networks and Heterophily

6 minute read

Published:

Sheaf GNNs are the principled solution to heterophily: by learning per-edge maps that transform features before comparison, they can perform diffusion that converges within classes and diverges across classes — the exact opposite of standard GCN’s collapse.

HAN

HAN: Heterogeneous Graph Attention Networks

5 minute read

Published:

HAN combines meta-path decomposition with two levels of attention: node-level attention weights neighbours along a meta-path, and semantic-level attention weights different meta-paths. This lets the model learn which relationships matter most for a given task.

Heterogeneous Graphs: When Nodes and Edges Have Types

5 minute read

Published:

Most real-world graphs are heterogeneous — they contain multiple node types (users, items, tags) and edge types (clicks, rates, authors). Standard GNNs treat all nodes and edges identically, making them blind to this type structure.

HOMO-LUMO

Molecular GNNs: Learning on Atoms and Bonds

6 minute read

Published:

Molecules are graphs. Molecular GNNs predict chemical properties from structure. The best models use 3D coordinates and bond angles — not just connectivity.

Jacobian

LLaMA

YaRN: Yet Another RoPE Extensionn Method

7 minute read

Published:

YaRN combines NTK scaling for high-frequency dimensions with linear interpolation for low-frequency ones, plus a temperature correction — achieving better long-context performance with minimal fine-tuning.

LSTM

Set2Set and Attention Readout: Order-Invariant Graph Summaries

6 minute read

Published:

Mean and sum readout treat all nodes equally. Attention readout learns which nodes matter most for a given task. Set2Set goes further — it uses an LSTM to iteratively query the node set, producing richer graph representations than single-pass pooling.

LapPE

Sign Ambiguity in Laplacian Eigenvectors

5 minute read

Published:

Laplacian eigenvectors are only defined up to sign: if u is an eigenvector, so is -u. This seemingly minor issue creates a fundamental problem for learning with LapPE. Here is the problem, its consequences, and how SignNet solves it.

Laplacian Eigenvectors as Graph Positional Encodings

6 minute read

Published:

The k smallest eigenvectors of the graph Laplacian form a natural positional embedding space — the graph’s own coordinate system. They capture global structure, symmetry, and community membership.

Laplacian

Laplacian Eigenvectors as Graph Positional Encodings

6 minute read

Published:

The k smallest eigenvectors of the graph Laplacian form a natural positional embedding space — the graph’s own coordinate system. They capture global structure, symmetry, and community membership.

Oversmoothing: When All Node Embeddings Become the Same

7 minute read

Published:

Stack enough GNN layers and all node embeddings converge to the same vector — making the model useless. Oversmoothing is not a training problem; it is a mathematical inevitability of iterated averaging.

Graph Fourier Transform: The Spectral View of Graphs

6 minute read

Published:

The Graph Fourier Transform decomposes a signal on a graph into frequency components using the Laplacian’s eigenvectors. This spectral view is the mathematical foundation behind spectral GNNs like ChebNet and GCN.

LightGCN

GNNs for Recommender Systems

5 minute read

Published:

Recommendation is naturally a graph problem: users and items are nodes, interactions are edges. GNNs on bipartite user-item graphs capture higher-order collaborative filtering signals — friends of friends liked this — that matrix factorisation cannot represent.

LongRoPE

LongRoPE: Extending Context to 2 Million Tokens

7 minute read

Published:

LongRoPE (Microsoft, 2024) pushes RoPE-based context to 2M tokens by searching for optimal per-dimension rescaling factors — far outperforming NTK or YaRN at extreme lengths.

MACE

Tensor Field Networks and Geometric Deep Learning

6 minute read

Published:

Tensor Field Networks (TFN) were the first architecture to achieve SE(3) equivariance using spherical harmonics and Clebsch-Gordan tensor products. They laid the theoretical foundation for NequIP and MACE — the current state-of-the-art in equivariant molecular force fields.

MLP

MPNN

MPNN: The General Message Passing Neural Network Framework

6 minute read

Published:

The MPNN framework (Gilmer et al., 2017) unifies GCN, GAT, GIN, GraphSAGE, and almost all spatial GNNs under one abstraction: message functions, aggregation, and update. Understanding MPNN means understanding the whole GNN family.

Microsoft

LongRoPE: Extending Context to 2 Million Tokens

7 minute read

Published:

LongRoPE (Microsoft, 2024) pushes RoPE-based context to 2M tokens by searching for optimal per-dimension rescaling factors — far outperforming NTK or YaRN at extreme lengths.

NSD

Neural Sheaf Diffusion: Learning Sheaves End-to-End

7 minute read

Published:

Neural Sheaf Diffusion (Bodnar et al., 2022) learns the sheaf restriction maps from data using a neural network, then performs diffusion with the learned Sheaf Laplacian. This gives a principled, topology-grounded GNN that handles heterophily without heuristic fixes.

NTK

NequIP

Tensor Field Networks and Geometric Deep Learning

6 minute read

Published:

Tensor Field Networks (TFN) were the first architecture to achieve SE(3) equivariance using spherical harmonics and Clebsch-Gordan tensor products. They laid the theoretical foundation for NequIP and MACE — the current state-of-the-art in equivariant molecular force fields.

OGB

Graphormer: Transformers with Structural Biases for Graphs

6 minute read

Published:

Graphormer encodes graph structure directly into Transformer attention via three biases: node centrality, spatial encoding (shortest paths), and edge encoding. It won the OGB-LSC 2021 competition on molecular property prediction.

PNSD

Polynomial Neural Sheaf Diffusion

6 minute read

Published:

Polynomial Neural Sheaf Diffusion (PNSD) replaces the fixed diffusion operator (I - Δ_F) with a learnable polynomial of the Sheaf Laplacian. This gives the model spectral flexibility — it can learn to amplify or suppress different frequency components of the sheaf signal.

PageRank

APPNP: Personalized PageRank Meets Graph Neural Networks

5 minute read

Published:

APPNP decouples feature transformation from propagation. A neural network transforms features first; then Personalized PageRank propagates the result. This enables deep propagation without over-smoothing.

PinSage

GNNs for Recommender Systems

5 minute read

Published:

Recommendation is naturally a graph problem: users and items are nodes, interactions are edges. GNNs on bipartite user-item graphs capture higher-order collaborative filtering signals — friends of friends liked this — that matrix factorisation cannot represent.

Post-LN

Layer Normalization in Transformers

7 minute read

Published:

Layer norm is not optional plumbing. It determines training stability, gradient flow, and whether deep Transformers converge at all. Pre-LN vs Post-LN is not a detail — it changes training dynamics fundamentally.

Pre-LN

Layer Normalization in Transformers

7 minute read

Published:

Layer norm is not optional plumbing. It determines training stability, gradient flow, and whether deep Transformers converge at all. Pre-LN vs Post-LN is not a detail — it changes training dynamics fundamentally.

QKV

Query, Key, Value: The Intuition Behind QKV

6 minute read

Published:

Q, K, and V are not arbitrary labels. They map precisely onto search queries, database labels, and retrieved content — a framework you already understand.

QM9

Molecular GNNs: Learning on Atoms and Bonds

6 minute read

Published:

Molecules are graphs. Molecular GNNs predict chemical properties from structure. The best models use 3D coordinates and bond angles — not just connectivity.

QSAR

GNNs for Molecules: Drug Discovery and Material Design

5 minute read

Published:

Graph neural networks are transforming computational drug discovery. Molecules are natural graphs, and GNNs learn molecular representations that predict toxicity, solubility, binding affinity, and synthesis feasibility — tasks that previously required expensive laboratory experiments.

R-GCN

Knowledge Graph Embeddings vs GNNs

6 minute read

Published:

Knowledge graph completion can be solved with shallow KG embeddings (TransE, DistMult, ComplEx) or with structural GNNs (R-GCN, CompGCN). Each approach has different inductive biases and failure modes. Understanding when to use each is the central design decision for KG tasks.

R-GCN: Relational Graph Convolutional Networks

5 minute read

Published:

R-GCN extends GCN to multi-relational graphs by learning a separate weight matrix for each relation type. It handles knowledge graphs with typed edges and powers both entity classification and link prediction tasks.

RWPE

Random Walk Positional Encodings

5 minute read

Published:

Random walk positional encodings encode each node’s structural context by computing the probability of returning to it from itself in k steps — a computationally efficient alternative to Laplacian eigenvectors with no sign ambiguity.

RoPE

FoPE: Fourier Position Embedding for Length Generalization

6 minute read

Published:

FoPE rethinks long-context positional encoding from a frequency-domain perspective. Instead of only stretching RoPE heuristically, it explicitly improves attention’s periodic extension so Transformers generalize more gracefully to longer sequences.

Position Interpolation: Extending RoPE with Minimal Fine-Tuning

5 minute read

Published:

Position Interpolation rescales positions before applying RoPE so a model trained on short contexts can be adapted to longer ones with surprisingly little fine-tuning. It became the reference baseline for long-context RoPE extension.

XPos: Length-Extrapolatable Rotary Embeddings

5 minute read

Published:

XPos modifies RoPE with a multiplicative decay that keeps relative rotations while stabilising magnitude at long distance. It is one of the cleanest attempts to make rotary embeddings extrapolate better.

p-RoPE: What Makes Rotary Positional Encodings Useful?

6 minute read

Published:

This paper does two things at once: it explains what RoPE is really doing inside a trained LLM, and it proposes p-RoPE, a partial rotary variant that drops the lowest frequencies to preserve stronger semantic channels.

LongRoPE: Extending Context to 2 Million Tokens

7 minute read

Published:

LongRoPE (Microsoft, 2024) pushes RoPE-based context to 2M tokens by searching for optimal per-dimension rescaling factors — far outperforming NTK or YaRN at extreme lengths.

YaRN: Yet Another RoPE Extensionn Method

7 minute read

Published:

YaRN combines NTK scaling for high-frequency dimensions with linear interpolation for low-frequency ones, plus a temperature correction — achieving better long-context performance with minimal fine-tuning.

SE3-transformer

SE(3)-Transformers: Attention with 3D Symmetry

6 minute read

Published:

SE(3)-Transformers extend self-attention to 3D point clouds and molecular graphs while maintaining SE(3) equivariance. Attention weights are learned between node pairs; values are equivariant features built from spherical harmonics.

SGC

SGC: Simple Graph Convolution

5 minute read

Published:

SGC removes all nonlinearities between GCN layers and collapses the entire propagation into a single pre-computed matrix power. Surprisingly, it matches GCN on most benchmarks — revealing that nonlinearities between layers may be unnecessary.

SO3

Tensor Field Networks and Geometric Deep Learning

6 minute read

Published:

Tensor Field Networks (TFN) were the first architecture to achieve SE(3) equivariance using spherical harmonics and Clebsch-Gordan tensor products. They laid the theoretical foundation for NequIP and MACE — the current state-of-the-art in equivariant molecular force fields.

SPD

Shortest-Path Encodings for Graph Transformers

4 minute read

Published:

Shortest-path distances between nodes can be encoded as attention biases or node features — directly informing the model about graph proximity without requiring message passing.

STGCN

GNNs for Traffic Forecasting

6 minute read

Published:

Traffic prediction is a canonical spatio-temporal graph task: sensors on roads form a fixed graph, and speed/volume measurements evolve over time. GNNs capture spatial correlations between sensors; RNNs or convolutions capture temporal patterns. Together they achieve state-of-the-art traffic forecasting.

Spatio-Temporal GNNs: Learning on Graphs Through Time

6 minute read

Published:

Spatio-temporal GNNs combine spatial message passing with temporal sequence modelling. They are the dominant approach for traffic forecasting, weather prediction, and any task where measurements at sensor nodes evolve over time on a fixed graph.

SchNet

Molecular GNNs: Learning on Atoms and Bonds

6 minute read

Published:

Molecules are graphs. Molecular GNNs predict chemical properties from structure. The best models use 3D coordinates and bond angles — not just connectivity.

SignNet

Sign Ambiguity in Laplacian Eigenvectors

5 minute read

Published:

Laplacian eigenvectors are only defined up to sign: if u is an eigenvector, so is -u. This seemingly minor issue creates a fundamental problem for learning with LapPE. Here is the problem, its consequences, and how SignNet solves it.

SwiGLU

T5

TFN

Tensor Field Networks and Geometric Deep Learning

6 minute read

Published:

Tensor Field Networks (TFN) were the first architecture to achieve SE(3) equivariance using spherical harmonics and Clebsch-Gordan tensor products. They laid the theoretical foundation for NequIP and MACE — the current state-of-the-art in equivariant molecular force fields.

TGN

Temporal Graph Networks: Learning from Events

6 minute read

Published:

TGN (Temporal Graph Network) is the leading framework for continuous-time dynamic graphs. It maintains a per-node memory that is updated upon each interaction, enabling efficient inductive link prediction on event streams.

TKG

Temporal Knowledge Graphs: Facts That Change Over Time

5 minute read

Published:

Most knowledge graphs treat facts as timeless — but facts change. Barack Obama was president from 2009 to 2017. Temporal Knowledge Graphs add timestamps to triples, requiring models to reason about what was true when.

TransE

Knowledge Graph Embeddings vs GNNs

6 minute read

Published:

Knowledge graph completion can be solved with shallow KG embeddings (TransE, DistMult, ComplEx) or with structural GNNs (R-GCN, CompGCN). Each approach has different inductive biases and failure modes. Understanding when to use each is the central design decision for KG tasks.

WL-test

The Weisfeiler-Lehman Test: How Powerful Are GNNs?

7 minute read

Published:

The 1-WL graph isomorphism test provides the exact upper bound on message-passing GNN expressivity. GIN achieves this bound. Any pair of graphs that 1-WL cannot distinguish cannot be distinguished by any MPNN.

Wikidata

GNNs for Knowledge Graphs: Reasoning and Completion

6 minute read

Published:

Knowledge graphs encode human knowledge as typed entity-relation triples. GNNs enable structure-aware entity representation, multi-hop reasoning, knowledge base completion, and entity alignment — tasks that shallow embedding methods cannot fully solve.

XPos

XPos: Length-Extrapolatable Rotary Embeddings

5 minute read

Published:

XPos modifies RoPE with a multiplicative decay that keeps relative rotations while stabilising magnitude at long distance. It is one of the cleanest attempts to make rotary embeddings extrapolate better.

Xu

The Weisfeiler-Lehman Test: How Powerful Are GNNs?

7 minute read

Published:

The 1-WL graph isomorphism test provides the exact upper bound on message-passing GNN expressivity. GIN achieves this bound. Any pair of graphs that 1-WL cannot distinguish cannot be distinguished by any MPNN.

YaRN

YaRN: Yet Another RoPE Extensionn Method

7 minute read

Published:

YaRN combines NTK scaling for high-frequency dimensions with linear interpolation for low-frequency ones, plus a temperature correction — achieving better long-context performance with minimal fine-tuning.

activation

activation-functions

Activation Functions in Neural Networks: Why Non-Linearity Matters

12 minute read

Published:

Activation functions are the reason neural networks can model curved decision boundaries instead of collapsing into one giant linear map. This chapter builds the intuition first, then walks through the classical functions that shaped deep learning.

adjacency-matrix

The Graph Adjacency Matrix: A Graph in Matrix Form

4 minute read

Published:

Before understanding GNNs, you need to understand how graphs are represented mathematically. The adjacency matrix is the foundation — a simple grid that tells you which nodes are connected.

aggregation

Global Pooling in GNNs: Mean, Sum, and Max

5 minute read

Published:

To predict a property of an entire graph, node embeddings must be aggregated into a single vector. The choice of global pooling — mean, sum, or max — is not arbitrary: each has distinct expressive power and fits different tasks.

alibi

ALiBi: Attention with Linear Biases

4 minute read

Published:

ALiBi skips traditional positional embeddings entirely and just subtracts a distance penalty from attention scores. Zero extra parameters, excellent extrapolation. Press et al., 2022.

architecture

The Transformer Block: Putting It All Together

7 minute read

Published:

A single Transformer block combines attention, residuals, layer norm, and an FFN into one reusable unit. Understanding this block is understanding the Transformer.

Transformers: The Architecture That Changed AI

8 minute read

Published:

A self-contained guide to the Transformer — the engine behind GPT, BERT, and modern AI. Learn how attention replaces recurrence and why every major AI system uses it.

attention

GAPE: Remember to Forget — Gated Adaptive Positional Encoding

10 minute read

Published:

GAPE is a drop-in RoPE augmentation that adds content-aware attention logit biases: a query-gate suppresses irrelevant distant context while a key-gate preserves salient distant tokens. Provably sharper attention and improved long-context robustness — no architecture changes needed.

The Transformer Block: Putting It All Together

7 minute read

Published:

A single Transformer block combines attention, residuals, layer norm, and an FFN into one reusable unit. Understanding this block is understanding the Transformer.

Query, Key, Value: The Intuition Behind QKV

6 minute read

Published:

Q, K, and V are not arbitrary labels. They map precisely onto search queries, database labels, and retrieved content — a framework you already understand.

Multi-Head Attention: Many Eyes on the Data

4 minute read

Published:

One attention head sees one relationship. Multiple heads running in parallel let the model capture syntax, semantics, and coreference simultaneously — here’s how.

Self-Attention: Teaching Machines to Focus

6 minute read

Published:

Self-attention is the core of every Transformer. Learn how Query, Key, and Value vectors let every token directly attend to every other — and why that matters.

SE(3)-Transformers: Attention with 3D Symmetry

6 minute read

Published:

SE(3)-Transformers extend self-attention to 3D point clouds and molecular graphs while maintaining SE(3) equivariance. Attention weights are learned between node pairs; values are equivariant features built from spherical harmonics.

HAN: Heterogeneous Graph Attention Networks

5 minute read

Published:

HAN combines meta-path decomposition with two levels of attention: node-level attention weights neighbours along a meta-path, and semantic-level attention weights different meta-paths. This lets the model learn which relationships matter most for a given task.

Graph Transformers: Bringing Attention to Graphs

5 minute read

Published:

Graph Transformers replace or augment local message passing with full pairwise attention — every node attends to every other node. This solves long-range dependencies and over-squashing at the cost of O(N²) computation.

GAT: Graph Attention Networks

4 minute read

Published:

GCN assigns the same (degree-based) weight to every neighbour. GAT learns which neighbours actually matter — using attention coefficients on edges. More expressive, more interpretable.

attention-bias

ALiBi: Attention with Linear Biases

4 minute read

Published:

ALiBi skips traditional positional embeddings entirely and just subtracts a distance penalty from attention scores. Zero extra parameters, excellent extrapolation. Press et al., 2022.

attention-readout

Set2Set and Attention Readout: Order-Invariant Graph Summaries

6 minute read

Published:

Mean and sum readout treat all nodes equally. Attention readout learns which nodes matter most for a given task. Set2Set goes further — it uses an LSTM to iteratively query the node set, producing richer graph representations than single-pass pooling.

batch-norm

Layer Normalization in Transformers

7 minute read

Published:

Layer norm is not optional plumbing. It determines training stability, gradient flow, and whether deep Transformers converge at all. Pre-LN vs Post-LN is not a detail — it changes training dynamics fundamentally.

beginner

Query, Key, Value: The Intuition Behind QKV

6 minute read

Published:

Q, K, and V are not arbitrary labels. They map precisely onto search queries, database labels, and retrieved content — a framework you already understand.

benchmarks

Graph Classification: From Node Embeddings to Graph Embeddings

6 minute read

Published:

Graph classification is the task of predicting a label for an entire graph. It requires composing message passing (node embeddings), readout (graph embedding), and a classifier — and all three choices interact to determine model expressiveness.

bipartite-graph

GNNs for Recommender Systems

5 minute read

Published:

Recommendation is naturally a graph problem: users and items are nodes, interactions are edges. GNNs on bipartite user-item graphs capture higher-order collaborative filtering signals — friends of friends liked this — that matrix factorisation cannot represent.

bottleneck

causal

cellular-sheaf

What Is a Sheaf? From Topology to Graph Learning

7 minute read

Published:

A sheaf is a mathematical object from algebraic topology that assigns vector spaces to cells and linear maps between them. On graphs, sheaves assign feature spaces to nodes and edges, with restriction maps encoding how node features relate across edges.

Why Message Passing Is Not Enough: The Case for Sheaves

6 minute read

Published:

Standard message passing aggregates neighbour features and averages. On heterophilic graphs (where neighbours often disagree), this is harmful. Cellular sheaves provide a mathematically principled framework to model per-edge relationships between node features — going beyond mere averaging.

clustering

DiffPool: Learning Hierarchical Graph Pooling

6 minute read

Published:

DiffPool learns to hierarchically cluster nodes into super-nodes across layers — like a convolutional pyramid for graphs. Unlike flat global pooling, it captures multi-scale graph structure by differentiably assigning nodes to clusters.

coboundary

The Sheaf Laplacian: Spectral Theory for Sheaves

7 minute read

Published:

The Sheaf Laplacian generalises the graph Laplacian by incorporating per-edge restriction maps. Its spectrum reveals how consistent data is under the sheaf. Sheaf diffusion with this Laplacian generalises GCN to handle heterophilic graphs.

collaborative-filtering

GNNs for Recommender Systems

5 minute read

Published:

Recommendation is naturally a graph problem: users and items are nodes, interactions are edges. GNNs on bipartite user-item graphs capture higher-order collaborative filtering signals — friends of friends liked this — that matrix factorisation cannot represent.

community-detection

GNNs for Social Networks: Influence, Communities, and Misinformation

6 minute read

Published:

Social networks are large sparse graphs with rich node features (user profiles) and heterogeneous edges (friendship, follow, retweet). GNNs predict user behaviour, detect communities, identify influential spreaders, and flag misinformation — tasks with significant real-world impact.

comparison

Over-smoothing vs Over-squashing: The Difference

7 minute read

Published:

Oversmoothing and oversquashing are both problems with deep GNNs, but they affect different nodes, have different causes, and require different fixes. Confusing them leads to applying the wrong solution.

connection-Laplacian

Equivariant Sheaf Neural Networks

6 minute read

Published:

Sheaves with orthogonal restriction maps define a connection on the graph — a parallel transport structure over edges. This connects sheaf GNNs to differential geometry and enables equivariant processing of data with local coordinate frames at each node.

context-length

LongRoPE: Extending Context to 2 Million Tokens

7 minute read

Published:

LongRoPE (Microsoft, 2024) pushes RoPE-based context to 2M tokens by searching for optimal per-dimension rescaling factors — far outperforming NTK or YaRN at extreme lengths.

YaRN: Yet Another RoPE Extensionn Method

7 minute read

Published:

YaRN combines NTK scaling for high-frequency dimensions with linear interpolation for low-frequency ones, plus a temperature correction — achieving better long-context performance with minimal fine-tuning.

continuous-time

Graph Neural ODEs: Continuous-Time Graph Dynamics

7 minute read

Published:

Neural ODEs replace discrete layer-by-layer computation with continuous dynamics governed by a differential equation. Graph Neural ODEs apply this to graph data — treating node embeddings as a dynamical system evolving in continuous time.

Temporal Graph Networks: Learning from Events

6 minute read

Published:

TGN (Temporal Graph Network) is the leading framework for continuous-time dynamic graphs. It maintains a per-node memory that is updated upon each interaction, enabling efficient inductive link prediction on event streams.

Static vs Dynamic Graphs: When Structure Changes Over Time

5 minute read

Published:

Most GNN research assumes a fixed graph. Real graphs evolve: edges appear and disappear, node features drift, new nodes arrive. Dynamic graph learning addresses how to model and predict on graphs whose structure changes over time.

convergence

Oversmoothing: When All Node Embeddings Become the Same

7 minute read

Published:

Stack enough GNN layers and all node embeddings converge to the same vector — making the model useless. Oversmoothing is not a training problem; it is a mathematical inevitability of iterated averaging.

convolution

GCN: Graph Convolutional Networks

4 minute read

Published:

GCN (Kipf & Welling, 2016) is the ‘hello world’ of GNNs. It simplifies spectral graph convolution into a single elegant layer: normalised neighbourhood averaging with a learned linear transformation.

coordinates

EGNN: E(n)-Equivariant Graph Neural Networks

6 minute read

Published:

EGNN achieves E(n)-equivariance with a simple update rule: positions updated via weighted sums of relative position vectors, features updated via invariant distances. No spherical harmonics needed.

Why Geometry Matters in Graph Neural Networks

5 minute read

Published:

Many real-world graphs are embedded in 3D space — molecules, proteins, point clouds, crystal structures. Standard GNNs ignore coordinates and only use connectivity. Geometric GNNs incorporate spatial positions and must respect physical symmetries.

cross-attention

cvpr

Z-SASLM: Zero-Shot Style Blending via Spherical Interpolation

10 minute read

Published:

Z-SASLM is a zero-shot, fine-tuning-free style blending pipeline that replaces linear latent interpolation with SLERP along the geodesic of the hypersphere, preserving latent manifold structure when blending multiple styles. Published at CVPR 2025 Workshop.

decoder

deep-learning

Transformers: The Architecture That Changed AI

8 minute read

Published:

A self-contained guide to the Transformer — the engine behind GPT, BERT, and modern AI. Learn how attention replaces recurrence and why every major AI system uses it.

depth

Residual Connections: Why Transformers Can Be Deep

7 minute read

Published:

Without residual connections, training a 96-layer Transformer would be practically impossible. The skip connection is a simple addition that solves the vanishing gradient problem and enables arbitrary depth.

Depth in GNNs: Why Deeper Is Not Always Better

6 minute read

Published:

In Transformers, depth = expressiveness. In GNNs, depth = both expressiveness AND over-smoothing. The optimal GNN depth is rarely more than 3-4 layers — fundamentally different from the hundreds of layers in modern LLMs.

Over-smoothing vs Over-squashing: The Difference

7 minute read

Published:

Oversmoothing and oversquashing are both problems with deep GNNs, but they affect different nodes, have different causes, and require different fixes. Confusing them leads to applying the wrong solution.

Oversmoothing: When All Node Embeddings Become the Same

7 minute read

Published:

Stack enough GNN layers and all node embeddings converge to the same vector — making the model useless. Oversmoothing is not a training problem; it is a mathematical inevitability of iterated averaging.

diagonal

Diagonal, Orthogonal, and General Sheaf Maps

6 minute read

Published:

The restriction maps in a cellular sheaf can be constrained to different matrix classes: scalars, diagonal matrices, orthogonal matrices, or general matrices. Each class offers a different trade-off between expressivity and computational cost.

diffpool

DiffPool: Learning Hierarchical Graph Pooling

6 minute read

Published:

DiffPool learns to hierarchically cluster nodes into super-nodes across layers — like a convolutional pyramid for graphs. Unlike flat global pooling, it captures multi-scale graph structure by differentiably assigning nodes to clusters.

diffusion

The Sheaf Laplacian: Spectral Theory for Sheaves

7 minute read

Published:

The Sheaf Laplacian generalises the graph Laplacian by incorporating per-edge restriction maps. Its spectrum reveals how consistent data is under the sheaf. Sheaf diffusion with this Laplacian generalises GCN to handle heterophilic graphs.

diffusion-models

Z-SASLM: Zero-Shot Style Blending via Spherical Interpolation

10 minute read

Published:

Z-SASLM is a zero-shot, fine-tuning-free style blending pipeline that replaces linear latent interpolation with SLERP along the geodesic of the hypersphere, preserving latent manifold structure when blending multiple styles. Published at CVPR 2025 Workshop.

directed

distance-encoding

Shortest-Path Encodings for Graph Transformers

4 minute read

Published:

Shortest-path distances between nodes can be encoded as attention biases or node features — directly informing the model about graph proximity without requiring message passing.

distinction

Structural vs Positional Encodings in Graphs

5 minute read

Published:

Positional encodings say where a node is in the graph. Structural encodings say what role it plays. They are complementary — and confusing them leads to poor design choices.

drug-discovery

GNNs for Molecules: Drug Discovery and Material Design

5 minute read

Published:

Graph neural networks are transforming computational drug discovery. Molecules are natural graphs, and GNNs learn molecular representations that predict toxicity, solubility, binding affinity, and synthesis feasibility — tasks that previously required expensive laboratory experiments.

Molecular GNNs: Learning on Atoms and Bonds

6 minute read

Published:

Molecules are graphs. Molecular GNNs predict chemical properties from structure. The best models use 3D coordinates and bond angles — not just connectivity.

dynamic-graph

Static vs Dynamic Graphs: When Structure Changes Over Time

5 minute read

Published:

Most GNN research assumes a fixed graph. Real graphs evolve: edges appear and disappear, node features drift, new nodes arrive. Dynamic graph learning addresses how to model and predict on graphs whose structure changes over time.

edges

efficiency

SGC: Simple Graph Convolution

5 minute read

Published:

SGC removes all nonlinearities between GCN layers and collapses the entire propagation into a single pre-computed matrix power. Surprisingly, it matches GCN on most benchmarks — revealing that nonlinearities between layers may be unnecessary.

eigenvectors

Sign Ambiguity in Laplacian Eigenvectors

5 minute read

Published:

Laplacian eigenvectors are only defined up to sign: if u is an eigenvector, so is -u. This seemingly minor issue creates a fundamental problem for learning with LapPE. Here is the problem, its consequences, and how SignNet solves it.

Laplacian Eigenvectors as Graph Positional Encodings

6 minute read

Published:

The k smallest eigenvectors of the graph Laplacian form a natural positional embedding space — the graph’s own coordinate system. They capture global structure, symmetry, and community membership.

Graph Fourier Transform: The Spectral View of Graphs

6 minute read

Published:

The Graph Fourier Transform decomposes a signal on a graph into frequency components using the Laplacian’s eigenvectors. This spectral view is the mathematical foundation behind spectral GNNs like ChebNet and GCN.

encoder

encoder-decoder

end-to-end

Graph Classification: From Node Embeddings to Graph Embeddings

6 minute read

Published:

Graph classification is the task of predicting a label for an entire graph. It requires composing message passing (node embeddings), readout (graph embedding), and a classifier — and all three choices interact to determine model expressiveness.

entity-alignment

GNNs for Knowledge Graphs: Reasoning and Completion

6 minute read

Published:

Knowledge graphs encode human knowledge as typed entity-relation triples. GNNs enable structure-aware entity representation, multi-hop reasoning, knowledge base completion, and entity alignment — tasks that shallow embedding methods cannot fully solve.

entity-classification

R-GCN: Relational Graph Convolutional Networks

5 minute read

Published:

R-GCN extends GCN to multi-relational graphs by learning a separate weight matrix for each relation type. It handles knowledge graphs with typed edges and powers both entity classification and link prediction tasks.

equivariance

Equivariance: What It Means and Why It Matters

6 minute read

Published:

Equivariance formalises the idea that a function should ‘commute with symmetry transformations.’ A rotation-equivariant model applied to rotated input gives the rotated output — no extra training needed. This is the foundation for geometric deep learning.

Sign Ambiguity in Laplacian Eigenvectors

5 minute read

Published:

Laplacian eigenvectors are only defined up to sign: if u is an eigenvector, so is -u. This seemingly minor issue creates a fundamental problem for learning with LapPE. Here is the problem, its consequences, and how SignNet solves it.

equivariant

Equivariant Sheaf Neural Networks

6 minute read

Published:

Sheaves with orthogonal restriction maps define a connection on the graph — a parallel transport structure over edges. This connects sheaf GNNs to differential geometry and enables equivariant processing of data with local coordinate frames at each node.

SE(3)-Transformers: Attention with 3D Symmetry

6 minute read

Published:

SE(3)-Transformers extend self-attention to 3D point clouds and molecular graphs while maintaining SE(3) equivariance. Attention weights are learned between node pairs; values are equivariant features built from spherical harmonics.

EGNN: E(n)-Equivariant Graph Neural Networks

6 minute read

Published:

EGNN achieves E(n)-equivariance with a simple update rule: positions updated via weighted sums of relative position vectors, features updated via invariant distances. No spherical harmonics needed.

expressiveness

expressivity

Diagonal, Orthogonal, and General Sheaf Maps

6 minute read

Published:

The restriction maps in a cellular sheaf can be constrained to different matrix classes: scalars, diagonal matrices, orthogonal matrices, or general matrices. Each class offers a different trade-off between expressivity and computational cost.

The Weisfeiler-Lehman Test: How Powerful Are GNNs?

7 minute read

Published:

The 1-WL graph isomorphism test provides the exact upper bound on message-passing GNN expressivity. GIN achieves this bound. Any pair of graphs that 1-WL cannot distinguish cannot be distinguished by any MPNN.

fake-news

GNNs for Social Networks: Influence, Communities, and Misinformation

6 minute read

Published:

Social networks are large sparse graphs with rich node features (user profiles) and heterogeneous edges (friendship, follow, retweet). GNNs predict user behaviour, detect communities, identify influential spreaders, and flag misinformation — tasks with significant real-world impact.

features

forecasting

GNNs for Traffic Forecasting

6 minute read

Published:

Traffic prediction is a canonical spatio-temporal graph task: sensors on roads form a fixed graph, and speed/volume measurements evolve over time. GNNs capture spatial correlations between sensors; RNNs or convolutions capture temporal patterns. Together they achieve state-of-the-art traffic forecasting.

Spatio-Temporal GNNs: Learning on Graphs Through Time

6 minute read

Published:

Spatio-temporal GNNs combine spatial message passing with temporal sequence modelling. They are the dominant approach for traffic forecasting, weather prediction, and any task where measurements at sensor nodes evolve over time on a fixed graph.

framework

MPNN: The General Message Passing Neural Network Framework

6 minute read

Published:

The MPNN framework (Gilmer et al., 2017) unifies GCN, GAT, GIN, GraphSAGE, and almost all spatial GNNs under one abstraction: message functions, aggregation, and update. Understanding MPNN means understanding the whole GNN family.

Message Passing: The Universal GNN Framework

4 minute read

Published:

Every GNN — GCN, GAT, GraphSAGE, GIN — is a special case of message passing. Learn the three-step loop that defines them all: compute messages, aggregate, update.

frequency-analysis

p-RoPE: What Makes Rotary Positional Encodings Useful?

6 minute read

Published:

This paper does two things at once: it explains what RoPE is really doing inside a trained LLM, and it proposes p-RoPE, a partial rotary variant that drops the lowest frequencies to preserve stronger semantic channels.

fundamentals

The Graph Adjacency Matrix: A Graph in Matrix Form

4 minute read

Published:

Before understanding GNNs, you need to understand how graphs are represented mathematically. The adjacency matrix is the foundation — a simple grid that tells you which nodes are connected.

gat

GAT: Graph Attention Networks

4 minute read

Published:

GCN assigns the same (degree-based) weight to every neighbour. GAT learns which neighbours actually matter — using attention coefficients on edges. More expressive, more interpretable.

gauge-symmetry

Equivariant Sheaf Neural Networks

6 minute read

Published:

Sheaves with orthogonal restriction maps define a connection on the graph — a parallel transport structure over edges. This connects sheaf GNNs to differential geometry and enables equivariant processing of data with local coordinate frames at each node.

gcn

GCN: Graph Convolutional Networks

4 minute read

Published:

GCN (Kipf & Welling, 2016) is the ‘hello world’ of GNNs. It simplifies spectral graph convolution into a single elegant layer: normalised neighbourhood averaging with a learned linear transformation.

gelu

general

Diagonal, Orthogonal, and General Sheaf Maps

6 minute read

Published:

The restriction maps in a cellular sheaf can be constrained to different matrix classes: scalars, diagonal matrices, orthogonal matrices, or general matrices. Each class offers a different trade-off between expressivity and computational cost.

generative-ai

Z-SASLM: Zero-Shot Style Blending via Spherical Interpolation

10 minute read

Published:

Z-SASLM is a zero-shot, fine-tuning-free style blending pipeline that replaces linear latent interpolation with SLERP along the geodesic of the hypersphere, preserving latent manifold structure when blending multiple styles. Published at CVPR 2025 Workshop.

geometric

Equivariant Sheaf Neural Networks

6 minute read

Published:

Sheaves with orthogonal restriction maps define a connection on the graph — a parallel transport structure over edges. This connects sheaf GNNs to differential geometry and enables equivariant processing of data with local coordinate frames at each node.

geometric-deep-learning

Tensor Field Networks and Geometric Deep Learning

6 minute read

Published:

Tensor Field Networks (TFN) were the first architecture to achieve SE(3) equivariance using spherical harmonics and Clebsch-Gordan tensor products. They laid the theoretical foundation for NequIP and MACE — the current state-of-the-art in equivariant molecular force fields.

geometry

Why Geometry Matters in Graph Neural Networks

5 minute read

Published:

Many real-world graphs are embedded in 3D space — molecules, proteins, point clouds, crystal structures. Standard GNNs ignore coordinates and only use connectivity. Geometric GNNs incorporate spatial positions and must respect physical symmetries.

gin

global-attention

Graph Transformers: Bringing Attention to Graphs

5 minute read

Published:

Graph Transformers replace or augment local message passing with full pairwise attention — every node attends to every other node. This solves long-range dependencies and over-squashing at the cost of O(N²) computation.

global-pooling

Global Pooling in GNNs: Mean, Sum, and Max

5 minute read

Published:

To predict a property of an entire graph, node embeddings must be aggregated into a single vector. The choice of global pooling — mean, sum, or max — is not arbitrary: each has distinct expressive power and fits different tasks.

global-sections

What Is a Sheaf? From Topology to Graph Learning

7 minute read

Published:

A sheaf is a mathematical object from algebraic topology that assigns vector spaces to cells and linear maps between them. On graphs, sheaves assign feature spaces to nodes and edges, with restriction maps encoding how node features relate across edges.

glu

gradient-flow

Residual Connections: Why Transformers Can Be Deep

7 minute read

Published:

Without residual connections, training a 96-layer Transformer would be practically impossible. The skip connection is a simple addition that solves the vanishing gradient problem and enables arbitrary depth.

gradients

graph

GAT: Graph Attention Networks

4 minute read

Published:

GCN assigns the same (degree-based) weight to every neighbour. GAT learns which neighbours actually matter — using attention coefficients on edges. More expressive, more interpretable.

The Graph Laplacian: Spectral Graph Theory Explained Simply

6 minute read

Published:

The Graph Laplacian is L = D - A. Its eigenvectors reveal the graph’s community structure; its eigenvalues tell you how well-connected the graph is. It’s also the mathematical bridge from spectral theory to GNNs like GCN.

The Graph Adjacency Matrix: A Graph in Matrix Form

4 minute read

Published:

Before understanding GNNs, you need to understand how graphs are represented mathematically. The adjacency matrix is the foundation — a simple grid that tells you which nodes are connected.

Graph Neural Networks: Learning on Graphs

5 minute read

Published:

Graphs are everywhere — molecules, social networks, road maps, knowledge bases. Graph Neural Networks learn from this relational structure by propagating information between connected nodes. Here’s the complete picture.

graph-classification

SheafPool: Basis-Invariant Graph Readout for Sheaf Neural Networks

9 minute read

Published:

SheafPool solves a key missing piece in sheaf GNNs: graph-level pooling. Instead of averaging stalk vectors in arbitrary local bases, it aligns them into a shared canonical frame and builds a readout that is invariant to local basis changes.

Graph Classification: From Node Embeddings to Graph Embeddings

6 minute read

Published:

Graph classification is the task of predicting a label for an entire graph. It requires composing message passing (node embeddings), readout (graph embedding), and a classifier — and all three choices interact to determine model expressiveness.

Set2Set and Attention Readout: Order-Invariant Graph Summaries

6 minute read

Published:

Mean and sum readout treat all nodes equally. Attention readout learns which nodes matter most for a given task. Set2Set goes further — it uses an LSTM to iteratively query the node set, producing richer graph representations than single-pass pooling.

TopKPool and SAGPool: Sparse Graph Pooling

6 minute read

Published:

Instead of soft cluster assignment (DiffPool), TopKPool and SAGPool select a subset of the most important nodes — producing a smaller but sparser graph at each level. Hard selection is scalable but requires careful score learning.

DiffPool: Learning Hierarchical Graph Pooling

6 minute read

Published:

DiffPool learns to hierarchically cluster nodes into super-nodes across layers — like a convolutional pyramid for graphs. Unlike flat global pooling, it captures multi-scale graph structure by differentiably assigning nodes to clusters.

Global Pooling in GNNs: Mean, Sum, and Max

5 minute read

Published:

To predict a property of an entire graph, node embeddings must be aggregated into a single vector. The choice of global pooling — mean, sum, or max — is not arbitrary: each has distinct expressive power and fits different tasks.

Graph Tasks: Node, Edge, and Graph-Level Prediction

5 minute read

Published:

GNNs can predict at three levels: properties of individual nodes, existence or type of edges, or properties of entire graphs. Each level requires a different output head and training setup.

graph-convolution

SGC: Simple Graph Convolution

5 minute read

Published:

SGC removes all nonlinearities between GCN layers and collapses the entire propagation into a single pre-computed matrix power. Surprisingly, it matches GCN on most benchmarks — revealing that nonlinearities between layers may be unnecessary.

graph-dynamics

Graph Neural ODEs: Continuous-Time Graph Dynamics

7 minute read

Published:

Neural ODEs replace discrete layer-by-layer computation with continuous dynamics governed by a differential equation. Graph Neural ODEs apply this to graph data — treating node embeddings as a dynamical system evolving in continuous time.

graph-isomorphism

The Weisfeiler-Lehman Test: How Powerful Are GNNs?

7 minute read

Published:

The 1-WL graph isomorphism test provides the exact upper bound on message-passing GNN expressivity. GIN achieves this bound. Any pair of graphs that 1-WL cannot distinguish cannot be distinguished by any MPNN.

graph-neural-networks

PolyNSD: Polynomial Neural Sheaf Diffusion

11 minute read

Published:

PolyNSD replaces the NSD propagation operator with a degree-K Chebyshev polynomial in the normalised sheaf Laplacian, achieving SOTA on homo- and heterophilic benchmarks with only diagonal restriction maps and dramatically lower memory usage.

HetSheaf: Heterogeneous Graphs Meet Cellular Sheaves

7 minute read

Published:

HetSheaf encodes graph heterogeneity directly in the sheaf data structure — type-aware stalks and restriction maps conditioned on node and edge types — instead of specialised architectural components, achieving +2pp on HGB with 10× fewer parameters.

graph-regression

Graph Tasks: Node, Edge, and Graph-Level Prediction

5 minute read

Published:

GNNs can predict at three levels: properties of individual nodes, existence or type of edges, or properties of entire graphs. Each level requires a different output head and training setup.

graph-rewiring

graph-signal

Graph Fourier Transform: The Spectral View of Graphs

6 minute read

Published:

The Graph Fourier Transform decomposes a signal on a graph into frequency components using the Laplacian’s eigenvectors. This spectral view is the mathematical foundation behind spectral GNNs like ChebNet and GCN.

graph-theory

graph-transformer

Laplacian Eigenvectors as Graph Positional Encodings

6 minute read

Published:

The k smallest eigenvectors of the graph Laplacian form a natural positional embedding space — the graph’s own coordinate system. They capture global structure, symmetry, and community membership.

Graphormer: Transformers with Structural Biases for Graphs

6 minute read

Published:

Graphormer encodes graph structure directly into Transformer attention via three biases: node centrality, spatial encoding (shortest paths), and edge encoding. It won the OGB-LSC 2021 competition on molecular property prediction.

Graph Transformers: Bringing Attention to Graphs

5 minute read

Published:

Graph Transformers replace or augment local message passing with full pairwise attention — every node attends to every other node. This solves long-range dependencies and over-squashing at the cost of O(N²) computation.

graph-types

graphsage

GraphSAGE: Inductive Learning on Large Graphs

4 minute read

Published:

GCN and GAT learn embeddings for fixed graphs — add a new node and you’re stuck. GraphSAGE (Hamilton et al., 2017) learns an aggregation function instead, so it can generate embeddings for entirely new nodes at inference time.

group-theory

Equivariance: What It Means and Why It Matters

6 minute read

Published:

Equivariance formalises the idea that a function should ‘commute with symmetry transformations.’ A rotation-equivariant model applied to rotated input gives the rotated output — no extra training needed. This is the foundation for geometric deep learning.

heterogeneous

HAN: Heterogeneous Graph Attention Networks

5 minute read

Published:

HAN combines meta-path decomposition with two levels of attention: node-level attention weights neighbours along a meta-path, and semantic-level attention weights different meta-paths. This lets the model learn which relationships matter most for a given task.

heterogeneous-graph

Heterogeneous Graphs: When Nodes and Edges Have Types

5 minute read

Published:

Most real-world graphs are heterogeneous — they contain multiple node types (users, items, tags) and edge types (clicks, rates, authors). Standard GNNs treat all nodes and edges identically, making them blind to this type structure.

heterogeneous-graphs

SheafPool: Basis-Invariant Graph Readout for Sheaf Neural Networks

9 minute read

Published:

SheafPool solves a key missing piece in sheaf GNNs: graph-level pooling. Instead of averaging stalk vectors in arbitrary local bases, it aligns them into a shared canonical frame and builds a readout that is invariant to local basis changes.

HetSheaf: Heterogeneous Graphs Meet Cellular Sheaves

7 minute read

Published:

HetSheaf encodes graph heterogeneity directly in the sheaf data structure — type-aware stalks and restriction maps conditioned on node and edge types — instead of specialised architectural components, achieving +2pp on HGB with 10× fewer parameters.

heterophily

Sheaf Neural Networks and Heterophily

6 minute read

Published:

Sheaf GNNs are the principled solution to heterophily: by learning per-edge maps that transform features before comparison, they can perform diffusion that converges within classes and diverges across classes — the exact opposite of standard GCN’s collapse.

Neural Sheaf Diffusion: Learning Sheaves End-to-End

7 minute read

Published:

Neural Sheaf Diffusion (Bodnar et al., 2022) learns the sheaf restriction maps from data using a neural network, then performs diffusion with the learned Sheaf Laplacian. This gives a principled, topology-grounded GNN that handles heterophily without heuristic fixes.

Why Message Passing Is Not Enough: The Case for Sheaves

6 minute read

Published:

Standard message passing aggregates neighbour features and averages. On heterophilic graphs (where neighbours often disagree), this is harmful. Cellular sheaves provide a mathematically principled framework to model per-edge relationships between node features — going beyond mere averaging.

hierarchical-pooling

DiffPool: Learning Hierarchical Graph Pooling

6 minute read

Published:

DiffPool learns to hierarchically cluster nodes into super-nodes across layers — like a convolutional pyramid for graphs. Unlike flat global pooling, it captures multi-scale graph structure by differentiably assigning nodes to clusters.

historical-reasoning

Temporal Knowledge Graphs: Facts That Change Over Time

5 minute read

Published:

Most knowledge graphs treat facts as timeless — but facts change. Barack Obama was president from 2009 to 2017. Temporal Knowledge Graphs add timestamps to triples, requiring models to reason about what was true when.

homophily

inductive

GraphSAGE: Inductive Learning on Large Graphs

4 minute read

Published:

GCN and GAT learn embeddings for fixed graphs — add a new node and you’re stuck. GraphSAGE (Hamilton et al., 2017) learns an aggregation function instead, so it can generate embeddings for entirely new nodes at inference time.

influence

GNNs for Social Networks: Influence, Communities, and Misinformation

6 minute read

Published:

Social networks are large sparse graphs with rich node features (user profiles) and heterogeneous edges (friendship, follow, retweet). GNNs predict user behaviour, detect communities, identify influential spreaders, and flag misinformation — tasks with significant real-world impact.

interpolation

intuition

Query, Key, Value: The Intuition Behind QKV

6 minute read

Published:

Q, K, and V are not arbitrary labels. They map precisely onto search queries, database labels, and retrieved content — a framework you already understand.

invariance

Equivariance: What It Means and Why It Matters

6 minute read

Published:

Equivariance formalises the idea that a function should ‘commute with symmetry transformations.’ A rotation-equivariant model applied to rotated input gives the rotated output — no extra training needed. This is the foundation for geometric deep learning.

irreps

SE(3)-Transformers: Attention with 3D Symmetry

6 minute read

Published:

SE(3)-Transformers extend self-attention to 3D point clouds and molecular graphs while maintaining SE(3) equivariance. Attention weights are learned between node pairs; values are equivariant features built from spherical harmonics.

key-value memory

knowledge-graph

GNNs for Knowledge Graphs: Reasoning and Completion

6 minute read

Published:

Knowledge graphs encode human knowledge as typed entity-relation triples. GNNs enable structure-aware entity representation, multi-hop reasoning, knowledge base completion, and entity alignment — tasks that shallow embedding methods cannot fully solve.

Knowledge Graph Embeddings vs GNNs

6 minute read

Published:

Knowledge graph completion can be solved with shallow KG embeddings (TransE, DistMult, ComplEx) or with structural GNNs (R-GCN, CompGCN). Each approach has different inductive biases and failure modes. Understanding when to use each is the central design decision for KG tasks.

R-GCN: Relational Graph Convolutional Networks

5 minute read

Published:

R-GCN extends GCN to multi-relational graphs by learning a separate weight matrix for each relation type. It handles knowledge graphs with typed edges and powers both entity classification and link prediction tasks.

Heterogeneous Graphs: When Nodes and Edges Have Types

5 minute read

Published:

Most real-world graphs are heterogeneous — they contain multiple node types (users, items, tags) and edge types (clicks, rates, authors). Standard GNNs treat all nodes and edges identically, making them blind to this type structure.

labels

landing-probability

Random Walk Positional Encodings

5 minute read

Published:

Random walk positional encodings encode each node’s structural context by computing the probability of returning to it from itself in k steps — a computationally efficient alternative to Laplacian eigenvectors with no sign ambiguity.

laplacian

The Graph Laplacian: Spectral Graph Theory Explained Simply

6 minute read

Published:

The Graph Laplacian is L = D - A. Its eigenvectors reveal the graph’s community structure; its eigenvalues tell you how well-connected the graph is. It’s also the mathematical bridge from spectral theory to GNNs like GCN.

latent-ODE

Graph Neural ODEs: Continuous-Time Graph Dynamics

7 minute read

Published:

Neural ODEs replace discrete layer-by-layer computation with continuous dynamics governed by a differential equation. Graph Neural ODEs apply this to graph data — treating node embeddings as a dynamical system evolving in continuous time.

latent-space

Z-SASLM: Zero-Shot Style Blending via Spherical Interpolation

10 minute read

Published:

Z-SASLM is a zero-shot, fine-tuning-free style blending pipeline that replaces linear latent interpolation with SLERP along the geodesic of the hypersphere, preserving latent manifold structure when blending multiple styles. Published at CVPR 2025 Workshop.

layer-norm

The Transformer Block: Putting It All Together

7 minute read

Published:

A single Transformer block combines attention, residuals, layer norm, and an FFN into one reusable unit. Understanding this block is understanding the Transformer.

Layer Normalization in Transformers

7 minute read

Published:

Layer norm is not optional plumbing. It determines training stability, gradient flow, and whether deep Transformers converge at all. Pre-LN vs Post-LN is not a detail — it changes training dynamics fundamentally.

learned

Learned Positional Encodings: Data-Driven Position

3 minute read

Published:

Instead of a fixed formula, why not just train position embeddings from scratch — like word embeddings? That’s exactly what BERT and GPT-1 do. Here’s how and when it works.

learned-sheaf

Neural Sheaf Diffusion: Learning Sheaves End-to-End

7 minute read

Published:

Neural Sheaf Diffusion (Bodnar et al., 2022) learns the sheaf restriction maps from data using a neural network, then performs diffusion with the learned Sheaf Laplacian. This gives a principled, topology-grounded GNN that handles heterophily without heuristic fixes.

limitations

Why Message Passing Is Not Enough: The Case for Sheaves

6 minute read

Published:

Standard message passing aggregates neighbour features and averages. On heterophilic graphs (where neighbours often disagree), this is harmful. Cellular sheaves provide a mathematically principled framework to model per-edge relationships between node features — going beyond mere averaging.

linear

SGC: Simple Graph Convolution

5 minute read

Published:

SGC removes all nonlinearities between GCN layers and collapses the entire propagation into a single pre-computed matrix power. Surprisingly, it matches GCN on most benchmarks — revealing that nonlinearities between layers may be unnecessary.

GNNs for Social Networks: Influence, Communities, and Misinformation

6 minute read

Published:

Social networks are large sparse graphs with rich node features (user profiles) and heterogeneous edges (friendship, follow, retweet). GNNs predict user behaviour, detect communities, identify influential spreaders, and flag misinformation — tasks with significant real-world impact.

Temporal Graph Networks: Learning from Events

6 minute read

Published:

TGN (Temporal Graph Network) is the leading framework for continuous-time dynamic graphs. It maintains a per-node memory that is updated upon each interaction, enabling efficient inductive link prediction on event streams.

Temporal Knowledge Graphs: Facts That Change Over Time

5 minute read

Published:

Most knowledge graphs treat facts as timeless — but facts change. Barack Obama was president from 2009 to 2017. Temporal Knowledge Graphs add timestamps to triples, requiring models to reason about what was true when.

Knowledge Graph Embeddings vs GNNs

6 minute read

Published:

Knowledge graph completion can be solved with shallow KG embeddings (TransE, DistMult, ComplEx) or with structural GNNs (R-GCN, CompGCN). Each approach has different inductive biases and failure modes. Understanding when to use each is the central design decision for KG tasks.

R-GCN: Relational Graph Convolutional Networks

5 minute read

Published:

R-GCN extends GCN to multi-relational graphs by learning a separate weight matrix for each relation type. It handles knowledge graphs with typed edges and powers both entity classification and link prediction tasks.

Graph Tasks: Node, Edge, and Graph-Level Prediction

5 minute read

Published:

GNNs can predict at three levels: properties of individual nodes, existence or type of edges, or properties of entire graphs. Each level requires a different output head and training setup.

long-context

FoPE: Fourier Position Embedding for Length Generalization

6 minute read

Published:

FoPE rethinks long-context positional encoding from a frequency-domain perspective. Instead of only stretching RoPE heuristically, it explicitly improves attention’s periodic extension so Transformers generalize more gracefully to longer sequences.

Position Interpolation: Extending RoPE with Minimal Fine-Tuning

5 minute read

Published:

Position Interpolation rescales positions before applying RoPE so a model trained on short contexts can be adapted to longer ones with surprisingly little fine-tuning. It became the reference baseline for long-context RoPE extension.

XPos: Length-Extrapolatable Rotary Embeddings

5 minute read

Published:

XPos modifies RoPE with a multiplicative decay that keeps relative rotations while stabilising magnitude at long distance. It is one of the cleanest attempts to make rotary embeddings extrapolate better.

p-RoPE: What Makes Rotary Positional Encodings Useful?

6 minute read

Published:

This paper does two things at once: it explains what RoPE is really doing inside a trained LLM, and it proposes p-RoPE, a partial rotary variant that drops the lowest frequencies to preserve stronger semantic channels.

GAPE: Remember to Forget — Gated Adaptive Positional Encoding

10 minute read

Published:

GAPE is a drop-in RoPE augmentation that adds content-aware attention logit biases: a query-gate suppresses irrelevant distant context while a key-gate preserves salient distant tokens. Provably sharper attention and improved long-context robustness — no architecture changes needed.

long-range

manipulation

GNNs for Robotics: Planning, Manipulation, and Multi-Agent Systems

6 minute read

Published:

Robots interact with structured environments: objects have relationships, joints form kinematic chains, agents communicate through interaction graphs. GNNs encode these relational structures — enabling generalisation across object configurations, robot morphologies, and multi-agent scenarios.

masking

mechanism

Self-Attention: Teaching Machines to Focus

6 minute read

Published:

Self-attention is the core of every Transformer. Learn how Query, Key, and Value vectors let every token directly attend to every other — and why that matters.

memory

Temporal Graph Networks: Learning from Events

6 minute read

Published:

TGN (Temporal Graph Network) is the leading framework for continuous-time dynamic graphs. It maintains a per-node memory that is updated upon each interaction, enabling efficient inductive link prediction on event streams.

message-passing

Why Message Passing Is Not Enough: The Case for Sheaves

6 minute read

Published:

Standard message passing aggregates neighbour features and averages. On heterophilic graphs (where neighbours often disagree), this is harmful. Cellular sheaves provide a mathematically principled framework to model per-edge relationships between node features — going beyond mere averaging.

MPNN: The General Message Passing Neural Network Framework

6 minute read

Published:

The MPNN framework (Gilmer et al., 2017) unifies GCN, GAT, GIN, GraphSAGE, and almost all spatial GNNs under one abstraction: message functions, aggregation, and update. Understanding MPNN means understanding the whole GNN family.

Message Passing: The Universal GNN Framework

4 minute read

Published:

Every GNN — GCN, GAT, GraphSAGE, GIN — is a special case of message passing. Learn the three-step loop that defines them all: compute messages, aggregate, update.

meta-path

HAN: Heterogeneous Graph Attention Networks

5 minute read

Published:

HAN combines meta-path decomposition with two levels of attention: node-level attention weights neighbours along a meta-path, and semantic-level attention weights different meta-paths. This lets the model learn which relationships matter most for a given task.

Heterogeneous Graphs: When Nodes and Edges Have Types

5 minute read

Published:

Most real-world graphs are heterogeneous — they contain multiple node types (users, items, tags) and edge types (clicks, rates, authors). Standard GNNs treat all nodes and edges identically, making them blind to this type structure.

mish

molecular

Molecular GNNs: Learning on Atoms and Bonds

6 minute read

Published:

Molecules are graphs. Molecular GNNs predict chemical properties from structure. The best models use 3D coordinates and bond angles — not just connectivity.

EGNN: E(n)-Equivariant Graph Neural Networks

6 minute read

Published:

EGNN achieves E(n)-equivariance with a simple update rule: positions updated via weighted sums of relative position vectors, features updated via invariant distances. No spherical harmonics needed.

Why Geometry Matters in Graph Neural Networks

5 minute read

Published:

Many real-world graphs are embedded in 3D space — molecules, proteins, point clouds, crystal structures. Standard GNNs ignore coordinates and only use connectivity. Geometric GNNs incorporate spatial positions and must respect physical symmetries.

Graphormer: Transformers with Structural Biases for Graphs

6 minute read

Published:

Graphormer encodes graph structure directly into Transformer attention via three biases: node centrality, spatial encoding (shortest paths), and edge encoding. It won the OGB-LSC 2021 competition on molecular property prediction.

molecular-property

GNNs for Molecules: Drug Discovery and Material Design

5 minute read

Published:

Graph neural networks are transforming computational drug discovery. Molecules are natural graphs, and GNNs learn molecular representations that predict toxicity, solubility, binding affinity, and synthesis feasibility — tasks that previously required expensive laboratory experiments.

molecules

GNNs for Molecules: Drug Discovery and Material Design

5 minute read

Published:

Graph neural networks are transforming computational drug discovery. Molecules are natural graphs, and GNNs learn molecular representations that predict toxicity, solubility, binding affinity, and synthesis feasibility — tasks that previously required expensive laboratory experiments.

mpnn

Message Passing: The Universal GNN Framework

4 minute read

Published:

Every GNN — GCN, GAT, GraphSAGE, GIN — is a special case of message passing. Learn the three-step loop that defines them all: compute messages, aggregate, update.

multi-agent

GNNs for Robotics: Planning, Manipulation, and Multi-Agent Systems

6 minute read

Published:

Robots interact with structured environments: objects have relationships, joints form kinematic chains, agents communicate through interaction graphs. GNNs encode these relational structures — enabling generalisation across object configurations, robot morphologies, and multi-agent scenarios.

multi-head

Multi-Head Attention: Many Eyes on the Data

4 minute read

Published:

One attention head sees one relationship. Multiple heads running in parallel let the model capture syntax, semantics, and coreference simultaneously — here’s how.

multigraph

multimodal

neural-ODE

Graph Neural ODEs: Continuous-Time Graph Dynamics

7 minute read

Published:

Neural ODEs replace discrete layer-by-layer computation with continuous dynamics governed by a differential equation. Graph Neural ODEs apply this to graph data — treating node embeddings as a dynamical system evolving in continuous time.

neural-network

Graph Neural Networks: Learning on Graphs

5 minute read

Published:

Graphs are everywhere — molecules, social networks, road maps, knowledge bases. Graph Neural Networks learn from this relational structure by propagating information between connected nodes. Here’s the complete picture.

neural-networks

Activation Functions in Neural Networks: Why Non-Linearity Matters

12 minute read

Published:

Activation functions are the reason neural networks can model curved decision boundaries instead of collapsing into one giant linear map. This chapter builds the intuition first, then walks through the classical functions that shaped deep learning.

neural-sheaf-diffusion

Neural Sheaf Diffusion: Learning Sheaves End-to-End

7 minute read

Published:

Neural Sheaf Diffusion (Bodnar et al., 2022) learns the sheaf restriction maps from data using a neural network, then performs diffusion with the learned Sheaf Laplacian. This gives a principled, topology-grounded GNN that handles heterophily without heuristic fixes.

nlp

Transformers: The Architecture That Changed AI

8 minute read

Published:

A self-contained guide to the Transformer — the engine behind GPT, BERT, and modern AI. Learn how attention replaces recurrence and why every major AI system uses it.

node-classification

Sheaf Neural Networks and Heterophily

6 minute read

Published:

Sheaf GNNs are the principled solution to heterophily: by learning per-edge maps that transform features before comparison, they can perform diffusion that converges within classes and diverges across classes — the exact opposite of standard GCN’s collapse.

HAN: Heterogeneous Graph Attention Networks

5 minute read

Published:

HAN combines meta-path decomposition with two levels of attention: node-level attention weights neighbours along a meta-path, and semantic-level attention weights different meta-paths. This lets the model learn which relationships matter most for a given task.

Graph Tasks: Node, Edge, and Graph-Level Prediction

5 minute read

Published:

GNNs can predict at three levels: properties of individual nodes, existence or type of edges, or properties of entire graphs. Each level requires a different output head and training setup.

node-selection

TopKPool and SAGPool: Sparse Graph Pooling

6 minute read

Published:

Instead of soft cluster assignment (DiffPool), TopKPool and SAGPool select a subset of the most important nodes — producing a smaller but sparser graph at each level. Hard selection is scalable but requires careful score learning.

nodes

object-detection

GNNs for Computer Vision: Scene Graphs and Beyond

6 minute read

Published:

Computer vision tasks increasingly require relational reasoning — understanding how objects relate to each other, not just what they are. Scene graph generation, visual question answering, action recognition from skeletons, and 3D point cloud processing all benefit from GNN-based relational modelling.

orthogonal

Diagonal, Orthogonal, and General Sheaf Maps

6 minute read

Published:

The restriction maps in a cellular sheaf can be constrained to different matrix classes: scalars, diagonal matrices, orthogonal matrices, or general matrices. Each class offers a different trade-off between expressivity and computational cost.

over-smoothing

APPNP: Personalized PageRank Meets Graph Neural Networks

5 minute read

Published:

APPNP decouples feature transformation from propagation. A neural network transforms features first; then Personalized PageRank propagates the result. This enables deep propagation without over-smoothing.

oversmoothing

Sheaf Neural Networks and Heterophily

6 minute read

Published:

Sheaf GNNs are the principled solution to heterophily: by learning per-edge maps that transform features before comparison, they can perform diffusion that converges within classes and diverges across classes — the exact opposite of standard GCN’s collapse.

Depth in GNNs: Why Deeper Is Not Always Better

6 minute read

Published:

In Transformers, depth = expressiveness. In GNNs, depth = both expressiveness AND over-smoothing. The optimal GNN depth is rarely more than 3-4 layers — fundamentally different from the hundreds of layers in modern LLMs.

Over-smoothing vs Over-squashing: The Difference

7 minute read

Published:

Oversmoothing and oversquashing are both problems with deep GNNs, but they affect different nodes, have different causes, and require different fixes. Confusing them leads to applying the wrong solution.

Oversmoothing: When All Node Embeddings Become the Same

7 minute read

Published:

Stack enough GNN layers and all node embeddings converge to the same vector — making the model useless. Oversmoothing is not a training problem; it is a mathematical inevitability of iterated averaging.

oversquashing

Over-smoothing vs Over-squashing: The Difference

7 minute read

Published:

Oversmoothing and oversquashing are both problems with deep GNNs, but they affect different nodes, have different causes, and require different fixes. Confusing them leads to applying the wrong solution.

overview

Positional Encodings: Why Position Matters

4 minute read

Published:

Transformers see all tokens at once — which means without help they’d treat ‘cat ate mouse’ and ‘mouse ate cat’ the same. Positional encodings fix this. Here’s the full landscape.

Graph Neural Networks: Learning on Graphs

5 minute read

Published:

Graphs are everywhere — molecules, social networks, road maps, knowledge bases. Graph Neural Networks learn from this relational structure by propagating information between connected nodes. Here’s the complete picture.

p-RoPE

p-RoPE: What Makes Rotary Positional Encodings Useful?

6 minute read

Published:

This paper does two things at once: it explains what RoPE is really doing inside a trained LLM, and it proposes p-RoPE, a partial rotary variant that drops the lowest frequencies to preserve stronger semantic channels.

padding

planning

GNNs for Robotics: Planning, Manipulation, and Multi-Agent Systems

6 minute read

Published:

Robots interact with structured environments: objects have relationships, joints form kinematic chains, agents communicate through interaction graphs. GNNs encode these relational structures — enabling generalisation across object configurations, robot morphologies, and multi-agent scenarios.

point-cloud

GNNs for Computer Vision: Scene Graphs and Beyond

6 minute read

Published:

Computer vision tasks increasingly require relational reasoning — understanding how objects relate to each other, not just what they are. Scene graph generation, visual question answering, action recognition from skeletons, and 3D point cloud processing all benefit from GNN-based relational modelling.

polynomial-filter

Polynomial Neural Sheaf Diffusion

6 minute read

Published:

Polynomial Neural Sheaf Diffusion (PNSD) replaces the fixed diffusion operator (I - Δ_F) with a learnable polynomial of the Sheaf Laplacian. This gives the model spectral flexibility — it can learn to amplify or suppress different frequency components of the sheaf signal.

polynomial-filters

PolyNSD: Polynomial Neural Sheaf Diffusion

11 minute read

Published:

PolyNSD replaces the NSD propagation operator with a degree-K Chebyshev polynomial in the normalised sheaf Laplacian, achieving SOTA on homo- and heterophilic benchmarks with only diagonal restriction maps and dramatically lower memory usage.

polynomial-sheaf-diffusion

Polynomial Neural Sheaf Diffusion

6 minute read

Published:

Polynomial Neural Sheaf Diffusion (PNSD) replaces the fixed diffusion operator (I - Δ_F) with a learnable polynomial of the Sheaf Laplacian. This gives the model spectral flexibility — it can learn to amplify or suppress different frequency components of the sheaf signal.

pooling

SheafPool: Basis-Invariant Graph Readout for Sheaf Neural Networks

9 minute read

Published:

SheafPool solves a key missing piece in sheaf GNNs: graph-level pooling. Instead of averaging stalk vectors in arbitrary local bases, it aligns them into a shared canonical frame and builds a readout that is invariant to local basis changes.

Global Pooling in GNNs: Mean, Sum, and Max

5 minute read

Published:

To predict a property of an entire graph, node embeddings must be aggregated into a single vector. The choice of global pooling — mean, sum, or max — is not arbitrary: each has distinct expressive power and fits different tasks.

position

Structural vs Positional Encodings in Graphs

5 minute read

Published:

Positional encodings say where a node is in the graph. Structural encodings say what role it plays. They are complementary — and confusing them leads to poor design choices.

position-interpolation

Position Interpolation: Extending RoPE with Minimal Fine-Tuning

5 minute read

Published:

Position Interpolation rescales positions before applying RoPE so a model trained on short contexts can be adapted to longer ones with surprisingly little fine-tuning. It became the reference baseline for long-context RoPE extension.

positional-encoding

FoPE: Fourier Position Embedding for Length Generalization

6 minute read

Published:

FoPE rethinks long-context positional encoding from a frequency-domain perspective. Instead of only stretching RoPE heuristically, it explicitly improves attention’s periodic extension so Transformers generalize more gracefully to longer sequences.

Position Interpolation: Extending RoPE with Minimal Fine-Tuning

5 minute read

Published:

Position Interpolation rescales positions before applying RoPE so a model trained on short contexts can be adapted to longer ones with surprisingly little fine-tuning. It became the reference baseline for long-context RoPE extension.

XPos: Length-Extrapolatable Rotary Embeddings

5 minute read

Published:

XPos modifies RoPE with a multiplicative decay that keeps relative rotations while stabilising magnitude at long distance. It is one of the cleanest attempts to make rotary embeddings extrapolate better.

p-RoPE: What Makes Rotary Positional Encodings Useful?

6 minute read

Published:

This paper does two things at once: it explains what RoPE is really doing inside a trained LLM, and it proposes p-RoPE, a partial rotary variant that drops the lowest frequencies to preserve stronger semantic channels.

GAPE: Remember to Forget — Gated Adaptive Positional Encoding

10 minute read

Published:

GAPE is a drop-in RoPE augmentation that adds content-aware attention logit biases: a query-gate suppresses irrelevant distant context while a key-gate preserves salient distant tokens. Provably sharper attention and improved long-context robustness — no architecture changes needed.

LongRoPE: Extending Context to 2 Million Tokens

7 minute read

Published:

LongRoPE (Microsoft, 2024) pushes RoPE-based context to 2M tokens by searching for optimal per-dimension rescaling factors — far outperforming NTK or YaRN at extreme lengths.

YaRN: Yet Another RoPE Extensionn Method

7 minute read

Published:

YaRN combines NTK scaling for high-frequency dimensions with linear interpolation for low-frequency ones, plus a temperature correction — achieving better long-context performance with minimal fine-tuning.

ALiBi: Attention with Linear Biases

4 minute read

Published:

ALiBi skips traditional positional embeddings entirely and just subtracts a distance penalty from attention scores. Zero extra parameters, excellent extrapolation. Press et al., 2022.

RoPE: Rotary Position Embeddings

5 minute read

Published:

RoPE encodes position by rotating query and key vectors by an angle proportional to position. The clever result: absolute encoding produces relative attention for free — and it’s now the dominant PE for large language models.

Relative Positional Encodings: It’s All About Distance

4 minute read

Published:

Instead of asking ‘where am I?’, relative PEs ask ‘how far are these two tokens apart?’ Shaw et al. and T5 both use this idea to build models that generalise better to variable-length inputs.

Learned Positional Encodings: Data-Driven Position

3 minute read

Published:

Instead of a fixed formula, why not just train position embeddings from scratch — like word embeddings? That’s exactly what BERT and GPT-1 do. Here’s how and when it works.

Sinusoidal Positional Encodings: The Original Solution

4 minute read

Published:

The PE method from the 2017 ‘Attention Is All You Need’ paper uses sine and cosine waves at different frequencies. Learn why this elegant choice encodes position without any training.

Positional Encodings: Why Position Matters

4 minute read

Published:

Transformers see all tokens at once — which means without help they’d treat ‘cat ate mouse’ and ‘mouse ate cat’ the same. Positional encodings fix this. Here’s the full landscape.

Structural vs Positional Encodings in Graphs

5 minute read

Published:

Positional encodings say where a node is in the graph. Structural encodings say what role it plays. They are complementary — and confusing them leads to poor design choices.

Random Walk Positional Encodings

5 minute read

Published:

Random walk positional encodings encode each node’s structural context by computing the probability of returning to it from itself in k steps — a computationally efficient alternative to Laplacian eigenvectors with no sign ambiguity.

Laplacian Eigenvectors as Graph Positional Encodings

6 minute read

Published:

The k smallest eigenvectors of the graph Laplacian form a natural positional embedding space — the graph’s own coordinate system. They capture global structure, symmetry, and community membership.

Why GNNs Need Positional Encodings

5 minute read

Published:

Message-passing GNNs are permutation-equivariant by design — they cannot assign unique positions to nodes. Without positional encodings, symmetric nodes are indistinguishable. Here is why that matters and how to fix it.

Graph Transformers: Bringing Attention to Graphs

5 minute read

Published:

Graph Transformers replace or augment local message passing with full pairwise attention — every node attends to every other node. This solves long-range dependencies and over-squashing at the cost of O(N²) computation.

propagation

APPNP: Personalized PageRank Meets Graph Neural Networks

5 minute read

Published:

APPNP decouples feature transformation from propagation. A neural network transforms features first; then Personalized PageRank propagates the result. This enables deep propagation without over-smoothing.

random-walk

Random Walk Positional Encodings

5 minute read

Published:

Random walk positional encodings encode each node’s structural context by computing the probability of returning to it from itself in k steps — a computationally efficient alternative to Laplacian eigenvectors with no sign ambiguity.

readout

Graph Classification: From Node Embeddings to Graph Embeddings

6 minute read

Published:

Graph classification is the task of predicting a label for an entire graph. It requires composing message passing (node embeddings), readout (graph embedding), and a classifier — and all three choices interact to determine model expressiveness.

Set2Set and Attention Readout: Order-Invariant Graph Summaries

6 minute read

Published:

Mean and sum readout treat all nodes equally. Attention readout learns which nodes matter most for a given task. Set2Set goes further — it uses an LSTM to iteratively query the node set, producing richer graph representations than single-pass pooling.

Global Pooling in GNNs: Mean, Sum, and Max

5 minute read

Published:

To predict a property of an entire graph, node embeddings must be aggregated into a single vector. The choice of global pooling — mean, sum, or max — is not arbitrary: each has distinct expressive power and fits different tasks.

reasoning

GNNs for Knowledge Graphs: Reasoning and Completion

6 minute read

Published:

Knowledge graphs encode human knowledge as typed entity-relation triples. GNNs enable structure-aware entity representation, multi-hop reasoning, knowledge base completion, and entity alignment — tasks that shallow embedding methods cannot fully solve.

receptive-field

Depth in GNNs: Why Deeper Is Not Always Better

6 minute read

Published:

In Transformers, depth = expressiveness. In GNNs, depth = both expressiveness AND over-smoothing. The optimal GNN depth is rarely more than 3-4 layers — fundamentally different from the hundreds of layers in modern LLMs.

recommender-systems

GNNs for Recommender Systems

5 minute read

Published:

Recommendation is naturally a graph problem: users and items are nodes, interactions are edges. GNNs on bipartite user-item graphs capture higher-order collaborative filtering signals — friends of friends liked this — that matrix factorisation cannot represent.

relational

R-GCN: Relational Graph Convolutional Networks

5 minute read

Published:

R-GCN extends GCN to multi-relational graphs by learning a separate weight matrix for each relation type. It handles knowledge graphs with typed edges and powers both entity classification and link prediction tasks.

Heterogeneous Graphs: When Nodes and Edges Have Types

5 minute read

Published:

Most real-world graphs are heterogeneous — they contain multiple node types (users, items, tags) and edge types (clicks, rates, authors). Standard GNNs treat all nodes and edges identically, making them blind to this type structure.

relative

Relative Positional Encodings: It’s All About Distance

4 minute read

Published:

Instead of asking ‘where am I?’, relative PEs ask ‘how far are these two tokens apart?’ Shaw et al. and T5 both use this idea to build models that generalise better to variable-length inputs.

relu

Activation Functions in Neural Networks: Why Non-Linearity Matters

12 minute read

Published:

Activation functions are the reason neural networks can model curved decision boundaries instead of collapsing into one giant linear map. This chapter builds the intuition first, then walks through the classical functions that shaped deep learning.

residual

The Transformer Block: Putting It All Together

7 minute read

Published:

A single Transformer block combines attention, residuals, layer norm, and an FFN into one reusable unit. Understanding this block is understanding the Transformer.

Residual Connections: Why Transformers Can Be Deep

7 minute read

Published:

Without residual connections, training a 96-layer Transformer would be practically impossible. The skip connection is a simple addition that solves the vanishing gradient problem and enables arbitrary depth.

restriction-map

What Is a Sheaf? From Topology to Graph Learning

7 minute read

Published:

A sheaf is a mathematical object from algebraic topology that assigns vector spaces to cells and linear maps between them. On graphs, sheaves assign feature spaces to nodes and edges, with restriction maps encoding how node features relate across edges.

road-network

GNNs for Traffic Forecasting

6 minute read

Published:

Traffic prediction is a canonical spatio-temporal graph task: sensors on roads form a fixed graph, and speed/volume measurements evolve over time. GNNs capture spatial correlations between sensors; RNNs or convolutions capture temporal patterns. Together they achieve state-of-the-art traffic forecasting.

robotics

GNNs for Robotics: Planning, Manipulation, and Multi-Agent Systems

6 minute read

Published:

Robots interact with structured environments: objects have relationships, joints form kinematic chains, agents communicate through interaction graphs. GNNs encode these relational structures — enabling generalisation across object configurations, robot morphologies, and multi-agent scenarios.

role

Structural vs Positional Encodings in Graphs

5 minute read

Published:

Positional encodings say where a node is in the graph. Structural encodings say what role it plays. They are complementary — and confusing them leads to poor design choices.

rope

GAPE: Remember to Forget — Gated Adaptive Positional Encoding

10 minute read

Published:

GAPE is a drop-in RoPE augmentation that adds content-aware attention logit biases: a query-gate suppresses irrelevant distant context while a key-gate preserves salient distant tokens. Provably sharper attention and improved long-context robustness — no architecture changes needed.

RoPE: Rotary Position Embeddings

5 minute read

Published:

RoPE encodes position by rotating query and key vectors by an angle proportional to position. The clever result: absolute encoding produces relative attention for free — and it’s now the dominant PE for large language models.

rotary

RoPE: Rotary Position Embeddings

5 minute read

Published:

RoPE encodes position by rotating query and key vectors by an angle proportional to position. The clever result: absolute encoding produces relative attention for free — and it’s now the dominant PE for large language models.

sagpool

TopKPool and SAGPool: Sparse Graph Pooling

6 minute read

Published:

Instead of soft cluster assignment (DiffPool), TopKPool and SAGPool select a subset of the most important nodes — producing a smaller but sparser graph at each level. Hard selection is scalable but requires careful score learning.

sampling

GraphSAGE: Inductive Learning on Large Graphs

4 minute read

Published:

GCN and GAT learn embeddings for fixed graphs — add a new node and you’re stuck. GraphSAGE (Hamilton et al., 2017) learns an aggregation function instead, so it can generate embeddings for entirely new nodes at inference time.

scalability

Diagonal, Orthogonal, and General Sheaf Maps

6 minute read

Published:

The restriction maps in a cellular sheaf can be constrained to different matrix classes: scalars, diagonal matrices, orthogonal matrices, or general matrices. Each class offers a different trade-off between expressivity and computational cost.

scaling

scene-graph

GNNs for Computer Vision: Scene Graphs and Beyond

6 minute read

Published:

Computer vision tasks increasingly require relational reasoning — understanding how objects relate to each other, not just what they are. Scene graph generation, visual question answering, action recognition from skeletons, and 3D point cloud processing all benefit from GNN-based relational modelling.

set2set

Set2Set and Attention Readout: Order-Invariant Graph Summaries

6 minute read

Published:

Mean and sum readout treat all nodes equally. Attention readout learns which nodes matter most for a given task. Set2Set goes further — it uses an LSTM to iteratively query the node set, producing richer graph representations than single-pass pooling.

sheaf

Polynomial Neural Sheaf Diffusion

6 minute read

Published:

Polynomial Neural Sheaf Diffusion (PNSD) replaces the fixed diffusion operator (I - Δ_F) with a learnable polynomial of the Sheaf Laplacian. This gives the model spectral flexibility — it can learn to amplify or suppress different frequency components of the sheaf signal.

Equivariant Sheaf Neural Networks

6 minute read

Published:

Sheaves with orthogonal restriction maps define a connection on the graph — a parallel transport structure over edges. This connects sheaf GNNs to differential geometry and enables equivariant processing of data with local coordinate frames at each node.

Sheaf Neural Networks and Heterophily

6 minute read

Published:

Sheaf GNNs are the principled solution to heterophily: by learning per-edge maps that transform features before comparison, they can perform diffusion that converges within classes and diverges across classes — the exact opposite of standard GCN’s collapse.

What Is a Sheaf? From Topology to Graph Learning

7 minute read

Published:

A sheaf is a mathematical object from algebraic topology that assigns vector spaces to cells and linear maps between them. On graphs, sheaves assign feature spaces to nodes and edges, with restriction maps encoding how node features relate across edges.

Why Message Passing Is Not Enough: The Case for Sheaves

6 minute read

Published:

Standard message passing aggregates neighbour features and averages. On heterophilic graphs (where neighbours often disagree), this is harmful. Cellular sheaves provide a mathematically principled framework to model per-edge relationships between node features — going beyond mere averaging.

sheaf-laplacian

The Sheaf Laplacian: Spectral Theory for Sheaves

7 minute read

Published:

The Sheaf Laplacian generalises the graph Laplacian by incorporating per-edge restriction maps. Its spectrum reveals how consistent data is under the sheaf. Sheaf diffusion with this Laplacian generalises GCN to handle heterophilic graphs.

sheaf-maps

Diagonal, Orthogonal, and General Sheaf Maps

6 minute read

Published:

The restriction maps in a cellular sheaf can be constrained to different matrix classes: scalars, diagonal matrices, orthogonal matrices, or general matrices. Each class offers a different trade-off between expressivity and computational cost.

sheaf-neural-networks

SheafPool: Basis-Invariant Graph Readout for Sheaf Neural Networks

9 minute read

Published:

SheafPool solves a key missing piece in sheaf GNNs: graph-level pooling. Instead of averaging stalk vectors in arbitrary local bases, it aligns them into a shared canonical frame and builds a readout that is invariant to local basis changes.

PolyNSD: Polynomial Neural Sheaf Diffusion

11 minute read

Published:

PolyNSD replaces the NSD propagation operator with a degree-K Chebyshev polynomial in the normalised sheaf Laplacian, achieving SOTA on homo- and heterophilic benchmarks with only diagonal restriction maps and dramatically lower memory usage.

HetSheaf: Heterogeneous Graphs Meet Cellular Sheaves

7 minute read

Published:

HetSheaf encodes graph heterogeneity directly in the sheaf data structure — type-aware stalks and restriction maps conditioned on node and edge types — instead of specialised architectural components, achieving +2pp on HGB with 10× fewer parameters.

sheafpool

SheafPool: Basis-Invariant Graph Readout for Sheaf Neural Networks

9 minute read

Published:

SheafPool solves a key missing piece in sheaf GNNs: graph-level pooling. Instead of averaging stalk vectors in arbitrary local bases, it aligns them into a shared canonical frame and builds a readout that is invariant to local basis changes.

shortest-path

Shortest-Path Encodings for Graph Transformers

4 minute read

Published:

Shortest-path distances between nodes can be encoded as attention biases or node features — directly informing the model about graph proximity without requiring message passing.

sigmoid

Activation Functions in Neural Networks: Why Non-Linearity Matters

12 minute read

Published:

Activation functions are the reason neural networks can model curved decision boundaries instead of collapsing into one giant linear map. This chapter builds the intuition first, then walks through the classical functions that shaped deep learning.

sign-ambiguity

Sign Ambiguity in Laplacian Eigenvectors

5 minute read

Published:

Laplacian eigenvectors are only defined up to sign: if u is an eigenvector, so is -u. This seemingly minor issue creates a fundamental problem for learning with LapPE. Here is the problem, its consequences, and how SignNet solves it.

silu

simple

SGC: Simple Graph Convolution

5 minute read

Published:

SGC removes all nonlinearities between GCN layers and collapses the entire propagation into a single pre-computed matrix power. Surprisingly, it matches GCN on most benchmarks — revealing that nonlinearities between layers may be unnecessary.

simulation

GNNs for Robotics: Planning, Manipulation, and Multi-Agent Systems

6 minute read

Published:

Robots interact with structured environments: objects have relationships, joints form kinematic chains, agents communicate through interaction graphs. GNNs encode these relational structures — enabling generalisation across object configurations, robot morphologies, and multi-agent scenarios.

sinusoidal

Sinusoidal Positional Encodings: The Original Solution

4 minute read

Published:

The PE method from the 2017 ‘Attention Is All You Need’ paper uses sine and cosine waves at different frequencies. Learn why this elegant choice encodes position without any training.

siren

skeleton

GNNs for Computer Vision: Scene Graphs and Beyond

6 minute read

Published:

Computer vision tasks increasingly require relational reasoning — understanding how objects relate to each other, not just what they are. Scene graph generation, visual question answering, action recognition from skeletons, and 3D point cloud processing all benefit from GNN-based relational modelling.

skip-connections

Residual Connections: Why Transformers Can Be Deep

7 minute read

Published:

Without residual connections, training a 96-layer Transformer would be practically impossible. The skip connection is a simple addition that solves the vanishing gradient problem and enables arbitrary depth.

snapshot

Static vs Dynamic Graphs: When Structure Changes Over Time

5 minute read

Published:

Most GNN research assumes a fixed graph. Real graphs evolve: edges appear and disappear, node features drift, new nodes arrive. Dynamic graph learning addresses how to model and predict on graphs whose structure changes over time.

social-network

GNNs for Social Networks: Influence, Communities, and Misinformation

6 minute read

Published:

Social networks are large sparse graphs with rich node features (user profiles) and heterogeneous edges (friendship, follow, retweet). GNNs predict user behaviour, detect communities, identify influential spreaders, and flag misinformation — tasks with significant real-world impact.

soft-assignment

DiffPool: Learning Hierarchical Graph Pooling

6 minute read

Published:

DiffPool learns to hierarchically cluster nodes into super-nodes across layers — like a convolutional pyramid for graphs. Unlike flat global pooling, it captures multi-scale graph structure by differentiably assigning nodes to clusters.

softmax

sparse-pooling

TopKPool and SAGPool: Sparse Graph Pooling

6 minute read

Published:

Instead of soft cluster assignment (DiffPool), TopKPool and SAGPool select a subset of the most important nodes — producing a smaller but sparser graph at each level. Hard selection is scalable but requires careful score learning.

sparsemax

spatio-temporal

GNNs for Traffic Forecasting

6 minute read

Published:

Traffic prediction is a canonical spatio-temporal graph task: sensors on roads form a fixed graph, and speed/volume measurements evolve over time. GNNs capture spatial correlations between sensors; RNNs or convolutions capture temporal patterns. Together they achieve state-of-the-art traffic forecasting.

Spatio-Temporal GNNs: Learning on Graphs Through Time

6 minute read

Published:

Spatio-temporal GNNs combine spatial message passing with temporal sequence modelling. They are the dominant approach for traffic forecasting, weather prediction, and any task where measurements at sensor nodes evolve over time on a fixed graph.

spectral

Polynomial Neural Sheaf Diffusion

6 minute read

Published:

Polynomial Neural Sheaf Diffusion (PNSD) replaces the fixed diffusion operator (I - Δ_F) with a learnable polynomial of the Sheaf Laplacian. This gives the model spectral flexibility — it can learn to amplify or suppress different frequency components of the sheaf signal.

The Sheaf Laplacian: Spectral Theory for Sheaves

7 minute read

Published:

The Sheaf Laplacian generalises the graph Laplacian by incorporating per-edge restriction maps. Its spectrum reveals how consistent data is under the sheaf. Sheaf diffusion with this Laplacian generalises GCN to handle heterophilic graphs.

Graph Fourier Transform: The Spectral View of Graphs

6 minute read

Published:

The Graph Fourier Transform decomposes a signal on a graph into frequency components using the Laplacian’s eigenvectors. This spectral view is the mathematical foundation behind spectral GNNs like ChebNet and GCN.

GCN: Graph Convolutional Networks

4 minute read

Published:

GCN (Kipf & Welling, 2016) is the ‘hello world’ of GNNs. It simplifies spectral graph convolution into a single elegant layer: normalised neighbourhood averaging with a learned linear transformation.

The Graph Laplacian: Spectral Graph Theory Explained Simply

6 minute read

Published:

The Graph Laplacian is L = D - A. Its eigenvectors reveal the graph’s community structure; its eigenvalues tell you how well-connected the graph is. It’s also the mathematical bridge from spectral theory to GNNs like GCN.

spectral-gnn

PolyNSD: Polynomial Neural Sheaf Diffusion

11 minute read

Published:

PolyNSD replaces the NSD propagation operator with a degree-K Chebyshev polynomial in the normalised sheaf Laplacian, achieving SOTA on homo- and heterophilic benchmarks with only diagonal restriction maps and dramatically lower memory usage.

spherical-harmonics

SE(3)-Transformers: Attention with 3D Symmetry

6 minute read

Published:

SE(3)-Transformers extend self-attention to 3D point clouds and molecular graphs while maintaining SE(3) equivariance. Attention weights are learned between node pairs; values are equivariant features built from spherical harmonics.

stalk

What Is a Sheaf? From Topology to Graph Learning

7 minute read

Published:

A sheaf is a mathematical object from algebraic topology that assigns vector spaces to cells and linear maps between them. On graphs, sheaves assign feature spaces to nodes and edges, with restriction maps encoding how node features relate across edges.

streaming

Static vs Dynamic Graphs: When Structure Changes Over Time

5 minute read

Published:

Most GNN research assumes a fixed graph. Real graphs evolve: edges appear and disappear, node features drift, new nodes arrive. Dynamic graph learning addresses how to model and predict on graphs whose structure changes over time.

structural-encoding

Structural vs Positional Encodings in Graphs

5 minute read

Published:

Positional encodings say where a node is in the graph. Structural encodings say what role it plays. They are complementary — and confusing them leads to poor design choices.

Why GNNs Need Positional Encodings

5 minute read

Published:

Message-passing GNNs are permutation-equivariant by design — they cannot assign unique positions to nodes. Without positional encodings, symmetric nodes are indistinguishable. Here is why that matters and how to fix it.

Graphormer: Transformers with Structural Biases for Graphs

6 minute read

Published:

Graphormer encodes graph structure directly into Transformer attention via three biases: node centrality, spatial encoding (shortest paths), and edge encoding. It won the OGB-LSC 2021 competition on molecular property prediction.

style-transfer

Z-SASLM: Zero-Shot Style Blending via Spherical Interpolation

10 minute read

Published:

Z-SASLM is a zero-shot, fine-tuning-free style blending pipeline that replaces linear latent interpolation with SLERP along the geodesic of the hypersphere, preserving latent manifold structure when blending multiple styles. Published at CVPR 2025 Workshop.

swiglu

swish

symmetry

Equivariance: What It Means and Why It Matters

6 minute read

Published:

Equivariance formalises the idea that a function should ‘commute with symmetry transformations.’ A rotation-equivariant model applied to rotated input gives the rotated output — no extra training needed. This is the foundation for geometric deep learning.

Why Geometry Matters in Graph Neural Networks

5 minute read

Published:

Many real-world graphs are embedded in 3D space — molecules, proteins, point clouds, crystal structures. Standard GNNs ignore coordinates and only use connectivity. Geometric GNNs incorporate spatial positions and must respect physical symmetries.

Why GNNs Need Positional Encodings

5 minute read

Published:

Message-passing GNNs are permutation-equivariant by design — they cannot assign unique positions to nodes. Without positional encodings, symmetric nodes are indistinguishable. Here is why that matters and how to fix it.

tanh

Activation Functions in Neural Networks: Why Non-Linearity Matters

12 minute read

Published:

Activation functions are the reason neural networks can model curved decision boundaries instead of collapsing into one giant linear map. This chapter builds the intuition first, then walks through the classical functions that shaped deep learning.

temporal

Temporal Graph Networks: Learning from Events

6 minute read

Published:

TGN (Temporal Graph Network) is the leading framework for continuous-time dynamic graphs. It maintains a per-node memory that is updated upon each interaction, enabling efficient inductive link prediction on event streams.

Static vs Dynamic Graphs: When Structure Changes Over Time

5 minute read

Published:

Most GNN research assumes a fixed graph. Real graphs evolve: edges appear and disappear, node features drift, new nodes arrive. Dynamic graph learning addresses how to model and predict on graphs whose structure changes over time.

temporal-KG

Temporal Knowledge Graphs: Facts That Change Over Time

5 minute read

Published:

Most knowledge graphs treat facts as timeless — but facts change. Barack Obama was president from 2009 to 2017. Temporal Knowledge Graphs add timestamps to triples, requiring models to reason about what was true when.

tensor-field-networks

Tensor Field Networks and Geometric Deep Learning

6 minute read

Published:

Tensor Field Networks (TFN) were the first architecture to achieve SE(3) equivariance using spherical harmonics and Clebsch-Gordan tensor products. They laid the theoretical foundation for NequIP and MACE — the current state-of-the-art in equivariant molecular force fields.

time-aware

Temporal Knowledge Graphs: Facts That Change Over Time

5 minute read

Published:

Most knowledge graphs treat facts as timeless — but facts change. Barack Obama was president from 2009 to 2017. Temporal Knowledge Graphs add timestamps to triples, requiring models to reason about what was true when.

topkpool

TopKPool and SAGPool: Sparse Graph Pooling

6 minute read

Published:

Instead of soft cluster assignment (DiffPool), TopKPool and SAGPool select a subset of the most important nodes — producing a smaller but sparser graph at each level. Hard selection is scalable but requires careful score learning.

traffic

GNNs for Traffic Forecasting

6 minute read

Published:

Traffic prediction is a canonical spatio-temporal graph task: sensors on roads form a fixed graph, and speed/volume measurements evolve over time. GNNs capture spatial correlations between sensors; RNNs or convolutions capture temporal patterns. Together they achieve state-of-the-art traffic forecasting.

Spatio-Temporal GNNs: Learning on Graphs Through Time

6 minute read

Published:

Spatio-temporal GNNs combine spatial message passing with temporal sequence modelling. They are the dominant approach for traffic forecasting, weather prediction, and any task where measurements at sensor nodes evolve over time on a fixed graph.

training stability

Layer Normalization in Transformers

7 minute read

Published:

Layer norm is not optional plumbing. It determines training stability, gradient flow, and whether deep Transformers converge at all. Pre-LN vs Post-LN is not a detail — it changes training dynamics fundamentally.

transformation

APPNP: Personalized PageRank Meets Graph Neural Networks

5 minute read

Published:

APPNP decouples feature transformation from propagation. A neural network transforms features first; then Personalized PageRank propagates the result. This enables deep propagation without over-smoothing.

transformer-block

The Transformer Block: Putting It All Together

7 minute read

Published:

A single Transformer block combines attention, residuals, layer norm, and an FFN into one reusable unit. Understanding this block is understanding the Transformer.

transformers

GAPE: Remember to Forget — Gated Adaptive Positional Encoding

10 minute read

Published:

GAPE is a drop-in RoPE augmentation that adds content-aware attention logit biases: a query-gate suppresses irrelevant distant context while a key-gate preserves salient distant tokens. Provably sharper attention and improved long-context robustness — no architecture changes needed.

unified

MPNN: The General Message Passing Neural Network Framework

6 minute read

Published:

The MPNN framework (Gilmer et al., 2017) unifies GCN, GAT, GIN, GraphSAGE, and almost all spatial GNNs under one abstraction: message functions, aggregation, and update. Understanding MPNN means understanding the whole GNN family.

visual-question-answering

GNNs for Computer Vision: Scene Graphs and Beyond

6 minute read

Published:

Computer vision tasks increasingly require relational reasoning — understanding how objects relate to each other, not just what they are. Scene graph generation, visual question answering, action recognition from skeletons, and 3D point cloud processing all benefit from GNN-based relational modelling.

weighted

wl-test