TL;DR
This paper introduces GraphAC, a novel framework for evaluating Graph Neural Networks (GNNs) in a task-agnostic manner. By having two GNNs compete against each other using a modified Barlow Twins loss, GraphAC can reliably distinguish GNNs based on their expressiveness without needing downstream tasks or data augmentations.
What Problem Does This Paper Address?
The field of Graph Neural Networks (GNNs) is rapidly advancing, particularly in areas like molecular representation learning. However, evaluating and comparing different GNN architectures has become challenging. Current methods often rely on performance on specific downstream tasks (like classification or regression) on various datasets. This approach has several drawbacks: it doesn't directly compare the inherent capabilities of GNNs, it can be difficult to standardize results across different datasets, and it's susceptible to issues like label noise. Furthermore, many self-supervised learning (SSL) techniques for graphs require handcrafted data augmentations, which are problematic for graph structures due to their unique properties and lack of universal applicability. The paper aims to fill this gap by providing a principled, task-agnostic, and augmentation-free method for evaluating GNN expressiveness.
Methods
The core of GraphAC is an "adversarial collaboration" where two GNNs are trained simultaneously on the same unlabeled graph data. The key idea is that a more "expressive" GNN (one that can learn more complex and informative representations) should be able to outperform a less expressive one in this competitive setting.
To achieve this, the authors introduce a novel loss function called Competitive Barlow Twins. This loss is inspired by the original Barlow Twins method, which aims to prevent information collapse by maximizing the information content of learned representations. The Competitive Barlow Twins loss modifies the redundancy reduction term of the original Barlow Twins. Instead of simply decorrelating features, it encourages the GNNs to predict each other's embeddings while simultaneously preventing the opponent from predicting its own. This is achieved by analyzing the cross-correlation matrix between the embeddings of the two competing GNNs. The loss pushes the diagonal elements of this matrix towards one (collaboration) and uses the difference between the upper and lower triangles of the matrix to drive competition.
Additionally, GraphAC incorporates covariance regularization from the VICReg framework. This helps decorrelate feature dimensions within each GNN's output embeddings, ensuring that the embeddings are fully utilized to capture graph information. The overall GraphAC loss function combines the Competitive Barlow Twins loss with covariance regularization.
Datasets
The paper evaluates GraphAC on two primary datasets:
- ogbg-molpcba: This is a large molecular property prediction dataset from the Open Graph Benchmark (OGB). It contains over 437,000 drug-like molecules, with an average of 26 nodes (atoms) and 28 edges (bonds) per molecule. The dataset is used for graph-level prediction, and importantly, the labels are discarded for GraphAC's evaluation.
- ogbg-code2: This dataset consists of over 452,000 abstract syntax trees derived from Python method definitions. These trees have an average of 125 nodes and 124 edges. This dataset is used to demonstrate GraphAC's task-agnostic nature by evaluating it on a non-molecular graph structure.
Key Insights and Ideas
- GNNs can be evaluated through competition: The fundamental insight is that GNNs can be compared based on their ability to "win" a competitive self-supervised learning game, rather than solely on downstream task performance.
- Task-agnostic evaluation is possible without augmentations: GraphAC demonstrates that it's feasible to evaluate GNN expressiveness without relying on specific downstream tasks or requiring handcrafted data augmentations, which are notoriously difficult for graphs.
- Competitive Barlow Twins for expressiveness ranking: The novel Competitive Barlow Twins loss effectively captures the difference in expressiveness between GNNs by encouraging collaboration and competition simultaneously.
- Feature importance ordering: The Competitive Barlow Twins loss implicitly orders features by importance, which helps stabilize training by preventing simple permutation of embeddings.
- GraphAC provides a total ordering: The framework is capable of not only distinguishing between GNNs but also producing a consistent ranking of their expressiveness.
Key Results
- GraphAC successfully distinguishes GNNs with varying numbers of layers, hidden dimensions, aggregators, and architectures.
- In experiments, deeper GNNs and GNNs with larger hidden dimensions consistently achieved lower loss in GraphAC, indicating higher expressiveness.
- Combining multiple aggregators ([max, mean, sum]) was found to be more expressive than single aggregators.
- The PNA architecture generally outperformed GIN and GCN in terms of expressiveness as ranked by GraphAC.
- The framework demonstrated stable training and avoided information collapse, as evidenced by PCA explained variance plots.
- The expressiveness rankings generated by GraphAC showed a strong positive correlation with the actual task performance of the GNNs on downstream tasks, validating GraphAC's ability to identify more capable GNNs.
Limitations and Future Work
- Hyperparameter sensitivity: While the paper states GraphAC is generally stable and not overly sensitive to hyperparameters, the tuning process in Appendix D.1 suggests that finding optimal settings (like the weighting coefficient $\mu$) is still important.
- Computational Cost: While avoiding augmentations is a plus, training two GNNs simultaneously might still be computationally intensive, especially for very large models or datasets.
- Future Work: The authors suggest that GraphAC opens up new avenues for developing contrastive SSL methods. The idea of combining a more expressive GNN with a less expressive one to gain a better overall understanding of graphs without manual augmentations is a promising direction for future research. The framework's ability to provide a total ordering of GNNs could also be leveraged for more systematic GNN design.
Summary updated