Journal of Computer Applications ›› 2024, Vol. 44 ›› Issue (11): 3327-3334.DOI: 10.11772/j.issn.1001-9081.2023101526

• Artificial intelligence • Previous Articles     Next Articles

Graph classification method based on graph pooling contrast learning

Nengbing HU, Biao CAI(), Xu LI, Danhua CAO   

  1. College of Computer Science and Cyber Security (College of Oxford Brooks),Chengdu University of Technology,Chengdu Sichuan 610059,China
  • Received:2023-11-18 Revised:2024-02-01 Accepted:2024-02-05 Online:2024-11-13 Published:2024-11-10
  • Contact: Biao CAI
  • About author:HU Nengbing, born in 1998, M. S. candidate. His research interests include graph neural networks, graph contrast learning.
    LI Xu, born in 1997, M. S. candidate. His research interests include graph neural networks, graph contrast learning.
    CAO Danhua, born in 2000, M. S. candidate. His research interests include deep learning.

基于图池化对比学习的图分类方法

胡能兵, 蔡彪(), 李旭, 曹旦华   

  1. 成都理工大学 计算机与网络安全学院(牛津布鲁克斯学院),成都 610059
  • 通讯作者: 蔡彪
  • 作者简介:胡能兵(1998—),男,四川成都人,硕士研究生,CCF会员,主要研究方向:图神经网络、图对比学习
    李旭(1997—),男,四川资阳人,硕士研究生,CCF会员,主要研究方向:图神经网络、图对比学习
    曹旦华(2000—),男,江苏泰州人,硕士研究生,CCF会员,主要研究方向:深度学习。
  • 基金资助:
    国家自然科学基金资助项目(61802034)

Abstract:

In the tasks of graph classification, the graph embedding representations obtained by the existing dropped nodes based graph pooling algorithms do not effectively utilize the implicit information in the dropped nodes and the node information between graphs. Meanwhile, traditional methods do not learn the graph embedding separately, thereby limiting some of its performance in graph classification tasks. To address the shortcomings of traditional methods, a Graph classification method based on graph Pooling Contrast Learning (GPCL) was proposed to effectively utilize the dropped node information. Firstly, the graph attention mechanism was utilized to learn the corresponding attention score for each node, and the nodes were sorted based on the attention scores and the nodes with lower scores were dropped out. Then, the nodes retained in the graph were treated as positive samples, while the dropped nodes from other graphs were treated as negative samples, the embedding representation of the graph was considered as the target node, and the pairwise similarity scores were calculated for contrast learning. Experimental results demonstrate that on D&D (Dobson PD-Doig AJ), MUTAG, PROTEINS, and IMDB-B datasets, GPCL improves the accuracy in graph classification tasks by 5.79, 15.54, 5.42, and 1.75 percentage points respectively compared to the method using attention mechanism with hierarchical pooling alone. It is verified that GPCL enhances the utilization of inter-graph information effectively and performances well in graph classification tasks.

Key words: graph classification, graph contrast learning, graph pooling, graph neural network, unsupervised learning

摘要:

在图分类任务中,现有的利用丢弃节点的图池化算法得到的图嵌入表示没有有效地利用丢弃节点蕴含的信息和图间节点信息,同时传统方法也没有针对图嵌入进行单独学习,限制了它在图分类任务上的部分性能。为克服上述传统方法的不足,提出一种有效利用丢弃节点信息的图嵌入方法——基于图池化对比学习的图分类方法(GPCL)。首先,利用图注意力机制学习每个节点相应的注意力分数,且根据注意力分数对节点进行排序并丢弃分数较低的节点;其次,将本图保留的节点作为正样本,将其他图被丢弃的部分节点作为负样本,而将图的嵌入表达作为目标节点,两两计算相似性分数,从而进行对比学习。实验结果表明:在D&D (Dobson PD-Doig AJ)、MUTAG、PROTEINS和IMDB-B数据集上,相较于仅使用注意力机制和分层池化的方法,GPCL在图分类任务上的准确率分别提升了5.79、15.54、5.42和1.75个百分点,验证了GPCL充分提高了图间信息的利用率,在图分类任务上表现良好。

关键词: 图分类, 图对比学习, 图池化, 图神经网络, 无监督学习

CLC Number: