mlsanityData to 7 Oct 2026

GRAIL: Graph Edit Distance and Node Alignment Using LLM-Generated Code

arXiv 2505.02124 ↗First posted 4 May 2025cs.LGcited by 8

Not on the map. Why?

Abstract (arXiv)

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 predicting GED to generating programs imparts various advantages, including end-to-end interpretability and an autonomous self-evolutionary learning mechanism without ground-truth supervision. Extensive experiments on seven datasets confirm that GRAIL not only surpasses state-of-the-art GED approximation methods in prediction quality but also achieves robust cross-domain generalization across diverse graph distributions.

Key facts. Cited by 8 papers in the map (data through 7 Oct 2026). First posted on arXiv 4 May 2025.

Builds on

0 of 0 references.

No references here yet.

Built on by

Cited by year (2026 to 7 Oct)

Citing papers per year: 2025: 3; 2026: 5.

8 papers.

Similar, not cited

Close in wording, no citation either way

  1. 2025Towards Unsupervised Training of Matching-based Graph Edit Distance Solver via Preference-aware GAN
  2. 2025DiffGED: Computing Graph Edit Distance via Diffusion-based Graph Matching
  3. 2026A Unified Graph Language Model for Multi-Domain Multi-Task Graph Alignment Instruction Tuning
  4. 2024GraphTranslator: Aligning Graph Model to Large Language Model for Open-ended Tasks
  5. 2024GraphEdit: Large Language Models for Graph Structure Learning
  6. 2025Are LLMs Better GNN Helpers? Rethinking Robust Graph Learning under Deficiencies with Iterative Refinement
  7. 2025Generalizable LLM Learning of Graph Synthetic Data with Post-training Alignment
  8. 2024MLDGG: Meta-Learning for Domain Generalization on Graphs