arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2505.02124cs.LG
收藏

GRAIL:使用LLM生成代码进行图编辑距离计算与节点对齐

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

Google DeepMind(谷歌DeepMind)

Samidha Verma, Arushi Goyal, Ananya Mathur, Ankit Anand, Sayan Ranu

AI总结:

本文提出GRAIL方法,通过LLM生成代码而非训练神经模型来计算图编辑距离,实现了端到端可解释性和无监督自进化学习,并在多个数据集上取得领先的近似精度和跨领域泛化能力。

摘要:

图编辑距离(GED)是一种广泛用于衡量两个图之间相似性的度量。计算最优GED是NP难问题,这促使了各种神经和非神经启发式方法的发展。虽然神经方法相比非神经方法在近似质量上有所提升,但它们面临重大挑战:(1)它们需要大量真实标签数据,而这些数据本身的计算就是NP难问题。(2)它们作为黑箱运行,可解释性有限。(3)它们缺乏跨领域泛化能力,每个新数据集都需要昂贵的重新训练。我们通过GRAIL来解决这些局限性,在该领域引入了一种范式转变。GRAIL不训练神经模型来预测GED,而是采用大语言模型(LLMs)与自动提示调优的新颖组合来生成用于计算GED的程序。这种从预测GED到生成程序的转变带来了多种优势,包括端到端可解释性和无需真实标签监督的自主自进化学习机制。在七个数据集上的大量实验证实,GRAIL不仅在预测质量上超越了最先进的GED近似方法,而且在多样的图分布上实现了稳健的跨领域泛化。

英文摘要:

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.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