Journal of Jilin University(Engineering and Technology Edition) ›› 2025, Vol. 55 ›› Issue (7): 2365-2371.doi: 10.13229/j.cnki.jdxbgxb.20231143

Previous Articles    

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

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

CLC Number: 

  • TP391.4

Fig.1

Example of GED"

Fig.2

PGSC structure"

Table 1

Results on AIDS data set"

方法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

Table 2

Results on LINUX data set"

方法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

Table 3

Results on IMDB data set"

方法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

Fig.3

Query examples visualization"

[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] Shu-shan CHAI,Zhi-qiang ZHOU,Hai-tao LI,Jiong-yang XU. Real-time road network traffic anomaly incident detection based on graph spatial-temporal pattern learning network [J]. Journal of Jilin University(Engineering and Technology Edition), 2025, 55(7): 2145-2161.
[2] Feng-feng ZHOU,Zhe GUO,Yu-si FAN. Feature representation algorithm for imbalanced classification of multi⁃omics cancer data [J]. Journal of Jilin University(Engineering and Technology Edition), 2025, 55(6): 2089-2096.
[3] Jian WANG,Chen-wei JIA. Trajectory prediction model for intelligent connected vehicle [J]. Journal of Jilin University(Engineering and Technology Edition), 2025, 55(6): 1963-1972.
[4] Xiang-jiu CHE,Yu-peng SUN. Graph node classification algorithm based on similarity random walk aggregation [J]. Journal of Jilin University(Engineering and Technology Edition), 2025, 55(6): 2069-2075.
[5] Xiao-dong CAI,Qing-song ZHOU,Yan-yan ZHANG,Yun XUE. Social recommendation based on global capture of dynamic, static and relational features [J]. Journal of Jilin University(Engineering and Technology Edition), 2025, 55(2): 700-708.
[6] Xiang-jiu CHE,Yu-ning WU,Quan-le LIU. A weighted isomorphic graph classification algorithm based on causal feature learning [J]. Journal of Jilin University(Engineering and Technology Edition), 2025, 55(2): 681-686.
[7] Xi-jun ZHANG,Guang-jie YU,Yong CUI,Ji-yang SHANG. Short-term traffic flow prediction based on clustering algorithm and graph neural network [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(6): 1593-1600.
[8] Li-ming LIANG,Long-song ZHOU,Jiang YIN,Xiao-qi SHENG. Fusion multi-scale Transformer skin lesion segmentation algorithm [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(4): 1086-1098.
[9] Dondrub LHAKPA,Duoji ZHAXI,Jie ZHU. Tibetan text normalization method [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(12): 3577-3588.
[10] Yu-xin YE,Luo-jia XIA,Ming-hui SUN. Gesture input method based on transparent keyboard in augmented reality environment [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(11): 3274-3282.
[11] Na CHE,Yi-ming ZHU,Jian ZHAO,Lei SUN,Li-juan SHI,Xian-wei ZENG. Connectionism based audio-visual speech recognition method [J]. Journal of Jilin University(Engineering and Technology Edition), 2024, 54(10): 2984-2993.
[12] Ya-hui ZHAO,Fei-yu LI,Rong-yi CUI,Guo-zhe JIN,Zhen-guo ZHANG,De LI,Xiao-feng JIN. Korean⁃Chinese translation quality estimation based on cross⁃lingual pretraining model [J]. Journal of Jilin University(Engineering and Technology Edition), 2023, 53(8): 2371-2379.
[13] Shan XUE,Ya-liang ZHANG,Qiong-ying LYU,Guo-hua CAO. Anti⁃unmanned aerial vehicle system object detection algorithm under complex background [J]. Journal of Jilin University(Engineering and Technology Edition), 2023, 53(3): 891-901.
[14] Zhen WANG,Xiao-han YANG,Nan-nan WU,Guo-kun LI,Chuang FENG. Ordinal cross entropy Hashing based on generative adversarial network [J]. Journal of Jilin University(Engineering and Technology Edition), 2023, 53(12): 3536-3546.
[15] Feng-feng ZHOU,Zhen-wei YAN. A model for identifying neuropeptides by feature selection based on hybrid features [J]. Journal of Jilin University(Engineering and Technology Edition), 2023, 53(11): 3238-3245.
Viewed
Full text


Abstract

Cited

  Shared   
  Discussed   
No Suggested Reading articles found!