A predictor-based transferable graph neural architecture search method and system

Through the predictor-based method, the migration problem of graph neural architecture search on different data sets is solved, time and efficiency are improved, and stronger versatility and performance are provided.

CN118536543BActive Publication Date: 2024-10-18HANGZHOU MIND MEDICAL ALLIANCE TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411002389.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-18
Estimated Expiration
2044-07-25

AI Technical Summary

Technical Problem

Existing graph neural architecture search methods lack robustness across data sets and require specific search spaces and search algorithms to be designed for different graph data or tasks, resulting in long search times, low efficiency, and poor migration effects.

Method used

Adopting a predictor-based transferable graph neural architecture search method, by randomly sampling graph neural architectures in the search space, using reinforcement learning networks and encoders to predict architecture performance, sorting and selecting architectures with better performance, reducing search time and improving efficiency .

Benefits of technology

It achieves migration on different data sets, reduces graph neural architecture search time, improves efficiency, avoids the need to design specific search spaces and algorithms for different tasks, and improves the versatility of architecture performance.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118536543B_ABST
    Figure CN118536543B_ABST
Patent Text Reader

Abstract

The present invention relates to the technical field of graph neural architecture search, and discloses a predictor-based transferable graph neural architecture search method and system, the method comprising: randomly sampling a first graph neural architecture and a second graph neural architecture in a search space; inputting the first graph neural architecture, the second graph neural architecture, and a target data set into an encoder respectively, obtaining the encoding of the first graph neural architecture, the encoding of the second graph neural architecture, and the encoding of the target data set; performing weighted calculations according to the encoding of the first graph neural architecture, the encoding of the second graph neural architecture, and the encoding of the target data set, and outputting the predicted probability that the first graph neural architecture is better than the second graph neural architecture; obtaining a sorting result according to the predicted probability, and selecting the graph neural architecture with the best performance on the target data set for reconstruction according to the sorting result. The present invention reduces the time of graph neural architecture search, improves the efficiency of graph neural architecture search, has strong versatility, and can achieve migration on different data sets.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of graph neural architecture search technology, and in particular to a predictor-based transferable graph neural architecture search method and system. Background Art

[0002] Most existing graph neural architecture search methods lack cross-dataset robustness and often require the design of specific search spaces and search algorithms for different graph data or tasks. It is very time-consuming to conduct architecture search from scratch, and it takes a lot of manpower to design specific search spaces and search algorithms for different graph data or tasks, and it takes a lot of time to train the model when estimating the model performance.

[0003] Existing technologies can achieve the migration of neural architecture search on different datasets and fine-tune graph neural networks on different downstream tasks, but only a small number of works have achieved the migration of graph neural architecture search on different datasets. Some works try to integrate the specific information of downstream tasks into pre-trained graph neural networks to achieve the migration of graph neural networks on different tasks; some works capture the similarities between different tasks and transfer the architectural design knowledge of tasks similar to the new task to the new task, thus achieving transferable graph neural architecture search. However, there is currently no method based on predictors to achieve migration of graph neural architecture search, and some current methods require fine-tuning parameters on the migrated tasks, and the process of fine-tuning parameters requires training the neural network architecture on the real dataset, resulting in long search time and low search efficiency; other methods capture the similarities between different tasks to find the best architecture on the task most similar to the current task, which leads to poor performance of graph neural architectures obtained by searching for new tasks with poor correlation with the previously trained task set. Therefore, the current technology has the problems of poor migration effect and low search efficiency.

[0004] Therefore, there is an urgent need for a predictor-based transferable graph neural architecture search method and system that can reduce the time of graph neural architecture search, improve the efficiency of graph neural architecture search, be highly versatile, and achieve migration on different data sets. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides a predictor-based transferable graph neural architecture search method and system, which can reduce the time of graph neural architecture search, improve the efficiency of graph neural architecture search, have strong versatility, and can achieve migration on different data sets.

[0006] The present invention provides a predictor-based transferable graph neural architecture search method, comprising the following steps:

