MSGNN: A Spectral Graph Neural Network Based on a Novel Magnetic Signed Laplacian

Yixuan He, Michael Permultter, Gesine Reinert, Mihai Cucuringu

TL;DR

MSGNN is a novel spectral Graph Neural Network designed specifically for networks that are both signed (containing positive and negative relationships) and directed. By introducing a "magnetic signed Laplacian" that encodes directionality as a phase in the complex plane, the authors achieve state-of-the-art performance on link prediction and node clustering while remaining significantly faster than existing spatial methods.

What Problem Does This Paper Address?

Most research in Graph Neural Networks (GNNs) focuses on "simple" graphs—those that are undirected and have only positive edge weights. However, real-world data is rarely that simple. Consider a social network where users can "follow" (direction) and "like" or "dislike" (sign) each other, or financial markets where one stock's price might "lead" or "lag" another's (direction) with a positive or negative correlation (sign).

Existing GNNs typically handle either signs or directions, but rarely both effectively. Spectral GNNs, which rely on the "eigen-decomposition" of a graph's Laplacian matrix to perform convolutions, have particularly lagged behind in this area. The challenge lies in defining a proper Laplacian matrix that can simultaneously capture both the sign and the direction of an edge without losing mathematical properties like being "positive semidefinite," which is crucial for stable learning.

Methods

The authors introduce the Magnetic Signed Laplacian, a complex-valued Hermitian matrix that unifies two previous concepts:

  1. The Magnetic Laplacian: Used for directed graphs, it uses a "charge parameter" $q$ to encode direction as a phase shift in the complex plane.
  2. The Signed Laplacian: Used for undirected signed graphs to account for positive and negative edges.

In this new framework, flipping the direction of an edge corresponds to taking the complex conjugate of the matrix entry. This elegant mathematical formulation allows the GNN to "feel" the directionality through the phase of complex numbers.

To make the model efficient, the authors built MSGNN (Magnetic Signed GNN). Instead of performing an expensive full eigen-decomposition of the matrix, they use Chebyshev polynomials to approximate the spectral filters. This allows the model to perform convolutions locally in the spatial domain while maintaining the theoretical advantages of a spectral approach.

Datasets

The paper evaluates MSGNN on a mix of synthetic and real-world datasets:

  • Synthetic: They introduce a new Signed Directed Stochastic Block Model (SDSBM) to create benchmarks where both sign and direction are necessary to identify clusters.
  • Standard Benchmarks: Bitcoin-Alpha, Bitcoin-OTC, Slashdot, and Epinions—all of which contain signed and directed edges.
  • New Financial Benchmarks: The authors contributed the FiLL (Financial Lead-Lag) datasets. These are constructed from 20 years of daily stock returns (2000–2020), where edges represent the lead-lag relationship between pairs of stocks.

Key Insights and Ideas

  • Joint Information is Critical: The authors demonstrate that in many networks, ignoring either the sign or the direction "ruins" the ability to find the underlying structure. As shown in their synthetic model illustration, two groups of fans might look identical if you only look at who they follow, but they are easily distinguished if you also look at whether their "mentions" are positive or negative.
SDSBM illustration showing how clusters are defined by both sign and direction.
  • Complex Numbers as a Natural Fit: Using complex numbers to represent directionality isn't just a gimmick; it provides a principled way to ensure the Laplacian remains Hermitian and positive semidefinite, ensuring the GNN's training is stable and mathematically sound.
  • Efficiency Matters: While attention-based spatial GNNs (like SNEA) are powerful, they are often slow. MSGNN proves that a well-designed spectral method can be both more accurate and an order of magnitude faster.

Key Results

  • Link Prediction Dominance: MSGNN achieved the highest accuracy in all 25 test cases across five different real-world datasets, outperforming established models like SGCN, SDGNN, and SNEA.
  • Speedup: On the Slashdot dataset, MSGNN was roughly 25x faster than the high-performing SNEA model (227 seconds vs. 5792 seconds).
  • Superiority over Concurrent Work: It consistently outperformed SigMaNet, a concurrent spectral method. The authors noted that SigMaNet has a flaw where nodes with an equal number of positive and negative neighbors are effectively ignored (assigned a degree of zero), a problem MSGNN avoids.

Limitations and Future Work

While MSGNN is a significant step forward, the authors acknowledge several areas for growth:

  • Temporal Dynamics: Currently, the model treats graphs as static. Extending this to temporal or dynamic graphs where relationships evolve over time is a key next step.
  • Edge Features: The current model focuses on edge signs and directions; incorporating more complex edge features (like text or categorical data) remains an open challenge.
  • Hypergraphs: The authors are interested in extending this "magnetic" approach to hypergraphs, where edges can connect more than just two nodes.

Summary updated

BibTeX
@inproceedings{he2022msgnn,
  author = {Yixuan He and Michael Permultter and Gesine Reinert and Mihai Cucuringu},
  title = {{MSGNN: A Spectral Graph Neural Network Based on a Novel Magnetic Signed Laplacian}},
  booktitle = {LoG},
  year = {2022},
  url = {https://openreview.net/forum?id=KUGwmnSdPV3},
}
Figure