Sign and Basis Invariant Networks for Spectral Graph Representation Learning

Derek Lim, Joshua David Robinson, Lingxiao Zhao, Tess Smidt, Suvrit Sra, Haggai Maron, Stefanie Jegelka

TL;DR

This paper introduces SignNet and BasisNet, novel neural network architectures designed to handle the inherent symmetries (sign flips and basis choices) in eigenvectors, particularly those derived from graph Laplacians. These networks are proven to be universal approximators and offer a principled way to learn from spectral graph data, outperforming existing methods in graph representation learning tasks.

What Problem Does This Paper Address?

Many machine learning applications, especially in graph analysis, rely on eigenvectors derived from matrices like the graph Laplacian. These eigenvectors encode crucial structural information about the data. However, a significant challenge arises from the inherent ambiguities in eigenvector computation:

  1. Sign Ambiguity: If v is an eigenvector, then -v is also a valid eigenvector for the same eigenvalue.
  2. Basis Ambiguity: For eigenvalues with higher multiplicity (i.e., higher-dimensional eigenspaces), there are infinitely many possible orthonormal bases of eigenvectors.

Existing methods often struggle to handle these symmetries, leading to inconsistent or suboptimal performance. For instance, some approaches resort to random sign flipping during training, which is an imperfect way to achieve sign invariance. This paper aims to address these ambiguities by developing neural network architectures that are inherently invariant to these symmetries, leading to more robust and expressive graph representations.

Methods

The core contribution of this paper is the introduction of two novel neural network architectures: SignNet and BasisNet.

  • SignNet: This network is designed to be invariant to the sign ambiguity of eigenvectors. It achieves this by processing each eigenvector v and its negation -v and then combining their outputs. This ensures that the network's output is the same regardless of the sign chosen for each eigenvector. For multiple eigenvectors, SignNet concatenates the sign-invariant outputs of individual eigenvectors.
  • BasisNet: This architecture extends SignNet to handle the basis ambiguity in higher-dimensional eigenspaces. It leverages the property that an orthonormal basis for an eigenspace can be transformed by an orthogonal matrix. BasisNet achieves basis invariance by processing the orthogonal projector of the eigenspace (which is invariant to the choice of basis) using an invariant graph network (IGN).

The authors also introduce Unconstrained-SignNet and Unconstrained-BasisNet as simpler versions that focus solely on the invariance properties without enforcing permutation equivariance (which is often desired for node-level tasks). They prove that these architectures are universal approximators for functions exhibiting the desired invariances.

Datasets

The paper evaluates its proposed methods on several datasets:

  • ZINC: A dataset of molecule graphs used for graph regression tasks.
  • ZINC-full: A larger version of the ZINC dataset.
  • Alchemy: A dataset for quantum chemistry tasks.
  • Cat and Human Models: Used for texture reconstruction experiments on triangle meshes.
  • Fluorescein Graph: Used for visualizing learned positional encodings.
  • Image Grids, Citation Networks, Amazon Photo: Used for analyzing eigenspace statistics.

Key Insights and Ideas

  • Principled Handling of Eigenvector Symmetries: The paper provides a principled way to handle the fundamental sign and basis ambiguities of eigenvectors, which are often overlooked or addressed with ad-hoc methods.
  • Universality Guarantees: SignNet and BasisNet are theoretically proven to be universal approximators for functions with the desired invariances, ensuring their capacity to learn complex relationships.
  • Beyond Spectral Graph Convolutions: The proposed networks are shown to be strictly more expressive than traditional spectral graph convolutions, capable of learning functions that spectral methods cannot.
  • Eigenspace Statistics in Real Data: The authors demonstrate that real-world graph data frequently exhibits higher multiplicity eigenvalues, making basis invariance crucial for effective representation learning.
  • Domain Agnosticism: SignNet and BasisNet are designed to be domain-agnostic, meaning they can be applied to any problem involving eigenvectors, not just graph data.

Key Results

  • Graph Regression: SignNet significantly improves performance on the ZINC dataset for molecular graph regression, achieving state-of-the-art results when combined with various base models (e.g., PNA, GINE, GAT). For instance, a PNA model with SignNet achieved a test MAE of 0.084, outperforming other methods.
  • Texture Reconstruction: The SignNet-based model achieved superior results in texture reconstruction on cat and human models, particularly in the LPIPS metric, demonstrating its ability to capture structural symmetries.
  • Learning Spectral Graph Convolutions: SignNet and BasisNet can universally approximate spectral graph convolutions, and in some cases, they can learn them more effectively than specialized spectral GNNs.
  • Distinguishing Graphs: The paper shows that SignNet and BasisNet can distinguish between certain pairs of non-isomorphic graphs that spectral graph convolutions and spectral GNNs cannot, particularly those related to graph bipartiteness.

Limitations and Future Work

  • Computational Cost of Expressive-BasisNet: While theoretically powerful, the "Expressive-BasisNet" variant, which uses higher-order tensors for universal approximation with permutation equivariance, is computationally impractical. The authors focus on more tractable versions.
  • General Subspaces: The current work focuses on eigenspaces. The authors suggest that future work could explore their models on general subspaces.
  • Broader Applications: The authors believe their models and future invariant networks could be useful in a wide range of applications beyond graph machine learning, given the ubiquity of eigenvectors.
  • Negative Uses: The paper acknowledges the potential for misuse of powerful graph machine learning models, particularly in areas like drug design and social network analysis, and calls for awareness and mitigation strategies.

Summary updated

BibTeX
@inproceedings{lim2023sign,
  author = {Derek Lim and Joshua David Robinson and Lingxiao Zhao and Tess Smidt and Suvrit Sra and Haggai Maron and Stefanie Jegelka},
  title = {{Sign and Basis Invariant Networks for Spectral Graph Representation Learning}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=Q-UHqMorzil},
}
Figure