[0007] S1. Randomly sample a graph neural architecture in the search space as the first graph neural architecture; wherein the graph neural architecture is regarded as a directed acyclic graph, each graph neural architecture operator in the graph neural architecture is regarded as a node of the directed acyclic graph, the graph neural architecture operator is each operation in the graph neural architecture, and the data flow between two operations in the graph neural architecture is regarded as an edge of the directed acyclic graph;

[0008] S2, sampling N graph neural architectures in the search space as the second graph neural architecture through the reinforcement learning network;

[0009] S3, select a target data set, input the first neural architecture and the target data set into the encoder respectively, and obtain the encoding of the first neural architecture and the encoding of the target data set;

[0010] S4, inputting the encoding of the first neural architecture and the encoding of the target data set into the predictor for weighted calculation to obtain a first weighted result;

[0011] S5, repeating the above steps S3-S4 for the second neural architecture, to obtain N encodings of the second neural architecture and N second weighted results;

[0012] S6. The predictor outputs N predicted probabilities that the first neural architecture is better than the second neural architecture according to the first weighted result and the N second weighted results;

[0013] S7, sorting the N prediction probabilities obtained in S6 from small to large to obtain a first sorting result, sorting the prediction probabilities of the k graph neural architectures in the historical optimal architecture collection from large to small according to the first sorting result, and obtaining a second sorting result, selecting the top k graph neural architectures according to the second sorting result, and updating the historical optimal architecture collection;

[0014] S8, selecting the first-ranked graph neural architecture as a new first graph neural architecture according to the first ranking result, and repeatedly executing S2-S8 until a preset number of iterations is reached;

[0015] S9. Input the encoding of the graph neural architecture ranked first in the current historical optimal architecture collection into the decoder to reconstruct the graph neural architecture, and obtain the graph neural architecture with the best performance on the target data set.

[0016] Furthermore, in S3, the intelligent inspection results obtained according to the real-time monitoring information include:

[0017] S31, inputting the text description of the graph neural architecture operator in the first graph neural architecture into the pre-trained large language model to obtain an embedded representation of the graph neural architecture operator as a graph node feature of the directed acyclic graph;

[0018] S32. Obtain a corresponding adjacency matrix according to the directed acyclic graph, input the graph node features and the adjacency matrix into the first graph neural network in the encoder, and obtain an encoding of the first graph neural network architecture;

[0019] S33. Input the graph node features of the target data set and the adjacency matrix of the target data set into the second graph neural network in the encoder to obtain the encoding of the target data set.

[0020] Further, in S31, the text description of the graph neural architecture operator in the first graph neural architecture is input into the pre-trained large language model, wherein the text description of the graph neural architecture operator includes:

[0021] The title of the paper proposing the graph neural architecture operator, the formula for calculating the node characteristics of the graph neural architecture operator, and a brief description of the formula; and the text description of the graph neural architecture operator is in English.

[0022] Further, in S31, the text description of the graph neural architecture operator in the first graph neural architecture is input into the pre-trained large language model to obtain the embedded representation of the graph neural architecture operator, including:

[0023] S311, inputting the text description of the graph neural architecture operator into the embedding layer of the pre-trained large language model and segmenting it into a number of tokens;

[0024] S312, mapping each tag to a vector;

[0025] S313. Add the vectors corresponding to all tags to obtain a final vector representing the text description of the graph neural architecture operator. The final vector is the embedded representation of the graph neural architecture operator.

[0026] Further, in S32, a corresponding adjacency matrix is ​​obtained according to the directed acyclic graph, wherein the adjacency matrix is ​​represented by an upper triangular matrix. If two nodes i and j of the directed acyclic graph are connected by an edge, then the element a corresponding to the adjacency matrix is ij is 1, otherwise it is 0; where i<j.

[0027] Further, in S6, the predictor outputs N predicted probabilities that the first neural architecture is better than the second neural architecture according to the first weighted result and the N second weighted results, specifically including:

[0028] If the predicted probability that the neural architecture of the first image is better than the neural architecture of the second image is greater than or equal to 0.5, then the neural architecture of the first image is considered to be better than the neural architecture of the second image;

[0029] If the predicted probability that the neural architecture of the first image is better than the neural architecture of the second image is less than 0.5, the neural architecture of the second image is considered to be better than the neural architecture of the first image.

[0030] Furthermore, in S1, the search space uses NAS-Bench-Graph.

[0031] The present invention also provides a predictor-based transferable graph neural architecture search system, which is used to execute any of the predictor-based transferable graph neural architecture search methods described above, and the system includes the following modules:

[0032] A graph neural architecture search module is used to randomly sample a graph neural architecture in the search space as a first graph neural architecture; wherein the graph neural architecture is regarded as a directed acyclic graph, each graph neural architecture operator in the graph neural architecture is regarded as a node of the directed acyclic graph, the graph neural architecture operator is each operation in the graph neural architecture, and the data flow between two operations in the graph neural architecture is regarded as an edge of the directed acyclic graph; and N graph neural architectures are sampled in the search space as a second graph neural architecture through a reinforcement learning network;

[0033] An encoding module, connected to the graph neural architecture search module, for selecting a target data set, inputting the first graph neural architecture and the target data set into an encoder respectively, and obtaining an encoding of the first graph neural architecture and an encoding of the target data set;

[0034] The prediction module is connected to the encoding module and is used to input the encoding of the first neural architecture and the encoding of the target data set into the predictor for weighted calculation to obtain a first weighted result; and obtain the encodings of the N second neural architectures and N second weighted results; the predictor outputs the prediction probability that the N first neural architectures are better than the second neural architectures according to the first weighted result and the N second weighted results;

[0035] A sorting module, connected to the prediction module, is used to sort the N prediction probabilities obtained by S6 from small to large to obtain a first sorting result, sort the prediction probabilities of the k graph neural architectures in the historical optimal architecture collection from large to small according to the first sorting result, and obtain a second sorting result, select the top k graph neural architectures according to the second sorting result, and update the historical optimal architecture collection;

[0036] An iterative optimization module, connected to the sorting module, for selecting the first-ranked graph neural architecture as a new first graph neural architecture according to the first sorting result, and repeatedly performing the above steps until a preset number of iterations is reached;

[0037] The graph neural architecture reconstruction module is connected to the iterative optimization module and is used to input the encoded input of the graph neural architecture ranked first in the current historical optimal architecture collection into the decoder to reconstruct the graph neural architecture and obtain the graph neural architecture with the best performance on the target data set.

[0038] The embodiments of the present invention have the following technical effects:

[0039] The present invention predicts and ranks the performance of various graph neural architectures based on the target data set through a performance ranking predictor, avoiding the design of specific search spaces and search algorithms for different graph data or tasks. There is no need to start architecture search from scratch, and there is no need to build all graph neural architectures and test their performance on the target data set. Instead, it is only necessary to select one or several with the best performance according to the prediction results given by the predictor to build and verify their performance. This reduces the time for graph neural architecture search and greatly improves the efficiency of graph neural architecture search. In addition, the migration of graph neural architecture search on different data sets can be achieved by simply replacing the target data set selected in this scheme. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0041] Figure 1 is a flowchart of a predictor-based transferable graph neural architecture search method provided by an embodiment of the present invention;

[0042] Figure 2 is a schematic diagram of a directed acyclic graph provided by an embodiment of the present invention;

[0043] Figure 3 is a schematic diagram of a directed acyclic graph and its adjacency matrix provided by an embodiment of the present invention;

[0044] Figure 4 It is a structural diagram of a predictor-based transferable graph neural architecture search system provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solution and advantages of the present invention clearer, the technical solution of the present invention will be described clearly and completely below. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work belong to the scope of protection of the present invention.

[0046] Figure 1 is a flowchart of a predictor-based transferable graph neural architecture search method provided by an embodiment of the present invention, see Figure 1 , including:

