<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE article PUBLIC "-//NLM//DTD JATS (Z39.96) Journal Publishing DTD v1.1 20151215//EN" "http://jats.nlm.nih.gov/publishing/1.1/JATS-journalpublishing1.dtd">
<article xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:mml="http://www.w3.org/1998/Math/MathML" xml:lang="en" article-type="research-article" dtd-version="1.1">
<front>
<journal-meta>
<journal-id journal-id-type="pmc">CMC</journal-id>
<journal-id journal-id-type="nlm-ta">CMC</journal-id>
<journal-id journal-id-type="publisher-id">CMC</journal-id>
<journal-title-group>
<journal-title>Computers, Materials &#x0026; Continua</journal-title>
</journal-title-group>
<issn pub-type="epub">1546-2226</issn>
<issn pub-type="ppub">1546-2218</issn>
<publisher>
<publisher-name>Tech Science Press</publisher-name>
<publisher-loc>USA</publisher-loc>
</publisher>
</journal-meta>
<article-meta>
<article-id pub-id-type="publisher-id">59610</article-id>
<article-id pub-id-type="doi">10.32604/cmc.2025.059610</article-id>
<article-categories>
<subj-group subj-group-type="heading">
<subject>Article</subject>
</subj-group>
</article-categories>
<title-group>
<article-title>Graph Similarity Learning Based on Learnable Augmentation and Multi-Level Contrastive Learning</article-title>
<alt-title alt-title-type="left-running-head">Graph Similarity Learning Based on Learnable Augmentation and Multi-Level Contrastive Learning</alt-title>
<alt-title alt-title-type="right-running-head">Graph Similarity Learning Based on Learnable Augmentation and Multi-Level Contrastive Learning</alt-title>
</title-group>
<contrib-group>
<contrib id="author-1" contrib-type="author" corresp="yes">
<name name-style="western"><surname>Feng</surname><given-names>Jian</given-names></name><xref rid="cor1" ref-type="corresp">&#x002A;</xref><email>fengjian@xust.edu.cn</email></contrib>
<contrib id="author-2" contrib-type="author">
<name name-style="western"><surname>Guo</surname><given-names>Yifan</given-names></name></contrib>
<contrib id="author-3" contrib-type="author">
<name name-style="western"><surname>Du</surname><given-names>Cailing</given-names></name></contrib>
<aff id="aff-1"><institution>College of Computer Science &#x0026; Technology, Xi&#x2019;an University of Science and Technology</institution>, <addr-line>Xi&#x2019;an, 710054</addr-line>, <country>China</country></aff>
</contrib-group>
<author-notes>
<corresp id="cor1"><label>&#x002A;</label>Corresponding Author: Jian Feng. Email: <email>fengjian@xust.edu.cn</email></corresp>
</author-notes>
<pub-date date-type="collection" publication-format="electronic">
<year>2025</year>
</pub-date>
<pub-date date-type="pub" publication-format="electronic">
<day>06</day><month>03</month><year>2025</year>
</pub-date>
<volume>82</volume>
<issue>3</issue>
<fpage>5135</fpage>
<lpage>5151</lpage>
<history>
<date date-type="received">
<day>12</day>
<month>10</month>
<year>2024</year>
</date>
<date date-type="accepted">
<day>19</day>
<month>12</month>
<year>2024</year>
</date>
</history>
<permissions>
<copyright-statement>&#x00A9; 2025 The Authors.</copyright-statement>
<copyright-year>2025</copyright-year>
<copyright-holder>Published by Tech Science Press.</copyright-holder>
<license xlink:href="https://creativecommons.org/licenses/by/4.0/">
<license-p>This work is licensed under a <ext-link ext-link-type="uri" xlink:type="simple" xlink:href="https://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</ext-link>, which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited.</license-p>
</license>
</permissions>
<self-uri content-type="pdf" xlink:href="TSP_CMC_59610.pdf"></self-uri>
<abstract>
<p>Graph similarity learning aims to calculate the similarity between pairs of graphs. Existing unsupervised graph similarity learning methods based on contrastive learning encounter challenges related to random graph augmentation strategies, which can harm the semantic and structural information of graphs and overlook the rich structural information present in subgraphs. To address these issues, we propose a graph similarity learning model based on learnable augmentation and multi-level contrastive learning. First, to tackle the problem of random augmentation disrupting the semantics and structure of the graph, we design a learnable augmentation method to selectively choose nodes and edges within the graph. To enhance contrastive levels, we employ a biased random walk method to generate corresponding subgraphs, enriching the contrastive hierarchy. Second, to solve the issue of previous work not considering multi-level contrastive learning, we utilize graph convolutional networks to learn node representations of augmented views and the original graph and calculate the interaction information between the attribute-augmented and structure-augmented views and the original graph. The goal is to maximize node consistency between different views and learn node matching between different graphs, resulting in node-level representations for each graph. Subgraph representations are then obtained through pooling operations, and we conduct contrastive learning utilizing both node and subgraph representations. Finally, the graph similarity score is computed according to different downstream tasks. We conducted three sets of experiments across eight datasets, and the results demonstrate that the proposed model effectively mitigates the issues of random augmentation damaging the original graph&#x2019;s semantics and structure, as well as the insufficiency of contrastive levels. Additionally, the model achieves the best overall performance.</p>
</abstract>
<kwd-group kwd-group-type="author">
<kwd>Graph similarity learning</kwd>
<kwd>contrastive learning</kwd>
<kwd>attributes</kwd>
<kwd>structure</kwd>
</kwd-group>
</article-meta>
</front>
<body>
<sec id="s1">
<label>1</label>
<title>Introduction</title>
<p>Graph similarity learning aims to compute the similarity between two graphs, which is crucial for various downstream applications, including graph-based database similarity search [<xref ref-type="bibr" rid="ref-1">1</xref>] and software homology detection [<xref ref-type="bibr" rid="ref-2">2</xref>].</p>
<p>Existing graph similarity learning methods mainly include traditional definition-based methods [<xref ref-type="bibr" rid="ref-3">3</xref>] and graph deep learning-based methods. Definition-based methods calculate the distance between graph pairs solely based on structural features, neglecting the rich attribute information within graphs and thereby limiting their applicability. In contrast, graph deep learning-based methods, which consider both structural and attribute features, have emerged as the mainstream in current research.</p>
<p>Graph similarity learning methods based on graph deep learning typically use Graph Neural Networks (GNNs), which require labeled data and are thus categorized as supervised learning. To address the high cost of manual labeling, unsupervised methods, particularly contrastive learning, have gained traction [<xref ref-type="bibr" rid="ref-4">4</xref>,<xref ref-type="bibr" rid="ref-5">5</xref>]. Contrastive learning learns representations by maximizing feature consistency across different augmented views [<xref ref-type="bibr" rid="ref-6">6</xref>] and has demonstrated exceptional performance in computer vision tasks [<xref ref-type="bibr" rid="ref-7">7</xref>]. Despite its success, applying contrastive learning to graph similarity learning presents several challenges.</p>
<p>Firstly, classic image augmentation techniques like grayscaling, rotation, and blurring preserve image semantics, as illustrated in <xref ref-type="fig" rid="fig-1">Fig. 1a</xref>, but applying similar methods to graphs may alter their semantics. For instance, random edge disconnection can significantly affect graph properties, as shown in <xref ref-type="fig" rid="fig-1">Fig. 1b</xref>, where disconnecting an edge increases the distance between communities. In <xref ref-type="fig" rid="fig-1">Fig. 1c</xref>, the graph&#x2019;s structure changes from the choice to a sequential one. This difference arises from the distinction between Euclidean (image) and non-Euclidean (graph) data, where images maintain spatial relationships, but graphs require preserving both semantic and structural consistency. In graph similarity learning, disruptions caused by augmentation can lead to issues like label inconsistency, where the augmented graph no longer aligns with the original labels, error propagation, which introduces biases in similarity computation, and reduced generalization, leading to unstable predictions on unseen data. Thus, designing effective graph augmentation strategies requires preserving the critical semantic and structural information of the original graph.</p>
<fig id="fig-1">
<label>Figure 1</label>
<caption>
<title>(a), (b), and (c) illustrate the differences between Euclidean and non-Euclidean structures during augmentation, while (d) shows significant substructures within graph structures</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_59610-fig-1a.tif"/>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_59610-fig-1b.tif"/>
</fig>
<p>Secondly, existing research often compares graph pairs solely at the node level, overlooking substructures that capture the mesoscopic information of graphs. For example, in <xref ref-type="fig" rid="fig-1">Fig. 1d</xref>, two compounds share the same substructure, which may result in similar properties. However, node-based graph similarity learning methods fail to identify these substructures, thereby missing critical local similarities.</p>
<p>This limitation stems from the inherent narrow focus of single-level approaches, which primarily analyze node-to-node relationships without considering hierarchical or multi-level graph features. Substructures, such as motifs or communities, represent mesoscopic patterns that capture intermediate relationships between local nodes and the global structure. Neglecting these patterns may lead to incomplete or misleading similarity scores.</p>
<p>Incorporating these hierarchical representations into graph similarity learning frameworks could enhance their ability to accurately capture and compare graphs across diverse domains. Effectively addressing these challenges remains a critical area for further research.</p>
<p>This paper introduces GSLM, a graph similarity learning model based on learnable augmentation and multi-level contrastive learning, to address the abovementioned issues. Augmented views are generated for each graph by modifying attributes and structure, with subgraphs enhancing the contrastive hierarchy. Node-level and subgraph-level representations are learned for each view, followed by joint contrastive training. Graph similarity scores are computed for downstream tasks. Evaluations on eight datasets show that GSLM outperforms baseline methods in both graph classification and regression tasks. The main contributions include:</p>
<p>(1) A novel unsupervised graph similarity learning model is proposed, effectively calculating the similarity between graph pairs through learnable augmentation and multi-level contrastive learning.</p>
<p>(2) Learnable augmentation methods and multi-level contrastive strategies are proposed for attributes and structure. The augmentation method generates augmented views of the original graph while preserving critical information. The multi-level contrastive strategy complements node-level contrast with subgraph-level contrast, enriching the model&#x2019;s contrastive levels. Learnability refers to the model&#x2019;s ability to select relevant attributes and structures for augmented views based on their importance.</p>
<p>(3) Comprehensive experiments were conducted on two regression and six classification datasets, demonstrating the effectiveness of the proposed model.</p>
<p>The remainder of this paper is organized as follows: <xref ref-type="sec" rid="s2">Section 2</xref> introduces related work; <xref ref-type="sec" rid="s3">Section 3</xref> presents the problem definition; <xref ref-type="sec" rid="s4">Section 4</xref> presents the proposed unsupervised graph similarity learning method, GSLM; <xref ref-type="sec" rid="s5">Section 5</xref> presents the experimental results and comparisons with baseline methods, validating the effectiveness of the proposed method; <xref ref-type="sec" rid="s6">Section 6</xref> concludes the paper and discusses future work.</p>
</sec>
<sec id="s2">
<label>2</label>
<title>Related Work</title>
<p>Research methods for graph similarity learning can be divided into traditional and GNN-based methods.</p>
<sec id="s2_1">
<label>2.1</label>
<title>Traditional Methods</title>
<p>Among various definitions of graph similarity, Graph Edit Distance (GED) and Maximum Common Subgraph (MCS) [<xref ref-type="bibr" rid="ref-8">8</xref>] are two domain-agnostic graph similarity measures. Traditional graph similarity learning methods generally rely on GED or MCS as the similarity measure. However, calculating GED or MCS is an NP (non-deterministic polynomial)-hard problem [<xref ref-type="bibr" rid="ref-8">8</xref>].</p>
<p>Traditional methods can be divided into two categories: the first category computes exact values [<xref ref-type="bibr" rid="ref-9">9</xref>,<xref ref-type="bibr" rid="ref-10">10</xref>]. Although exact similarity measures can better understand the relationships between graphs, the time complexity of exact graph similarity computation is exponential, which is impractical in real-world applications. The second category computes approximate values [<xref ref-type="bibr" rid="ref-11">11</xref>]. While this approach saves time, its time complexity still reaches polynomial or even exponential levels. Additionally, traditional algorithms primarily focus on the graph&#x2019;s topological structure, ignoring the attribute information contained within the graph (e.g., node features, edge features).</p>
</sec>
<sec id="s2_2">
<label>2.2</label>
<title>GNN-Based Methods</title>
<p>Recent graph similarity learning methods can be divided into two major categories: supervised methods [<xref ref-type="bibr" rid="ref-12">12</xref>&#x2013;<xref ref-type="bibr" rid="ref-16">16</xref>] and unsupervised methods [<xref ref-type="bibr" rid="ref-4">4</xref>,<xref ref-type="bibr" rid="ref-5">5</xref>,<xref ref-type="bibr" rid="ref-17">17</xref>]. The former fully utilizes labels to obtain graph embeddings, ultimately used to calculate graph similarity. However, in real-world scenarios, labeled data is often difficult to obtain, and the quality of labeled data varies. Therefore, unsupervised graph similarity learning methods have gained attention. Nonetheless, previous methods often damage the attributes and structural features of graphs during augmentation, negatively impacting unsupervised graph similarity learning tasks.</p>
<p>Previous studies overlooked the impact of random augmentation on graph similarity learning tasks, which could alter labels and lower similarity scores for initially similar graphs. They also focused on node-level comparisons, neglecting multi-level and local similarities. This paper addresses these issues by incorporating attribute and structural augmentation to preserve label-invariant information and introducing subgraph-level contrastive learning to model mesoscopic similarities and enhance contrastive levels.</p>
</sec>
</sec>
<sec id="s3">
<label>3</label>
<title>Problem Definition</title>
<p>A graph is represented as <inline-formula id="ieqn-1"><mml:math id="mml-ieqn-1"><mml:mi>G</mml:mi><mml:mo>=</mml:mo><mml:mo stretchy="false">(</mml:mo><mml:mi>V</mml:mi><mml:mo>,</mml:mo><mml:mi>E</mml:mi><mml:mo>,</mml:mo><mml:mi>X</mml:mi><mml:mo>,</mml:mo><mml:mi>A</mml:mi><mml:mo stretchy="false">)</mml:mo></mml:math></inline-formula>, where <inline-formula id="ieqn-2"><mml:math id="mml-ieqn-2"><mml:mi>V</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:msub><mml:mo>}</mml:mo></mml:mrow></mml:math></inline-formula> is the set of nodes and <inline-formula id="ieqn-3"><mml:math id="mml-ieqn-3"><mml:mi>N</mml:mi></mml:math></inline-formula> is the total number of nodes; <inline-formula id="ieqn-4"><mml:math id="mml-ieqn-4"><mml:mi>E</mml:mi></mml:math></inline-formula> is the set of edges, where <inline-formula id="ieqn-5"><mml:math id="mml-ieqn-5"><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>}</mml:mo></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:mi>E</mml:mi></mml:math></inline-formula> represents the edge between nodes <inline-formula id="ieqn-6"><mml:math id="mml-ieqn-6"><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-7"><mml:math id="mml-ieqn-7"><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>. If there is an edge between <inline-formula id="ieqn-8"><mml:math id="mml-ieqn-8"><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-9"><mml:math id="mml-ieqn-9"><mml:msub><mml:mi>v</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, then <inline-formula id="ieqn-10"><mml:math id="mml-ieqn-10"><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:math></inline-formula> otherwise, <inline-formula id="ieqn-11"><mml:math id="mml-ieqn-11"><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mn>0</mml:mn></mml:math></inline-formula>. <inline-formula id="ieqn-12"><mml:math id="mml-ieqn-12"><mml:mi>A</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msup><mml:mi>R</mml:mi><mml:mrow><mml:mi>N</mml:mi><mml:mo>&#x00D7;</mml:mo><mml:mi>N</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> is the adjacency matrix of the graph, and <inline-formula id="ieqn-13"><mml:math id="mml-ieqn-13"><mml:msub><mml:mi>a</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:msub><mml:mi>e</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>. <inline-formula id="ieqn-14"><mml:math id="mml-ieqn-14"><mml:mi>X</mml:mi><mml:mo>=</mml:mo><mml:mrow><mml:mo>{</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mo>&#x2026;</mml:mo><mml:mo>,</mml:mo><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:msub><mml:mo>}</mml:mo></mml:mrow><mml:mo>&#x2208;</mml:mo><mml:msup><mml:mi>R</mml:mi><mml:mrow><mml:mi>N</mml:mi><mml:mo>&#x00D7;</mml:mo><mml:mi>D</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> is the attribute matrix, and <inline-formula id="ieqn-15"><mml:math id="mml-ieqn-15"><mml:mi>D</mml:mi></mml:math></inline-formula> represents the dimension of the attributes.</p>
<p>Given two graphs <inline-formula id="ieqn-16"><mml:math id="mml-ieqn-16"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-17"><mml:math id="mml-ieqn-17"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, the task of graph similarity learning is to compute a similarity score <inline-formula id="ieqn-18"><mml:math id="mml-ieqn-18"><mml:mi>y</mml:mi></mml:math></inline-formula> to measure the similarity between <inline-formula id="ieqn-19"><mml:math id="mml-ieqn-19"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-20"><mml:math id="mml-ieqn-20"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>.</p>
</sec>
<sec id="s4">
<label>4</label>
<title>GSLM Model</title>
<p>The proposed GSLM model consists of four modules: 1. Input module; 2. Graph augmentation module: This module generates different augmented views of the original graphs based on attributes and topology and samples appropriate subgraphs; 3. Multi-level contrastive learning module: This module computes the node and subgraph embeddings and conducts joint training; 4. Similarity computation module: Based on different downstream tasks, graph-level representations are processed to obtain the final similarity scores. As shown in <xref ref-type="fig" rid="fig-2">Fig. 2</xref>, the multi-level contrastive learning module has many details, which will be elaborated on in <xref ref-type="sec" rid="s4_3">Section 4.3</xref>.</p>
<fig id="fig-2">
<label>Figure 2</label>
<caption>
<title>The architecture of GSLM</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_59610-fig-2.tif"/>
</fig>
<p>The following sections introduce the specific content of each module in the model.</p>
<sec id="s4_1">
<label>4.1</label>
<title>Input Module</title>
<p>The input to the graph similarity learning task is a pair of graphs, denoted as <inline-formula id="ieqn-21"><mml:math id="mml-ieqn-21"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>X</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> and <inline-formula id="ieqn-22"><mml:math id="mml-ieqn-22"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>V</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>E</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>X</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>A</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.</p>
</sec>
<sec id="s4_2">
<label>4.2</label>
<title>Graph Augmentation Module</title>
<p>Traditional augmentation methods, such as random edge disconnection or node feature perturbation, often rely on predefined rules and lack adaptability to specific graph structures. This can result in semantic and structural inconsistencies. In contrast, learnable augmentation dynamically adapts to the data and task by leveraging trainable modules that assess the importance of graph components (nodes and edges). Learnable augmentation incorporates feedback from the model&#x2019;s loss function, preserving similarity scores in graph similarity learning. The approach allows for targeted modifications that preserve critical information while minimizing unintended disruptions.</p>
<p>This module is divided into graph-level augmentation (attribute augmentation layer and structural augmentation layer) and subgraph-level augmentation (subgraph selection layer). Learnable methods are used to obtain corresponding attribute-augmented and structure-augmented views for graph-level augmentation. For subgraph-level augmentation, a subgraph augmentation scheme is designed to enrich the contrastive levels.</p>
<sec id="s4_2_1">
<label>4.2.1</label>
<title>Attribute Augmentation Layer</title>
<p>Previous contrastive learning approaches in graph similarity often randomly masked node attributes, which could result in losing critical semantic information. To address this, less essential attributes should be masked during augmentation to preserve important information from the original graph.</p>
<p>Some studies use statistical metrics, such as variance and information gain to evaluate feature importance, but these methods are not robust, and lack flexibility. A better approach is needed, where the model can automatically evaluate and select important attributes. Inspired by [<xref ref-type="bibr" rid="ref-18">18</xref>], the Gumbel-Softmax method enables end-to-end training, dynamic feature selection, and improved model robustness by computing parameters and gradients automatically.</p>
<p>Specifically, taking the original graph features <inline-formula id="ieqn-23"><mml:math id="mml-ieqn-23"><mml:mi>X</mml:mi></mml:math></inline-formula> as input, a multi-layer perceptron (MLP) is used to generate <inline-formula id="ieqn-24"><mml:math id="mml-ieqn-24"><mml:mi>a</mml:mi></mml:math></inline-formula>, which measures the importance of each node&#x2019;s features. The Gumbel-Softmax method is then applied to reparameterize <inline-formula id="ieqn-25"><mml:math id="mml-ieqn-25"><mml:mi>a</mml:mi></mml:math></inline-formula> to obtain a one-hot vector <inline-formula id="ieqn-26"><mml:math id="mml-ieqn-26"><mml:mi>f</mml:mi></mml:math></inline-formula>. Finally, an augmentation function is used to obtain the final augmented features:
<disp-formula id="eqn-1"><label>(1)</label><mml:math id="mml-eqn-1" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>a</mml:mi><mml:mo>=</mml:mo><mml:mi>M</mml:mi><mml:mi>L</mml:mi><mml:mi>P</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>X</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="eqn-2"><label>(2)</label><mml:math id="mml-eqn-2" display="block"><mml:mtable columnalign="right left right left right left right left right left right left" rowspacing="3pt" columnspacing="0em 2em 0em 2em 0em 2em 0em 2em 0em 2em 0em" displaystyle="true"><mml:mtr><mml:mtd /><mml:mtd><mml:mi>f</mml:mi><mml:mo>=</mml:mo><mml:mi>G</mml:mi><mml:mi>u</mml:mi><mml:mi>m</mml:mi><mml:mi>b</mml:mi><mml:mi>e</mml:mi><mml:mi>l</mml:mi><mml:mi>S</mml:mi><mml:mi>o</mml:mi><mml:mi>f</mml:mi><mml:mi>t</mml:mi><mml:mo movablelimits="true" form="prefix">max</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mi>a</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:mtd></mml:mtr></mml:mtable></mml:math></disp-formula>
<disp-formula id="eqn-3"><label>(3)</label><mml:math id="mml-eqn-3" display="block"><mml:msup><mml:mi>X</mml:mi><mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi></mml:mrow></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>A</mml:mi><mml:mi>u</mml:mi><mml:msub><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mi>X</mml:mi><mml:mo>,</mml:mo><mml:mi>f</mml:mi></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula>where the MLP represents the multi-layer perceptron, <inline-formula id="ieqn-27"><mml:math id="mml-ieqn-27"><mml:mi>a</mml:mi></mml:math></inline-formula> represents the probability of selecting whether to mask or retain the original feature, <inline-formula id="ieqn-28"><mml:math id="mml-ieqn-28"><mml:mi>f</mml:mi></mml:math></inline-formula> is the one-hot vector obtained through Gumbel-Softmax sampling, and <inline-formula id="ieqn-29"><mml:math id="mml-ieqn-29"><mml:msup><mml:mi>X</mml:mi><mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi></mml:mrow></mml:mrow></mml:msup></mml:math></inline-formula> is the augmented feature after being processed by the augmentation function <inline-formula id="ieqn-30"><mml:math id="mml-ieqn-30"><mml:mi>A</mml:mi><mml:mi>u</mml:mi><mml:msub><mml:mi>g</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>.</p>
</sec>
<sec id="s4_2_2">
<label>4.2.2</label>
<title>Structural Augmentation Layer</title>
<p>Previous methods used random edge deletion for structural augmentation, which can lose important information and alter graph labels. To preserve more information, edges should be weighted by importance. While edge betweenness centrality is one approach, it&#x2019;s computationally expensive and ignores attributes. The Graph Attention Network (GAT) adapts edge weights through self-attention, incorporating both structural and attribute information, and is used to guide edge deletion during structural augmentation.</p>
<p>Specifically, taking the original graph&#x2019;s topology <inline-formula id="ieqn-31"><mml:math id="mml-ieqn-31"><mml:mi>A</mml:mi></mml:math></inline-formula> and features <inline-formula id="ieqn-32"><mml:math id="mml-ieqn-32"><mml:mi>X</mml:mi></mml:math></inline-formula> as input, the attention scores for edges are calculated, which are then used as the standard for topology augmentation, resulting in the augmented topology:
<disp-formula id="eqn-4"><label>(4)</label><mml:math id="mml-eqn-4" display="block"><mml:msub><mml:mi>&#x03B1;</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mrow><mml:mi>exp</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mi>L</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>k</mml:mi><mml:mi>y</mml:mi><mml:mrow><mml:mtext>Re</mml:mtext></mml:mrow><mml:mi>L</mml:mi><mml:mi>U</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msup><mml:mover><mml:mi>a</mml:mi><mml:mo stretchy="false">&#x2192;</mml:mo></mml:mover><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>[</mml:mo><mml:mi>W</mml:mi><mml:mover><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">&#x2192;</mml:mo></mml:mover><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>W</mml:mi><mml:mover><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">&#x2192;</mml:mo></mml:mover><mml:mo>]</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:mrow></mml:munder><mml:mi>exp</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:mi>L</mml:mi><mml:mi>e</mml:mi><mml:mi>a</mml:mi><mml:mi>k</mml:mi><mml:mi>y</mml:mi><mml:mrow><mml:mtext>Re</mml:mtext></mml:mrow><mml:mi>L</mml:mi><mml:mi>U</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msup><mml:mover><mml:mi>a</mml:mi><mml:mo stretchy="false">&#x2192;</mml:mo></mml:mover><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup><mml:mrow><mml:mo>[</mml:mo><mml:mi>W</mml:mi><mml:mover><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">&#x2192;</mml:mo></mml:mover><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mi>W</mml:mi><mml:mover><mml:msub><mml:mi>x</mml:mi><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo stretchy="false">&#x2192;</mml:mo></mml:mover><mml:mo>]</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:math></disp-formula>
<disp-formula id="eqn-5"><label>(5)</label><mml:math id="mml-eqn-5" display="block"><mml:msup><mml:mi>A</mml:mi><mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi></mml:mrow></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>A</mml:mi><mml:mi>u</mml:mi><mml:msub><mml:mi>g</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>&#x03B1;</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi>A</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula>where the <inline-formula id="ieqn-33"><mml:math id="mml-ieqn-33"><mml:msub><mml:mi>&#x03B1;</mml:mi><mml:mrow><mml:mi>i</mml:mi><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the attention score between node <inline-formula id="ieqn-34"><mml:math id="mml-ieqn-34"><mml:mi>i</mml:mi></mml:math></inline-formula> and node <inline-formula id="ieqn-35"><mml:math id="mml-ieqn-35"><mml:mi>j</mml:mi></mml:math></inline-formula>, <inline-formula id="ieqn-36"><mml:math id="mml-ieqn-36"><mml:msup><mml:mover><mml:mi>a</mml:mi><mml:mo stretchy="false">&#x2192;</mml:mo></mml:mover><mml:mrow><mml:mi>T</mml:mi></mml:mrow></mml:msup></mml:math></inline-formula> and <inline-formula id="ieqn-37"><mml:math id="mml-ieqn-37"><mml:mi>W</mml:mi></mml:math></inline-formula> are shared learnable parameters, <inline-formula id="ieqn-38"><mml:math id="mml-ieqn-38"><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow><mml:mrow><mml:mo stretchy="false">|</mml:mo></mml:mrow></mml:math></inline-formula> denotes concatenation, and LeakyReLU is the activation function. <inline-formula id="ieqn-39"><mml:math id="mml-ieqn-39"><mml:msub><mml:mi>N</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula> represents the neighbors of node <inline-formula id="ieqn-40"><mml:math id="mml-ieqn-40"><mml:mi>i</mml:mi></mml:math></inline-formula>, and SoftMax is used to normalize the attention scores. The augmented adjacency matrix is then obtained through an augmentation function.</p>
</sec>
<sec id="s4_2_3">
<label>4.2.3</label>
<title>Subgraph Selection Layer</title>
<p>Previous work used node-level information for contrastive learning, neglecting the impact of local structures. This can lead to the loss of local similarities between graph pairs. Therefore, both subgraph-level information and node-level information are incorporated.</p>
<p>For subgraph selection, research [<xref ref-type="bibr" rid="ref-19">19</xref>] has demonstrated that larger subgraphs tend to have higher semantic similarity, making them more informative and suitable for contrastive learning. Inspired by these findings, a biased random walk (BRW) approach is used to select large subgraphs, with the selected subgraph denoted as <inline-formula id="ieqn-41"><mml:math id="mml-ieqn-41"><mml:msup><mml:mi>G</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>b</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>&#x03D5;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>G</mml:mi><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula>, where <inline-formula id="ieqn-42"><mml:math id="mml-ieqn-42"><mml:mi>&#x03D5;</mml:mi></mml:math></inline-formula> represents the biased random walk method. The BRW method allows for the sampling of large, structurally coherent subgraphs by prioritizing nodes and edges based on their connectivity and importance, thus preserving local structures and meaningful graph semantics. The positive example is the pair of subgraphs generated from the original graph, while the negative example is subgraphs generated from other graphs. This strategy ensures that the contrastive learning framework captures both local and global similarities by leveraging subgraph-level information in addition to node-level embeddings.</p>
<p>By integrating subgraph-level information through BRW, the proposed method enriches the hierarchical representation of graphs and improves the model&#x2019;s ability to differentiate between graph pairs with subtle structural and semantic differences.</p>
</sec>
</sec>
<sec id="s4_3">
<label>4.3</label>
<title>Multi-Level Contrastive Learning Module</title>
<p><xref ref-type="fig" rid="fig-3">Fig. 3</xref> shows the multi-level contrastive learning module, which includes four layers: the node embedding layer, the node interaction layer, the subgraph embedding layer, and the contrastive learning layer.</p>
<fig id="fig-3">
<label>Figure 3</label>
<caption>
<title>Multi-level contrastive learning module</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_59610-fig-3.tif"/>
</fig>
<p>From an information-theoretic perspective, multi-level representations maximize the mutual information between different scales of graph features, enabling the model to capture richer and more meaningful similarities. Additionally, leveraging multi-level features increases the diversity of positive and negative samples in contrastive learning, leading to more robust and generalizable graph similarity measures.</p>
<sec id="s4_3_1">
<label>4.3.1</label>
<title>Node Embedding Layer</title>
<p>This layer generates initial node-level embeddings for the original graph, its augmented views, its augmented views, and subgraphs using a Graph Convolutional Network (GCN), which effectively captures local structural and attribute information. These initial embeddings serve as input to the subsequent node interaction layer, which incorporates an attention mechanism to model the interactions between nodes across the augmented views and original views. To better capture subtle differences between the original graph and its augmented views, a Siamese network structure is used in combination with the GCN:
<disp-formula id="eqn-6"><label>(6)</label><mml:math id="mml-eqn-6" display="block"><mml:msup><mml:mi>H</mml:mi><mml:mrow><mml:mi>l</mml:mi></mml:mrow></mml:msup><mml:mo>=</mml:mo><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mrow><mml:mover><mml:mi>A</mml:mi><mml:mo>&#x007E;</mml:mo></mml:mover></mml:mrow><mml:msup><mml:mi>H</mml:mi><mml:mrow><mml:mi>l</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msup><mml:msup><mml:mi>W</mml:mi><mml:mrow><mml:mi>l</mml:mi><mml:mo>&#x2212;</mml:mo><mml:mn>1</mml:mn></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula>where the <inline-formula id="ieqn-43"><mml:math id="mml-ieqn-43"><mml:mi>H</mml:mi></mml:math></inline-formula> represents the node embeddings, <inline-formula id="ieqn-44"><mml:math id="mml-ieqn-44"><mml:mi>l</mml:mi></mml:math></inline-formula> denotes the number of embedding layers. <inline-formula id="ieqn-45"><mml:math id="mml-ieqn-45"><mml:mrow><mml:mover><mml:mi>A</mml:mi><mml:mo>&#x007E;</mml:mo></mml:mover></mml:mrow></mml:math></inline-formula> is the normalized Laplacian matrix; <inline-formula id="ieqn-46"><mml:math id="mml-ieqn-46"><mml:mi>W</mml:mi></mml:math></inline-formula> denotes the training weight matrix, and <inline-formula id="ieqn-47"><mml:math id="mml-ieqn-47"><mml:mi>&#x03C3;</mml:mi></mml:math></inline-formula> denotes the sigmoid function.</p>
</sec>
<sec id="s4_3_2">
<label>4.3.2</label>
<title>Node Interaction Layer</title>
<p>Inspired by graph contrastive learning, we aim to increase the similarity between positive examples (same nodes in different views) and decrease it for negative examples (other nodes). Suppose the embedding of node <inline-formula id="ieqn-48"><mml:math id="mml-ieqn-48"><mml:mi>i</mml:mi></mml:math></inline-formula> is denoted as <inline-formula id="ieqn-49"><mml:math id="mml-ieqn-49"><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>, and the embedding of node <inline-formula id="ieqn-50"><mml:math id="mml-ieqn-50"><mml:mi>j</mml:mi></mml:math></inline-formula> is denoted as <inline-formula id="ieqn-51"><mml:math id="mml-ieqn-51"><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula>. The similarity between them is defined as:
<disp-formula id="eqn-7"><label>(7)</label><mml:math id="mml-eqn-7" display="block"><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>m</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mi>cos</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>As shown in <xref ref-type="fig" rid="fig-3">Fig. 3</xref>, to maximize the consistency between nodes across different views and learn node correspondences between different graphs, we first calculate the similarity between augmented views, then increase the similarity between augmented views and the similarity across different graphs:
<disp-formula id="eqn-8"><label>(8)</label><mml:math id="mml-eqn-8" display="block"><mml:msubsup><mml:mrow><mml:mover><mml:mi>h</mml:mi><mml:mo>&#x007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msubsup><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>&#x2295;</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>j</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msubsup><mml:mi>G</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:munder><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>m</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>h</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mi>h</mml:mi><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></disp-formula>
<disp-formula id="eqn-9"><label>(9)</label><mml:math id="mml-eqn-9" display="block"><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>=</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>&#x2295;</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>u</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msubsup><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:munder><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>m</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mover><mml:mi>h</mml:mi><mml:mo>&#x007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mrow><mml:mover><mml:mi>h</mml:mi><mml:mo>&#x007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>&#x2295;</mml:mo><mml:munder><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>v</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msubsup><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:mrow></mml:munder><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>m</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msubsup><mml:mrow><mml:mover><mml:mi>h</mml:mi><mml:mo>&#x007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>v</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:msubsup><mml:mrow><mml:mover><mml:mi>h</mml:mi><mml:mo>&#x007E;</mml:mo></mml:mover></mml:mrow><mml:mrow><mml:mi>v</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></disp-formula>where <inline-formula id="ieqn-52"><mml:math id="mml-ieqn-52"><mml:mi>i</mml:mi></mml:math></inline-formula> and <inline-formula id="ieqn-53"><mml:math id="mml-ieqn-53"><mml:mi>j</mml:mi></mml:math></inline-formula> denote nodes in the original graph or augmented views of <inline-formula id="ieqn-54"><mml:math id="mml-ieqn-54"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>, and <inline-formula id="ieqn-55"><mml:math id="mml-ieqn-55"><mml:mi>u</mml:mi></mml:math></inline-formula> and <inline-formula id="ieqn-56"><mml:math id="mml-ieqn-56"><mml:mi>v</mml:mi></mml:math></inline-formula> denote nodes in the original graph or augmented views of <inline-formula id="ieqn-57"><mml:math id="mml-ieqn-57"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>. In <xref ref-type="disp-formula" rid="eqn-8">Eq. (8)</xref>, the similarity between augmented views of the same graph is first computed, and the similarity within augmented views is considered a weight in the node representation. The notation <inline-formula id="ieqn-58"><mml:math id="mml-ieqn-58"><mml:msubsup><mml:mi>G</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> represents the second augmented view <inline-formula id="ieqn-59"><mml:math id="mml-ieqn-59"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> and <inline-formula id="ieqn-60"><mml:math id="mml-ieqn-60"><mml:mo>&#x2295;</mml:mo></mml:math></inline-formula> denotes the concatenation operation. Next, the interaction between different graphs is considered. As shown in <xref ref-type="disp-formula" rid="eqn-9">Eq. (9)</xref>, the two augmented views of <inline-formula id="ieqn-61"><mml:math id="mml-ieqn-61"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> are compared with the embedding vector of <inline-formula id="ieqn-62"><mml:math id="mml-ieqn-62"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula> to calculate the similarity, ultimately obtaining the embedding of node <inline-formula id="ieqn-63"><mml:math id="mml-ieqn-63"><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> in the first augmented view of <inline-formula id="ieqn-64"><mml:math id="mml-ieqn-64"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>. Here, <inline-formula id="ieqn-65"><mml:math id="mml-ieqn-65"><mml:msubsup><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> and <inline-formula id="ieqn-66"><mml:math id="mml-ieqn-66"><mml:msubsup><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup></mml:math></inline-formula> represent the two augmented views of <inline-formula id="ieqn-67"><mml:math id="mml-ieqn-67"><mml:msub><mml:mi>G</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub></mml:math></inline-formula>.</p>
</sec>
<sec id="s4_3_3">
<label>4.3.3</label>
<title>Subgraph Embedding Layer</title>
<p>After obtaining the node-level representations of the subgraphs, a pooling function is applied to obtain the subgraph representation. In this case, average pooling is used as the pooling function, and the subgraph representation is obtained as follows:
<disp-formula id="eqn-10"><label>(10)</label><mml:math id="mml-eqn-10" display="block"><mml:mi>s</mml:mi><mml:mo>=</mml:mo><mml:mi>A</mml:mi><mml:mi>v</mml:mi><mml:mi>g</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:msup><mml:mi>G</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>b</mml:mi></mml:mrow></mml:msup><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula>where <inline-formula id="ieqn-68"><mml:math id="mml-ieqn-68"><mml:mi>A</mml:mi><mml:mi>v</mml:mi><mml:mi>g</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mo>)</mml:mo></mml:mrow></mml:math></inline-formula> represents average pooling.</p>
</sec>
<sec id="s4_3_4">
<label>4.3.4</label>
<title>Contrastive Learning Layer</title>
<p>After obtaining the node and subgraph embeddings, InfoNCE [<xref ref-type="bibr" rid="ref-6">6</xref>] is used to maximize the similarity between positive examples and minimize the similarity between negative examples. Consequently, the loss function for node representations within a graph is defined as follows:
<disp-formula id="eqn-11"><label>(11)</label><mml:math id="mml-eqn-11" display="block"><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mi>s</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:mo>=</mml:mo><mml:mo>&#x2212;</mml:mo><mml:mi>log</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mfrac><mml:mrow><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>m</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow></mml:mrow><mml:mrow><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>m</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:munderover><mml:mo>&#x2211;</mml:mo><mml:mrow><mml:mi>k</mml:mi><mml:mo>=</mml:mo><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>N</mml:mi></mml:mrow></mml:munderover><mml:mi>s</mml:mi><mml:mi>i</mml:mi><mml:mi>m</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msub><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>k</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:mrow></mml:mfrac></mml:math></disp-formula>where <inline-formula id="ieqn-69"><mml:math id="mml-ieqn-69"><mml:mi>i</mml:mi></mml:math></inline-formula> and <inline-formula id="ieqn-70"><mml:math id="mml-ieqn-70"><mml:mi>j</mml:mi></mml:math></inline-formula> denote a pair of positive examples, and <inline-formula id="ieqn-71"><mml:math id="mml-ieqn-71"><mml:mi>N</mml:mi></mml:math></inline-formula> represents the number of negative examples. Since the final goal is to calculate the similarity between two graphs, the node-level loss function is defined as:
<disp-formula id="eqn-12"><label>(12)</label><mml:math id="mml-eqn-12" display="block"><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mi>o</mml:mi><mml:mi>d</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:mrow><mml:mo>(</mml:mo><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mi>s</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>i</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>j</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mi>s</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>u</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mover><mml:mi>h</mml:mi><mml:mo accent="false">&#x00AF;</mml:mo></mml:mover><mml:mrow><mml:mi>v</mml:mi></mml:mrow><mml:mrow><mml:mi>a</mml:mi><mml:mi>u</mml:mi><mml:mi>g</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>Since previous unsupervised graph similarity learning methods considered contrastive learning only at the node level and ignored local information within the graph, subgraph-level information is incorporated into the training process to model richer multi-level information. Similar to the node-level loss function, the subgraph-level loss function is defined as follows:
<disp-formula id="eqn-13"><label>(13)</label><mml:math id="mml-eqn-13" display="block"><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>b</mml:mi></mml:mrow></mml:msub><mml:mo>=</mml:mo><mml:mfrac><mml:mn>1</mml:mn><mml:mn>2</mml:mn></mml:mfrac><mml:mrow><mml:mo>(</mml:mo><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mi>s</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mi>s</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>b</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>s</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow><mml:mrow><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>b</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:mo>+</mml:mo><mml:mi>l</mml:mi><mml:mi>o</mml:mi><mml:mi>s</mml:mi><mml:mi>s</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msubsup><mml:mi>s</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>b</mml:mi><mml:mn>1</mml:mn></mml:mrow></mml:msubsup><mml:mo>,</mml:mo><mml:msubsup><mml:mi>s</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow><mml:mrow><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>b</mml:mi><mml:mn>2</mml:mn></mml:mrow></mml:msubsup><mml:mo>)</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>Finally, the node-level and subgraph-level losses are jointly trained, and the final loss is:
<disp-formula id="eqn-14"><label>(14)</label><mml:math id="mml-eqn-14" display="block"><mml:mrow><mml:mi>&#x2113;</mml:mi></mml:mrow><mml:mo>=</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>n</mml:mi><mml:mi>o</mml:mi><mml:mi>d</mml:mi><mml:mi>e</mml:mi></mml:mrow></mml:msub><mml:mo>+</mml:mo><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>b</mml:mi></mml:mrow></mml:msub></mml:math></disp-formula></p>
</sec>
</sec>
<sec id="s4_4">
<label>4.4</label>
<title>Similarity Computation Module</title>
<p>After obtaining the node representations of the graph, the graph-level representation is computed for similarity scoring. As prior work [<xref ref-type="bibr" rid="ref-15">15</xref>] shows that the BiLSTM (Bi-directional Long Short-Term Memory) aggregator offers superior expressive power, it is used to derive the graph-level embedding <inline-formula id="ieqn-72"><mml:math id="mml-ieqn-72"><mml:mi>Z</mml:mi></mml:math></inline-formula>:
<disp-formula id="eqn-15"><label>(15)</label><mml:math id="mml-eqn-15" display="block"><mml:mi>Z</mml:mi><mml:mo>=</mml:mo><mml:mi>B</mml:mi><mml:mi>i</mml:mi><mml:mi>L</mml:mi><mml:mi>S</mml:mi><mml:mi>T</mml:mi><mml:mi>M</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>h</mml:mi><mml:mrow><mml:mi>i</mml:mi></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>,</mml:mo><mml:mi>i</mml:mi><mml:mo>&#x2208;</mml:mo><mml:mi>G</mml:mi></mml:math></disp-formula>where the BiLSTM takes the randomly permuted node embeddings as input and concatenates the final hidden vectors from both directions of the LSTM (Long Short-Term Memory) as the graph representation <inline-formula id="ieqn-73"><mml:math id="mml-ieqn-73"><mml:mi>Z</mml:mi></mml:math></inline-formula>.</p>
<p>For graph classification task, directly computing the cosine similarity between two graph-level embeddings is desirable. Therefore, cosine similarity is used to calculate the similarity between the graph-level embeddings:
<disp-formula id="eqn-16"><label>(16)</label><mml:math id="mml-eqn-16" display="block"><mml:mi>y</mml:mi><mml:mo>=</mml:mo><mml:mi>cos</mml:mi><mml:mo>&#x2061;</mml:mo><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>,</mml:mo><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula></p>
<p>For graph regression task, the predicted result in a graph regression task is continuous and needs to be normalized within the range of [0,1]. To achieve this, the two graph-level embeddings are first concatenated, then projected onto a scalar, and finally passed through an activation function to constrain the similarity score within the desired range, as shown in the following equation:
<disp-formula id="eqn-17"><label>(17)</label><mml:math id="mml-eqn-17" display="block"><mml:mi>y</mml:mi><mml:mo>=</mml:mo><mml:mi>&#x03C3;</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:mi>M</mml:mi><mml:mi>L</mml:mi><mml:mi>P</mml:mi><mml:mrow><mml:mo>(</mml:mo><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:mn>1</mml:mn></mml:mrow></mml:msub><mml:mo>&#x2295;</mml:mo><mml:msub><mml:mi>Z</mml:mi><mml:mrow><mml:mn>2</mml:mn></mml:mrow></mml:msub><mml:mo>)</mml:mo></mml:mrow><mml:mo>)</mml:mo></mml:mrow></mml:math></disp-formula>where <inline-formula id="ieqn-74"><mml:math id="mml-ieqn-74"><mml:mi>&#x03C3;</mml:mi></mml:math></inline-formula> is the sigmoid function, used to normalize the similarity score, and <inline-formula id="ieqn-75"><mml:math id="mml-ieqn-75"><mml:mo>&#x2295;</mml:mo></mml:math></inline-formula> denotes the concatenation operation.</p>
</sec>
</sec>
<sec id="s5">
<label>5</label>
<title>Experiments</title>
<p>To validate the effectiveness of the proposed model, experiments were conducted on both graph classification and graph regression tasks. Three groups of experiments were designed to address the following questions:</p>
<p>1. Does the proposed model outperform previous models in terms of performance?</p>
<p>2. How does the choice of different parameters in the model affect similarity learning?</p>
<p>3. Does the proposed learnable augmentation positively impact similarity learning?</p>
<sec id="s5_1">
<label>5.1</label>
<title>Experimental Data and Evaluation Metrics</title>
<sec id="s5_1_1">
<label>5.1.1</label>
<title>Experimental Data</title>
<p>The datasets used in the experiments are described in <xref ref-type="table" rid="table-1">Table 1</xref> [<xref ref-type="bibr" rid="ref-15">15</xref>].</p>
<table-wrap id="table-1">
<label>Table 1</label>
<caption>
<title>Dataset description</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Tasks</th>
<th>Datasets</th>
<th>Graphs</th>
<th>AvgN</th>
<th>AvgE</th>
<th>Functions</th>
<th>Initial feature dimensions</th>
</tr>
</thead>
<tbody>
<tr>
<td>Graph-graph</td>
<td>Aids700</td>
<td>700</td>
<td>8.90</td>
<td>8.80</td>
<td>&#x2013;</td>
<td>29</td>
</tr>
<tr>
<td>regression task</td>
<td>Linux1000</td>
<td>1000</td>
<td>7.58</td>
<td>6.94</td>
<td>&#x2013;</td>
<td>1</td>
</tr>
<tr>
<td></td>
<td>OS [3,200]</td>
<td>73,953</td>
<td>15.73</td>
<td>21.97</td>
<td>4249</td>
<td rowspan="6">6</td>
</tr>
<tr>
<td></td>
<td>OS [20,200]</td>
<td>15,800</td>
<td>44.89</td>
<td>67.15</td>
<td>1073</td>
</tr>
<tr>
<td>Graph-graph</td>
<td>OS [50,200]</td>
<td>4308</td>
<td>83.68</td>
<td>127.75</td>
<td>338</td>
</tr>
<tr>
<td>classification</td>
<td>FF [3,200]</td>
<td>83,008</td>
<td>18.83</td>
<td>27.02</td>
<td>10,367</td>
</tr>
<tr>
<td>task</td>
<td>FF [20,200]</td>
<td>31,696</td>
<td>51.02</td>
<td>75.88</td>
<td>7668</td>
</tr>
<tr>
<td></td>
<td>FF [50,200]</td>
<td>10,824</td>
<td>90.93</td>
<td>136.83</td>
<td>3178</td>
</tr>
</tbody>
</table>
</table-wrap>
<p>The model was evaluated on eight public datasets. For graph regression, two benchmark datasets, Aids700nef and Linux1000, were used, split into 60%, 20%, and 20% for training, validation, and testing. For graph classification, six datasets were generated using FFmpeg and OpenSSL. In the supervised method, the dataset split was 10%, 10%, and 80%, while in the unsupervised method, it was 80%, 10%, and 10%.</p>
</sec>
<sec id="s5_1_2">
<label>5.1.2</label>
<title>Evaluation Metrics</title>
<p>For the graph regression task, the primary evaluation metric used was Mean Squared Error (MSE), which measures the difference between the model&#x2019;s predicted and true values. A smaller MSE indicates better model performance. Additionally, Spearman&#x2019;s rank correlation coefficient <inline-formula id="ieqn-76"><mml:math id="mml-ieqn-76"><mml:mi>&#x03C1;</mml:mi></mml:math></inline-formula> [<xref ref-type="bibr" rid="ref-13">13</xref>], Kendall&#x2019;s rank correlation coefficient <inline-formula id="ieqn-77"><mml:math id="mml-ieqn-77"><mml:mi>&#x03C4;</mml:mi></mml:math></inline-formula> [<xref ref-type="bibr" rid="ref-15">15</xref>], and precision at k (p@k) were also used. The rank correlation coefficients <inline-formula id="ieqn-78"><mml:math id="mml-ieqn-78"><mml:mi>&#x03C1;</mml:mi></mml:math></inline-formula> and Kendall&#x2019;s coefficient <inline-formula id="ieqn-79"><mml:math id="mml-ieqn-79"><mml:mi>&#x03C4;</mml:mi></mml:math></inline-formula> measure the agreement between the predicted and actual ranking results, while p@k indicates the proportion of correctly predicted relevant results out of all returned results. Higher values of these metrics indicate better model performance.</p>
<p>For the graph classification task, the area under the ROC (Receiver Operating Characteristic) curve (AUC) was used as the evaluation metric. AUC reflects the model&#x2019;s discriminative ability, with a value closer to 1 indicating better classification performance.</p>
</sec>
</sec>
<sec id="s5_2">
<label>5.2</label>
<title>Baseline Algorithms and Parameter Settings</title>
<p>The proposed model was compared with two supervised methods (GCN and GIN (Graph lsomorphism Network)), which focus on feature aggregation and graph isomorphism handling, and three unsupervised methods (DGI (Deep Graph Infomax), GRACE (GRAph Contrastive rEpresentation learning), and CGMN (Contrastive Graph Matching Network)), which utilize contrastive learning for representation learning and graph similarity computation.</p>
<p>The graph regression and classification tasks are treated as downstream tasks. The learning rate was set to 0.0001, with a three-layer GCN encoder and dimensions of 100 for the graph encoder, projection, and prediction layers. The same settings (e.g., dataset splits and learning rate) were used for the graph regression task for the supervised baselines. For the unsupervised baselines, 1% of the true value&#x2019;s MSE loss was used for fine-tuning. In the graph classification task, the supervised models were trained using the same method as in the graph regression task. In contrast, the unsupervised baselines used their self-contained losses for graph representation learning. All experiments were repeated five times, and the mean and standard deviation of the results were reported, with the best results highlighted in bold.</p>
</sec>
<sec id="s5_3">
<label>5.3</label>
<title>Baseline Comparison</title>
<p>To address question 1, the following baseline experiments were designed, with the results shown in <xref ref-type="table" rid="table-2">Tables 2</xref> and <xref ref-type="table" rid="table-3">3</xref>.</p>
<table-wrap id="table-2">
<label>Table 2</label>
<caption>
<title>Experimental results on the graph regression task</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Datasets</th>
<th>Methods</th>
<th>MSE (10<sup><bold>&#x2212;3</bold></sup><bold>)</bold></th>
<th><bold>&#x03C1;</bold></th>
<th><inline-formula id="ieqn-80"><mml:math id="mml-ieqn-80"><mml:mi mathvariant="bold-italic">&#x03C4;</mml:mi></mml:math></inline-formula></th>
<th>p<bold>@</bold>10</th>
<th>p<bold>@</bold>20</th>
</tr>
</thead>
<tbody>
<tr>
<td>Aids700</td>
<td>GCN</td>
<td>13.299 &#x00B1; 0.460</td>
<td>0.490 &#x00B1; 0.064</td>
<td>0.350 &#x00B1; 0.050</td>
<td>0.039 &#x00B1; 0.010</td>
<td>0.074 &#x00B1; 0.014</td>
</tr>
<tr>
<td></td>
<td>GIN</td>
<td>13.488 &#x00B1; 0.268</td>
<td>0.436 &#x00B1; 0.043</td>
<td>0.305 &#x00B1; 0.030</td>
<td>0.032 &#x00B1; 0.012</td>
<td>0.065 &#x00B1; 0.019</td>
</tr>
<tr>
<td></td>
<td>DGI</td>
<td>20.819 &#x00B1; 1.486</td>
<td>0.210 &#x00B1; 0.095</td>
<td>0.145 &#x00B1; 0.067</td>
<td>0.020 &#x00B1; 0.009</td>
<td>0.037 &#x00B1; 0.018</td>
</tr>
<tr>
<td></td>
<td>GRACE</td>
<td>13.621 &#x00B1; 0.449</td>
<td>0.273 &#x00B1; 0.041</td>
<td>0.188 &#x00B1; 0.026</td>
<td>0.035 &#x00B1; 0.006</td>
<td>0.069 &#x00B1; 0.016</td>
</tr>
<tr>
<td></td>
<td>CGMN</td>
<td>9.889 &#x00B1; 1.034</td>
<td>0.605 &#x00B1; 0.076</td>
<td>0.440 &#x00B1; 0.060</td>
<td>0.062 &#x00B1; 0.018</td>
<td>0.110 &#x00B1; 0.034</td>
</tr>
<tr>
<td></td>
<td>GSLM</td>
<td><bold>8.568 &#x00B1; 0.973</bold></td>
<td><bold>0.648 &#x00B1; 0.033</bold></td>
<td><bold>0.476 &#x00B1; 0.029</bold></td>
<td><bold>0.094 &#x00B1; 0.022</bold></td>
<td><bold>0.157 &#x00B1; 0.023</bold></td>
</tr>
<tr>
<td>Linux1000</td>
<td>GCN</td>
<td>10.943 &#x00B1; 0.647</td>
<td>0.874 &#x00B1; 0.005</td>
<td>0.696 &#x00B1; 0.007</td>
<td>0.257 &#x00B1; 0.125</td>
<td>0.341 &#x00B1; 0.099</td>
</tr>
<tr>
<td></td>
<td>GIN</td>
<td>26.859 &#x00B1; 0.600</td>
<td>0.752 &#x00B1; 0.087</td>
<td>0.568 &#x00B1; 0.088</td>
<td>0.281 &#x00B1; 0.189</td>
<td>0.321 &#x00B1; 0.199</td>
</tr>
<tr>
<td></td>
<td>DGI</td>
<td>34.629 &#x00B1; 0.661</td>
<td>0.058 &#x00B1; 0.033</td>
<td>0.040 &#x00B1; 0.016</td>
<td>0.077 &#x00B1; 0.011</td>
<td>0.077 &#x00B1; 0.012</td>
</tr>
<tr>
<td></td>
<td>GRACE</td>
<td>14.631 &#x00B1; 2.007</td>
<td>0.858 &#x00B1; 0.023</td>
<td>0.684 &#x00B1; 0.037</td>
<td><bold>0.417 &#x00B1; 0.326</bold></td>
<td><bold>0.429 &#x00B1; 0.331</bold></td>
</tr>
<tr>
<td></td>
<td>CGMN</td>
<td>10.159 &#x00B1; 1.003</td>
<td>0.893 &#x00B1; 0.005</td>
<td>0.729 &#x00B1; 0.007</td>
<td>0.289 &#x00B1; 0.108</td>
<td>0.292 &#x00B1; 0.085</td>
</tr>
<tr>
<td></td>
<td>GSLM</td>
<td><bold>7.194 &#x00B1; 0.408</bold></td>
<td><bold>0.903 &#x00B1; 0.005</bold></td>
<td><bold>0.745 &#x00B1; 0.007</bold></td>
<td>0.383 &#x00B1; 0.106</td>
<td>0.405 &#x00B1; 0.099</td>
</tr>
</tbody>
</table>
</table-wrap><table-wrap id="table-3">
<label>Table 3</label>
<caption>
<title>Experimental results on the graph classification task</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th></th>
<th colspan="6">Datasets</th>
</tr>
<tr>
<th>Methods</th>
<th>FF [3,200]</th>
<th>FF [20,200]</th>
<th>FF [50,200]</th>
<th>OS [3,200]</th>
<th>OS [20,200]</th>
<th>OS [50,200]</th>
</tr>
</thead>
<tbody>
<tr>
<td>GCN</td>
<td>83.69 &#x00B1; 1.63</td>
<td>78.03 &#x00B1; 0.95</td>
<td>77.91 &#x00B1; 1.00</td>
<td>71.05 &#x00B1; 0.34</td>
<td>69.06 &#x00B1; 0.74</td>
<td>67.67 &#x00B1; 2.85</td>
</tr>
<tr>
<td>GIN</td>
<td><bold>85.88 &#x00B1; 0.56</bold></td>
<td>80.85 &#x00B1; 0.61</td>
<td>81.25 &#x00B1; 0.98</td>
<td>73.30 &#x00B1; 0.89</td>
<td>68.30 &#x00B1; 0.44</td>
<td>66.74 &#x00B1; 0.80</td>
</tr>
<tr>
<td>DGI</td>
<td>66.52 &#x00B1; 0.35</td>
<td>76.66 &#x00B1; 1.13</td>
<td>84.76 &#x00B1; 0.79</td>
<td>64.10 &#x00B1; 0.91</td>
<td>63.25 &#x00B1; 1.13</td>
<td>66.29 &#x00B1; 1.77</td>
</tr>
<tr>
<td>GRACE</td>
<td>72.07 &#x00B1; 1.40</td>
<td>81.59 &#x00B1; 0.54</td>
<td>84.23 &#x00B1; 0.59</td>
<td>65.59 &#x00B1; 0.63</td>
<td>64.10 &#x00B1; 1.01</td>
<td>68.73 &#x00B1; 2.61</td>
</tr>
<tr>
<td>CGMN</td>
<td>75.26 &#x00B1; 4.55</td>
<td>85.43 &#x00B1; 1.42</td>
<td>86.57 &#x00B1; 0.84</td>
<td>74.78 &#x00B1; 2.23</td>
<td>78.03 &#x00B1; 1.66</td>
<td>80.41 &#x00B1; 2.40</td>
</tr>
<tr>
<td>GSLM</td>
<td>83.44 &#x00B1; 1.53</td>
<td><bold>86.55 &#x00B1; 0.72</bold></td>
<td><bold>88.96 &#x00B1; 0.96</bold></td>
<td><bold>75.82 &#x00B1; 2.28</bold></td>
<td><bold>81</bold>.<bold>98 &#x00B1; 1</bold>.<bold>56</bold></td>
<td><bold>83</bold>.<bold>93 &#x00B1; 1</bold>.<bold>01</bold></td>
</tr>
</tbody>
</table>
</table-wrap>
<p>As shown in <xref ref-type="table" rid="table-2">Tables 2</xref> and <xref ref-type="table" rid="table-3">3</xref>, the proposed model generally outperforms the baseline models in both graph regression and classification tasks. On the one hand, traditional supervised graph representation learning models, such as GCN and GIN, lack specific modules designed for graph similarity learning tasks. This leads to poor performance in graph similarity calculations, as they overlook the interaction information between graph pairs. On the other hand, previous contrastive learning methods did not address the issue of augmentation randomness, which destroys the label information of the original graph. Additionally, they only performed node-level contrast while ignoring the modeling of local similarity in graph pairs, resulting in suboptimal performance.</p>

<p>As dataset size grows, the model&#x2019;s performance slightly declines due to increased graph complexity and sparsity but remains superior to baselines. It scales effectively, with minimal performance loss and slight computation time increases.</p>
<p>To further evaluate the effectiveness of the proposed model, we performed a visualization of graph embeddings for both the proposed model and the baseline methods on Linux1000. This visualization aligns with the superior performance observed in <xref ref-type="table" rid="table-2">Tables 2</xref> and <xref ref-type="table" rid="table-3">3</xref>, where the proposed model outperformed baseline methods. The results are shown in <xref ref-type="fig" rid="fig-4">Fig. 4</xref>.</p>
<fig id="fig-4">
<label>Figure 4</label>
<caption>
<title>Visualization of graph embeddings generated by different models on Linux1000</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_59610-fig-4.tif"/>
</fig>
</sec>
<sec id="s5_4">
<label>5.4</label>
<title>Parameter Sensitivity Analysis</title>
<p>To address question 2, the following experiments were conducted to determine the optimal parameters, including the number of GNN layers <inline-formula id="ieqn-81"><mml:math id="mml-ieqn-81"><mml:mi>l</mml:mi></mml:math></inline-formula>, learning rate <inline-formula id="ieqn-82"><mml:math id="mml-ieqn-82"><mml:mi>l</mml:mi><mml:mi>r</mml:mi></mml:math></inline-formula>, and the dimension of the final layer <inline-formula id="ieqn-83"><mml:math id="mml-ieqn-83"><mml:mi>d</mml:mi></mml:math></inline-formula>:</p>
<p>(1) GNN Layers: The experiments show that the model performs best when <inline-formula id="ieqn-84"><mml:math id="mml-ieqn-84"><mml:mi>l</mml:mi><mml:mo>=</mml:mo><mml:mn>3</mml:mn></mml:math></inline-formula>. On the one hand, when the number of encoder layers is too low, the model may not learn sufficient features and structural information from the graph, resulting in poor performance. On the other hand, when the number of encoder layers is too high, overfitting may occur, leading to poor performance. The results are shown in <xref ref-type="fig" rid="fig-5">Fig. 5</xref>.</p>
<fig id="fig-5">
<label>Figure 5</label>
<caption>
<title>Hyperparameter study on GNN layers</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_59610-fig-5.tif"/>
</fig>
<p>(2) Learning Rate: The experiments demonstrate that the model performs best when <inline-formula id="ieqn-85"><mml:math id="mml-ieqn-85"><mml:mi>l</mml:mi><mml:mi>r</mml:mi><mml:mo>=</mml:mo><mml:mn>0.0001</mml:mn></mml:math></inline-formula>. The results are shown in <xref ref-type="fig" rid="fig-6">Fig. 6</xref>.</p>
<fig id="fig-6">
<label>Figure 6</label>
<caption>
<title>Hyperparameter study on learning rate</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_59610-fig-6.tif"/>
</fig>
<p>(3) Final Layer Dimension: Considering the efficiency of the encoder, the dimension of the final layer was set between 50 and 150, with experiments showing that the model performs best when <inline-formula id="ieqn-86"><mml:math id="mml-ieqn-86"><mml:mi>d</mml:mi><mml:mo>=</mml:mo><mml:mn>100</mml:mn></mml:math></inline-formula>. The results are shown in <xref ref-type="fig" rid="fig-7">Fig. 7</xref>.</p>
<fig id="fig-7">
<label>Figure 7</label>
<caption>
<title>Hyperparameter experiment on final layer dimension</title>
</caption>
<graphic mimetype="image" mime-subtype="tif" xlink:href="CMC_59610-fig-7.tif"/>
</fig>
</sec>
<sec id="s5_5">
<label>5.5</label>
<title>Ablation Study</title>
<p>To address question 3, the effects of adaptive augmentation strategies and subgraph-level contrast were investigated. &#x201C;w/o&#x201D; indicates module removal, &#x201C;SA&#x201D; is the structural augmentation module, &#x201C;FA&#x201D; is the feature augmentation module, and &#x201C;Subgraph-Level Contrast&#x201D; refers to contrast loss. Results are in <xref ref-type="table" rid="table-4">Tables 4</xref> and <xref ref-type="table" rid="table-5">5</xref>.</p>
<table-wrap id="table-4">
<label>Table 4</label>
<caption>
<title>Ablation study results on the graph classification task</title>
</caption>
<table>
<colgroup>
<col width="26mm"/>
<col width="26mm"/>
<col width="26mm"/>
</colgroup>
<thead>
<tr>
<th>Methods</th>
<th>OS [50,200]</th>
<th>FF [50,200]</th>
</tr>
</thead>
<tbody>
<tr>
<td>GSLM w/o SA FA</td>
<td>80.95</td>
<td>86.62</td>
</tr>
<tr>
<td>GSLM w/o SA</td>
<td>82.32</td>
<td>87.86</td>
</tr>
<tr>
<td>GSLM w/o FA</td>
<td>82.76</td>
<td>87.46</td>
</tr>
<tr>
<td>GSLM w/o <inline-formula id="ieqn-87"><mml:math id="mml-ieqn-87"><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>b</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td>
<td>82.68</td>
<td>88.10</td>
</tr>
<tr>
<td>GSLM</td>
<td><bold>83</bold>.<bold>93</bold></td>
<td><bold>88.96</bold></td>
</tr>
</tbody>
</table>
</table-wrap><table-wrap id="table-5">
<label>Table 5</label>
<caption>
<title>Ablation study results on the graph regression task (Linux1000)</title>
</caption>
<table>
<colgroup>
<col/>
<col/>
<col/>
<col/>
<col/>
<col/>
</colgroup>
<thead>
<tr>
<th>Methods</th>
<th>MSE (10<sup><bold>&#x2212;3</bold></sup><bold>)</bold></th>
<th><bold>&#x03C1;</bold></th>
<th><inline-formula id="ieqn-88"><mml:math id="mml-ieqn-88"><mml:mi mathvariant="bold-italic">&#x03C4;</mml:mi></mml:math></inline-formula></th>
<th>p<bold>@</bold>10</th>
<th>p<bold>@</bold>20</th>
</tr>
</thead>
<tbody>
<tr>
<td>GSLM w/o SA FA</td>
<td>10.640</td>
<td>0.882</td>
<td>0.717</td>
<td>0.259</td>
<td>0.280</td>
</tr>
<tr>
<td>GSLM w/o SA</td>
<td>8.677</td>
<td>0.897</td>
<td>0.735</td>
<td>0.354</td>
<td>0.390</td>
</tr>
<tr>
<td>GSLM w/o FA</td>
<td>8.666</td>
<td>0.899</td>
<td>0.738</td>
<td>0.338</td>
<td>0.364</td>
</tr>
<tr>
<td>GSLM w/o <inline-formula id="ieqn-89"><mml:math id="mml-ieqn-89"><mml:msub><mml:mi>L</mml:mi><mml:mrow><mml:mi>s</mml:mi><mml:mi>u</mml:mi><mml:mi>b</mml:mi></mml:mrow></mml:msub></mml:math></inline-formula></td>
<td>8.121</td>
<td>0.897</td>
<td>0.736</td>
<td>0.334</td>
<td>0.380</td>
</tr>
<tr>
<td>GSLM</td>
<td><bold>7.194</bold></td>
<td><bold>0.903</bold></td>
<td><bold>0.745</bold></td>
<td><bold>0.383</bold></td>
<td><bold>0.405</bold></td>
</tr>
</tbody>
</table>
</table-wrap>
<p><xref ref-type="table" rid="table-4">Tables 4</xref> and <xref ref-type="table" rid="table-5">5</xref> show that the proposed methods enhanced task performance. Attribute and structural augmentation, along with the subgraph-level contrast, contributed significantly. Learnable augmentation preserved semantic and structural information, while subgraph-level contrast captured higher-level details, improving contrastive learning effectiveness and validating the modules&#x2019; utility.</p>

</sec>
</sec>
<sec id="s6">
<label>6</label>
<title>Conclusion and Future Work</title>
<p>This paper proposes an unsupervised multi-level contrastive learning method based on learnable augmentation for graph similarity learning, using attribute and structural augmentation alongside subgraph-level contrast to capture higher-level information learning. Experimental results demonstrate the effectiveness of the proposed method.</p>
<p>Currently, most graph similarity learning problems focus on static graphs. However, in real-world networks, graphs often evolve over time. Therefore, research on the similarity of dynamic graphs is a future direction for graph similarity learning.</p>
</sec>
</body>
<back>
<ack><title>Acknowledgement</title>
<p> The authors are grateful to all the editors and anonymous reviewers for their comments and suggestions and thank all the members who have contributed to this work with us.</p>
</ack>
<sec>
<title>Funding Statement: </title>
<p>The authors received no specific funding for this study.</p>
</sec>
<sec>
<title>Author Contributions: </title>
<p>The authors confirm contribution to the paper as follows: study conception and design: Yifan Guo; data collection: Yifan Guo; analysis and interpretation of results: Yifan Guo; draft manuscript preparation: Jian Feng, Yifan Guo, and Cailing Du. All authors reviewed the results and approved the final version of the manuscript.</p>
</sec>
<sec sec-type="data-availability">
<title>Availability of Data and Materials: </title>
<p>The data that support the findings of this study are available from the corresponding author, Jian Feng, upon reasonable request.</p>
</sec>
<sec>
<title>Ethics Approval: </title>
<p>Not applicable.</p>
</sec>
<sec sec-type="COI-statement">
<title>Conflicts of Interest: </title>
<p>The authors declare no conflicts of interest to report regarding the present study.</p>
</sec>
<ref-list content-type="authoryear">
<title>References</title>
<ref id="ref-1"><label>[1]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>X</given-names></string-name>, <string-name><surname>Ding</surname> <given-names>X</given-names></string-name>, <string-name><surname>Tung</surname> <given-names>AK</given-names></string-name>, <string-name><surname>Ying</surname> <given-names>S</given-names></string-name>, <string-name><surname>Jin</surname> <given-names>H</given-names></string-name></person-group>. <article-title>An efficient graph indexing method</article-title>. <conf-name>In: 2012 IEEE 28th International Conference on Data Engineering</conf-name>; <year>2012</year>; <publisher-loc>Arlington, VA, USA</publisher-loc>. p. <fpage>210</fpage>&#x2013;<lpage>21</lpage>.</mixed-citation></ref>
<ref id="ref-2"><label>[2]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>S</given-names></string-name>, <string-name><surname>Chen</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Yu</surname> <given-names>X</given-names></string-name>, <string-name><surname>Li</surname> <given-names>D</given-names></string-name>, <string-name><surname>Ni</surname> <given-names>J</given-names></string-name>, <string-name><surname>Tang</surname> <given-names>L-A</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Heterogeneous graph matching networks for unknown malware detection</article-title>. <conf-name>In: International Joint Conferences on Artificial Intelligence</conf-name>; <year>2019</year>; <publisher-loc>Macao, China</publisher-loc>. p. <fpage>3762</fpage>&#x2013;<lpage>70</lpage>.</mixed-citation></ref>
<ref id="ref-3"><label>[3]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Liu</surname> <given-names>B</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>J</given-names></string-name>, <string-name><surname>Wu</surname> <given-names>J</given-names></string-name>, <string-name><surname>Qu</surname> <given-names>G</given-names></string-name></person-group>. <article-title>DeepSIM: a novel deep learning method for graph similarity computation</article-title>. <source>Soft Comput</source>. <year>2024</year>;<volume>28</volume>(<issue>1</issue>):<fpage>61</fpage>&#x2013;<lpage>76</lpage>. doi:<pub-id pub-id-type="doi">10.1007/s00500-023-09288-1</pub-id>.</mixed-citation></ref>
<ref id="ref-4"><label>[4]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Jin</surname> <given-names>D</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>L</given-names></string-name>, <string-name><surname>Zheng</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Li</surname> <given-names>X</given-names></string-name>, <string-name><surname>Jiang</surname> <given-names>F</given-names></string-name>, <string-name><surname>Lin</surname> <given-names>W</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>CGMN: a contrastive graph matching network for self-supervised graph similarity learning</article-title>. <conf-name>In: Proceedings of the Thirty-First International Joint Conference on Artificial Intelligence</conf-name>; <year>2022</year>; <publisher-loc>Vienna, Austria</publisher-loc>. p. <fpage>2101</fpage>&#x2013;<lpage>7</lpage>.</mixed-citation></ref>
<ref id="ref-5"><label>[5]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Hu</surname> <given-names>S</given-names></string-name>, <string-name><surname>Zeng</surname> <given-names>W</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>P</given-names></string-name>, <string-name><surname>Tang</surname> <given-names>J</given-names></string-name></person-group>. <article-title>Neural graph similarity computation with contrastive learning</article-title>. <source>Appl Sci</source>. <year>2022</year>;<volume>12</volume>(<issue>15</issue>):<fpage>7668</fpage>. doi:<pub-id pub-id-type="doi">10.3390/app12157668</pub-id>.</mixed-citation></ref>
<ref id="ref-6"><label>[6]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Tian</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Krishnan</surname> <given-names>D</given-names></string-name>, <string-name><surname>Isola</surname> <given-names>P</given-names></string-name></person-group>. <article-title>Contrastive multiview coding</article-title>. <conf-name>In: Computer Vision&#x2014;ECCV 2020: 16th European Conference</conf-name>; <year>2020</year>; <publisher-loc>Glasgow, UK</publisher-loc>. p. <fpage>776</fpage>&#x2013;<lpage>94</lpage>.</mixed-citation></ref>
<ref id="ref-7"><label>[7]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Zhu</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Xu</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Yu</surname> <given-names>F</given-names></string-name>, <string-name><surname>Liu</surname> <given-names>Q</given-names></string-name>, <string-name><surname>Wu</surname> <given-names>S</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>L</given-names></string-name></person-group>. <article-title>Deep graph contrastive representation learning</article-title>. <comment>arXiv:2006.04131. 2020</comment>.</mixed-citation></ref>
<ref id="ref-8"><label>[8]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Chen</surname> <given-names>X</given-names></string-name>, <string-name><surname>Huo</surname> <given-names>H</given-names></string-name>, <string-name><surname>Huan</surname> <given-names>J</given-names></string-name>, <string-name><surname>Vitter</surname> <given-names>JS</given-names></string-name></person-group>. <article-title>An efficient algorithm for graph edit distance computation</article-title>. <source>Knowl Based Syst</source>. <year>2019</year>;<volume>163</volume>:<fpage>762</fpage>&#x2013;<lpage>77</lpage>. doi:<pub-id pub-id-type="doi">10.1016/j.knosys.2018.10.002</pub-id>.</mixed-citation></ref>
<ref id="ref-9"><label>[9]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Fey</surname> <given-names>M</given-names></string-name>, <string-name><surname>Lenssen</surname> <given-names>JE</given-names></string-name>, <string-name><surname>Morris</surname> <given-names>C</given-names></string-name>, <string-name><surname>Masci</surname> <given-names>J</given-names></string-name>, <string-name><surname>Kriege</surname> <given-names>NM</given-names></string-name></person-group>. <article-title>Deep graph matching consensus</article-title>. <comment>arXiv:2001.09621. 2020</comment>.</mixed-citation></ref>
<ref id="ref-10"><label>[10]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ma</surname> <given-names>G</given-names></string-name>, <string-name><surname>Ahmed</surname> <given-names>NK</given-names></string-name>, <string-name><surname>Willke</surname> <given-names>TL</given-names></string-name>, <string-name><surname>Yu</surname> <given-names>PS</given-names></string-name></person-group>. <article-title>Deep graph similarity learning: a survey</article-title>. <source>Data Min Knowl Discov</source>. <year>2021</year>;<volume>35</volume>:<fpage>688</fpage>&#x2013;<lpage>725</lpage>. doi:<pub-id pub-id-type="doi">10.1007/s10618-020-00733-5</pub-id>.</mixed-citation></ref>
<ref id="ref-11"><label>[11]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Yang</surname> <given-names>P</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>H</given-names></string-name>, <string-name><surname>Yang</surname> <given-names>J</given-names></string-name>, <string-name><surname>Qian</surname> <given-names>Z</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Lin</surname> <given-names>X</given-names></string-name></person-group>. <article-title>Deep learning approaches for similarity computation: a survey</article-title>. <source>IEEE Trans Knowl Data Eng</source>. <year>2024</year>;<volume>36</volume>(<issue>12</issue>):<fpage>7893</fpage>&#x2013;<lpage>912</lpage>. doi:<pub-id pub-id-type="doi">10.1109/TKDE.2024.3422484</pub-id>.</mixed-citation></ref>
<ref id="ref-12"><label>[12]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Li</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Gu</surname> <given-names>C</given-names></string-name>, <string-name><surname>Dullien</surname> <given-names>T</given-names></string-name>, <string-name><surname>Vinyals</surname> <given-names>O</given-names></string-name>, <string-name><surname>Kohli</surname> <given-names>P</given-names></string-name></person-group>. <article-title>Graph matching networks for learning the similarity of graph structured objects</article-title>. <conf-name>In: Proceedings of the 36th International Conference on Machine Learning</conf-name>; <year>2019</year>; <publisher-loc>Long Beach, CA, USA</publisher-loc>. p. <fpage>3835</fpage>&#x2013;<lpage>45</lpage>.</mixed-citation></ref>
<ref id="ref-13"><label>[13]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Bai</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Ding</surname> <given-names>H</given-names></string-name>, <string-name><surname>Bian</surname> <given-names>S</given-names></string-name>, <string-name><surname>Chen</surname> <given-names>T</given-names></string-name>, <string-name><surname>Sun</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>W</given-names></string-name></person-group>. <article-title>SimGNN: a neural network approach to fast graph similarity computation</article-title>. <conf-name>In: Proceedings of the Twelfth ACM International Conference on Web Search and Data Mining, WSDM 2019</conf-name>; <year>2019</year>; <publisher-loc>Melbourne, VIC, Australia</publisher-loc>. p. <fpage>384</fpage>&#x2013;<lpage>92</lpage>.</mixed-citation></ref>
<ref id="ref-14"><label>[14]</label><mixed-citation publication-type="conf-proc"><person-group person-group-type="author"><string-name><surname>Bai</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Ding</surname> <given-names>H</given-names></string-name>, <string-name><surname>Gu</surname> <given-names>K</given-names></string-name>, <string-name><surname>Sun</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>W</given-names></string-name></person-group>. <article-title>Learning-based efficient graph similarity computation via multi-scale convolutional set matching</article-title>. <conf-name>In: Proceedings of the Thirty-Fourth AAAI Conference on Artificial Intelligence, AAAI 2020, the Thirty-Second Innovative Applications of Artificial Intelligence Conference, IAAI 2020, the Tenth AAAI Symposium on Educational Advances in Artificial Intelligence, EAAI 2020</conf-name>; <year>2020</year>; <publisher-loc>New York, NY, USA</publisher-loc>. p. <fpage>3219</fpage>&#x2013;<lpage>26</lpage>.</mixed-citation></ref>
<ref id="ref-15"><label>[15]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Ling</surname> <given-names>X</given-names></string-name>, <string-name><surname>Wu</surname> <given-names>L</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>S</given-names></string-name>, <string-name><surname>Ma</surname> <given-names>T</given-names></string-name>, <string-name><surname>Xu</surname> <given-names>F</given-names></string-name>, <string-name><surname>Liu</surname> <given-names>AX</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Multi-level graph matching networks for deep graph similarity learning</article-title>. <source>IEEE Trans Neural Netw Learn Syst</source>. <year>2023</year>;<volume>34</volume>(<issue>2</issue>):<fpage>799</fpage>&#x2013;<lpage>813</lpage>. doi:<pub-id pub-id-type="doi">10.1109/TNNLS.2021.3102234</pub-id>; <pub-id pub-id-type="pmid">34406948</pub-id></mixed-citation></ref>
<ref id="ref-16"><label>[16]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Tan</surname> <given-names>W</given-names></string-name>, <string-name><surname>Gao</surname> <given-names>X</given-names></string-name>, <string-name><surname>Li</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Wen</surname> <given-names>G</given-names></string-name>, <string-name><surname>Cao</surname> <given-names>P</given-names></string-name>, <string-name><surname>Yang</surname> <given-names>J</given-names></string-name>, <etal>et al</etal></person-group>. <article-title>Exploring attention mechanism for graph similarity learning</article-title>. <source>Knowl Based Syst</source>. <year>2023</year>;<volume>276</volume>(<issue>3&#x2013;4</issue>):<fpage>110739</fpage>. doi:<pub-id pub-id-type="doi">10.1016/j.knosys.2023.110739</pub-id>.</mixed-citation></ref>
<ref id="ref-17"><label>[17]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Wang</surname> <given-names>L</given-names></string-name>, <string-name><surname>Zheng</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Jin</surname> <given-names>D</given-names></string-name>, <string-name><surname>Li</surname> <given-names>F</given-names></string-name>, <string-name><surname>Qiao</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Pan</surname> <given-names>S</given-names></string-name></person-group>. <article-title>Contrastive graph similarity networks</article-title>. <source>ACM Trans Web</source>. <year>2024</year>;<volume>18</volume>(<issue>2</issue>):<fpage>17</fpage>&#x2013;<lpage>20</lpage>. doi:<pub-id pub-id-type="doi">10.1145/3580511</pub-id>.</mixed-citation></ref>
<ref id="ref-18"><label>[18]</label><mixed-citation publication-type="journal"><person-group person-group-type="author"><string-name><surname>Yin</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>Q</given-names></string-name>, <string-name><surname>Huang</surname> <given-names>S</given-names></string-name>, <string-name><surname>Xiong</surname> <given-names>H</given-names></string-name>, <string-name><surname>Zhang</surname> <given-names>X</given-names></string-name></person-group>. <article-title>AutoGCL: automated graph contrastive learning via learnable view generators</article-title>. <source>Proc AAAI Conf Artif Intell</source>. <year>2022</year>;<volume>36</volume>(<issue>8</issue>):<fpage>8892</fpage>&#x2013;<lpage>900</lpage>. doi:<pub-id pub-id-type="doi">10.1609/aaai.v36i8.20871</pub-id>.</mixed-citation></ref>
<ref id="ref-19"><label>[19]</label><mixed-citation publication-type="other"><person-group person-group-type="author"><string-name><surname>Liu</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Zhao</surname> <given-names>Y</given-names></string-name>, <string-name><surname>Wang</surname> <given-names>X</given-names></string-name>, <string-name><surname>Geng</surname> <given-names>L</given-names></string-name>, <string-name><surname>Xiao</surname> <given-names>Z</given-names></string-name></person-group>. <article-title>Multi-scale subgraph contrastive learning</article-title>. <comment>arXiv:2403.02719. 2024</comment>.</mixed-citation></ref>
</ref-list>
</back></article>












