吉林大学学报(工学版) ›› 2025, Vol. 55 ›› Issue (7): 2365-2371.doi: 10.13229/j.cnki.jdxbgxb.20231143

• 计算机科学与技术 • 上一篇    

融合全局与局部细粒度特征的图相似度度量算法

车翔玖(),李良   

  1. 吉林大学 计算机科学与技术学院,长春 130012
  • 收稿日期:2023-10-23 出版日期:2025-07-01 发布日期:2025-09-12
  • 作者简介:车翔玖(1969-),男,教授,博士.研究方向:计算机图形学及大数据可视化.E-mail: chexj@jlu.edu.cn
  • 基金资助:
    国家自然科学基金项目(62172184);吉林省科技发展计划项目(20200401077GX);吉林省科技发展计划项目(ZD21100)

Graph similarity measurement algorithm combining global and local fine-grained features

Xiang-jiu CHE(),Liang LI   

  1. College of Computer Science and Technology,Jilin University,Changchun 130012,China
  • Received:2023-10-23 Online:2025-07-01 Published:2025-09-12

摘要:

由于计算两个图之间的精确相似度通常属于非确定性多项式时间难解(NP-hard)问题,因此需要解决精度和速度的权衡问题,本文提出了一种基于池化的图神经网络方法,有效地融合了图数据的全局粗粒度交互特征以及子图间节点的细粒度交互特征,在保证精度的前提下进一步降低了计算量。实验结果表明,本文方法在真实图数据集上表现出良好的性能,相较于现有方法,既提高了准确性,又提升了计算效率。

关键词: 计算机应用技术, 图神经网络, 图相似度计算, 图池化, 图编辑距离

Abstract:

Since calculating the exact similarity between two graphs is usually an NP-hard problem, the tradeoff between precision and speed needs to be addressed. In this paper, a pooling-based graph neural network method is proposed, which effectively integrates the coarse-grained interaction features of the graph data and the fine-grained interaction features of the nodes between the subgraphs, and further reduce the computational cost while ensuring the accuracy. The experimental results show that the proposed method has good performance on real graph data sets. Compared with existing methods, the proposed method not only improves the accuracy but also improves the computational efficiency.

Key words: computer application technology, graph neural network, graph similarity computation, graph pooling, graph edit distance

中图分类号: 

  • TP391.4

图1

GED示例"

图2

PGSC结构"

表1

AIDS数据集结果"

方法MSEρτp@10p@20
快速近似算法Beam12.0900.6090.4630.4810.493
Hungarian25.2960.5100.3780.3600.392
VJ29.1570.5170.3830.3100.345
GNN方法SimpleMean3.1150.6330.4800.2690.279
HierarchicalMean3.0460.6810.6290.2460.340
HierarchicalMax3.3960.6550.5050.2220.295
AttDegree3.3380.6280.4780.2090.279
AttGlobalContext1.4720.8130.6530.3760.473
AttLearnableGC1.3400.8250.6670.4000.488
SimGNN1.1890.8430.6900.4210.514

PGSC

(pool-hist)

2.2660.8590.6860.4420.521
PGSC2.1540.8610.6890.4680.550

表2

LINUX数据集结果"

方法MSEρτp@10p@20
快速近似算法Beam9.2680.8270.7140.9730.924
Hungarian29.8050.6380.5170.9130.836
VJ63.8630.5810.4500.2870.251

GNN

方法

SimpleMean16.9500.0200.0160.4320.465
HierarchicalMean6.4310.4300.5250.7500.618
HierarchicalMax6.5750.8790.7400.5510.575
AttDegree8.0640.7420.6090.4270.460
AttGlobalContext3.1250.9040.7810.8740.864
AttLearnableGC2.0550.9160.8040.9030.887
SimGNN1.5090.9390.8300.9420.933

PGSC

(pool-hist)

0.6780.9780.8820.9500.943
PGSC0.4290.9810.8870.9610.945

表3

IMDB数据集结果"

方法MSEρτp@10p@20
SimpleMean3.7490.7740.6440.5470.588
HierarchicalMean5.0190.4560.3780.5670.553
HierarchicalMax6.9930.4550.3540.5720.570
GNN方法AttDegree2.1440.8280.6950.7000.695
AttGlobalContext3.5550.6840.5530.6570.656
AttLearnableGC1.4550.8350.7000.7320.742
SimGNN1.2640.8780.7700.7590.777

PGSC

(pool-hist)

0.9100.8990.7790.8410.831
PGSC0.7360.9040.7840.8390.841

图3

查询示例可视化"

[1] 徐冰冰, 岑科廷, 黄俊杰, 等. 图卷积神经网络综述[J].计算机学报, 2020, 43(5): 755-780.
Xu Bing-bing, Cen Ke-ting, Huang Jun-jie, et al. A survey on graph convolutional neutral network[J]. Chinese Journal of Computers, 2020, 43(5): 755-780.
[2] 刘俊奇, 涂文轩, 祝恩. 图卷积神经网络综述[J].计算机工程与科学, 2023, 45(8): 1472-1481.
Liu Jun-qi, Tu Wen-xuan, Zhu En. Survey on graph convolutional neutral network[J]. Computer Engineering & Science, 2023, 45(8): 1472-1481.
[3] Kipf T N, Welling M. Semi-supervised classification with graph convolutional networks[J/OL].[2016-02-16]. .
[4] Hamilton W, Ying Z, Leskovec J. Inductive representation learning on large graphs[J]. Advances in Neural Information Processing Systems, 2017, 30: 1024-1034.
[5] Veličković P, Cucurull G, Casanova A, et al. Graph attention networks[[J/OL].[2017-06-16]. .
[6] Brody S, Alon U, Yahav E. How attentive are graph attention networks?[J/OL].[2021-06-26]. .
[7] Ying Z, You J, Morris C, et al. Hierarchical graph representation learning with differentiable pooling[J]. Advances in Neural Information Processing Systems, 2018, 31: 4800-4810.
[8] Gao H Y, Ji S W. Graph U-nets[C]∥Proceedings of the 36th International Conference on Machine Learning. New York: Curran Associates, Inc., International Machine Learning Society, 2019: 2083-2092.
[9] Lee J, Lee I, Kang J. Self-attention graph pooling[C]∥Proceedings of the 36th International Conference on Machine Learning. New York: Curran Associates, Inc., International Machine Learning Society, 2019: 3734-3743.
[10] Luo Y, McThrow M, Au W Y, et al. Automated data augmentations for graph classification[J/OL].[2022-08-11]. .
[11] Bai Y, Ding H, Bian S, et al. SimGNN: A neural network approach to fast graph similarity computation[C]∥Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining. Yew York: ACM, 2019: 384-392.
[12] Bai Y, Ding H, Gu K, et al. Learning-based efficient graph similarity computation via multi-scale convolutional set matching[J]. AAAI, 2020, 34(4): 3219-3226.
[13] Krizhevsky A, Sutskever I, Hinton G E. Imagenet classification with deep convolutional neural networks[J]. Advances in Neural Information Processing Systems, 2012, 25: 1106-1114.
[14] Ling X, Wu L, Wang S,et al.Multilevel graph matching networks for deep graph similarity learning[J]. IEEE Transactions on Neural Networks and Learning Systems, 2023, 34: 799-813.
[15] Qin C, Zhao H, Wang L, et al. Slow learning and fast inference: Efficient graph similarity computation via knowledge distillation[J]. Advances in Neural Information Processing Systems, 2021, 34: 14110-14121.
[16] Ranjan R, Grover S, Medya S, et al. GREED: a neural framework for learning graph distance functions[J]. Advances in Neural Information Processing Systems, 2022, 35: 22518-22530.
[17] Zhuo W, Tan G. Efficient graph similarity computation with alignment regularization[J]. Advances in Neural Information Processing Systems, 2022, 35: 30181-30193.
[18] Qureshi R J, Ramel J Y, Cardot H. Graph based shapes representation and recognition[C]∥Graph-Based Representations in Pattern Recognition: 6th IAPR-TC-15 International Workshop. Berlin: Springer, 2007: 49-60.
[19] Bromley J, Guyon I, LeCun Y, et al. Signature verification using a "siamese" time delay neural network[J]. Advances in Neural Information Processing Systems, 1993, 6: 737-744.
[20] Socher R, Chen D, Manning C D, et al. Reasoning with neural tensor networks for knowledge base completion[J]. Advances in Neural Information Processing Systems, 2013, 26: 926-934.
[21] Wang X, Ding X, Tung A K H, et al. An efficient graph indexing method[C]∥Proceedings of the 28th IEEE International Conference on Data Engineering, Piscataway, USA, 2012: 210-221.
[22] Yanardag P, Vishwanathan S V N. Deep graph kernels[C]∥Proceedings of the 21th ACM SIGKDD International Conference on Knowledge Discovery and Data Mining, New York,USA, 2015: 1365-1374.
[23] Neuhaus M, Riesen K, Bunke H. Fast suboptimal algorithms for the computation of graph edit distance[C]∥Structural, Syntactic, and Statistical Pattern Recognition, Berlin,Germany, 2006: 163-172.
[24] Kuhn H W. The Hungarian method for the assignment problem[J]. Naval Research Logistics Quarterly, 1955, 2(1/2): 83-97.
[25] Riesen K, Bunke H. Approximate graph edit distance computation by means of bipartite graph matching[J]. Image and Vision Computing, 2009, 27(7): 950-959.
[26] Fankhauser S, Riesen K, Bunke H. Speeding up graph edit distance computation through fast bipartite matching[C]∥Graph-Based Representations in Pattern Recognition: The 8th IAPR-TC-15 International Workshop, Berlin,Germany, 2011: 102-111.
[27] Jonker R, Volgenant T. A shortest augmenting path algorithm for dense and sparse linear assignment problems[J]. Computing, 1987, 38(4): 325-340.
[28] Defferrard M, Bresson X, Vandergheynst P. Convolutional neural networks on graphs with fast localized spectral filtering[J]. Advances in Neural Information Processing Systems, 2016, 29: 3844-3852.
[1] 柴树山,周志强,李海涛,徐炅旸. 基于图时空模式学习网络的路网实时交通事件自动检测方法[J]. 吉林大学学报(工学版), 2025, 55(7): 2145-2161.
[2] 周丰丰,郭喆,范雨思. 面向不平衡多组学癌症数据的特征表征算法[J]. 吉林大学学报(工学版), 2025, 55(6): 2089-2096.
[3] 王健,贾晨威. 面向智能网联车辆的轨迹预测模型[J]. 吉林大学学报(工学版), 2025, 55(6): 1963-1972.
[4] 车翔玖,孙雨鹏. 基于相似度随机游走聚合的图节点分类算法[J]. 吉林大学学报(工学版), 2025, 55(6): 2069-2075.
[5] 蔡晓东,周青松,张言言,雪韵. 基于动静态和关系特征全局捕获的社交推荐模型[J]. 吉林大学学报(工学版), 2025, 55(2): 700-708.
[6] 车翔玖,武宇宁,刘全乐. 基于因果特征学习的有权同构图分类算法[J]. 吉林大学学报(工学版), 2025, 55(2): 681-686.
[7] 张玺君,余光杰,崔勇,尚继洋. 基于聚类算法和图神经网络的短时交通流预测[J]. 吉林大学学报(工学版), 2024, 54(6): 1593-1600.
[8] 梁礼明,周珑颂,尹江,盛校棋. 融合多尺度Transformer的皮肤病变分割算法[J]. 吉林大学学报(工学版), 2024, 54(4): 1086-1098.
[9] 拉巴顿珠,扎西多吉,珠杰. 藏语文本标准化方法[J]. 吉林大学学报(工学版), 2024, 54(12): 3577-3588.
[10] 叶育鑫,夏珞珈,孙铭会. 增强现实环境中基于假想键盘的手势输入方法[J]. 吉林大学学报(工学版), 2024, 54(11): 3274-3282.
[11] 车娜,朱奕明,赵剑,孙磊,史丽娟,曾现伟. 基于联结主义的视听语音识别方法[J]. 吉林大学学报(工学版), 2024, 54(10): 2984-2993.
[12] 薛珊,张亚亮,吕琼莹,曹国华. 复杂背景下的反无人机系统目标检测算法[J]. 吉林大学学报(工学版), 2023, 53(3): 891-901.
[13] 时小虎,吴佳琦,吴春国,程石,翁小辉,常志勇. 基于残差网络的弯道增强车道线检测方法[J]. 吉林大学学报(工学版), 2023, 53(2): 584-592.
[14] 王振,杨宵晗,吴楠楠,李国坤,冯创. 基于生成对抗网络的序列交叉熵哈希[J]. 吉林大学学报(工学版), 2023, 53(12): 3536-3546.
[15] 周丰丰,颜振炜. 基于混合特征的特征选择神经肽预测模型[J]. 吉林大学学报(工学版), 2023, 53(11): 3238-3245.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!