[0047] S1. Randomly sample a graph neural architecture in the search space as the first graph neural architecture.

[0048] Specifically, Figure 2 is a schematic diagram of a directed acyclic graph provided by an embodiment of the present invention, see Figure 2 , the graph neural architecture is regarded as a directed acyclic graph, each graph neural architecture operator in the graph neural architecture is regarded as a node of the directed acyclic graph, the graph neural architecture operator is each operation in the graph neural architecture, and the data flow between two operations in the graph neural architecture is regarded as the edge of the directed acyclic graph. The search space of the embodiment of the present invention selects NAS-Bench-Graph, and the directed acyclic graph designed in the search space contains 6 nodes (including input and output nodes), and each intermediate node is constrained to have only one incoming edge. Each node in the graph represents a graph neural architecture operator, and the operator can include 7 types of graph neural network (GNN) layers such as graph convolutional network (GCN), graph attention network (GAT), graph isomorphism network (GIN), residual connection (skip) layer and fully connected layer (Fc).

[0049] S2. Sample N graph neural architectures in the search space as the second graph neural architecture through the reinforcement learning network.

[0050] Among them, the number N of neural architectures in the second figure can be set according to actual needs.

[0051] Specifically, the policy network of reinforcement learning is initialized and the controller of reinforcement learning is trained. Samples are taken from the search space according to the current policy network (neural network), and the search strategy is updated according to the rewards obtained from the sampling results, that is, the predicted probability output by the predictor. During the search process, the policy network will continuously update the parameters according to the rewards obtained, so that the next sampling can better select the graph neural network architecture, that is, the performance of the graph neural network architecture selected for the next sampling is better.

[0052] S3. Select a target data set, input the first neural architecture and the target data set into the encoder respectively, and obtain the encoding of the first neural architecture and the encoding of the target data set.

[0053] S31. Input the text description of the graph neural architecture operator in the first graph neural architecture into the pre-trained large language model to obtain the embedded representation of the graph neural architecture operator as the graph node feature of the directed acyclic graph.

[0054] S311. Input the text description of the graph neural architecture operator into the embedding layer of the pre-trained large language model and split it into several tokens.

[0055] Specifically, a token is the smallest unit of text, usually a single character or a subword. For example, the word "prompt" can be split into two tokens: "prom" and "pt".

[0056] S312, map each tag to a vector.

[0057] For example, the vectors labeled “prom” and “pt” might be mapped to [0.2, -0.1, 0.3, …] and [-0.4, 0.5, -0.2, …], respectively.

[0058] S313. Add the vectors corresponding to all tags to obtain a final vector representing the text description of the graph neural architecture operator. The final vector is the embedded representation of the graph neural architecture operator.

[0059] For example, the embedding representation of “prompt” might be [0.2, -0.1, 0.3, …] + [-0.4, 0.5, -0.2, …] = [-0.2, 0.4, 0.1, …].

[0060] Furthermore, the text description of the graph neural architecture operator includes: the title of the paper proposing the graph neural architecture operator, the formula for calculating the node characteristics of the graph neural architecture operator, and a brief description of the formula; and the text description of the graph neural architecture operator is in English text.

[0061] Exemplarily, explained in Chinese, the text description of the graph neural architecture operator is as follows:

[0062] Title of the paper proposing the graph neural architecture operator: The Graph Convolutional Network (GCN) operator was proposed in the paper “Semi-Supervised Classification with Graph Convolutional Networks”;

[0063] The formula for calculating node features of graph neural architecture operators: In graph convolutional networks, the node features of target node i The calculation formula is:

[0064] ;

[0065] A brief explanation of the formula: , x j represents the node feature of source node j, N(i) represents the set of all neighbor nodes of target node i, e j,i represents the weight of the edge from source node j to target node i (default is 1.0), Represents the learnable weights of the neural network.

[0066] S32. Obtain a corresponding adjacency matrix according to the directed acyclic graph, input the graph node features and the adjacency matrix into the first graph neural network in the encoder, and obtain the encoding of the first graph neural architecture.

[0067] Specifically, Figure 3 is a schematic diagram of a directed acyclic graph and its adjacency matrix provided by an embodiment of the present invention, see Figure 3 , the adjacency matrix is ​​represented by an upper triangular matrix. If there is an edge connecting two nodes i and j in the directed acyclic graph, then the element a corresponding to the adjacency matrix ij is 1, otherwise it is 0; where i<j.

[0068] S33. Input the graph node features of the target data set and the adjacency matrix of the target data set into the second graph neural network in the encoder to obtain the encoding of the target data set.

[0069] Specifically, in order to encode different graph datasets into the same vector space, a text attribute graph is used, and text descriptions are used as node features in the graph dataset. The target dataset can be a citation network. Taking the citation network as an example, each node in the citation network represents a research paper from the field of computer science. The original text features of the node are the title and abstract of the corresponding paper, and each edge represents the citation relationship between papers. The embedded representation obtained by passing the text description of the node through the embedding layer of the pre-trained large language model is used as the node representation, which ensures the uniformity of the node representation dimension between different datasets. At the same time, the acquisition of this node representation utilizes the semantic information of the large language model, providing richer information for the feature representation of the graph dataset, which can further improve the effect of data processing and analysis.

[0070] Exemplary, commonly used citation network datasets include: Cora, CiteSeer, and PubMed. All three datasets consist of an undirected graph. Among them, nodes represent paper documents, and edges represent citation relationships between paper documents. The node feature is a word vector, and each element of the word vector corresponds to a word, with a value of 0 or 1. An element value of 0 indicates that the word corresponding to the element does not appear in the paper, and an element value of 1 indicates that the word corresponding to the element appears in the paper. Each paper cites at least one other paper, or is cited by other papers, so each dataset is a connected graph with no isolated points. The information of these three datasets is shown in Table 1 below:

[0071] Table 1 Information table of citation network dataset

[0072]

[0073] The number of labels represents the number of categories that these papers may belong to. Taking the Cora dataset as an example, 2708 machine learning papers are divided into seven categories: case-based, genetic algorithm, neural network, probabilistic method, reinforcement learning, rule learning, and theory.

[0074] S4. Input the encoding of the first graph neural architecture and the encoding of the target data set into the predictor for weighted calculation to obtain a first weighted result.

[0075] S5. Repeat the above steps S3-S4 for the second graph neural architecture to obtain N encodings of the second graph neural architecture and N second weighted results.

[0076] S6. The predictor outputs N predicted probabilities that the first graph neural architecture is better than the second graph neural architecture based on the first weighted result and the N second weighted results.

[0077] Specifically, each time a first weighted result and a second weighted result are input into the predictor for comparison, if the prediction probability that the neural architecture of the first image is better than the neural architecture of the second image is greater than or equal to 0.5, then the neural architecture of the first image is considered to be better than the neural architecture of the second image; if the prediction probability that the neural architecture of the first image is better than the neural architecture of the second image is less than 0.5, then the neural architecture of the second image is considered to be better than the neural architecture of the first image.

[0078] S7. Sort the N prediction probabilities obtained in S6 from small to large to obtain a first sorting result. Sort the prediction probabilities of the k graph neural architectures in the first sorting result and the historical optimal architecture collection from large to small to obtain a second sorting result. Select the top k graph neural architectures according to the second sorting result and update the historical optimal architecture collection.

[0079] Specifically, the collection of historical optimal architectures includes the k graph neural architectures with the best performance among all graph neural architectures obtained from the start of the iteration to the current iteration number, and after each iteration, the k graph neural architectures with the best performance are reselected to update the collection of historical optimal architectures, where the value of k can be set according to actual needs, and k<N.

[0080] S8. According to the first sorting result, select the first-ranked graph neural architecture as the new first graph neural architecture, and repeat S2-S8 until the preset number of iterations is reached.

