Aligning random graphs with a sub-tree similarity message-passing algorithm

Giovanni Piccioli, Guilhem Semerjian, Gabriele Sicuro, Lenka Zdeborová

This paper explores the Graph Alignment Problem (GAP)—the challenge of finding a matching between the vertices of two similar graphs. While this is generally an NP-hard problem (equivalent to the quadratic assignment problem), the authors focus on the "average-case" scenario: aligning two correlated random graphs in the sparse regime.

TL;DR

The authors develop a polynomial-time message-passing algorithm that uses local tree-like neighborhoods to partially recover the hidden mapping between two correlated Erdős-Rényi graphs. Their work identifies a clear algorithmic threshold (around correlation $s \approx 0.6$) and provides numerical evidence for a "hard phase" where recovery is theoretically possible but computationally out of reach for local algorithms.

What Problem Does This Paper Address?

Graph alignment is a fundamental task in fields ranging from social network de-anonymization to biological protein-interaction mapping. The core difficulty is that we observe two graphs where the node labels have been shuffled, and we need to figure out which node in Graph A corresponds to which node in Graph B.

Most previous research focused on "dense" graphs (where nodes have many connections). This paper tackles the sparse regime, where the average degree remains constant even as the number of nodes ($n$) grows to infinity. In this regime, "perfect" recovery of the mapping is often impossible, so the authors aim for partial recovery—correctly identifying a finite fraction of the node pairs.

Methods

The authors propose a message-passing algorithm based on sub-tree similarity. Their approach relies on two key ideas:

  1. Locally Tree-like Structure: Sparse random graphs look like trees if you only look at a small neighborhood around a node. The algorithm exploits this by comparing the "computational trees" rooted at nodes in both graphs.
  2. Truncated Posterior Inference: Instead of trying to solve the global alignment problem (which is intractable), the algorithm computes a "score" for every possible pair of nodes $(i, i')$. This score is the likelihood ratio: how much more likely is it that these two local neighborhoods were generated from correlated roots versus independent ones?

The Algorithm: * It iteratively updates "messages" between pairs of nodes across the two graphs. * The core update function $f$ involves a sum over all possible permutations of a node's neighbors. Because degrees are small in the sparse regime, this factorial-time step remains manageable. * After $d$ iterations (representing a neighborhood of depth $d$), the algorithm assigns each node in Graph A to the node in Graph B with the highest similarity score.

Datasets

The paper is primarily theoretical and uses synthetic datasets to validate the algorithm:

  • Correlated Erdős-Rényi (ER) Graphs: The standard benchmark where edges are present with a fixed probability and correlated between the two copies.
  • Generalized Ensembles: The authors introduce a new model that allows for prescribed degree distributions (e.g., power-law graphs), showing their algorithm can be adapted beyond the standard ER model.
  • Weighted Graphs: An extension for cases where edges have associated numerical values (weights).

Key Insights and Ideas

  • The Depth Trade-off: There is an optimal neighborhood depth $d$. Increasing $d$ provides more information, but eventually, the "tree-like" assumption fails as the algorithm encounters cycles in the graph. These cycles introduce "noise" that makes the algorithm overconfident and less accurate.
  • The "Hard Phase": The results suggest a gap between what is mathematically possible and what is computationally efficient. For certain parameters, an "all-powerful" observer could recover the mapping, but this local message-passing algorithm fails.
  • Nishimori Condition: The authors use a concept from statistical physics to check if their algorithm is "well-calibrated." They find that as long as the neighborhood is truly a tree, the algorithm's estimated probability of being correct matches the actual success rate.
  • Failure on Regular Graphs: Interestingly, the algorithm is useless for "regular" graphs (where every node has the exact same degree). In such graphs, every local neighborhood looks identical, providing no "fingerprint" for the algorithm to latch onto.

Key Results

  • Algorithmic Threshold: For Erdős-Rényi graphs with average degrees between 1 and 3, the algorithm consistently achieves partial recovery once the correlation $s$ exceeds approximately 0.6.
  • Scale Invariance: This threshold $s \approx 0.6$ appears surprisingly independent of the average degree $\lambda$ in the tested range.
  • Numerical Validation: Through extensive simulations (up to $n=2048$ nodes), the authors mapped out the "easy," "hard," and "impossible" phases of the problem, providing a clearer picture of the computational landscape of graph alignment.

Limitations and Future Work

  • Computational Complexity: While polynomial in $n$, the algorithm's complexity grows factorially with the node degree. This makes it unsuitable for "dense" parts of a graph or nodes with very high degrees (hubs).
  • Local vs. Global: Because the algorithm only looks at local neighborhoods, it cannot exploit global graph properties that might help in the "hard phase."
  • Future Directions: The authors suggest exploring "seeded" versions of the problem (where some node mappings are known in advance) and investigating whether more sophisticated global techniques could close the gap in the hard phase.

Summary updated

BibTeX
@article{piccioli2022aligning,
  author = {Giovanni Piccioli and Guilhem Semerjian and Gabriele Sicuro and Lenka Zdeborová},
  title = {{Aligning random graphs with a sub-tree similarity message-passing algorithm}},
  journal = {Journal of Statistical Mechanics Theory and Experiment},
  year = {2022},
  doi = {10.1088/1742-5468/ac70d2},
}
Figure