Abstract
Graphs can model complicated interactions between entities, which naturally emerge in many important applications. These applications can often be cast into standard graph learning tasks, in which a crucial step is to learn low-dimensional graph representations. Graph neural networks (GNNs) are currently the most popular model in graph embedding approaches. However, standard GNNs in the neighborhood aggregation paradigm suffer from limited discriminative power in distinguishing high-order graph structures as opposed to low-order structures. To capture high-order structures, researchers have resorted to motifs and developed motif-based GNNs. However, existing motif-based GNNs still often suffer from less discriminative power on high-order structures. To overcome the above limitations, we propose Motif Graph Neural Network (MGNN), a novel framework to better capture high-order structures, hinging on our proposed motif redundancy minimization operator and injective motif combination. MGNN produces a set of node representations w.r.t. each motif, distills unique features through redundancy minimization, and performs injective combination to enhance discriminative power. We demonstrate that MGNN outperforms state-of-the-art methods on seven public benchmarks on both node classification and graph classification tasks.
Introduction
Most modern Graph Neural Networks (GNNs) rely on a "message-passing" paradigm where a node's representation is updated by aggregating features from its immediate neighbors. While efficient, this approach has a fundamental theoretical limit: it is at most as powerful as the 1-dimensional Weisfeiler-Leman (1-WL) graph isomorphism test. In practical terms, this means standard GNNs can be "blind" to high-order structures. For example, two nodes might have identical sets of neighbors (low-order structure), but those neighbors might be connected to each other in entirely different ways (high-order structure). Standard GNNs would assign these nodes the same representation, failing to distinguish them.
The MGNN Framework
To overcome these limitations, we propose the Motif Graph Neural Network (MGNN). MGNN explicitly models motifs—small, recurring subgraphs—to capture high-order structural information. The framework operates in four distinct phases:
- Motif Instance Counting: The model identifies motif patterns (e.g., all 13 possible directed 3-node motifs). We utilize an efficient $O(|V|^2)$ algorithm for counting "open" motifs, significantly reducing pre-processing time compared to full enumeration.
- Motif-wise Message Aggregation: For each motif type, the model generates a specific node representation, allowing the network to analyze the graph through multiple structural "lenses" simultaneously.
- Motif Redundancy Minimization ($\Delta$): Since different motifs often share edges, their representations can be highly redundant. MGNN uses a learnable operator ($\Delta$) to compare motif-based features and distill only the information unique to each specific motif.
- Injective Combination: Instead of simple averages or sums, MGNN uses an injective function (specifically, vector concatenation) to combine these features. This ensures the final node representation is a unique "fingerprint" that preserves distinct structural contributions.
Enhancing Discriminative Power
A key insight of MGNN is that non-injective functions like sum or mean act as information bottlenecks. If Node A has one motif with a value of 6, and Node B has two motifs with values of 3 each, a sum operation makes them both "6," leading to a collision.
As illustrated in Figure 2(d), MGNN’s use of concatenation prevents this loss of information. By mapping Node A to [6, 0] and Node B to [3, 3], the model maintains the structural distinction between the two nodes. This architectural choice provably increases the expressive power of GNNs beyond the 1-WL limit.
Experimental Results
We evaluated MGNN on seven public benchmarks across node classification (Cora, Citeseer, Pubmed, Chem2Bio2RDF) and graph classification (MUTAG, ENZYMES, AIDS) tasks. MGNN consistently outperformed state-of-the-art baselines, including GCN, GAT, and GIN.
- Performance: On the ENZYMES dataset, MGNN achieved a 10.95% improvement over the next best baseline. On Pubmed, it outperformed GraphSAGE by 2.81%.
- Structural Robustness: In experiments where node features were replaced with random noise, MGNN’s performance dropped significantly less than its competitors, proving its superior ability to extract meaning from graph topology alone.
- Biological Discovery: In a protein-disease association prediction task, MGNN achieved an AUROC of nearly 100%. Many of its top-ranked predictions, such as linking the COX2 gene to Colorectal Carcinoma, were confirmed by existing medical literature.
Conclusion
MGNN addresses the inherent limitations of standard GNNs by explicitly incorporating high-order motifs and ensuring their unique features are preserved through redundancy minimization and injective aggregation. While future work will explore scaling to larger motifs and dynamic graphs, MGNN currently represents a significant step forward in discriminative graph representation learning.
Summary updated