[0081] S9. Input the encoding of the graph neural architecture ranked first in the current historical optimal architecture collection into the decoder to reconstruct the graph neural architecture, and obtain the graph neural architecture with the best performance on the target data set.

[0082] Specifically, the decoder consists of two fully connected layers, which are used to reconstruct the operator and the adjacency matrix respectively.

[0083] Furthermore, after reconstructing the graph neural architecture, the performance of the graph neural architecture can be verified on the target dataset.

[0084] The present invention predicts and ranks the performance of various graph neural architectures based on the target data set through a performance ranking predictor, avoiding the design of specific search spaces and search algorithms for different graph data or tasks. There is no need to start architecture search from scratch, and there is no need to build all graph neural architectures and test their performance on the target data set. Instead, it is only necessary to select one or several with the best performance according to the prediction results given by the predictor to build and verify their performance. This reduces the time for graph neural architecture search and greatly improves the efficiency of graph neural architecture search. In addition, the migration of graph neural architecture search on different data sets can be achieved by simply replacing the target data set selected in this scheme.

[0085] Figure 4 is a schematic diagram of a structure of a predictor-based transferable graph neural architecture search system provided by an embodiment of the present invention, the system is used to execute a predictor-based transferable graph neural architecture search method described in the above embodiment, such as Figure 4 As shown, the system includes the following modules:

[0086] A graph neural architecture search module is used to randomly sample a graph neural architecture in the search space as a first graph neural architecture; wherein the graph neural architecture is regarded as a directed acyclic graph, each graph neural architecture operator in the graph neural architecture is regarded as a node of the directed acyclic graph, the graph neural architecture operator is each operation in the graph neural architecture, and the data flow between two operations in the graph neural architecture is regarded as an edge of the directed acyclic graph; and N graph neural architectures are sampled in the search space as a second graph neural architecture through a reinforcement learning network;

[0087] An encoding module, connected to the graph neural architecture search module, for selecting a target data set, inputting the first graph neural architecture and the target data set into an encoder respectively, and obtaining an encoding of the first graph neural architecture and an encoding of the target data set;

[0088] The prediction module is connected to the encoding module and is used to input the encoding of the first neural architecture and the encoding of the target data set into the predictor for weighted calculation to obtain a first weighted result; and obtain the encodings of the N second neural architectures and N second weighted results; the predictor outputs the prediction probability that the N first neural architectures are better than the second neural architectures according to the first weighted result and the N second weighted results;

[0089] A sorting module, connected to the prediction module, is used to sort the N prediction probabilities obtained by S6 from small to large to obtain a first sorting result, sort the prediction probabilities of the k graph neural architectures in the historical optimal architecture collection from large to small according to the first sorting result, and obtain a second sorting result, select the top k graph neural architectures according to the second sorting result, and update the historical optimal architecture collection;

[0090] An iterative optimization module, connected to the sorting module, for selecting the first-ranked graph neural architecture as a new first graph neural architecture according to the first sorting result, and repeatedly performing the above steps until a preset number of iterations is reached;

[0091] The graph neural architecture reconstruction module is connected to the iterative optimization module and is used to input the encoded input of the graph neural architecture ranked first in the current historical optimal architecture collection into the decoder to reconstruct the graph neural architecture and obtain the graph neural architecture with the best performance on the target data set.

[0092] It should be noted that the terms used in the present invention are only for describing specific embodiments, rather than limiting the scope of the present application. As shown in the present specification, unless the context clearly indicates an exception, the words "one", "a", "a kind of" and / or "the" do not specifically refer to the singular, but may also include the plural. The terms "include", "comprise" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method or device. In the absence of more restrictions, the elements defined by the sentence "include one..." do not exclude the presence of other identical elements in the process, method or device including the elements.

