A topology-aware post-processing confidence correction method for GNNs
Through the topology-aware post-processing confidence correction method, GCN is used to propagate confidence and combined with NLL and regularization terms, which solves the problem of insufficient GNN confidence and improves its reliability and self-training performance in security applications.
Patent Information
- Application Number
- CN202111051476.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-08
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-09-08
AI Technical Summary
Existing graph neural networks (GNNs) have insufficient confidence in node classification tasks, resulting in their predictions being distributed in a low-confidence range and cannot be effectively used in safety-critical applications, and self-training methods perform poorly in high label rate data sets. .
A topology-aware post-processing confidence correction method is proposed. By learning temperature parameters and nonlinear correction functions, graph convolution network (GCN) is used to propagate confidence along the network topology, and combined with negative log-logic loss (NLL) and regular ization term to improve the confidence correction and self-training performance of GNN.
It improves the confidence reliability of GNN, effectively utilizes high-confidence predictions, and significantly improves the accuracy of self-training and the trustworthiness of safety-related applications through the corrected model.
Smart Images

Figure CN113688574B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of fiber lasers, and in particular to a topology-aware post-processing confidence correction method applied to GNN. Background Art
[0002] Graphs are ubiquitous in the real world, including social networks, e-commerce networks, transportation networks, etc. Recently, graph neural networks (GNNs) based on message passing have attracted considerable attention in processing graph data. So far, GNNs have been widely used in various applications and achieved remarkable results, such as node classification, link prediction, and graph classification.
[0003] However, in real-world applications, accuracy is not the only goal. In many applications, especially those related to safety, a trustworthy model is highly desirable. Generally speaking, a trustworthy model means that it should know when its predictions may be incorrect. In other words, the probability (confidence) associated with the predicted class label should reflect its actual accuracy. For example, in an autonomous driving scenario, the system will only adopt the prediction given by the model if the model has high confidence in its prediction; otherwise, the decision will be returned to the driver or the system will adopt other safer strategies. Confidence correction has attracted considerable attention in deep learning, and many studies have shown that modern neural network models are overconfident in their predictions, that is, the model's prediction accuracy is lower than its confidence. However, the problem of confidence correction has not been studied in GNNs, so this raises a fundamental question: Are current GNNs overconfident in their predictions like other neural networks?
[0004] As the first contribution of this invention, we show the relationship between confidence and accuracy for graph convolutional networks (GCN) and graph attention networks (GAT) in node classification tasks. We were surprised to find that existing GNNs are far from being well calibrated, and more importantly, GNNs often lack confidence in their predictions, which is very different from other existing deep learning models that are often overconfident. The lack of confidence in GNNs means that many of their predictions are distributed in a low confidence range, and there will be relatively few predictions that can be used for safety-critical applications. Therefore, this invention will explore how to calibrate the confidence of GNNs in their predictions to make them more trustworthy.
[0005] In addition, most current self-training methods have the problem of poor performance in high-label rate datasets. Considering the low confidence problem of GCN, we believe that the reason why existing self-training methods perform poorly is that a large number of high-precision predictions are distributed in low confidence intervals, which makes them unable to be added to the training set. Therefore, the present invention will also explore how to improve the accuracy of self-training in GNN by correcting the confidence. Summary of the invention
[0006] The purpose of the present invention is to provide a topology-aware post-processing confidence correction method applied to GNN, which can correct the confidence of GNN prediction results so that it can represent the true classification probability, so that it can be used in many security-related applications to improve the reliability of prediction results.
[0007] In order to achieve the above object, the present invention provides the following technical solutions:
[0008] The present invention provides a topology-aware post-processing confidence correction method applied to GNN, comprising the following steps:
[0009] S1. Given random variables A and X, for a GCN with l layers, the output v before the softmax layer is obtained by formula (2): i ;
[0010] V=Aσ(…Aσ(AXW (1) )W (2) …)W (l) =[v 1 , …, v N ]. (2)
[0011] Among them, A∈R N*N is the adjacent matrix, X = [x 1 , ..., x N ] is the node feature matrix, W (l) is the weight matrix of the lth layer of GCN, σ(.) represents the activation function, V is the node set, and N = |V| is the number of nodes;
[0012] S2. Use another l-layer GCN as the correction function to propagate the confidence along the network topology. Given the output V of a certain classification GCN, the node corrected output v′ is obtained by formula (3) i and confidence
[0013]
[0014] in It is the softmax operator;
[0015] S3. Order is a correction function, is a one-dimensional function, v i =(v i,1 , ..., v i,K ) is the output of node i, when s is a strictly order-preserving function and h satisfies:
[0016]
[0017] When , h can maintain the classification accuracy of the original model.
[0018] Furthermore, the calibration method for maintaining accuracy in step S3 adopts the TS method or the NLL method.
[0019] Furthermore, the TS method is specifically as follows: a temperature scalar t is used to adjust all classes simultaneously. Given the output vi of node i, a unique temperature parameter ti is learned for each node i using l-layer GCN. Then, the original vi is converted into a corrected output v'i according to ti. Finally, the corrected confidence is obtained according to formula (5):
[0020]
[0021] in, is a scalar greater than zero, σ + (x) = log(1 + exp(x)) is a softplus activation function.
[0022] Furthermore, the NLL method is as follows: the K-type unique hot labels of node i are represented as y i =(y i,1 ,...y i,K ), and assume that the size of the training set is |D train |, calculate the NLL loss of all training nodes according to formula (8)
[0023]
[0024] The NLL loss regularization term is shown in formula (9):
[0025]
[0026] where |cor| and |inc| are the number of nodes classified correctly and incorrectly, respectively. i,m and z i,s are the maximum and second largest predicted probabilities, respectively;
[0027] combination and According to formula (10), the overall objective function is obtained:
[0028]
[0029] Among them, λ is the weight that controls the regularization term.
[0030] Compared with the prior art, the present invention has the following beneficial effects:
[0031] The topology-aware post-processing confidence correction method for GNN provided by the present invention improves confidence while being topologically relevant, nonlinear, and preserving accuracy. The GNN self-training method after correction based on the method can effectively utilize high-confidence predictions. In addition, a large number of experiments have demonstrated the effectiveness of the method proposed by the present invention in terms of correction and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in the present invention. For ordinary technicians in this field, other drawings can also be obtained based on these drawings.
[0033] Figure 1 The confidence distribution histogram of GCN and GAT provided in the embodiment of the present invention before correction.
[0034] Figure 2 Confidence distribution of GCN and GAT provided in the embodiments of the present invention.
[0035] Figure 3 A schematic diagram of a confidence propagation process provided by an embodiment of the present invention.
[0036] Figure 4 The overall block diagram of CaGCN provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0037] In this paper, we focus on correcting the undirected attribute graph G = (V, E) and the adjacent matrix A∈R N*N and node feature matrix X = [x 1 ,…,x N ]. V is the set of nodes, E∈V*V is the set of edges between nodes, and N=|V| is the number of nodes. We give the definition of GNN being perfectly calibrated:
[0038] Definition 1: Given a random variable And a GNN model f θ , where θ is a learnable parameter, for node i, its label is defined as y i ∈Y, the output of GNN is z i =f θ (x i ,A)=(z i,1 ,…,z i,K ), and define and are the model's prediction and the corresponding confidence, respectively. Then we say that when f θ Perfect calibration is achieved when the following definition is met:
[0039]
[0040] According to Definition 1, only when the confidence The GNN is perfectly calibrated when it is exactly equal to the true probability of each node being predicted correctly.
[0041] Next, we take two representative GNNs (GCN and GAT) as examples to analyze whether they are perfectly calibrated.
[0042] Specifically, we apply GCN and GAT to four widely used datasets Cora, Citeseer, Pubmed, and CoraFull, and check whether the results meet the definition of perfect correction. In order to provide more experimental results, we choose three label rates for the training set (i.e., 20, 40, and 60 samples per class, respectively). Since the true probability p cannot be known accurately, we use an approximate method to evaluate whether the model is perfectly corrected.
[0043] Specifically, we first divide the confidence interval into 20 equal buckets, then group the nodes into the corresponding buckets according to the confidence of the model's prediction results for the nodes, and then calculate the average prediction accuracy of the samples in each bucket. We expect that the average classification accuracy of the samples in each bucket is equal to the average confidence of the samples in each bucket, which means that the model is approximately perfectly calibrated. For example, if the average confidence of the samples in the bucket with a value range of [0.95, 1.0] is 0.96, the average classification accuracy of the samples in this bucket should be 96%.
[0044] We are Figure 1 The reliability histogram is used to illustrate the experimental results with a label rate of 20, where the x-axis is the average confidence of samples in 20 buckets of equal size, the y-axis is the average accuracy of samples in each bucket, the dark color represents the actual classification accuracy of GCN and GAT, and the light color represents our expectations. We can find that in all data sets, the average accuracy of samples in most buckets is higher than the average confidence, which shows that these GNNs actually have excellent performance, but the confidence in the prediction is generally low, that is, GNNs are usually underconfident. Please note that this phenomenon of GNN is very different from other existing neural networks, which are usually overconfident.
[0045] In addition, if Figure 2As shown, we also visualized the confidence distribution of the test nodes, where the x-axis is confidence, the y-axis is density, the light color represents the confidence distribution of the correct prediction, and the dark color represents the confidence distribution of the wrong prediction. We know that the height of the histogram multiplied by the width equals the frequency. We can see that a large number of correct predictions are distributed in the low confidence interval. The above results show that the current GNN is far from being perfectly calibrated and the confidence is unreliable.
[0046] Most of the existing technologies have studied the related issues of confidence correction in CV and NLP, and have never considered confidence correction in GNN. However, the traditional methods for confidence correction in CV and NLP cannot be directly applied to Graph, because these methods do not consider the impact of topology in Graph and may cause errors. As a simple example, consider two nodes a and b with the same output, but node a is similar to its neighbors and node b is opposite. Obviously, GCN should be more confident in the prediction of a than b, and traditional confidence correction methods will give the same confidence for a and b. This is because they do not consider the impact of topology and therefore give wrong confidence.
[0047] Based on this, the present invention provides a topology-aware post-processing confidence correction method applied to GNN, which can correct the confidence of GNN prediction results so that it can represent the true classification probability, and thus can be used in many security-related applications to improve the reliability of prediction results. In order to better understand the technical solution, the method of the present invention is described in detail below in conjunction with the accompanying drawings.
[0048] Given A and X, for a GCN with l layers, its output before the softmax layer can be obtained as follows:
[0049] V=Aσ(…Aσ(AXW (1) )W (2) …)W (l) =[v 1 , …, v N ] (2)
[0050] Among them, W (l) is the weight matrix of the GCN layer l, and σ(.) represents the activation function. For each node i∈{0, 1, ..., N}, our goal is to learn a post-processing correction function that uses the reserved data set according to the input v i A corrected confidence score is obtained as output. The correction function should meet the following three requirements: (1) taking the network topology into account (2) being a nonlinear function (3) being able to preserve the accuracy of the classification GCN.
[0051] We assume that the confidence distribution in the graph is homogeneous, that is, the confidences of neighboring nodes given by a well-calibrated model should be similar, and we verify this through experiments. We adopt the classic Temperature Scaling (TS) method as our correction function and use the total variation of confidence as the evaluation method, which sums the confidence differences between all neighboring nodes.
[0052] We compare the changes in the total variation before and after confidence correction, and the results are shown in Table 1. We can find that the total variation of confidence is indeed reduced after temperature scaling, which verifies our hypothesis and inspires us: the confidence between neighbors of a well-corrected GCN should be more similar than before.
[0053] Table 1 Total variation of confidence before and after confidence correction
[0054]
[0055]
[0056] We found that GCN can play the role of a correction function that meets the above requirements, because GCN is able to propagate node features along the network topology and smooth similar information between adjacent nodes. Therefore, we can use another l-layer GCN (CaGCN) as our correction function to propagate confidence along the network topology.
[0057] Specifically, given the output V of a certain classification GCN, the node-corrected output v' can be obtained by the following formula: i and confidence
[0058]
[0059] in It is the softmax operator.
[0060] At this point, the total variance of the confidence will definitely be lower, so the classification GCN will be corrected. Note that although we can use the TS method here, it does not take into account the network topology compared to GCN. In addition, the TS method is only a linear transformation, while GCN can learn a nonlinear correction function.
[0061] In order to fully understand the confidence propagation process, we provide a detailed visualization here. Figure 3As shown in the figure, the outputs of two nodes a and b are the same, but node a is similar to its neighbors and node b is opposite. Obviously, GCN should be more confident in predicting node a than b. In addition, we assume that a, b and their neighbors are not confident in their predictions. If we continue to use another GCN to propagate their outputs along the topology, the outputs of node a and its neighbors will tend to be consistent. Therefore, if we correct one or more of these nodes during the confidence correction process, all nodes will also be corrected, and the confidence is propagated in this way. On the other hand, focusing on another node b, we can easily find that it is difficult to classify even manually, which is equally difficult for GCN. Therefore, the confidence of b should remain the same or even become lower. However, if we use traditional correction methods without considering the network topology, the confidence of b will be affected by a and become higher. In contrast, when the network topology is considered, the output of b will be averaged by its neighbors, and each dimension tends to 1 / K. When other nodes in the same situation are well corrected, it will also be correctly corrected.
[0062] So far, we have proposed a nonlinear correction model CaGCN that can consider the network topology, but it cannot satisfy the property of preserving accuracy. To solve this problem, we first study the correction function that preserves accuracy.
[0063] Proposition 1: Let is a correction function, is a one-dimensional function, v i =(v i,1 , ..., v i,K ) is the output of node i. When s is a strictly order-preserving function and h satisfies:
[0064]
[0065] When , h can preserve the classification accuracy of the original model.
[0066] The TS method is the simplest accuracy-preserving correction method, which uses a scalar t called temperature to adjust all classes simultaneously. Given the output vi of node i, the confidence of the prediction should be In the TS method, is a correction function, and s(x)=x / t is a strictly order-preserving function.
[0067] However, we can find that the TS method uses the same parameter t to perform the same linear transformation on all nodes. Therefore, we use CaGCN as our correction function, which is usually not an order-preserving function, that is, v iThe inter-class order of and v'i is inconsistent, which means that the model corrected by CaGCN cannot maintain the accuracy of the original classification GCN. Therefore, we propose an improved CaGCN.
[0068] For a given classification GCN output V, we first use l-layer GCN to learn a unique temperature parameter t for each node i i , then according to t i In a similar way to the TS method, the original v i Converted to a corrected output v'i, and finally get the corrected confidence As shown below:
[0069]
[0070] in, is a scalar greater than zero, σ + (x) = log(1 + exp(x)) is a softplus activation function. The above mentioned model does not change v i and v' i This means that it preserves the accuracy of the original GCN.
[0071] We can find that the above formula is i All dimensions of are transformed identically, which limits the space of learnable correction functions. However, we will prove in Proposition 2 that the model proposed in (5) is actually the same as the model proposed in (3) in terms of confidence correction. Considering that for any output v i , we actually expect the confidence of the corrected model to be can take any value in the interval (1 / K, 1). Please note that Otherwise the prediction will change. Since Equation (3) has no restrictions on the learned correction model, its output can take any value from 1 / K to 1. Therefore, if we can prove that the output of Equation 5 We can also take the interval (1 / K, 1), and the equality of equation (3) and equation (5) can be proved.
[0072] Proposition 2: For node i, given the original output v of its model i =(v i,1 , ..., v i,K ), for any j∈{0,...,K}, assuming V i,j Will not approach infinity, then the corrected confidence in formula (5) The (1 / K, 1) interval can be traversed.
[0073] About v iThe assumption of is easy to satisfy because the L2 regularization in GCN makes the weight matrix W approach the zero matrix, and each element in the feature matrix X is not infinite. Therefore, according to Formula 2, each element vi,j in V will not tend to infinity. From Proposition 2, we know that for any given v i , there is indeed a unique temperature t i Make can take any value from 1 / K to 1. In other words, the model can be perfectly calibrated.
[0074] Since the NLL loss function can be decomposed into correction loss and refinement loss, minimizing NLL is beneficial to confidence correction, so we use the NLL loss function as our objective function. In addition, we also add a regularization term. We use the predicted probability z in Eq. 5 i ∈R K To calculate the NLL loss. Let the K-class unique hot label of node i be y i =(y i,1 ,...y i,K ), and assume that the size of the training set is |D train |, then the NLL loss of all training nodes
[0075]
[0076] Since GCN has low confidence in predictions, our goal is to increase the confidence of correct predictions while reducing the confidence of incorrect predictions. Considering that NLL loss cannot directly reduce the confidence of incorrect predictions, we design a regularization term for NLL loss as follows:
[0077]
[0078] where |cor| and |inc| are the number of nodes classified correctly and incorrectly, respectively. i,m and z i,s are the maximum and second largest predicted probabilities respectively. The intuitive understanding of Equation 9 is that we can reduce z i The difference between the maximum and second largest predicted probabilities is used to reduce the confidence of the wrong prediction. and We have the following overall objective function:
[0079]
[0080] Where λ controls the weight of the regularization term. We can use the labeled data to optimize CaGCN through the back propagation algorithm and learn the corrected confidence. The overall block diagram of CaGCN is as follows Figure 4 shown.
[0081] Here, we propose a practical application of confidence correction to improve the performance of GCN self-training. Self-training is to predict pseudo labels for unlabeled data and then add them to the training set to expand the training set, thereby improving the performance of self-training. Specifically, we first obtain the prediction of GCN and confidence The most confident nodes are then added to the training set, and training continues until the model converges. However, existing self-training methods perform poorly when the dataset has a high label rate. Considering the low confidence problem of GCN, we believe that the reason why existing self-training methods perform poorly is that a large number of high-precision predictions are distributed in the low confidence interval, which prevents them from being added to the training set.
[0082] Therefore, we design a new self-training model CaGCN-st, in which the confidence is first corrected, and then unlabeled samples are selected to generate pseudo labels based on the corrected confidence. Specifically, for a given unlabeled dataset DU and a labeled dataset DL, where DU is divided into three parts Dtrain, Dval, and Dtest, we first use Dtrain to train a classification GCN to obtain the output of each node, and then feed all the outputs to CaGCN for training to obtain the corrected confidence of all nodes in the graph. It should be noted that we still use Dtrain instead of Dval to train our CaGCN. Afterwards, we will select the most confident prediction in DU as the pseudo label according to the threshold th and add it to the label set, so that Dtrain is enlarged. The above process will repeat s stages until convergence. Please note that our classification GCN and CaGCN will be reinitialized at each stage.
[0083] We evaluate the performance of CaGCN on confidence correction and the performance of CaGCN-st on improving self-training methods. We choose the commonly used Cora, Citeseer, Pubmed and CoraFull datasets for evaluation.
[0084] Since our CaGCN is a universal correction model for GNN, we choose two classic GNN models, GCN and GAT, as our classification models. For comparison, we choose the classic post-processing correction method temperature scaling (TS) method and matrix scaling (MS) method using non-diagonal regularization as our baseline methods.
[0085] For the basic models GCN and GAT, i.e., the uncorrected models, we use the existing parameters and further adjust them to achieve optimality. For the post-processing correction baseline method, we also follow the official implementation. For our CaGCN model, we trained a two-layer GCN model with a hidden layer dimension of 16. For all datasets, we set the lamda parameter to lambda=0.5, the weight decay parameter for Cora, Citeseer, Pubmed datasets to 5e-3, and CoraFull to 0.03. The other parameters of CaGCN are consistent with the GCN model. We use evaluation indicators such as ECE, NLL and Brier (BS) to evaluate the performance of confidence correction, and the smaller the value, the better, where the parameter bin value M=20 is set. For all methods, we randomly perform 10 experiments and report the average results.
[0086] The calibration results of ECE evaluation are shown in Table 2. The results show that:
[0087] (1) CaGCN achieves the best performance overall compared to the uncorrected model and other baselines.
[0088] (2) The ECE value of the uncorrected model is usually the highest, which means that GCN and GAT cannot give a well-corrected confidence.
[0089] (3) MS performs poorly on datasets with many classes, such as CoraFull. This is because the number of parameters of MS scales quadratically with the number of classes, while the size of the validation set remains constant. Therefore, it will overfit to the small validation set when the dataset has a large number of classes. However, this problem does not exist in CaGCN.
[0090] Table 2 ECE values of citation networks under different models and different label rates.
[0091]
[0092] Uncal. represents the uncalibrated model, (-) indicates that the method cannot converge to a meaningful solution, and the darker values represent the optimal results.
[0093] Since the self-training method can be applied to any model, here we choose GCN and GAT as our base models, that is, the original model (Orig.) without self-training. We choose the self-training (St.), co-training (Ct.), Union, Intersection (Inter.) methods commonly used in self-training methods as our baseline methods. In addition, we additionally use TS as the confidence correction function in CaGCN-st as another baseline method and represent it with TS-st.
[0094] We set the learning rate lr = 0.001 for CaGCN-st, and train CaGCN-st for 200, 150, 100, and 500 rounds on Cora, Citeseer, Pubmed, and Cora Full, respectively. We set the threshold th to a value in the range of {0.8, 0.85, 0.9, 0.95, 0.99}, and the maximum number of repeated training stages s = 10. For the baseline method, all parameters follow the parameters provided in its paper, and we further adjust it to achieve the best performance. For all methods, we randomly perform ten experiments and report the average results.
[0095] The node classification accuracy of GCN and its self-training variants is shown in Table 3. From Table 3, we can see that:
[0096] (1) CaGCN-st consistently outperforms all baseline methods on all datasets and label rates.
[0097] (2) Compared with the basic model, the self-training method generally achieved better results, proving its effectiveness.
[0098] (3) Self-training methods with confidence correction (i.e., TS-st and CaGCN-st) generally have better performance, which means that confidence correction extends more correct predictions to the high confidence range while keeping the wrong predictions largely unchanged, which we believe is beneficial to self-training.
[0099] Table 3 Node classification accuracy (%) and standard deviation of GCN and its self-training variants
[0100]
[0101] CaGCN-st generates pseudo labels based on the corrected confidence. Here, we study the effectiveness of the confidence correction function CaGCN in CaGCN-st. We propose a variant of CaGCN-st, GCN-st, that is, CaGCN is removed from CaGCN-st while keeping other parts unchanged. All experimental settings of GCN-st are the same as CaGCN-st. We show the experimental results in Table 4, and it can be observed that CaGCN-st consistently outperforms GCN-st on all datasets, which means that self-training with corrected confidence can generate more correct pseudo labels.
[0102] Current efforts to advance GNNs are mainly focused on classification accuracy. However, when deploying GNNs in practical applications, especially in safety-critical areas, whether the results of GNNs are trustworthy is another important factor that cannot be ignored. In this paper, we study the confidence calibration problem in GNNs and find that existing GNNs have insufficient confidence in their predictions. To address this issue, we propose a new trustworthy GNN model, CaGCN, which exploits the homogeneity of confidence in GNNs to correct the confidence. The correction function is a nonlinear transformation, but the classification accuracy of the original GNN is also preserved. In addition, we propose a new self-training method, CaGCN-st, in which the confidence is first calibrated by CaGCN and then used to generate pseudo labels. Extensive experiments demonstrate the effectiveness of our proposed model in terms of calibration and accuracy.
[0103] The above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit the same. Although the present invention has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features thereof may be replaced by equivalents. However, such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A topology-aware post-processing confidence correction method for GNN, characterized in that: Use the following steps on the Cora, Citeseer, Pubmed, or CoraFull datasets: S1. Given random variables A and X, for a GCN with l layers, the output v before the softmax layer is obtained by formula (2): i ; <h2 style=";text-align:left;direction:ltr">V = Aσ(…Aσ(AXW<h2 style=";text-align:left;direction:ltr"> (1) <h2 style=";text-align:left;direction:ltr"> W)<h2 style=";text-align:left;direction:ltr"> (2) <h2 style=";text-align:left;direction:ltr"> …)W<h2 style=";text-align:left;direction:ltr"> (l) <h2 style=";text-align:left;direction:ltr"> (v1,…,v)<h2 style=";text-align:left;direction:ltr"> N <h2 style=";text-align:left;direction:ltr"> ] (2) Among them, A∈R N*N is an adjacency matrix, X = [x1, ..., x N ] is the node feature matrix, W (l) is the weight matrix of the lth layer of GCN, σ(.) represents the activation function, V is the node set, and N = |V| is the number of nodes: S2. Use another l-layer GCN as the correction function to propagate the confidence along the network topology. Given the output V of a certain classification GCN, the node corrected output v′ is obtained by formula (3) i and confidence in It is the softmax operator; S3. Order is a correction function, is a one-dimensional function, v i =(v i,1 , ..., v i,K ) is the output of node i, when s is a strictly order-preserving function and h satisfies: When , h can maintain the classification accuracy of the original model.
2. The topology-aware post-processing confidence correction method for GNN according to claim 1, characterized in that: The calibration method for maintaining accuracy in step S3 uses the TS method or the NLL method.
3. The topology-aware post-processing confidence correction method for GNN according to claim 2, characterized in that: The TS method is as follows: a temperature scalar t is used to adjust all classes simultaneously. Given the output vi of node i, a unique temperature parameter ti is learned for each node i using a layer of GCN. Then, the original vi is converted into a corrected output v'i according to ti. Finally, the corrected confidence is obtained according to formula (5): in, is a scalar greater than zero, σ + (x) = log(1 + exp(x)) is a softplus activation function.
4. The topology-aware post-processing confidence correction method for GNN according to claim 1, characterized in that: The NLL method is as follows: the K-type unique hot labels of node i are represented as y i =(y i,1 ,...y i,K ), and assume that the size of the training set is |D train |, calculate the NLL loss of all training nodes according to formula (8) The NLL loss regularization term is shown in formula (9): where |cor| and |inc| are the number of nodes classified correctly and incorrectly, respectively. i,m and z i,s are the maximum and second largest predicted probabilities, respectively; combination and According to formula (10), the overall objective function is obtained: Among them, λ is the weight that controls the regularization term.
Citation Information
Patent Citations
Object classification method and device based on multi-channel graph convolutional neural network
CN111814842A
Hyperspectral classification method and system for enhancing U-Net feature based on GCN and GRU
CN112926452A
Heterogeneous graph neural network-based recommendation method
CN112990972A
Methods and apparatus to obtain well-calibrated uncertainty in deep neural networks
US20210117760A1
Disease-gene prioritization method and system
WO2020170052A1
