Skip to main content
QUICK REVIEW

[Paper Review] Graph Similarity and Approximate Isomorphism

Martin Grohe, Gaurav Rattan|arXiv (Cornell University)|Jan 1, 2018
Graph Theory and AlgorithmsComputer Science3 references14 citations
TL;DR

This paper establishes the NP-hardness of the weighted graph similarity problem (WSim) even for trees and identifies a tractable regime: when one graph's adjacency matrix has bounded clustering number. It presents a polynomial-time algorithm for this case using spectral decomposition and convex optimization over partitioned subspaces, leveraging matrix similarity and positive semi-definite structure to achieve efficient computation of approximate graph isomorphism.

ABSTRACT

The graph similarity problem, also known as approximate graph isomorphism or graph matching problem, has been extensively studied in the machine learning community, but has not received much attention in the algorithms community: Given two graphs G,H of the same order n with adjacency matrices A_G,A_H, a well-studied measure of similarity is the Frobenius distance dist(G,H):=min_{pi}|A_G^{pi}-A_H|_F, where pi ranges over all permutations of the vertex set of G, where A_G^pi denotes the matrix obtained from A_G by permuting rows and columns according to pi, and where |M |_F is the Frobenius norm of a matrix M. The (weighted) graph similarity problem, denoted by GSim (WSim), is the problem of computing this distance for two graphs of same order. This problem is closely related to the notoriously hard quadratic assignment problem (QAP), which is known to be NP-hard even for severely restricted cases. It is known that GSim (WSim) is NP-hard; we strengthen this hardness result by showing that the problem remains NP-hard even for the class of trees. Identifying the boundary of tractability for WSim is best done in the framework of linear algebra. We show that WSim is NP-hard as long as one of the matrices has unbounded rank or negative eigenvalues: hence, the realm of tractability is restricted to positive semi-definite matrices of bounded rank. Our main result is a polynomial time algorithm for the special case where the associated (weighted) adjacency graph for one of the matrices has a bounded number of twin equivalence classes. The key parameter underlying our algorithm is the clustering number of a graph; this parameter arises in context of the spectral graph drawing machinery.

Motivation & Objective

  • To establish the computational complexity of the weighted graph similarity problem (WSim) in restricted graph classes.
  • To identify the boundary of tractability for WSim by analyzing matrix rank and eigenvalue structure.
  • To develop a polynomial-time algorithm for WSim when one graph has bounded clustering number.
  • To formalize the connection between graph similarity and the quadratic assignment problem (QAP), especially in the context of positive semi-definite matrices.
  • To provide a theoretical foundation for approximate graph isomorphism in machine learning and database schema matching.

Proposed method

  • Reduces the Hamiltonian path problem to WSim to prove NP-hardness even for trees.
  • Uses spectral decomposition of adjacency matrices A and B to reframe the Frobenius distance minimization as a maximization of Tr(Aπ, B).
  • Introduces the clustering number of a matrix as a structural parameter to define tractable instances.
  • Reformulates the optimization problem over permutations as a quadratic vector partition (QVP) problem over clusters of eigenvectors.
  • Applies convex optimization techniques to maximize a sum of weighted inner products under partition constraints.
  • Employs hyperplane separation arguments in R^k to show existence of optimal k-point hyperplanes for clustering.

Experimental results

Research questions

  • RQ1Is the weighted graph similarity problem (WSim) NP-hard for trees, despite their simple structure?
  • RQ2What structural properties of the adjacency matrices make WSim tractable?
  • RQ3Can the graph similarity problem be solved in polynomial time when one matrix has bounded clustering number?
  • RQ4How does the Frobenius distance between graphs relate to the quadratic assignment problem (QAP)?
  • RQ5What role do positive semi-definiteness and bounded rank play in the tractability of WSim?

Key findings

  • WSim is NP-hard even when restricted to trees, strengthening prior hardness results.
  • WSim remains NP-hard if at least one of the matrices has unbounded rank or negative eigenvalues.
  • The problem becomes tractable only when both matrices are positive semi-definite and of bounded rank.
  • A polynomial-time algorithm is presented for WSim when one matrix has bounded clustering number.
  • The algorithm uses spectral decomposition and convex optimization over cluster partitions to compute optimal permutations efficiently.
  • The solution relies on transforming the permutation problem into a convex quadratic program over cluster-level vectors, solvable in polynomial time.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.