Software vulnerability detection interpretation method based on mutual information disturbance
By generating concise local data sets and explanation subgraphs based on mutual information perturbation methods, the existing technology problems of large local data sets and the inability to simultaneously explain different vulnerability categories are solved, and the explanation efficiency and accuracy of software vulnerability detection models are improved. Enhanced model transparency and credibility.
Patent Information
- Application Number
- CN202410886471.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-03
- Publication Date
- 2024-10-08
AI Technical Summary
In existing software vulnerability detection methods based on agent models, the local data sets are too large and redundant to generate explanations for different vulnerability categories at the same time, resulting in low model explanation efficiency and accuracy, and limiting a comprehensive understanding of the model's decision-making logic.
Using a method based on mutual information perturbation, a concise and informative local data set is generated through collaborative training of selectors and approximators, and a classification linear model is used to obtain the explanation weight matrix of each edge under different vulnerability categories, and the corresponding Explain the subplot.
It significantly improves the efficiency and accuracy of model interpretation, and can simultaneously generate decision-making logic explanations for both "vulnerable" and "non-vulnerable" modes, enhancing the transparency and credibility of the model.
Smart Images

Figure CN118747370A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of software vulnerability detection, and in particular to an interpretation method for software vulnerability detection based on mutual information perturbation. Background Art
[0002] Software vulnerability detection is an indispensable part of the software development and maintenance process. It is of great significance to protect user data security, ensure stable system operation, improve software quality and prevent potential security threats. Due to the powerful graph structure data processing capabilities of graph neural networks, more and more people are applying graph neural networks to software vulnerability detection. However, most software vulnerability detection models based on graph neural networks (GNNs) are now regarded as black box models, and their decision logic is unknown. Understanding the decision logic of software vulnerability detection models is crucial for discovering new vulnerabilities and optimizing vulnerability detection solutions. Relevant staff can discover possible deviations, errors or deficiencies in the model based on the decision logic of the model, and provide strong guidance for optimizing the vulnerability detection model, thereby providing more reliable decision support for software vulnerability detection.
[0003] Interpretability is a key method to help understand the internal decision logic in software vulnerability detection models. In the actual scenario of software vulnerability detection, the basic blocks of the assembly instructions of the software to be interpreted are abstracted into nodes of graph data. If there is a control flow such as jump, loop or return between two basic blocks, it is abstracted into edges of graph data. The label of the graph data is whether there is a vulnerability. The graph interpretability method for graph data can accurately and quickly reveal the internal decision logic of the vulnerability detection model, thereby improving the transparency of decision-making, discovering new vulnerability patterns, and building user trust in the software vulnerability detection model.
[0004] Graph interpretability refers to understanding which inputs play a key role in the output of a black-box model, or extracting the model decision process that people can understand. The surrogate model-based interpretation method is a widely used paradigm in interpretability research, which can effectively explain the prediction results of black-box models. The core idea of the surrogate-based interpretation method is to approximate the prediction behavior of a complex deep model in a local neighborhood of specific input data (i.e., a local dataset) by building a simple and easy-to-understand surrogate model. Subsequently, with the interpretability of the surrogate model, we can intuitively explain the prediction results of the complex model. However, in the software vulnerability detection scenario, there are few perturbation combinations that are close to the original prediction, and the generated local datasets are often large and redundant. It is challenging to generate local datasets that are helpful for the interpretation task in a limited number of perturbations, because the combination of perturbations grows exponentially with the growth of graph data. At the same time, it is also crucial to have a deep understanding of the decision logic of the software vulnerability model in distinguishing different vulnerability categories, which helps us fully understand the behavior of the model and provide more targeted guidance for subsequent learning, but there is currently no good solution to provide explanations for different vulnerability categories at the same time. These issues will reduce the model's interpretability, accuracy, and limit our understanding of the model's overall behavior. Summary of the invention
[0005] The present invention aims to solve the problem that the local data set in the current interpretation method based on the proxy model is large and redundant, and can only provide a single decision category interpretation, and provides an interpretation method for software vulnerability detection based on mutual information perturbation.
[0006] To solve the above problems, the present invention is achieved through the following technical solutions:
[0007] The explanation method of software vulnerability detection based on mutual information perturbation includes the following steps:
[0008] Step 1: Divide the sample software graph dataset into training set, validation set and test set in proportion;
[0009] Step 2: Use the training set, validation set, and test set to train, validate, and test the selector and approximator to obtain the learned selector and approximator;
[0010] Step 3: Generate a local data set about the software graph data to be interpreted using the learned selector;
[0011] Step 4: Use the classification linear model to fit the local data set to obtain the explanation weight matrix of each edge of the software graph data to be explained under each vulnerability category;
[0012] Step 5. For each vulnerability category of the software graph data to be interpreted, based on the explanation model weight matrix, the first E×sp edges with the largest explanation weight under the vulnerability category are taken from the software graph data to be interpreted to form an explanation subgraph, and the explanation subgraph is returned to the user as the explanation result of the vulnerability category; where E is the number of edges of the software graph data to be interpreted, and sp represents the set sparsity.
[0013] The specific process of step 2 above is as follows:
[0014] Step 2.1: Use the training set to collaboratively train the parameters of the selector and the approximator. During the training process, perform the following operations for each sample software graph data in the training set:
[0015] Step 2.1.1, using the encoder in the software vulnerability detection model based on the graph neural network to generate a node embedding matrix of the sample software graph data, and then generating an edge embedding matrix of the sample software graph data based on the node embedding matrix of the graph data;
[0016] Step 2.1.2, input the edge embedding matrix of the sample software graph data into the selector to obtain the logical values of all edges, and use the minimum-maximum scaling method to normalize the logical values to obtain a probability vector;
[0017] Step 2.1.3, sampling the probability vector to obtain a hard mask, and re-parameterizing the hard mask to obtain a soft mask;
[0018] Step 2.1.4, using a soft mask to perturb the sample software image data to obtain perturbed sample software image data;
[0019] Step 2.1.5, input the perturbed sample software graph data into the approximator to obtain the perturbed approximate prediction classification label;
[0020] Step 2.1.6: Input the sample software graph data into the software vulnerability detection model based on graph neural network to obtain the model prediction classification label;
[0021] Step 2.1.7, by constraining the cross entropy loss of the perturbation approximation predicted classification label obtained in step 2.1.5 and the model predicted classification label obtained in step 2.1.6, the parameters of the selector and the approximator are jointly trained;
[0022] Step 2.2: Use the validation set to validate the trained selector and approximator, and extract the parameters of the best performance of the selector and approximator based on the performance of the approximator on the validation set;
[0023] Step 2.3: Use the test set to test the trained selector and approximator to verify the stability and generalization ability of the selector and approximator, evaluate the final performance, and whether retraining is necessary.
[0024] In the above step 2.1.1, when there is an edge between two nodes of the sample software graph data, the node embeddings of the two nodes are concatenated as the embedding of the edge connecting the two nodes.
[0025] The specific process of step 3 above is as follows:
[0026] Step 3.1, using the learned selector to perturb the to-be-interpreted software graph data for a predetermined number of times, and recording the soft mask and the to-be-interpreted software graph data after the perturbation during each perturbation process;
[0027] Step 3.2: Input the disturbed software graph data to be interpreted into the software vulnerability detection model based on graph neural network to obtain the perturbation model prediction classification label;
[0028] Step 3.3: All soft masks, perturbed software graph data to be interpreted, and perturbation model predicted classification labels are combined to form a local data set about the software graph data to be interpreted.
[0029] The selector consists of two layers of multilayer perceptrons; the input of the first layer of multilayer perceptrons forms the input of the selector, the output of the first layer of multilayer perceptrons is connected to the input of the second layer of multilayer perceptrons, and the output of the second layer of multilayer perceptrons forms the output of the selector.
[0030] The approximator consists of a three-layer graph convolutional neural network, an average pooling layer and a linear layer; the input of the first layer of graph convolutional neural network forms the input of the approximator, the output of the first layer of graph convolutional neural network is connected to the input of the second layer of graph convolutional neural network, the output of the second layer of graph convolutional neural network is connected to the input of the third layer of graph convolutional neural network, the output of the third layer of graph convolutional neural network is connected to the input of the average pooling layer, the output of the average pooling layer is connected to the input of the linear layer, and the output of the linear layer forms the output of the approximator.
[0031] The classification linear model consists of two or more multilayer perceptrons and concatenation layers, where the number of multilayer perceptrons is the same as the number of vulnerability categories; the inputs of all multilayer perceptrons form the input of the classification linear model, the outputs of all multilayer perceptrons are connected to the input of the concatenation layer, and the outputs of the concatenation layer form the output of the classification linear model.
[0032] Compared with the prior art, the present invention has the following characteristics:
[0033] 1. Focusing on explaining the software vulnerability detection model, the present invention is based on mutual information guided perturbation and parallel interpretation technology, aiming to enhance the understanding of the internal decision logic of the model by relevant personnel, improve the transparency of decision-making, help discover new vulnerability patterns, and build a foundation for users to trust the software vulnerability detection model.
[0034] 2. In order to address the challenges existing in existing proxy model-based interpretation methods, namely, that the local data set is large and contains a large number of redundant and meaningless perturbation samples, the present invention innovatively introduces the concept of mutual information in information theory. By constraining the mutual information between the perturbation samples and the labels to be interpreted, it ensures that even in smaller local data sets, rich information that is highly relevant to the labels to be interpreted can be captured. This strategy not only enables the proxy model to focus more on the information related to the labels to be interpreted and generate more faithful explanations, but also significantly reduces the time overhead of proxy model fitting, thereby improving the overall interpretation efficiency.
[0035] 3. In order to solve the problem that existing methods cannot generate explanations at the same time, the present invention introduces a simple and interpretable classification linear model in the classification task scenario, which can simultaneously generate faithful explanations. This greatly improves the understanding of the decision logic of the software vulnerability detection model in the "with vulnerability" and "without vulnerability" modes by relevant personnel, thereby enhancing the transparency and credibility of the model. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] Figure 1 Flowchart of the explained method for software vulnerability detection based on mutual information perturbation. DETAILED DESCRIPTION
[0037] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in combination with specific examples and with reference to the accompanying drawings.
[0038] The software vulnerability detection model is a black box model and lacks interpretability. Although the current agent-based interpretation methods can provide a certain degree of interpretability for graph neural networks, these methods still face two core problems: First, the generated local data set is too large and full of redundant and meaningless perturbation samples, which not only increases the computational burden, but also reduces the accuracy and efficiency of the interpretation; second, these methods cannot simultaneously generate explanations for different vulnerability categories in the classification interpretation task, which limits our comprehensive understanding of the model's decision logic. In the actual application of software vulnerability detection, staff urgently need an efficient and accurate interpretation method in order to quickly understand the decision logic of the model and verify the accuracy of the prediction. Therefore, the present invention proposes an interpretation method for software vulnerability detection based on mutual information perturbation, aiming to provide a comprehensive and efficient explanation, such as Figure 1 As shown, the specific steps are as follows:
[0039] Step 1: Divide the sample software graph dataset into training set, validation set and test set in proportion.
[0040] The sample software graph dataset includes multiple sample software graph data. Each sample software graph data is abstracted from a sample software of a known type (with or without vulnerabilities), where the basic blocks of the assembly instructions of the software to be interpreted are abstracted into nodes of the sample software graph data. If there is a control flow such as jump, loop or return between two basic blocks, it is abstracted into an edge of the sample software graph data. The label of the sample software graph data is whether there is a vulnerability or not. The sample software graph data is represented as is the node set of the sample software graph data, and ε is the edge set of the sample software graph data. Using the adjacency matrix A∈{0,1} N×N Describing a graph The topological structure of For the picture If the node features in , the sample software graph data can also be expressed as (X, A).
[0041] The sample software graph dataset is divided into training set, validation set and test set in a ratio of 8:1:1. The training set is used to estimate the model, the validation set is used to determine the network structure or the parameters that control the complexity of the model, and the test set is used to test the performance of the optimal model.
[0042] Step 2: Use the training set, validation set, and test set to train, validate, and test the selector and approximator to obtain the learned selector and approximator.
[0043] (1) Training phase: The parameters of the selector and the approximator are co-trained using the training set.
[0044] During the training process, the following operations are performed for each sample software graph data in the training set:
[0045] 1) Use the encoder in the software vulnerability detection model based on graph neural network to generate the node embedding matrix Z of the sample software graph data for the sample software graph data.
[0046] The software vulnerability detection model based on graph neural network generally consists of two parts: encoder and task classifier. Here, only the encoder GNN0 in the software vulnerability detection model based on graph neural network is used to generate the node embedding matrix Z. The calculation formula is:
[0047] Z=GNN0(X,A)
[0048] 2) Based on the node embedding matrix Z of the sample software graph data, generate the edge embedding matrix e of the sample software graph data.
[0049] If there is an edge between two nodes i and j in the sample software graph data, embed the nodes of these two nodes into z i , z j Splice and use it as the embedding e of the edge connecting these two nodes i and jij , the calculation formula is:
[0050] e ij =[z i ;z j ]
[0051] 3) Input the edge embedding matrix e of the sample software graph data into the selector to obtain the logical values (logits) of all edges.
[0052] The selector is implemented with the help of two layers of multilayer perceptrons (MLPs), where the input of the first layer of multilayer perceptrons forms the input of the selector, the output of the first layer of multilayer perceptrons is connected to the input of the second layer of multilayer perceptrons, and the output of the second layer of multilayer perceptrons forms the output of the selector. The calculation formula is:
[0053] logits=Selector(e)
[0054] 4) Normalize it by the Min-Max Scaling method so that all logits values are scaled to the interval between 0 and 1, and obtain a probability vector π with the same dimension as the number of edges of the sample software graph data. π obeys the multivariate Bernoulli distribution and is calculated as follows:
[0055] π=Min-Max Scaling(logits)
[0056] 5) Sample the probability vector π to obtain the hard mask M, and the calculation formula is:
[0057] M~MultiBernoulli(π)
[0058] 6) Since the sampling process is not differentiable, this will hinder the use of gradient-based optimization methods to train the selector, so it is necessary to re-parameterize the soft mask The calculation formula is:
[0059]
[0060] Among them, σ(·) represents the Sigmoid function; ∈ represents a random variable that obeys a uniform distribution, that is, ∈~Uniform(0,1); τ represents the hyperparameter temperature coefficient.
[0061] 7) Use soft mask Perturb the sample software graph data (X, A) to obtain the perturbed sample software graph data
[0062] 8) The disturbed sample software graph data Input to the approximator (approximate), get the perturbation approximation prediction classification label Y ′ .
[0063] The approximator is implemented with the help of a three-layer graph convolutional neural network (GCN), an average pooling layer (mean_pool) and a linear layer (Linear), wherein the input of the first layer of the graph convolutional neural network forms the input of the approximator, the output of the first layer of the graph convolutional neural network is connected to the input of the second layer of the graph convolutional neural network, the output of the second layer of the graph convolutional neural network is connected to the input of the third layer of the graph convolutional neural network, the output of the third layer of the graph convolutional neural network is connected to the input of the average pooling layer, the output of the average pooling layer is connected to the input of the linear layer, and the output of the linear layer forms the output of the approximator.
[0064] The purpose of the approximator is to constrain the perturbation samples generated by the selector to contain rich information related to the label to be explained and to assist in training the selector. The calculation formula is:
[0065]
[0066] 9) Input the sample software graph data (X, A) into the software vulnerability detection model based on graph neural network to obtain the model prediction classification label Y, and the calculation formula is:
[0067] Y=GNN(X,A)
[0068] 10) Approximately predict the classification label Y through constrained perturbation ′ The cross entropy loss of the model's predicted classification label Y enables the selector and approximator to be trained collaboratively, and the calculation formula is:
[0069] CrossEntropy(Y′, Y)
[0070] (2) Verification phase: Use the verification set to verify the trained selector and approximator. Based on the performance of the approximator on the verification set, extract the parameters of the selector and approximator with the best performance.
[0071] (3) Testing phase: Use the test set to test the trained selectors and approximators to verify their stability and generalization ability, evaluate the final performance, and determine whether retraining is necessary.
[0072] Step 3: Use the learned selector to generate a local dataset about the software graph data to be interpreted.
[0073] By collaboratively learning the selector and the approximator based on maximizing mutual information, the obtained selector can identify the part of the dataset that is most relevant to the explanation task, and can generate a concise and informative local dataset in a limited number of perturbations.
[0074] 1) Use the learned selector to perturb the interpreted software graph data (X′, A′) k times, where k is a custom hyperparameter, and record the soft mask during each perturbation process And the disturbed software graph data to be interpreted
[0075] 2) The disturbed software graph data to be interpreted Input into the software vulnerability detection model based on graph neural network to obtain the perturbation model prediction classification label Y″;
[0076]
[0077] 3) Set all soft masks The disturbed software graph data to be interpreted and the perturbation model predicted classification label Y″ form a local dataset about the software graph data to be interpreted.
[0078] Step 4: Use the classification linear model to fit the local data set to obtain the explanation weight matrix W of each edge of the software graph data (X′, A′) to be explained under different vulnerability categories, and regard the explanation weight matrix W as the explanation of the classification decision of the software graph data to be explained by the software vulnerability detection model based on the graph neural network.
[0079] The classification linear model is implemented with the help of two or more layers of multi-layer perceptrons (MLPs) and concatenation layers arranged in parallel, where the number of multi-layer perceptrons is the same as the number of vulnerability categories. The input of all multi-layer perceptrons forms the input of the classification linear model, the output of all multi-layer perceptrons is connected to the input of the concatenation layer, and the output of the concatenation layer forms the output of the classification linear model.
[0080] The classification linear model is constructed by constraining Y″ and The cross entropy loss is used to obtain the explanation weight matrix W of each edge of the to-be-explained software graph data under each vulnerability category. The calculation formula is:
[0081]
[0082] The size of the weight matrix W is interpreted as E×C, that is, Where E is the number of edges in the software graph data to be interpreted, C is the number of vulnerability categories. In the preferred embodiment of the present invention, the number of vulnerability categories C=2, corresponding to software with vulnerabilities and without vulnerabilities. Each element w of the weight coefficient matrix W ij represents the explanation weight of edge i in vulnerability category j, w ij ∈[0,1].
[0083] Step 5. For each vulnerability category of the software graph data to be interpreted, based on the explanation model weight matrix, take out the first E×sp edges with the largest weight under the vulnerability category from the software graph data to be interpreted to form an explanation subgraph, and return the explanation subgraph as the explanation result of the vulnerability category to the user; where E is the number of edges of the software graph data to be interpreted, and sp represents sparsity.
[0084] The set sparsity sp determines the size of the explanation subgraph. The sparsity for selection is sp∈{0.1, 0.2, ..., 1.0}. In the preferred embodiment of the present invention, the default sparsity is 0.5. For the explanation of each vulnerability category of the software graph data to be explained, first extract the E*sp weight w of the top vulnerability category under the current vulnerability category from the explanation weight matrix W. ij , and take out the previous E*sp weight w from the software graph data to be interpreted ij The corresponding edges are then formed into an explanation subgraph, and the explanation subgraph is returned to the user as the explanation result. Similarly, the explanation generation process of another vulnerability category is as above.
[0085] The performance of the present invention is verified by a binary classification data set (Mutagenicity data set):
[0086] Table 1 Average explanation accuracy of different explanation methods on the Mutagenicity dataset
[0087]
[0088] Table 2 Average explanation accuracy of different categories generated simultaneously on the Mutagenicity dataset
[0089]
[0090] Based on Table 1 and Table 2, we can conclude that the explanation method proposed in this invention has shown excellent explanation effect on the Mutagenicity dataset, which not only surpasses many existing explanation technologies, but also maintains a certain competitiveness even when generating explanations of different categories at the same time, although its effect is slightly lower than the explanation of the predicted label category. This not only proves the efficiency of the explanation method in this example, but also verifies its accuracy and practicality when generating explanations of other categories at the same time.
[0091] In summary, the explanations generated by the present invention are highly accurate and effectively solve the problems of large and redundant local data sets and poor proxy model fitting effect existing in previous proxy model-based explanation methods, thereby achieving good performance and providing explanations for different vulnerability categories at the same time.
[0092] It should be noted that although the embodiments of the present invention described above are illustrative, they are not intended to limit the present invention, and therefore the present invention is not limited to the above specific embodiments. Without departing from the principles of the present invention, any other embodiments obtained by those skilled in the art under the guidance of the present invention are deemed to be within the protection of the present invention.
Claims
1. Explanation method for software vulnerability detection based on mutual information perturbation, Its characteristics are: The steps include: Step 1: Divide the sample software graph dataset into training set, validation set and test set in proportion; Step 2: Use the training set, validation set, and test set to train, validate, and test the selector and approximator to obtain the learned selector and approximator; Step 3: Generate a local data set about the software graph data to be interpreted using the learned selector; Step 4: Use the classification linear model to fit the local data set to obtain the explanation weight matrix of each edge of the software graph data to be explained under each vulnerability category; Step 5: For each vulnerability category of the to-be-explained software graph data, based on the explanation model weight matrix, the first E×sp edges with the largest explanation weight under the vulnerability category are taken from the to-be-explained software graph data to form an explanation subgraph, and the explanation subgraph is returned to the user as the explanation result of the vulnerability category; Where E is the number of edges of the software graph data to be interpreted, and sp represents the set sparsity.
2. The method for explaining software vulnerability detection based on mutual information perturbation according to claim 1, Its characteristics are: The specific process of step 2 is as follows: Step 2.1: Use the training set to collaboratively train the parameters of the selector and the approximator. During the training process, perform the following operations for each sample software graph data in the training set: Step 2.1.1, using the encoder in the software vulnerability detection model based on the graph neural network to generate a node embedding matrix of the sample software graph data, and then generating an edge embedding matrix of the sample software graph data based on the node embedding matrix of the graph data; Step 2.1.2, input the edge embedding matrix of the sample software graph data into the selector to obtain the logical values of all edges, and use the minimum-maximum scaling method to normalize the logical values to obtain a probability vector; Step 2.1.3, sampling the probability vector to obtain a hard mask, and re-parameterizing the hard mask to obtain a soft mask; Step 2.1.4, using a soft mask to perturb the sample software image data to obtain perturbed sample software image data; Step 2.1.5, input the perturbed sample software graph data into the approximator to obtain the perturbed approximate prediction classification label; Step 2.1.6: Input the sample software graph data into the software vulnerability detection model based on graph neural network to obtain the model prediction classification label; Step 2.1.7, by constraining the cross entropy loss of the perturbation approximation predicted classification label obtained in step 2.1.5 and the model predicted classification label obtained in step 2.1.6, the parameters of the selector and the approximator are jointly trained; Step 2.2: Use the validation set to validate the trained selector and approximator, and extract the parameters of the best performance of the selector and approximator based on the performance of the approximator on the validation set; Step 2.3: Use the test set to test the trained selector and approximator to verify the stability and generalization ability of the selector and approximator, evaluate the final performance, and whether retraining is necessary.
3. The method for explaining software vulnerability detection based on mutual information perturbation according to claim 2, Its characteristics are: In step 2.1.1, when there is an edge between two nodes of the sample software graph data, the node embeddings of the two nodes are concatenated as the embedding of the edge connecting the two nodes.
4. The method for explaining software vulnerability detection based on mutual information perturbation according to claim 1, Its characteristics are: The specific process of step 3 is as follows: Step 3.1, using the learned selector to perturb the to-be-interpreted software graph data for a predetermined number of times, and recording the soft mask and the to-be-interpreted software graph data after the perturbation during each perturbation process; Step 3.2: Input the disturbed software graph data to be interpreted into the software vulnerability detection model based on graph neural network to obtain the perturbation model prediction classification label; Step 3.3: All soft masks, perturbed software graph data to be interpreted, and perturbation model predicted classification labels are combined to form a local data set about the software graph data to be interpreted.
5. The method for explaining software vulnerability detection based on mutual information perturbation according to claim 1, Its characteristic is that the selector It consists of two layers of multilayer perceptrons; the input of the first layer of multilayer perceptron forms the input of the selector, the output of the first layer of multilayer perceptron is connected to the input of the second layer of multilayer perceptron, and the output of the second layer of multilayer perceptron forms the output of the selector.
6. The method for explaining software vulnerability detection based on mutual information perturbation according to claim 1, Its characteristics are: The approximator consists of a three-layer graph convolutional neural network, an average pooling layer and a linear layer; the input of the first layer of graph convolutional neural network forms the input of the approximator, the output of the first layer of graph convolutional neural network is connected to the input of the second layer of graph convolutional neural network, the output of the second layer of graph convolutional neural network is connected to the input of the third layer of graph convolutional neural network, the output of the third layer of graph convolutional neural network is connected to the input of the average pooling layer, the output of the average pooling layer is connected to the input of the linear layer, and the output of the linear layer forms the output of the approximator.
7. The method for explaining software vulnerability detection based on mutual information perturbation according to claim 1, Its characteristics are: The classification linear model consists of two or more multilayer perceptrons and concatenation layers, where the number of multilayer perceptrons is the same as the number of vulnerability categories; the inputs of all multilayer perceptrons form the input of the classification linear model, the outputs of all multilayer perceptrons are connected to the input of the concatenation layer, and the outputs of the concatenation layer form the output of the classification linear model.