[0093] It should also be noted that the terms "center", "up", "down", "left", "right", "vertical", "horizontal", "inside", "outside", etc., indicating the orientation or positional relationship, are based on the orientation or positional relationship shown in the drawings, and are only for the convenience of describing the present invention and simplifying the description, rather than indicating or implying that the device or element referred to must have a specific orientation, be constructed and operated in a specific orientation, and therefore cannot be understood as a limitation on the present invention. Unless otherwise clearly specified and limited, the terms "installed", "connected", "connected", etc. should be understood in a broad sense, for example, it can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection, or it can be an indirect connection through an intermediate medium, or it can be a connection between the two elements. For those of ordinary skill in the art, the specific meanings of the above terms in the present invention can be understood according to specific circumstances.

[0094] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein by equivalents. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.

Claims

1. A predictor-based transferable graph neural architecture search method, characterized in that: The steps include: S1. Randomly sample a graph neural architecture in the search space as the first graph neural architecture; wherein the graph neural architecture is regarded as a directed acyclic graph, each graph neural architecture operator in the graph neural architecture is regarded as a node of the directed acyclic graph, the graph neural architecture operator is each operation in the graph neural architecture, and the data flow between two operations in the graph neural architecture is regarded as an edge of the directed acyclic graph; S2. Sampling N graph neural architectures in the search space as the second graph neural architecture through a reinforcement learning network; S3, selecting a target data set, inputting the first graph neural architecture and the target data set into an encoder respectively, and obtaining an encoding of the first graph neural architecture and an encoding of the target data set; S31, inputting the text description of the graph neural architecture operator in the first graph neural architecture into a pre-trained large language model to obtain an embedded representation of the graph neural architecture operator as a graph node feature of a directed acyclic graph; The text description of the graph neural architecture operator includes: The title of the paper proposing the graph neural architecture operator, the formula for calculating the node characteristics of the graph neural architecture operator, and a brief description of the formula; and the text description of the graph neural architecture operator is in English; S32, obtaining a corresponding adjacency matrix according to the directed acyclic graph, inputting the graph node features and the adjacency matrix into a first graph neural network in an encoder, and obtaining an encoding of the first graph neural network architecture; S33, inputting the graph node features of the target data set and the adjacency matrix of the target data set into the second graph neural network in the encoder to obtain the encoding of the target data set; S4, inputting the encoding of the first neural architecture and the encoding of the target data set into a predictor for weighted calculation to obtain a first weighted result; S5, repeating the above steps S3-S4 for the second neural architecture of the graph, to obtain N encodings of the second neural architecture of the graph, and N second weighted results; S6, the predictor outputs the prediction probabilities that the N first graph neural architectures are better than the second graph neural architectures according to the first weighted results and the N second weighted results; S7, sorting the N prediction probabilities obtained in S6 from small to large to obtain a first sorting result, sorting the prediction probabilities of k graph neural architectures in the historical optimal architecture collection from large to small according to the first sorting result, and selecting the top k graph neural architectures according to the second sorting result, and updating the historical optimal architecture collection; S8, selecting the first-ranked graph neural architecture as a new first graph neural architecture according to the first ranking result, and repeatedly executing S2-S8 until a preset number of iterations is reached; S9. Input the encoding of the graph neural architecture ranked first in the current historical optimal architecture collection into the decoder to reconstruct the graph neural architecture, and obtain the graph neural architecture with the best performance on the target data set.

2. The predictor-based transferable graph neural architecture search method according to claim 1, characterized in that: In S31, inputting the text description of the graph neural architecture operator in the first graph neural architecture into a pre-trained large language model to obtain an embedded representation of the graph neural architecture operator includes: S311, inputting the text description of the graph neural architecture operator into the embedding layer of the pre-trained large language model, and dividing it into a plurality of tokens; S312, mapping each tag to a vector; S313. Add the vectors corresponding to all the tags to obtain a final vector representing the text description of the graph neural architecture operator, and the final vector is the embedded representation of the graph neural architecture operator.

3. The predictor-based transferable graph neural architecture search method according to claim 1, characterized in that: In S32, a corresponding adjacency matrix is ​​obtained according to the directed acyclic graph, wherein the adjacency matrix is ​​represented by an upper triangular matrix. If two nodes i and j of the directed acyclic graph are connected by an edge, the element a corresponding to the adjacency matrix is ij is 1, otherwise it is 0; where i<j.

