---
title: Feature-Message Passing gMLP
url: https://www.emergentmind.com/topics/feature-message-passing-gmlp
type: topic
---

# Feature-Message Passing gMLP

Feature-message passing gMLP architectures build upon the core idea of decoupling the message propagation and neural update in graph neural networks (GNNs). This separation enables scalable, adaptive, and expressive learning in large or topologically rich graphs. Recent work extends these principles to spatio-temporal and topological domains, notably with the introduction of Cycle Message Passing (Cy2Mixer), which uses parallel gMLP blocks for temporal, spatial, and cycle-aware feature mixing. This approach enhances both scalability and topological sensitivity for a variety of graph-based learning tasks [2401.15894][2104.09880].

## 1. Background and Motivation

Classical neural message passing in GNNs alternately aggregates the hidden states of each node's neighbors and applies neural updates. This recursive expansion is computationally demanding and lacks flexibility—the message sets are fixed for all nodes and layers, and scaling to large graphs is prohibitive. To address these issues, GMLP (Graph Multi-layer Perceptron) frameworks completely decouple feature propagation from neural computation by pre-computing multi-hop, feature-only messages and then learning to mix them adaptively with small, shared neural models [2104.09880]. 

In spatio-temporal graphs such as traffic or interaction networks, purely spatial or temporal models are insufficient; rich cycles and higher-order connectivity patterns carry crucial information. However, standard message passing, even with multi-head attention, cannot explicitly align with the graph's deeper topological invariants. The Cy2Mixer architecture introduces cycle message passing blocks, informed by the cycle basis (first homology) of the graph, to address this gap [2401.15894].

## 2. Feature-Message Passing: Mathematical Structure

Given a graph $\mathcal{G}=(\mathcal{V},\mathcal{E})$ with node features $\mathbf{x}_v\in\mathbb{R}^d$ for $v\in\mathcal{V}$, and integer $T$ denoting the maximal hop, feature-message passing initializes
\[
\mathbf{m}_v^{(0)} = \mathbf{x}_v \quad \forall\,v.
\]
For $t=1,2,\dots,T$,
\[
\mathbf{m}_v^{(t)} = \mathsf{graph\_aggregator}\left(\{\mathbf{m}_u^{(t-1)}: u\in\mathcal{N}(v)\}\right),
\]
where $\mathcal{N}(v)$ is the (possibly self-looped) neighbor set. This produces a multiscale message set:
\[
\mathcal{M}_v = \left\{\mathbf{m}_v^{(0)},\,\mathbf{m}_v^{(1)},\,\dots,\,\mathbf{m}_v^{(T)}\right\}.
\]
Messages may be aggregated across hops via concatenation, pooling, gating,
\[
w_t = \sigma(\mathbf{s}^\top \mathbf{m}_v^{(t)}),\quad \mathbf{c}_v = \sum_{t=0}^T w_t\,\mathbf{m}_v^{(t)},
\]
or adaptive attention (see [2104.09880] for detailed formulations).

The neural update step then forms the final representation:
\[
\mathbf{h}_v = \mathsf{update}(\mathbf{c}_v),
\]
where $\mathsf{update}$ is typically an MLP. This entire process allows the expensive graph propagation ($O(T\,M\,d)$ for $M$ edges) to be pre-computed, with subsequent epochs reduced to cheap MLP forward/backward passes ($O(N\,d^2)$) [2104.09880].

## 3. gMLP-Based Gating and Unified Cy2Mixer Blocks

In Cy2Mixer, the gMLP structure is generalized to spatio-temporal tensors $H^{(l)}\in\mathbb{R}^{T\times N\times d_h}$, where $T$ is history length, $N$ node count, and $d_h$ hidden dimension. Each encoder layer applies:
\[
Z^{(l)} = H^{(l)} W^{(l)}_U \in \mathbb{R}^{T\times N\times 2d_h}
\]
and splits $Z^{(l)} = [Z_1^{(l)}, Z_2^{(l)}]$. The spatial gating unit modulates one half by a function $f$ of the other:
\[
s\left(Z^{(l)}\right) = Z_1^{(l)} \odot f\left(Z_2^{(l)}\right).
\]
The function $f$ is replaced depending on which stream the block implements:
- Temporal: $f=\mathrm{Conv}$
- Spatial: $f=$ MPNN on $A$
- Cycle: $f=$ MPNN on $A_C$

Each output is projected,
\[
Y^{(l)} = s\left(Z^{(l)}\right) W_V^{(l)} \in \mathbb{R}^{T\times N\times d_h},
\]
and the three outputs are concatenated then fused:
\[
Y^{(l)}_{\text{out}} = \mathrm{FC}[Y_{\text{temp}}\;\|\;Y_{\text{spat}}\;\|\;Y_{\text{cycl}}].
\]
A residual connection and normalization complete the layer. This entirely attention-free architecture is shown to match or exceed transformer-based models on benchmarks [2401.15894].

## 4. Cycle (Clique) Message-Passing and Topological Encoding

The cycle message passing block leverages a clique adjacency $A_C$ formed by considering cycles in a basis of $\mathcal{G}$: the $(v,u)$ entry of $A_C$ is $1$ if $v$ and $u$ co-occur in a fundamental cycle. Theorem 3.1 from [2401.15894] proves that the cycle basis of the temporal lifted graph $\mathcal{G}\times I$ is isomorphic to that of $\mathcal{G}$, so all necessary topological cycles are captured at each time slice by $A_C$:
\[
\pi_{t_0}(C_i) \in \mathcal{G} \quad \forall\, t_0,
\]
where $C_i$ runs over a cycle basis of $\mathcal{G}\times I$.

The cycle block then executes
\[
\tilde Z^{(l)}_{\text{cycle};\,t,v} = Z_{1;t,v}^{(l)} \odot \sigma\!\left(\mathrm{AGG}\left(Z_{2;t}^{(l)},A_C\right)_v + b_{m,C}^{(l)}\right),
\]
enriching feature mixing with 1-dimensional homology information.

## 5. Representational Expressiveness and Block Comparison

Standard (spatial) message passing with adjacency $A$ is provably limited: MPNNs with only $A$ cannot distinguish graphs that share the same universal cover but differ by cycle attachments, corresponding to failure modes of the Weisfeiler-Lehman test in cycle-rich graphs. The addition of the cycle block permits the network to distinguish between nodes in otherwise identical local unfoldings but distinct cycle contexts [2401.15894].

This yields greater representational capacity, both mathematically and empirically. The cycle message passing block provides direct access to the graph's nontrivial homology classes, making cycles “visible” to the deep model.

## 6. Variants, Efficiency, and Empirical Results

The gMLP framework encompasses several variants:
- **GMLP-GU**: Uses only $T$-hop features; equivalent to methods such as SGC given normalized adjacency.
- **GMLP-GMU**: Sum, gated, or global gate aggregation of multiscale messages.
- **Full GMLP**: Self-guided attention over hops, resulting in state-of-the-art accuracy and robust learning to depth [2104.09880].

Key empirical findings demonstrate:
- On ogbn-products, GMLP achieves $\sim$76.5% accuracy, outperforming SIGN and APPNP.
- Training acceleration up to $15.6\times$ versus APPNP, and $74.4\times$ versus GAT, owing to pre-computation.
- Near-linear distributed scaling over 16 GPUs.
- Robustness to depth without over-smoothing; nodes learn retention weights over $0..T$ hops.

For Cy2Mixer, benchmarks confirm that the cycle-aware block yields state-of-the-art performance across spatio-temporal graph datasets, with practical source code made available [2401.15894].

## 7. Unification and Extension via gMLP Skeleton

Cy2Mixer demonstrates that one can generalize transformer-like architectures by replacing multi-head attention with parallel gMLP gating units, each using a different token-mixing operator. Any structural operator—including higher-order cliques or k-hop neighborhoods—can be implemented by choosing the mapping $f$ appropriately. The architectural principle is modular, feed-forward, and free of attention bottlenecks, yet can attain expressiveness comparable to or exceeding self-attention models on real-world benchmarks.

The gMLP skeleton thus unifies feature-message passing, spatial and cycle-aware aggregation, and temporal convolution within a single, efficient, and highly expressive framework, opening new directions for structural learning in large-scale, topologically intricate graphs [2401.15894][2104.09880].

Source: https://www.emergentmind.com/topics/feature-message-passing-gmlp