GRAIL: Graph Edit Distance and Node Alignment Using LLM-Generated Code
Samidha Verma, Arushi Goyal, Ananya Mathur, Ankit Anand, Sayan Ranu

TL;DR
GRAIL leverages large language models and automated prompt tuning to generate interpretable programs for graph edit distance computation, overcoming data and generalization limitations of neural methods.
Contribution
It introduces a novel approach that uses LLM-generated code for GED calculation, eliminating the need for ground-truth data and enhancing interpretability and cross-domain adaptability.
Findings
Outperforms state-of-the-art GED approximation methods.
Demonstrates robust cross-domain generalization.
Provides interpretable, self-evolving GED computation programs.
Abstract
Graph Edit Distance (GED) is a widely used metric for measuring similarity between two graphs. Computing the optimal GED is NP-hard, leading to the development of various neural and non-neural heuristics. While neural methods have achieved improved approximation quality compared to non-neural approaches, they face significant challenges: (1) They require large amounts of ground truth data, which is itself NP-hard to compute. (2) They operate as black boxes, offering limited interpretability. (3) They lack cross-domain generalization, necessitating expensive retraining for each new dataset. We address these limitations with GRAIL, introducing a paradigm shift in this domain. Instead of training a neural model to predict GED, GRAIL employs a novel combination of large language models (LLMs) and automated prompt tuning to generate a program that is used to compute GED. This shift from…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
Taxonomy
TopicsSemantic Web and Ontologies · DNA and Biological Computing · Service-Oriented Architecture and Web Services
