Harnessing spectral representations for subgraph alignment

Marco Pegoraro, Riccardo Marin, Arianna Rampini, Simone Melzi, Luca Cosmo, Emanuele Rodolà

TL;DR

This paper adapts the functional maps framework—originally created for 3D shape matching in geometry processing—to the challenging domain of subgraph alignment. By representing mappings between graphs in the spectral domain via graph Laplacian eigenvectors, the authors show that graph eigenspaces remain remarkably well-preserved even under heavy partiality and topological rewiring, enabling fast, compact, and noise-resilient graph correspondence and signal transfer.

What Problem Does This Paper Address?

Graph matching and subgraph alignment—identifying how a smaller graph $G_2$ corresponds to a subgraph within a larger graph $G_1$—is fundamental to applications ranging from bioinformatics (protein-protein interaction networks) to social network analysis.

Traditionally, this problem is framed as a quadratic assignment problem seeking a binary node-to-node correspondence matrix $S \in \{0, 1\}^{|V_2| \times |V_1|}$. This formulation is NP-hard and scales quadratically in memory, quickly becoming intractable for graphs with thousands of nodes. The problem becomes significantly harder when:

  1. Large portions of the graph are missing (partiality).
  2. The subgraph is non-isomorphic due to missing or spurious edges (topological noise/rewiring).
  3. The domain lacks a smooth continuous manifold, invalidating classic geometric assumptions.

The authors tackle how to represent and compute maps between graphs and subgraphs compactly and robustly.

Methods

Instead of tracking permutations over individual nodes, the authors represent mappings in a reduced spectral basis:

  1. Spectral Graph Representation: For graphs $G_1$ and $G_2$, the first $k$ eigenvectors of their symmetric normalized Laplacians ($\mathcal{L} = I - D^{-1/2}AD^{-1/2}$) form orthogonal basis matrices $\Phi_1 \in \mathbb{R}^{|V_1| \times k}$ and $\Phi_2 \in \mathbb{R}^{|V_2| \times k}$, with $k \ll |V|$.
  2. Functional Map Matrix: A node-to-node correspondence $S$ is compressed into a compact $k \times k$ matrix: $$C = \Phi_2^\top S \Phi_1$$ $C$ directly transfers graph signals $f: V_1 \to \mathbb{R}$ to $G_2$ without recovering node correspondences: $\hat{g} = \Phi_2 C \Phi_1^\top f$.

  3. Map Inference: When $S$ is unknown, $C$ is computed by minimizing descriptor preservation errors $\min_C \|CA - B\|_{2,1} + \mathcal{R}(C)$ (using landmark-based probe features and manifold optimization), followed by spectral refinement via ZoomOut.

Graph G1 (Large)                              Graph G2 (Subgraph)
   Signals f                                     Transferred ĝ
       │                                               ▲
(Project: Φ1ᵀ f)                              (Reconstruct: Φ2 ·)
       ▼                                               │
Coefficients a ─────── [ Functional Map C ] ───────► Coefficients b

Datasets

The authors evaluated their framework on diverse benchmarks spanning multiple domains:

  • 3D Meshes: Cat (SHREC’16 partial deformable shape mesh, 10,000 nodes).
  • Road Networks: Minnesota (2,635 nodes).
  • Citation Networks: Cora (2,485 nodes) and Citeseer (2,120 nodes).
  • Bioinformatics / Chemistry: PPI 0 & PPI 13 (protein-protein interactions, up to 3,480 nodes) and QM9 molecules (29 nodes).
  • Social Networks: Zachary’s Karate Club (34 nodes) and Douban (online-offline social graph alignment, 3,906 nodes).
  • E-Commerce Co-purchase / Fraud: Amazon Photo (7,487 nodes), Amazon Computer (13,381 nodes), and FraudAmazon (11,944 nodes).

Key Insights and Ideas

  • Algebraic Eigenspace Preservation: In continuous 2D Riemannian geometry, the approximate diagonal structure of functional maps between partial shapes is explained by Weyl’s asymptotic law. Graphs lack continuous metrics, yet Laplacian eigenspaces still display striking correlation across subgraphs, yielding structured, sparse functional maps.
  • Resilience to Rewiring: Random edge additions and deletions distort spectra locally without collapsing the global eigenspace structure. Rewiring up to 30% of edges altered the functional map less than standard Gaussian noise ($\sigma = 0.2$), especially on larger graphs.
  • Low-Pass Regularization: Keeping only $k \approx 20\text{--}50$ eigenvectors acts as a band-limited filter. This natural regularization filters high-frequency noise while retaining sufficient information to reconstruct node-level signals.

Key Results

  • Signal Transfer: Transferring Random Walk Positional Encodings (PE) using just 10%–30% of the eigenvectors yielded low Root Mean Squared Error (RMSE) across all tested graphs, providing near-identical signal reconstruction at 75% of the spectrum.
  • Alignment Accuracy (MAP):
  • On Minnesota (subgraph patch), functional mapping with ZoomOut achieved 89% Mean Average Precision (MAP), outperforming REGAL (87%), GRASP (18%), and IsoRank (0.2%).
  • On Cora (semantic class removal), functional mapping achieved 71% MAP, outperforming REGAL (55%) and GRASP (51%).
  • Truncated ground-truth functional maps preserved up to 92%–94% MAP on Cat and Minnesota using only $k=50$ eigenvectors.
  • Computational Efficiency: On Cat (10,000 nodes), functional map inference took ~26 seconds total (20.7s + 5.4s for refinement), compared to REGAL (36.8s), FINAL (156s), IsoRank (270s), GRASP (1057s), and PALE (3586s).

Limitations and Future Work

  • Radically Incompatible Eigenspaces: On datasets like Douban—where the online and offline graphs diverge drastically in both topology and node identities—Laplacian eigenspaces fail to align, causing the method's accuracy to drop significantly (3.1% MAP).
  • Underutilized Map Structure: The optimization currently relies on surface-derived regularizers (like resolvent masks). Tailoring regularizers to exploit graph-specific sparse patterns remains an open problem.
  • Future Directions: Exploring functional maps to transfer learned GNN representations, designing rewiring-invariant positional encodings, and aligning latent embedding spaces across disparate graphs.

Summary updated

BibTeX
@inproceedings{pegoraro2023harnessing,
  author = {Marco Pegoraro and Riccardo Marin and Arianna Rampini and Simone Melzi and Luca Cosmo and Emanuele Rodolà},
  title = {{Harnessing spectral representations for subgraph alignment}},
  booktitle = {International Conference on Learning Representations},
  year = {2023},
  url = {https://openreview.net/forum?id=EONdIvi64h-},
}
Figure