Graph Neural Networks (GNNs) based on standard message-passing are highly popular but fundamentally limited in their expressive power, famously bounded by the 1-dimensional Weisfeiler-Leman (1-WL) test. To break this "1-WL ceiling," researchers have developed subgraph-enhanced GNNs, which process a graph as a collection of its subgraphs rather than a single monolithic structure.
However, this emerging field has faced two major hurdles: a fragmented theoretical understanding of how these architectures relate to the $k$-WL hierarchy, and a reliance on inefficient or "blind" heuristics (like random deletion or exhaustive enumeration) for subgraph selection. This paper introduces Ordered Subgraph Aggregation Networks ($k$-OSANs), a framework that unifies subgraph-enhanced GNNs, places them within a rigorous theoretical hierarchy, and introduces a data-driven approach to learn exactly which subgraphs a model should focus on.
The $k$-OSAN Framework: Theory and Expressivity
To address the theoretical fragmentation in the field, the authors introduce $k$-OSANs. In this architecture, the network processes subgraphs of size $k$ where the order of vertices is explicitly considered. By treating subgraphs as ordered tuples rather than unordered sets, the model captures directional and positional information much more effectively.
Subgraph-enhanced GNNs fundamentally work by "breaking symmetries" that typically confuse standard GNNs; by marking or removing specific nodes, the local neighborhood aggregation becomes unique to that specific subgraph view. The authors prove that $k$-OSANs form a strict hierarchy: increasing the subgraph size $k$ strictly increases the model's expressive power. Furthermore, while $k$-OSANs are upper-bounded by the $(k+1)$-WL test, they are shown to be "incomparable" to $k$-WL. This means they can identify certain complex structural patterns that the standard $k$-WL algorithm misses entirely.
Data-Driven Subgraph Sampling via I-MLE
Beyond theoretical unification, the authors tackle the computational inefficiency of using all possible subgraphs. Instead of relying on random sampling or exhaustive enumeration, they propose a data-driven approach to learn which subgraphs are most informative for a given task.
They utilize an upstream GNN to parameterize a probability distribution over possible subgraphs. To train this discrete sampling step end-to-end, the model employs the Implicit Maximum Likelihood Estimation (I-MLE) framework. This allows the network to backpropagate through the sampling process, effectively acting as a learned attention mechanism over the graph's structural decomposition. The model learns to select the specific subgraphs that minimize the final loss, proving that a few "well-chosen" subgraphs can outperform a large number of randomly selected ones.
Empirical Results
The researchers evaluated $k$-OSANs on several large-scale graph regression benchmarks, including ZINC, QM9, ALCHEMY, OGBG-MOLESOL, and the synthetic EXP dataset. The data-driven approach yielded significant improvements across three key dimensions:
- Predictive Performance: Data-driven $k$-OSANs consistently outperformed random sampling baselines. On the OGBG-MOLESOL dataset, the learned sampling approach achieved an average performance gain of over 11% compared to random selection.
- Expressivity: On the EXP dataset—specifically designed to test a GNN's ability to distinguish graphs that 1-WL cannot—the model improved accuracy by nearly 50% over standard non-subgraph GNNs, confirming that theoretical gains in expressivity translate directly to empirical success.
- Computational Efficiency: By intelligently sampling subgraphs, the I-MLE-based approach proved significantly faster than exhaustive methods. In certain configurations (such as sampling 3 vertices), it was up to 3.5x faster than the non-data-driven ESAN framework while maintaining or even improving accuracy.
Limitations and Future Directions
Despite these advances, the authors note a curious "generalization gap." While theoretical results guarantee that larger subgraphs (higher $k$) are more expressive, empirical performance sometimes drops when $k$ becomes too large. This suggests that while the model has the capacity to recognize more complex structures, it may become more prone to overfitting or face a more difficult optimization landscape.
Future work aims to explore more sophisticated edge embedding methods—since the current model relies heavily on vertex features—and to better balance the trade-off between theoretical expressivity and practical generalization to unseen data.
Summary updated