4. The predictor-based transferable graph neural architecture search method according to claim 1, characterized in that: In S6, the predictor outputs the predicted probabilities that the N first graph neural architecture is better than the second graph neural architecture according to the first weighted result and the N second weighted results, specifically including: If the predicted probability that the neural architecture of the first graph is better than the neural architecture of the second graph is greater than or equal to 0.5, then the neural architecture of the first graph is considered to be better than the neural architecture of the second graph; If the predicted probability that the neural architecture of the first graph is better than the neural architecture of the second graph is less than 0.5, it is considered that the neural architecture of the second graph is better than the neural architecture of the first graph.

5. The predictor-based transferable graph neural architecture search method according to claim 1, characterized in that: In S1, the search space uses NAS-Bench-Graph.

6. A predictor-based transferable graph neural architecture search system, used to execute the predictor-based transferable graph neural architecture search method according to any one of claims 1 to 5, characterized in that: The system includes the following modules: A graph neural architecture search module is used to randomly sample a graph neural architecture in a search space as a first graph neural architecture; wherein the graph neural architecture is regarded as a directed acyclic graph, each graph neural architecture operator in the graph neural architecture is regarded as a node of the directed acyclic graph, the graph neural architecture operator is each operation in the graph neural architecture, and the data flow between two operations in the graph neural architecture is regarded as an edge of the directed acyclic graph; and N graph neural architectures are sampled in the search space as a second graph neural architecture through a reinforcement learning network; An encoding module, connected to the graph neural architecture search module, for selecting a target data set, inputting the first graph neural architecture and the target data set into an encoder respectively, and obtaining an encoding of the first graph neural architecture and an encoding of the target data set; Specifically used for: inputting the text description of the graph neural architecture operator in the first graph neural architecture into a pre-trained large language model to obtain an embedded representation of the graph neural architecture operator as a graph node feature of a directed acyclic graph; The text description of the graph neural architecture operator includes: The title of the paper proposing the graph neural architecture operator, the formula for calculating the node characteristics of the graph neural architecture operator, and a brief description of the formula; and the text description of the graph neural architecture operator is in English; Obtaining a corresponding adjacency matrix according to the directed acyclic graph, inputting the graph node features and the adjacency matrix into a first graph neural network in an encoder, and obtaining an encoding of the first graph neural network architecture; Inputting the graph node features of the target data set and the adjacency matrix of the target data set into the second graph neural network in the encoder to obtain the encoding of the target data set; A prediction module, connected to the encoding module, for inputting the encoding of the first graph neural architecture and the encoding of the target data set into a predictor for weighted calculation to obtain a first weighted result; and obtaining the encodings of N second graph neural architectures and N second weighted results; the predictor outputs the prediction probability that the N first graph neural architectures are better than the second graph neural architectures according to the first weighted result and the N second weighted results; A sorting module, connected to the prediction module, for sorting the N prediction probabilities obtained by the prediction module from small to large to obtain a first sorting result, sorting the prediction probabilities of the k graph neural architectures in the historical optimal architecture collection from large to small according to the first sorting result and the historical optimal architecture collection, to obtain a second sorting result, selecting the top k graph neural architectures according to the second sorting result, and updating the historical optimal architecture collection; An iterative optimization module, connected to the sorting module, for selecting the first-ranked graph neural architecture as a new first graph neural architecture according to the first sorting result, and repeatedly executing the above modules until a preset number of iterations is reached; The graph neural architecture reconstruction module is connected to the iterative optimization module and is used to input the encoded input of the graph neural architecture ranked first in the current historical optimal architecture collection into the decoder to reconstruct the graph neural architecture and obtain the graph neural architecture with the best performance on the target data set.

Citation Information

Patent Citations

  • Self-adaptive graph classification method, system and equipment based on layered pooling architecture and medium

    CN117034100A

  • Progressive neural network predictor method based on fractional sampling

    CN117725988A