Interpretation methods for deep learning models in network security anomaly detection
By designing a universal explanation framework in the field of network security, the explanation problem of the deep learning model is transformed into a multi-objective optimization problem, which solves the explanation problem of the unsupervised anomaly detection model and achieves the credibility and reliability of the deep learning model in network security scenarios. Stable, robust and efficient interpretation.
Patent Information
- Application Number
- CN202111032209.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-09-03
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2041-09-03
AI Technical Summary
Existing technologies are difficult to explain the decision-making process of deep learning models in network security scenarios, especially unsupervised anomaly detection models, and existing methods cannot achieve the trade-off between fidelity, stability, robustness and efficiency, and Mainly targeted at supervised classification models rather than unsupervised anomaly detection models.
A universal interpretation framework is designed to convert the interpretation problem of the deep learning model into a multi-objective optimization problem. The corresponding interpreter algorithm is determined according to different network security task types, and the unsupervised anomaly detection model is realized through solving the multi-objective optimization problem. Interpretation, suitable for tabular, time series and graph structured data.
It achieves a credible, stable, robust and efficient explanation of the basis for abnormal decision-making in deep learning models. It is suitable for a variety of deep learning models and network security scenarios, and meets the special needs of the network security field.
Smart Images

Figure CN113792776B
Abstract
Description
Technical Field
[0001] The present application relates to the field of network security technology, and in particular to a method for interpreting deep learning models in network security anomaly detection. Background Art
[0002] Artificial intelligence technology, especially deep learning technology, has been widely used in various network security detection systems, achieving good detection results. Due to the complexity of the decision-making process of deep learning models and their black-box nature, the study of the interpretability of deep learning models has become increasingly important for security detection systems.
[0003] Existing explanation methods mainly focus on explaining deep learning models in non-security scenarios, such as models related to computer vision and natural language processing. These methods are difficult to apply directly to network security scenarios. On the one hand, explainability methods require interaction with people, and the explanation results and emphases in different fields are different. On the other hand, many studies have pointed out that existing explanation methods cannot achieve a trade-off between fidelity, stability, robustness, and efficiency.
[0004] In addition, existing explanation methods mainly target supervised classification models, explaining the idea of labeled data or supervised learning during the explanation process, so these methods are not suitable for explaining unsupervised anomaly detection models. Summary of the invention
[0005] In response to the above problems, this application provides an interpretation method for deep learning models in network security anomaly detection. The technical solution of this application is as follows:
[0006] According to an embodiment of the present application, a method for interpreting a deep learning model in network security anomaly detection is provided, including:
[0007] Establishing a universal explanation framework that transforms the explanation problem of deep learning models in network security anomaly detection into a solution process of a multi-objective optimization problem;
[0008] For different types of network security tasks, an interpreter algorithm corresponding to the network security task type is determined according to the universal interpretation framework.
[0009] In some embodiments of the present application, the general interpretation framework is expressed as follows:
[0010]
[0011] Among them, x o and x * represent reference points and outliers respectively, f represents the deep learning model, They represent the fidelity, stability, interpretability and robustness constraints respectively, and λ1, λ2, λ3 represent the weight coefficients of the stability, interpretability and robustness constraints respectively.
[0012] In some embodiments of the present application, the network security task is divided into network security task types based on tabular data, time series data, and graph structured data according to different source data types used by the security detection system.
[0013] In some embodiments of the present application, for a network security task based on tabular data, determining the interpreter algorithm as a first multi-objective optimization problem according to the general interpretation framework includes:
[0014] For tabular abnormal data, the tabular reference point x is searched through the constraints in the general interpretation framework. * , where the fidelity constraint Defined as a table reference point x * Anomaly detection model based on tabular data R It is judged to be normal, that is, the reconstruction error ε R Below the abnormal threshold t R ; Stability constraint It is defined as ensuring that the reference point and the tabular outlier x are consistent with the fidelity, explanation and robustness constraints. o The distance is less than the first preset condition; the explanatory constraint Ensure that the table type outlier point x o Compared to the tabular reference point x * The modified feature dimension is smaller than the second preset condition;
[0015] The first multi-objective optimization problem is determined as follows:
[0016]
[0017] stε R (x * ,f R (x * )))<t R and x * ∈[0,1] N
[0018] Among them, x * Indicates the tabular reference point, z o Indicates a tabular outlier point, ε R represents the reconstruction error, t R represents the abnormal threshold, f R It represents the anomaly detection model based on tabular data, and λ is the weight coefficient of the corresponding constraint item.
[0019] In some embodiments of the present application, the method for solving the first multi-objective optimization problem includes:
[0020] Through the ReLU (Rectified Linear Units) function, an activation function, the fidelity constraint term is transformed into: ReLU (ε R (x * , f R (x * ))-(t R -∈));
[0021] x * ∈[0, 1] N Convert to That is, replace x with u without range constraints * ;
[0022] The first multi-objective optimization problem is transformed into an unconstrained optimization problem, which is expressed as follows:
[0023]
[0024] According to the iterative optimization method, the unconstrained optimization problem is transformed into a differentiable unconstrained optimization problem and solved by the gradient descent method based on the Adam optimizer.
[0025] In some embodiments of the present application, for a network security task based on time series data, determining the interpreter algorithm as a second multi-objective optimization problem according to the universal interpretation framework includes:
[0026] For time series abnormal data, the reference time series X is searched through the constraints in the general interpretation framework. * , through iterative optimization, that is, selecting a small amount of abnormal data for modification each time, and each optimization target only considers the fidelity constraint item, the second multi-objective optimization problem is determined, which is expressed as follows:
[0027]
[0028] in, is a shorthand for the fidelity constraint, X * is the reference time series, X * A time series containing t time points is t P is the abnormal threshold, f P represents anomaly detection model based on time series data, ε R represents the reconstruction error, f P The specific calculation method.
[0029] In some embodiments of the present application, for a network security task based on graph structure data, determining the interpreter algorithm as a third multi-objective optimization problem according to the general interpretation framework includes:
[0030] Record an abnormal connection as in and is the node connecting the two ends, and the representation vector after embedding is recorded as
[0031] Get abnormal representation o Reference representation of * , according to the reference characterization e * Reference connection located on the original diagram structure The reference connection is recorded as in, is the node connecting the two ends; the explanatory constraint item of the general explanatory framework Through iterative optimization, the fidelity constraint Defined as the reconstruction error ε R Below the abnormal threshold t R , stability constraint It is defined as ensuring that the reference connection and abnormal connection meet the third preset condition under the condition of satisfying the fidelity, explanation and robustness constraints;
[0032] The third multi-objective optimization problem is determined as shown in the following formula:
[0033]
[0034] in, Indicates a reference connection The nodes of the graph data are in the node set, f R Anomaly detection model for graph data sources.
[0035] The technical solution provided by the embodiments of the present application brings at least the following beneficial effects:
[0036] The interpretation method of the embodiment of the present application, on the one hand, is suitable for unsupervised anomaly detection because the interpretation process does not require the use of labeled data; on the other hand, by deeply analyzing the relationship between the requirements of each part, it can balance multiple requirements such as fidelity (the interpretation result accurately reflects the decision-making basis of the model), stability (the interpretation results should be consistent), robustness (good interpretation results can be maintained for noisy data and adversarial data), efficiency (the interpretation process cannot affect the detection speed of the original system) and interpretability (easy for security personnel to understand).
[0037] It can effectively explain the decision-making basis of deep models to determine anomalies, and has good fidelity, stability and robustness. At the same time, this explanation method has strong versatility and can be applied to a variety of different deep learning models and different network security scenarios.
[0038] It should be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present application. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] The drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present application, and together with the specification are used to explain the principles of the present application, and do not constitute an improper limitation on the present application.
[0040] Figure 1 It is a flowchart of the interpretation method of the deep learning model in network security anomaly detection in an embodiment of the present application.
[0041] Figure 2 It is a workflow diagram of the interpretation method of the deep learning model in network security anomaly detection in an embodiment of the present application.
[0042] Figure 3 Evaluation results of the fidelity, stability, and robustness of the interpretation method of this application and the six existing interpretation methods in various scenarios.
[0043] Figure 4 This is an evaluation comparison chart of the running time of the interpretation method of this application and the existing five interpretation methods in various scenarios. DETAILED DESCRIPTION
[0044] In order to enable ordinary persons in the art to better understand the technical solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the accompanying drawings.
[0045] At present, deep learning technology provides a new solution for many network security detection systems, improving detection accuracy and capabilities. However, due to the poor interpretability of deep learning models, network security systems based on deep learning face many difficulties in actual use: for example, it is difficult to establish trust in the model's decision results, it is difficult to debug and repair model errors, and it is impossible to use expert knowledge to provide feedback and improve the model. In summary, the root cause of these important challenges is the lack of interpretability of deep learning technology. Therefore, the lack of interpretability of deep learning models has largely hindered its application and deployment in network security scenarios.
[0046] In order to improve the interpretability of deep learning models, academia and industry have proposed a series of methods in recent years to enhance the interpretability of model decision-making processes from different perspectives. However, existing interpretation methods mainly focus on interpreting deep learning models in non-security scenarios, such as models related to computer vision and natural language processing. These methods are difficult to apply directly to network security scenarios. On the one hand, interpretability methods need to interact with people, and the interpretation results and emphases in different fields are different. For example, the field of artificial intelligence pays more attention to the specific decision-making mechanism of deep learning models, but security operators are more concerned about the decision-making basis of the model and how to use interpretability technology to improve the practicality of the model. On the other hand, many studies have pointed out that existing interpretation methods cannot achieve a trade-off between fidelity, stability, interpretability, robustness and efficiency. However, the field of network security is different from other fields. Its error tolerance is lower, and the characteristics of attack and defense confrontation require stronger robustness of the method. The online detection system requires efficient and real-time interpretation methods, and the existing interpretation methods cannot meet these special requirements in the security field. In addition, existing explanation methods mainly target supervised classification models, explaining the idea of labeled data or supervised learning during the explanation process, so these methods are not suitable for explaining unsupervised anomaly detection models.
[0047] In summary, in order to make up for the defects of existing interpretation methods, this application designs a targeted interpretation method for the network security anomaly detection system based on the needs of network security scenarios and the characteristics of unsupervised learning. This method can provide a reliable, consistent, concise, robust and efficient explanation for the unsupervised anomaly detection model, and at the same time has strong versatility and can be applied to a variety of different deep learning models and different network security scenarios.
[0048] Figure 1 The present invention is a flowchart of a method for explaining a deep learning model in network security anomaly detection according to an embodiment of the present invention. The method may include the following steps.
[0049] In step S101, a universal explanation framework is established, which transforms the explanation problem of deep learning models in network security anomaly detection into a solution process of a multi-objective optimization problem.
[0050] An embodiment of the present application provides a universal interpretation framework for deep learning models in a network security anomaly detection system. Before the interpretation framework is established, the interpretation process of the unsupervised detection task is first defined, and then the interpretation problem of the deep learning model is converted into a solution process of a multi-objective optimization problem in combination with various special needs of network security scenarios.
[0051] In step S102, for different types of network security task types, an interpreter algorithm corresponding to the network security task type is determined according to the universal interpretation framework.
[0052] Based on the interpretation framework, interpretation algorithms are designed for various network security tasks. This embodiment is classified according to the different types of source data used by the security detection system, namely: interpretation algorithms for detection systems based on tabular data, time series data, and graph structure data.
[0053] The workflow of this application is as follows Figure 2 As shown, the following will introduce a general explanation framework and the design of explanation algorithms for three types of security systems based on the explanation framework.
[0054] The design process of the general interpretation framework is as follows:
[0055] Since existing explanation methods mainly focus on supervised models in non-security fields, it is necessary to first define the meaning of interpretability of unsupervised deep learning models in network security scenarios and the goals of explanation methods.
[0056] Since the core idea of the unsupervised model decision-making basis is to learn the distribution of normal data and then judge whether the test data deviates from the normal distribution to determine whether it is abnormal or normal, this application adopts an interpretation process that is consistent with the unsupervised learning process, that is, to find a reference point in the normal distribution for the abnormal data point to be explained, and use the deviation between the reference point and the abnormal point to be explained as the decision basis of the model.
[0057] After clarifying the definition and objectives of the interpretation task, this application transforms the interpretation task into a multi-objective optimization problem for solving important reference points, and transforms the fidelity, stability, interpretability, and robustness that the interpreter needs to meet in the network security scenario into different optimization objectives / constraint objectives. By weighing multiple constraint objectives with different weight coefficients, the interpretation objective of the interpretation method is transformed into an optimization problem as shown in the following formula:
[0058]
[0059] Among them, x o and x * They represent the reference point and the abnormal point to be explained respectively, f represents the deep learning model, They represent fidelity, stability, interpretability and robustness constraints respectively, and λ1, λ2, λ3 are the weight coefficients for weighing stability, interpretability and robustness constraints respectively.
[0060] It should be noted that in this application, x o Represents anomalies in the general interpretation framework, which is an abstract representation of abnormal data and can represent tabular anomalies in tabular data xo , abnormal time series X in time series data o and unusual connections in graph-structured data x * Represents a reference point in the general interpretation framework, which can represent a tabular outlier point x in tabular data * , abnormal time series X in time series data * and unusual connections in graph-structured data
[0061] Based on the above interpretation framework, specific interpretation algorithms are designed for network security systems that use different source data types. The interpretation algorithms for three types of network security systems will be introduced below.
[0062] The interpreter algorithm for tabular data is designed as follows:
[0063] First of all, tabular data is the most commonly used source data type in deep learning tasks. As the name implies, tabular data is organized in rows and columns, each row represents a sample, also known as a feature vector, and each column represents a one-dimensional feature, including continuous numerical features and discrete categorical features.
[0064] In network security anomaly detection, the detection of tabular data anomalies often uses a reconstruction error-based method. In the training phase, a generative model f is usually used. R (such as automatic codec) to reconstruct normal data and train it to reduce the reconstruction error ε R ; In the test phase, the error between the reconstructed data and the original data is calculated. If it exceeds the abnormal threshold t R , it is judged as abnormal.
[0065] This application follows the above general interpretation framework when interpreting tabular data anomalies. Specifically, for a tabular data anomaly point x o The present application method will search for a tabular reference point x by defining constraints in a general interpretation framework. * , where the fidelity constraint is defined as the reference point x * will be detected by the anomaly detection model f R It is judged to be normal (i.e., the reconstruction error ε R Below the abnormal threshold t R ); Stability constraints It is defined as ensuring the reference point x as much as possible under the condition that other constraints are met. * and the outlier x o The distance is close (this example uses L2-norm to measure); explanatory constraints Guaranteed outlier point x o Compared to the reference point x* The modified feature dimension is as small as possible (measured by L0-norm in this embodiment), and the robustness constraint In this interpretation method, the table reference point x * The optimization process is implicitly implemented by initialization. Specifically, during the optimization process, the starting point is randomly sampled from the neighbors of the tabular outlier point, that is, in The variance is By * The above initialization at the initial point ensures that the gradient in the entire optimization process cannot be accurately estimated, which can effectively alleviate gradient-based adversarial attacks. At the same time, the smooth sampling method can also avoid large deviations in the interpretation results caused by certain random noises.
[0066] Therefore, the interpretation problem of the tabular anomaly in this application is defined as shown in the following formula (1):
[0067]
[0068] Among them, x o is a tabular outlier point, x * is the tabular reference point, f R is the anomaly detection model, λ is the weight coefficient of the corresponding constraint term, t R is the abnormal threshold, ε R is the reconstruction error.
[0069] The above objective functions represent stability constraints and interpretability constraints respectively, and the constraints are fidelity constraints and ensuring that the reference point is within the normal feature space range.
[0070] After formally defining the optimization problem corresponding to the method for explaining tabular data anomalies, this application provides a number of optimization techniques to provide a solution to this optimization problem.
[0071] First, the fidelity constraint in the constraint condition in formula (1) is highly nonlinear. This application solves it by relaxing it into a bounded error term, using the ReLU (Rectified Linear Unit) function to ensure that the optimal lower bound of the reconstruction error of the tabular reference point is t R , that is, the fidelity constraint is transformed into: ReLU(ε R (x * , f R (x * ))-(t R -∈)). For x * The range constraint ensures that the tabular reference point is within the normal feature space range. This application uses the variable replacement method to replace the original constraint x* ∈[0,1] N Convert to That is, replace x with u without range constraints * Therefore, the interpretation problem of the tabular anomaly in this application is transformed into an unconstrained optimization form represented by the following formula (2):
[0072]
[0073] For the problem that L0-norm (L0 norm) cannot be differentiated, this application adopts the idea of iterative optimization, that is, each time the gradient is used for optimization, only the table reference point x is modified. * The K dimensions with the largest gradients are taken, and the other dimensions remain unchanged.
[0074] Since the explanation objective is converted into a differentiable unconstrained optimization problem, this application uses a gradient descent method based on the Adam optimizer to solve the optimization problem.
[0075] The specific solution process is as follows: (1) First, in x o In the neighborhood of * Initialize, that is, add a random number sampled from a Gaussian distribution as a smoothing term; (2) In each step of iterative optimization, this application selects x * The K dimensions with the largest gradients are optimized using the gradient descent method; (3) After several rounds of iterations, the present application uses the final tabular reference point x * Calculate the deviation of the outlier point |x o -x * |As the final interpretation result, it is the basis for abnormality judgment of the deep model.
[0076] Design of interpretation algorithms for time series data:
[0077] Time series data is a discrete sequence of data values organized in chronological order, and is often used with recurrent neural networks to model data containing time series information.
[0078] First, we introduce the processing and detection methods of time series data in the network security anomaly detection system. Here we take the discrete value time series as an example (the continuous value time series is easier to process, and the same is true). o Represents discrete time events An abnormal time series (i∈{1, 2, ..., t}), where each discrete data It will be one-hot encoded into a 0-1 vector. In the training phase, the anomaly detection system will use normal time series for training, and use the first t-1 data to predict the tth data; in the prediction phase, the anomaly detection system can predict the next (tth) data well for normal sequences, but cannot predict abnormal data well, that is, where t P is the abnormal threshold.
[0079] Based on the general interpretation framework, this application specifically defines the interpretation problem of time series anomalies. In discrete time series, stability constraints and interpretation constraints are equivalent and non-differentiable. Therefore, an iterative optimization method similar to that of tabular data is used, that is, a small amount of abnormal parts are selected for modification each time, and the optimization target each time only considers the fidelity constraint, as shown in the following formula (3):
[0080]
[0081] in, is an abbreviation for the fidelity constraint (also an abbreviation for the optimization objective of the time series interpreter), X * is the reference time series. For time series data, X * Contains a time series of t time points (i.e. is the reference time series X * The data at the tth moment in time, f P It is an anomaly detection model for time series data sources. f P The specific calculation method of (as mentioned above, use the first t-1 data to predict the tth data), reference t P is the abnormal threshold.
[0082] After formally defining the optimization problem corresponding to the interpretation method of time series anomalies, this application will solve the reference time series X * The process is divided into two cases: On the one hand, if the exception is caused by If the label is abnormal during the model prediction process, then only the label needs to be modified. On the other hand, if the abnormality is caused by It is caused by (hereinafter referred to as "sequence anomaly"), and it is necessary to iteratively modify a small amount of time point data that is most important for decision-making to search for reference points.
[0083] In order to distinguish the two situations, this application introduces a significance detection method, that is, if the confidence of the sequence anomaly is low (embodied as The gradient of is very small) and the confidence of the abnormal label is high (reflected in the probability output of other label classes is very large), then it is determined that a label anomaly has occurred. The specific formal description of the saliency detection method (denoted as ST) is expressed by the following formula (4):
[0084]
[0085] Among them, μ1 and μ2 are hyperparameters, x c is the class with the maximum output probability, that is
[0086] In summary, the overall idea of solving the optimization problem in this application is as follows:
[0087]
[0088] The interpretation algorithm for graph-structured data is designed as follows:
[0089] Graph structured data supports modeling the relationship between nodes through the form of different nodes and connections. Each node corresponds to an entity or data, and the connection represents the relationship between nodes. Both nodes and connections may have attributes (i.e., feature vectors describing nodes or connections). The general approach of a network anomaly detection system using graph modeling or graph data structure is to learn the representation vectors of nodes or connections or graphs according to different tasks (for example, if it is a node classification task, then learn the representation vector of each node). The learned representation vector can be learned by graph embedding algorithms or graph neural networks for normal data. After extracting the representation vector, anomaly detection is performed using the reconstruction error-based method similar to the tabular data described above.
[0090] The following is the definition of the graph data structure interpretation problem in this application. Taking the connection prediction task as an example (determining whether a connection is abnormal), an abnormal connection is recorded as in and is the node connecting the two ends, and the representation vector after embedding is recorded as The core idea of this application to solve the problem of abnormal interpretation of graph structure can be divided into two parts: the first step is to find the abnormal representation vector (denoted as e o ) of the normal reference representation vector (denoted as e * ), the problem definition and solution method of this step are consistent with those of the tabular data, so we will not elaborate on them here; the second step is based on e * The (normal) reference connection located on the original graph structure is denoted by This part requires designing constraints in the general interpretation framework for graph data. As mentioned above, the interpretation constraints are implemented through iterative optimization. For graph data, the fidelity constraints and stability constraints of this application are similar to those of the table-based interpreter, as shown in the following formula (5):
[0091]
[0092] in, Indicates a reference connection The nodes of the graph data are in the node set, f R is an anomaly detection model for graph data sources, e * For reference representation, For reference connection, It is the node connecting the two ends. is the embedded representation vector.
[0093] After formally defining the optimization problem corresponding to the interpretation method of graph structure anomalies, this application divides the solution of this problem into two cases: (1) If the embedding process is differentiable, the entire optimization problem can be solved by directly using the optimization solver for gradient descent; (2) If the embedding process is not differentiable, an approximate method is used to solve it.
[0094] In order to ensure that the explanation results are easy to understand, this application adopts a reference connection search method based on a greedy algorithm, starting from the two nodes with abnormal connections and searching outward layer by layer, using a priority queue method to prioritize nodes with small objective function values, and ending after searching for a sufficiently good target connection or a fixed number of steps.
[0095] The effect of this application is tested in a variety of different network security anomaly detection system applications. Corresponding to the three types of data using source data formats, this application compares the effects of table-based network intrusion detection systems, time series log anomaly detection systems, and graph-based advanced persistent threat (APT) lateral movement detection with existing commonly used interpretation methods.
[0096] The evaluation indicators include fidelity (the proportion of reference points judged as normal samples by the model), stability (the similarity of the results of multiple explanations of the same batch of samples, measured using Jaccard similarity), robustness (the similarity of the explanation results of the same batch of samples before and after adding Gaussian noise perturbation), and efficiency (the running time for explaining the same batch of samples).
[0097] Figure 3 This is a diagram showing the evaluation of the fidelity, stability, and robustness of the interpretation method of this application and the six existing interpretation methods in various scenarios. Figure 4This is an evaluation comparison chart of the running time of the interpretation method of this application and the five existing interpretation methods in various scenarios. The existing interpretation methods are used as comparison methods. Figure 3 , Figure 4 The comparison methods mentioned in are: comparison method 1: LIME, comparison method 2: LEMNA, comparison method 3: COIN, comparison method 4: DeepLIFT, comparison method 5: CADE, comparison method 6: find the nearest neighbor point from the training data as the reference point.
[0098] like Figure 3 and Figure 4 As shown in the figure, this application is compared with existing representative and most advanced interpreters under tabular and time series data. The vertical axis is the size of each evaluation index (the larger the better the effect), and the horizontal axis represents the proportion of used features (the smaller the ratio, the simpler the interpretation result). Figure 3 As shown in the figure, the method of the present application can maintain good results in terms of fidelity, stability and robustness, and surpass other existing methods, especially when using a small number of features, which shows that the method can well balance the trade-off between simplicity (interpretability) and high quality of the interpretation results. Figure 4 As shown, the method of the present application can achieve efficient interpretation of two types of result data.
[0099] In summary, this application designs a new interpretation method for deep learning models in network security anomaly detection. This method is applicable to a variety of anomaly detection systems that use different source data formats and different deep learning models. It has good versatility and is superior to existing methods in terms of fidelity, stability, robustness and efficiency of unsupervised model interpretation.
[0100] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the inventions claimed herein. The present application is intended to cover any variations, uses or adaptations of the present application, which follow the general principles of the present application and include common knowledge or customary techniques in the art that are not claimed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the claims.
[0101] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.
Claims
1. An explanation method for deep learning models in network security anomaly detection, It is characterized in that include: Establishing a universal explanation framework that transforms the explanation problem of deep learning models in network security anomaly detection into a solution process of a multi-objective optimization problem; For different types of network security tasks, determine the interpreter algorithm corresponding to the network security task type according to the universal interpretation framework; The general explanatory framework is expressed as follows: Among them, x° and x * represent abnormal points and reference points respectively, f represents the deep learning model, denote the fidelity, stability, interpretability and robustness constraints respectively, λ 1 ,λ 2 ,λ 3 They are respectively expressed as the weight coefficients of stability, explanation and robustness constraints; The network security tasks are divided into network security task types based on tabular data, time series data and graph structure data according to the different source data types used by the security detection system; For network security tasks based on tabular data, the interpreter algorithm is determined as a first multi-objective optimization problem according to the general interpretation framework, including: For tabular abnormal data, the tabular reference point x is searched through the constraints in the general interpretation framework. * , where the fidelity constraint Defined as a table reference point x * Anomaly detection model based on tabular data R It is judged to be normal, that is, the reconstruction error ε R Below the abnormal threshold t R ; Stability constraint It is defined as ensuring that the distance between the reference point and the tabular outlier point x° is less than the first preset condition under the conditions of satisfying the fidelity, interpretation and robustness constraints; the interpretation constraint Ensure that the tabular abnormal point x° is compared with the tabular reference point x * The modified feature dimension is smaller than the second preset condition; The first multi-objective optimization problem is determined as follows: s.t.ε R (x * ,f R (x * ))<t R andx * ∈[0,1] N Among them, x * represents the tabular reference point, x° represents the tabular abnormal point, ε R represents the reconstruction error, t R represents the abnormal threshold, f R represents an anomaly detection model based on tabular data, and λ is the weight coefficient of the corresponding constraint item; For network security tasks based on time series data, the interpreter algorithm is determined as a second multi-objective optimization problem according to the general interpretation framework, including: For time series abnormal data, the reference time series X is searched through the constraints in the general interpretation framework. * , through iterative optimization, that is, selecting a small amount of abnormal data for modification each time, and each optimization target only considers the fidelity constraint item, the second multi-objective optimization problem is determined, which is expressed as follows: in, is a shorthand for the fidelity constraint, X * is the reference time series, X * A time series containing t time points is t P is the abnormal threshold, f P represents anomaly detection model based on time series data, ε R represents the reconstruction error, f P The specific calculation method of For network security tasks based on graph structured data, the interpreter algorithm is determined as a third multi-objective optimization problem according to the general interpretation framework, including: Record an abnormal connection as in and is the node connecting the two ends, and the representation vector after embedding is recorded as Get the reference representation e of the abnormal representation e° * , according to the reference characterization e * Reference connection located on the original diagram structure The reference connection is recorded as in, is the node connecting the two ends; the explanatory constraint item of the general explanatory framework Through iterative optimization, the fidelity constraint Defined as the reconstruction error ε R Below the abnormal threshold t R , stability constraint It is defined as ensuring that the reference connection and abnormal connection meet the third preset condition under the conditions of satisfying the fidelity, explanation and robustness constraints; The third multi-objective optimization problem is determined as shown in the following formula: in, Indicates a reference connection The nodes of the graph data are in the node set, f R Anomaly detection model for graph data sources.
2. The method according to claim 1, It is characterized in that The method for solving the first multi-objective optimization problem comprises: Through the ReLU function, the fidelity constraint term is transformed into: ReLU(ε R (x * , f R (x * ))-(t R -∈)); x * ∈[0, 1] N Convert to That is, replace x with u without range constraints * ; The first multi-objective optimization problem is transformed into an unconstrained optimization problem, which is expressed as follows: According to the iterative optimization method, the unconstrained optimization problem is transformed into a differentiable unconstrained optimization problem and solved by the gradient descent method based on the Adam optimizer.
Citation Information
Patent Citations
A system and method for processing large data attributes and the interval
CN102930025A
Large graph sampling visualization method based on graph representation learning
CN110889001A
Visual interpretation method and system for deep neural network model.
CN112861933A
System and method for interpretable sequence and time-series data modeling
US20200364504A1
Cited By
Anomaly detection method and system for cloud network resource state
CN115714674A
