GREED: A Neural Framework for Learning Graph Distance Functions

Rishabh Ranjan, Siddharth Grover, Sourav Medya, Venkatesan Chakaravarthy, Yogish Sabharwal +1 more
12/24/2021
73 citations
cs.LG

Official code: idea-iitd/greed (31 stars, Python, MIT, PyTorch, last commit 2023-07-16).

Abstract

Among various distance functions for graphs, graph and subgraph edit distances (GED and SED respectively) are two of the most popular and expressive measures. Unfortunately, exact computations for both are NP-hard.

Show full abstract

To overcome this computational bottleneck, neural approaches to learn and predict edit distance in polynomial time have received much interest. While considerable progress has been made, there exist limitations that need to be addressed. First, the efficacy of an approximate distance function lies not only in its approximation accuracy, but also in the preservation of its properties. To elaborate, although GED is a metric, its neural approximations do not provide such a guarantee. This prohibits their usage in higher order tasks that rely on metric distance functions, such as clustering or indexing. Second, several existing frameworks for GED do not extend to SED due to SED being asymmetric. In this work, we design a novel siamese graph neural network called GREED, which through a carefully crafted inductive bias, learns GED and SED in a property-preserving manner. Through extensive experiments across 10 real graph datasets containing up to 7 million edges, we establish that GREED is not only more accurate than the state of the art, but also up to 3 orders of magnitude faster. Even more significantly, due to preserving the triangle inequality, the generated embeddings are indexable and consequently, even in a CPU-only environment, GREED is up to 50 times faster than GPU-powered baselines for graph / subgraph retrieval.

View on arXivView PDF

Code Implementations(1)

idea-iitd/greedOfficial100%
PyTorchMIT

official repo for the NeurIPS 2022 paper "GREED: A Neural Framework for Learning Graph Distance Functions"

313Python, C++Oct 15, 20213 years agoMIT
deep-learninggraph-neural-networkslearning-graph-distancespytorch

Similar Papers

Cite this paper

@article{ranjan2021greed,
  title  = {GREED: A Neural Framework for Learning Graph Distance Functions},
  author = {Rishabh Ranjan and Siddharth Grover and Sourav Medya and Venkatesan Chakaravarthy and Yogish Sabharwal and Sayan Ranu},
  year   = {2021},
  eprint = {2112.13143},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2112.13143}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2112.13143.svg)](https://codeofpaper.com/paper/2112.13143)

Discussion