Method for determining sparse interaction effect of black-box artificial intelligence model

By optimizing the relationship between the input units of the black box artificial intelligence model, the problem of sparseness and simplicity of the interpretation results is solved, automatic analysis and interpretation of the interactive utility of the black box model is realized, and the rigor and universality of the interpretation results are ensured. Adaptability.

WO2024217543A1PCT designated stage expired Publication Date: 2024-10-24SHANGHAI JIAOTONG UNIV

Patent Information

Application Number
PCT/CN2024/088822
Authority / Receiving Office
WO · WO
Patent Type
Applications
Current Assignee / Owner
Priority Date
2023-04-20
Filing Date
2024-04-19
Publication Date
2024-10-24

AI Technical Summary

Technical Problem

Existing technologies are difficult to explain the interactive utility of black-box artificial intelligence models while ensuring reliability and sparseness and simplicity of interpretation results, especially in the field of deep learning, resulting in deficiencies in interpretability methods.

Method used

Propose a method and system that selects a pre-trained black box artificial intelligence model, obtains and preprocesses data, calculates the 'AND' and 'OR' relationships between input units, and ensures their simplicity and simplicity by optimizing the combination of these relationships. sparsity, thereby enabling automatic analysis of the interaction utility of black-box models.

Benefits of technology

It achieves accurate splitting of the output of the black box model, ensuring the rigor and simplicity of the interpretation results. It is suitable for most black box models, including deep neural networks, and improves the sparseness and universality of the interpretation results.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN2024088822_24102024_PF_FP_ABST
    Figure CN2024088822_24102024_PF_FP_ABST
Patent Text Reader

Abstract

The present application relates to the technical field of machine learning. Disclosed are a method and system for interpreting a sparse interaction effect modeled by a black-box artificial intelligence model. The method and system can automatically analyze an interactive distribution modeled by a model. The implementation of the method and system comprises the following steps: providing data that needs to be assessed; using a black-box model to perform prediction on the data, so as to obtain a prediction result of the model; on the basis of an output of the black-box model, modeling the interaction effect between input units of samples, calculating the interaction intensity between combinations formed by the input units, and expressing the black-box model as an "AND addition relationship" and an "OR addition relationship" between the combinations of the input units; and performing optimization, such that the "AND addition relationship" and the "OR addition relationship" are more sparse. The advantages of the present invention lie in that a quantification method for interpreting the interaction modeled by a black-box artificial intelligence model is provided, and in comparison with previous research, a more sparse and concise interactive interpretation can be obtained.
Need to check novelty before this filing date? Find Prior Art

Description

A method for measuring the sparse interaction utility of black-box artificial intelligence models Technical Field

[0001] The present invention relates to the field of machine learning technology, and in particular to a method and system for explaining sparse interaction utilities modeled by a black box artificial intelligence model. Background Art

[0002] Deep learning has been widely applied in various fields and demonstrated its powerful performance, but users and researchers struggle to analyze the black-box nature of AI models. Existing interaction-based explanation methods can quantitatively analyze the interactive effects of various units and attribute combinations in model inputs while ensuring reliability. However, they cannot guarantee the sparsity and simplicity of the explanations, which are essential for AI interpretability.

[0003] Therefore, how to reliably explain the interactive utility modeled by the black box model while ensuring its sparsity and simplicity is an urgent problem to be solved in the field of interpretability.

[0004] Summary of the Invention

[0005] The present invention aims to invent a method and system for interpreting the sparse interaction utility modeled by a black-box artificial intelligence model, which can automatically analyze the distribution of interactions modeled by the model. The method comprises the following steps:

[0006] (1) Select model

[0007] A black box artificial intelligence model to be analyzed is selected, where the black box artificial intelligence model is a model pre-trained on a certain data set.

[0008] (2) Obtain the data required for evaluation

[0009] Collect and pre-process the data to be evaluated. The data can be in the form of tabular data, images, text, voice, etc., but must be compatible with the model in step (1). The data to be evaluated contains a certain number of input units.

[0010] (3) Modeling the “AND-ADD relationship” and “OR-ADD relationship” between input units

[0011] Input the data to be evaluated in step (2) into the model in step (1) and obtain the model output. Based on the output of the black box model, model the interaction between the input units, obtain a set of different input units, and calculate the interaction strength of each set. Express the black box model as a combination of "and-add" and "or-add" relationships between input unit combinations.

[0012] (4) Optimize the combination of "and-add relationship" and "or-add relationship"

[0013] Based on the "and-addition relationship" and "or-addition relationship" described in step (3), by optimizing the combination of the "and-addition relationship" and the "or-addition relationship", the expressions of the two relationships are made more concise and sparse.

[0014] In a preferred embodiment, the step (1) further comprises the following steps:

[0015] Based on a dataset, a black box artificial intelligence model is trained as the model to be analyzed. Optionally, the model can be a deep neural network.

[0016] In a preferred embodiment, the step (2) further comprises the following sub-steps:

[0017] (a) Collect the data to be analyzed. Optionally, if the model in step (1) can be used for image classification, the data to be analyzed can be a picture.

[0018] (b) Preprocessing the data to be analyzed. Optionally, the data to be analyzed can be downsampled, upsampled, normalized, etc. to make it suitable for the above-mentioned model input.

[0019] In a preferred embodiment, the step (3) further comprises the following sub-steps:

[0020] (3a) Calculate the output value of the black box model under any occlusion of the above-mentioned data to be analyzed;

[0021] (3b) Computing the “and interactions” in the data to be analyzed modeled by the black box model;

[0022] (3c) Compute the “OR interactions” in the data to be analyzed that are modeled by the black box model.

[0023] In the above sub-step (3a), the black box artificial intelligence model is represented as v, and the data sample x to be analyzed contains n input units, which are represented as the set N = {1, 2, ..., n}, where the number of input units is generally a positive integer greater than or equal to 5. Optionally, each dimension in the input data can be regarded as an input unit, or the input data can be divided into multiple regions, and each region can be regarded as an input unit.

[0024] Any subset of the input cells is called a combination of input units, v(S) represents the output of the black box model when a combination of input units S is given and the input units in N\S are blocked. In particular, if the data to be analyzed is input to the model without blocking, the output obtained is expressed as v(N). If the analyzed data is completely blocked and input to the model, the output obtained is expressed as

[0025] When calculating the output v(S) of the black box model on a certain input unit combination S, it is necessary to keep the original input value of the sample to be analyzed on the input units included in S, and replace the input units in all the complements of S N\S with the reference value. In particular, assuming the reference value is b, the occluded sample x S The individual input units of are defined as follows:

[0026] Thus, v(S) can be calculated as S The output value obtained by inputting the model. Optionally, the reference value can be set to the mean of the sample set, a random value, zero, etc. Furthermore, the black box model output v(S) calculated based on the reference value b can be specifically recorded as v(S|b). It should be understood that v(S|b) can be abbreviated as v(S) without ambiguity.

[0027] In the above sub-step (3b), the contribution of the AND relationship between any combination of input units to the black-box model output is evaluated by calculating the AND interaction. The AND interaction represents the additional utility generated by the black-box model output when the units in the combination are triggered simultaneously (i.e., not blocked). It should be understood that in a black-box model, input units often do not contribute individually to the model's output, but rather interact with each other to influence the model's output.

[0028] Therefore, for Definition I AND (S) is the “AND interaction” corresponding to the input unit combination S, so that when all input variables in S are triggered, I AND (S) is triggered and added to the output of the black box model. Specifically, I AND (S) can be calculated by the following formula.

[0029] Where s = |S| and l = |L|. Optionally, different "interaction" values ​​can be calculated based on different reference values ​​in step (2), and the interaction calculated based on the reference value b is recorded as I AND (S|b). It should be understood that I can be used without ambiguity. AND (S|b) is abbreviated as I AND (S).

[0030] The above "and interaction" satisfies that for any given input unit combination The output v(T) of the black box model under this input unit combination can be divided into all the triggered and interactive I AND The sum of (S) is shown in the following formula.

[0031] Among them, eT Satisfies, when i∈T, (e T ) i =1, otherwise, (e T ) i =0;∧ i∈S (e T ) i Indicates whether all the units in the input unit combination S are triggered. The result of the "AND" operation on the elements after the ∧ symbol is ∧ i∈S (e T ) i =∏ i∈S (e T ) i .

[0032] Furthermore, the above calculation formula for interaction can be equivalent to the following form, assuming Then there is Make I AND =Av.

[0033] In the above sub-step (3c), the contribution of the OR relationship between any combination of input units to the black-box model output is evaluated by calculating the OR interaction. The OR interaction represents the additional utility generated by at least one unit in the combination when it is triggered (i.e., not blocked). It should be understood that in a black-box model, input units often do not contribute individually to the model's output, but rather interact with each other to influence the model's output.

[0034] Therefore, for Definition I OR (S) is the “or interaction” corresponding to the combination S between input units, so that when at least one of all input variables in S is triggered, I OR (S) is triggered and is added to the output of the black box model. Specifically, I OR (S) can be calculated by the following formula.

[0035] Where s = |S| and l = |L|. The above "or interaction" satisfies that for any given input unit combination The output v(T) of the black box model under this input unit combination can be decomposed into all triggered or interactive I OR The sum of (S) is shown in the following formula.

[0036] Among them, e T Satisfies, when i∈T, (e T ) i =1, otherwise, (eT ) i =0; V i∈S (e T ) i Indicates whether at least one of the units in the input unit combination S is triggered, and the result of the "or" operation on the elements after the ∨ symbol is ∨ i∈S (e T ) i =1-∏ i∈S [1-(e T ) i ].

[0037] Furthermore, the above or interactive calculation formula can be equivalent to the following form, assuming v = Then there is Make I OR =Bv.

[0038] In a preferred embodiment, the step (4) further comprises the following sub-steps:

[0039] (4a) Based on the “and interaction” and “or interaction” in step (3), the black box model output is interpreted as a combination of “and-add relationship” and “or-add relationship” between the input unit combinations.

[0040] (4b) Based on the combination of "and-add relationship" and "or-add relationship" in sub-step (4a), the combination of "and-add relationship" and "or-add relationship" is further optimized to make the expression of the two relationships more concise and sparse.

[0041] In sub-step (4a), based on the “AND interaction” and “OR interaction” in step (3), the output v(T) of the black box model under any input unit combination T is interpreted as a combination of “AND-additive relationship” and “OR-additive relationship”. Alternatively, based on different reference values ​​in step (3), the output v(T) of the black box model can be interpreted as a combination of “AND-additive relationship based on different reference values” and “OR-additive relationship”. In general, assuming there are m different reference values ​​b (1) ,…,b (m) , then the output v(T) of the black box model under any combination of input units can be interpreted as the following formula.

[0042] Therefore, based on the above explanation of the black box model, the output v(N) of the model on the complete sample can be split into The black box model output v(N) is interpreted as the sum of the utilities of m groups of “interactions with”, where each group of “interactions with” contains 2 n The utility of "and interaction" within the combination of input units and the sum of the utilities of a set of “or interactions”, including 2 n The utility of "OR interaction" within the combination of input units Optionally, the m different reference values ​​may be selected as mean values, random values, zero values, etc.

[0043] In sub-step (4b), in order to further obtain sparse interactions, the present invention hopes to minimize the sum of the L1-norms of all interactions, that is,

[0044] in, ‖·‖1 represents the L1-norm of the vector, and m in the above formula is the number of the aforementioned reference values.

[0045] Optionally, when optimizing the above expression, one can define p (1) ,…,p (m) , and satisfy p (1) +…+p (m) +p (or) =0, where p (1) ,…,p (m) ,p (or) Represents a partition of the neural network output v; and defines q is a vector with a small absolute value in each dimension, which represents the deviation caused by interpreting the model output as "and-additive relationship" and "or-additive relationship". Then the above optimization problem can be converted into the following form. st |q i |<τ i

[0046] Among them, τ i is a preset threshold. Preferably, The value of m generally ranges from 1 to 10.

[0047] In particular, in one embodiment, in the above sub-step (a), only one reference value is selected, that is, when m=1, the output of the black box model can be interpreted as a combination of the "and-add relationship" and the "or-add relationship" shown in the following formula.

[0048] in, represents the “AND interaction” of the input unit combination S, represents the “OR interaction” of the input unit combination S. Similarly, the black box model output is interpreted as 2 n The sum of the utilities of the combined “and interactions” between the input units, and 2 nOptionally, the reference value can be selected as one of the mean value, random value, zero value, etc.

[0049] Furthermore, in sub-step (b), in order to further obtain sparse interactions, the present invention hopes to minimize the sum of the L1-norms of all interactions, that is,

[0050] in, ‖·‖1 represents the L1-norm of the vector.

[0051] Optionally, when optimizing the above expression, you can define Make Then the above optimization problem can be converted into the following form. st |q i |<τ i

[0052] Among them, τ i is a preset threshold. Preferably,

[0053] In a preferred embodiment, the steps (3) and (4) above for inputting the labels of the combinations between the units may further include the following steps:

[0054] The output v(N) corresponding to the input sample N can be modeled as 2 n The interaction between the input unit combination I AND and 2 n The combination or interaction between input units I OR , use the following method to 2 n For example, when n=3, let N={i, j, k}. Preferably, all input unit combinations can be labeled as shown in Table 1.

[0055] Table 1

[0056] For example, when n=5, let N={i,j,k,l,m}. Preferably, all input unit combinations can be marked as shown in Table 2.

[0057] Table 2

[0058] A second aspect of the present invention provides a system for interpreting sparse interaction utilities modeled by a black box artificial intelligence model, characterized by comprising:

[0059] (1) The input module is configured as a pre-trained black box artificial intelligence model and a set of data to be analyzed.

[0060] (2) A calculation module is configured to calculate the "and-add relationship" and "or-add relationship" between the data input units modeled by the calculation model based on the model and data in the input module, and optimize the combination of the "and-add relationship" and "or-add relationship" so that the expression of the two relationships is more concise and sparse.

[0061] (3) An output module configured to output a combination of the “AND-ADD relationship” and the “OR-ADD relationship” optimized by the calculation module.

[0062] It should be understood that within the scope of the present invention, the above-mentioned technical features of the present invention and the technical features described in detail below (such as in the embodiments) can be combined with each other to form new or preferred technical solutions. Due to space limitations, they will not be listed here one by one.

[0063] Other features, objects and advantages of the present invention will become more apparent from the following detailed description of non-limiting embodiments with reference to the accompanying drawings.

[0064] The main advantages of the present invention are:

[0065] (1) The present invention proposes a method and system that can automatically analyze the "AND-addition relationship" and "OR-addition relationship" within a black box model;

[0066] (2) The method and system disclosed in the present invention can ensure the rigor of the interpretation results. That is, based on the "and interaction" and "or interaction" proposed in the present invention, the output of the black box model can be accurately split into the sum of the interaction utilities between different input units;

[0067] (3) The method and system disclosed in the present invention can ensure the simplicity of the interpretation results. That is, based on the optimization of the "and-add relationship" and "or-add relationship" proposed in the present invention, a more sparse and concise interactive interpretation can be obtained;

[0068] (4) The method and system disclosed in the present invention are widely applicable and general, that is, they are applicable to most black box models, including but not limited to deep neural networks.

[0069] The specification of this application records a large number of technical features, which are distributed in various technical solutions. If all possible combinations of technical features of this application (i.e., technical solutions) are to be listed, the specification will be too lengthy. In order to avoid this problem, the various technical features disclosed in the above-mentioned invention content of this application, the various technical features disclosed in the various embodiments and examples below, and the various technical features disclosed in the accompanying drawings can be freely combined with each other to form various new technical solutions (these technical solutions are all deemed to have been recorded in this specification), unless such a combination of technical features is technically infeasible. For example, in one example, feature A+B+C is disclosed, and in another example, feature A+B+D+E is disclosed. Features C and D are equivalent technical means that play the same role. Technically, only one of them can be used, and it is impossible to use them at the same time. Feature E can be technically combined with feature C. Then, the solution of A+B+C+D should not be considered as having been recorded because it is technically infeasible, while the solution of A+B+C+E should be considered as having been recorded. BRIEF DESCRIPTION OF THE DRAWINGS

[0070] The following is a brief introduction to the drawings required for use in the embodiments or descriptions of the prior art. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without any creative work.

[0071] FIG1 is a flow chart of a method for explaining the sparse interaction utility modeled by a black box artificial intelligence model according to a first embodiment of the present invention;

[0072] FIG2(a) is a schematic diagram of the samples to be analyzed and the input variables according to the present invention, FIG2(b) is the initial utility distribution of the "AND-ADD relationship" and the "OR-ADD relationship" obtained according to the present invention, and FIG2(c) is the final utility distribution of the "AND-ADD relationship" and the "OR-ADD relationship" obtained by optimization according to the present invention, which is based on the tabular data;

[0073] FIG3 shows the utility values ​​of some “and interaction” and “or interaction” optimized according to the present invention, and the results are based on table data.

[0074] FIG4(a) is a schematic diagram of the sample to be analyzed and the input variables according to the present invention, FIG4(b) is the initial utility distribution of the "AND-ADD relationship" and the "OR-ADD relationship" obtained according to the present invention, and FIG4(c) is the final utility distribution of the "AND-ADD relationship" and the "OR-ADD relationship" obtained by optimization according to the present invention, the result of which is based on image data;

[0075] FIG. 5 shows the utility values ​​of some “AND interaction” and “OR interaction” optimized according to the present invention, and the results are based on image data.

[0076] FIG6 is a schematic structural diagram of a sparse interactive utility system modeled by an explanation black box artificial intelligence model according to a second embodiment of the present invention. DETAILED DESCRIPTION

[0077] After careful and in-depth research, the inventors have developed for the first time a method and system for explaining the sparse interaction utility modeled by black-box artificial intelligence models.

[0078] General Methods

[0079] Typically, the present invention comprises the following steps:

[0080] (1) Model selection: Select a black box AI model to be analyzed. The black box AI model is a model that has been pre-trained on a certain dataset.

[0081] (2) Obtain the data to be evaluated. Collect and preprocess the data to be evaluated. The data can be in the form of tabular data, images, text, voice, etc., but must be compatible with the model in step (1). The data to be evaluated contains a certain number of input units.

[0082] (3) Modeling the "AND-ADD relationship" and "OR-ADD relationship" between input units. Input the data to be evaluated in step (2) into the model in step (1) and obtain the model output. Based on the output of the black box model, model the interaction and coordination between input units, obtain a set of different input units, and calculate the interaction strength of each set. Express the black box model as a combination of "AND-ADD relationship" and "OR-ADD relationship" between input unit combinations.

[0083] (4) Optimizing the combination of "AND-ADD relationship" and "OR-ADD relationship". Based on the "AND-ADD relationship" and "OR-ADD relationship" described in step (3), by optimizing the combination of "AND-ADD relationship" and "OR-ADD relationship", the expression of both relationships is made more concise and sparse.

[0084] Example

[0085] In order to make the objectives, technical solutions and advantages of this application clearer, the implementation methods of this application will be further described in detail below with reference to the accompanying drawings.

[0086] The first embodiment of the present invention relates to a method for explaining the sparse interaction utility modeled by a black box artificial intelligence model. The process is shown in FIG1 . The method includes the following steps:

[0087] In step 101, a black-box artificial intelligence model is trained based on a dataset as the model to be analyzed. Optionally, the model can be a deep neural network. In one embodiment, the model is a five-layer perceptron model (MLP-5) pre-trained on the UCI Wireless Indoor Localization dataset, which is a deep neural network. In another embodiment, the model is a ResNet-18 model pre-trained on the CelebA dataset, which is also a deep neural network.

[0088] Then, proceed to step 102, which can be further divided into the following two sub-steps:

[0089] (a) Collect the data to be analyzed. Optionally, if the model in step (1) can be used for image classification, the data to be analyzed can be a picture.

[0090] (b) Preprocessing the data to be analyzed. Optionally, the data to be analyzed can be downsampled, upsampled, normalized, etc. to make it suitable for the above-mentioned model input.

[0091] In one embodiment, as shown in Figure 2 (left), the data is selected as any data in the UCI Wireless Indoor Localization dataset, including 7 input variables, representing the 1st to 7th Wi-Fi signal strength values, respectively, denoted as signal 1, signal 2, ..., signal 7; in another embodiment, as shown in Figure 4 (left), the model is selected as any data in the CelebA dataset, divided into 9 input variables, namely hair, forehead, left eye, right eye, nose, left cheek, right cheek, mouth, and chin.

[0092] Then, proceed to step 103, which can be further divided into the following three sub-steps:

[0093] (a) Calculate the output value of the black box model under any occlusion of the above-mentioned data to be analyzed;

[0094] (b) Compute the “and interactions” in the data to be analyzed modeled by the black box model;

[0095] (c) Compute the “OR interactions” in the data to be analyzed that are modeled by the black box model.

[0096] In the above sub-step (a), the black-box AI model is denoted as v, and the data sample to be analyzed x contains n input units, denoted as the set N = {1, 2, ..., n}, where the number of input units is generally 5 to 20. Optionally, each dimension of the input data can be considered as an input unit, or the input data can be divided into multiple regions, each of which can be considered as an input unit.

[0097] Any subset of the input cells is called a combination of input units, v(S) represents the output of the black box model when a combination of input units S is given and the input units in N\S are blocked. In particular, if the data to be analyzed is input to the model without blocking, the output obtained is expressed as v(N). If the analyzed data is completely blocked and input to the model, the output obtained is expressed as

[0098] When calculating the output v(S) of the black box model on a certain input unit combination S, it is necessary to keep the original input value of the sample to be analyzed on the input units included in S, and replace the input units in all the complements of S N\S with the reference value. In particular, assuming the reference value is b, the occluded sample x S The values ​​of each dimension of are defined by the following formula:

[0099] Thus, v(S) can be calculated as S The output value obtained by the input model. Optionally, the reference value can be set to the mean of the sample set, a random value, zero, etc. Furthermore, the black box model output v(S) calculated based on the reference value b can be specifically recorded as v(S|b). It should be understood that v(S|b) can be abbreviated as v(S) without ambiguity. In one embodiment, the reference value b is set to the mean of different samples in the sample set.

[0100] In sub-step (b) above, the contribution of the AND relationship between any combination of input units to the black-box model output is evaluated by calculating "AND interactions." "AND interactions" represent the additional utility generated by the black-box model output when the units in the combination are triggered simultaneously (i.e., not blocked). It should be understood that in a black-box model, input units often do not contribute individually to the model's output, but rather interact with each other to influence the model's output.

[0101] Therefore, for Definition I AND (S) is the “AND interaction” corresponding to the input unit combination S, so that when all input variables in S are triggered, I AND (S) is triggered and added to the output of the black box model. Specifically, I AND (S) can be calculated by the following formula.

[0102] Where s = |S| and l = |L|. Optionally, different "interaction" values ​​can be calculated based on different reference values ​​in step (2), and the interaction calculated based on the reference value b is recorded as I AND (S|b). It should be understood that I can be used without ambiguity.AND (S|b) is abbreviated as I AND (S).

[0103] The above "and interaction" satisfies that for any given input unit combination The output v(T) of the black box model under this input unit combination can be divided into all the triggered and interactive I AND The sum of (S) is shown in the following formula.

[0104] Among them, e S Satisfies, when i∈S, (e S ) i =1, otherwise, (e S ) i =0;∧ i∈S (e T ) i Indicates whether all the units in the input unit combination S are triggered, and the result of the "AND" operation on the elements after the ∧ symbol.

[0105] Furthermore, the above calculation formula for interaction can be equivalent to the following form, assuming Then there is Make I AND =Av.

[0106] In sub-step (c) above, the contribution of the OR relationship between any combination of input units to the black-box model output is evaluated by calculating "OR interactions." "OR interactions" represent the additional utility generated on the black-box model output when at least one unit in the combination is triggered (i.e., not blocked). It should be understood that in a black-box model, input units often do not contribute individually to the model's output, but rather interact with each other to influence the model's output.

[0107] Therefore, for Definition I OR (S) is the “or interaction” corresponding to the combination S between input units, so that when at least one of all input variables in S is triggered, I OR (S) is triggered and is added to the output of the black box model. Specifically, I OR (S) can be calculated by the following formula.

[0108] Where s = |S| and l = |L|. The above "or interaction" satisfies that for any given input unit combination The output v(T) of the black box model under this input unit combination can be decomposed into all triggered or interactive I ORThe sum of (S) is shown in the following formula.

[0109] Among them, e S Satisfies, when i∈S, (e S ) i =1, otherwise, (e S ) i =0; V i∈S (e T ) i Indicates whether at least one of the units in the input unit combination S is triggered, and is the result of performing an "OR" operation on the elements after the ∨ symbol.

[0110] Furthermore, the above or interactive calculation formula can be equivalent to the following form, assuming Then there is Make I OR =Bv.

[0111] In one embodiment of the present invention, based on the MLP-5 model in step 101, the values ​​of "and interaction" and "or interaction" are calculated using the calculation formulas for "and interaction" and "or interaction". As shown in Figure 2 (center), a distribution diagram of the utility of "and interaction" and "or interaction" for different input unit combinations is shown in descending order. Figure 3 (left) shows the utility values ​​of some "and interaction" and "or interaction", arranged from large to small according to the absolute value of the utility value. (This embodiment is based on tabular data)

[0112] In another embodiment of the present invention, based on the ResNet-34 model in step 101, the values ​​of "and interaction" and "or interaction" are calculated using the aforementioned "and interaction" and "or interaction" calculation formulas. As shown in Figure 4 (center), a distribution diagram of the "and interaction" utility and "or interaction" utility for different input unit combinations is shown in descending order. Figure 5 (left) shows the utility values ​​of some "and interaction" and "or interaction", arranged in descending order by the absolute value of the utility value. (This embodiment is based on image data)

[0113] Then, proceed to step 104, which can be further divided into the following sub-steps:

[0114] (a) Based on the “and interaction” and “or interaction” in step (3), the black box model output is interpreted as a combination of “and-add relationship” and “or-add relationship” between input unit combinations.

[0115] (b) Based on the combination of "and-add relationship" and "or-add relationship" in sub-step (a), further optimize the combination of "and-add relationship" and "or-add relationship" so that the expression of the two relationships is more concise and sparse.

[0116] In sub-step (a), based on the "AND interaction" and "OR interaction" in step (3), the output v(T) of the black box model under any input unit combination T is interpreted as a combination of an "AND-ADD relationship" and an "OR-ADD relationship". In this embodiment, in the above sub-step (a), only one reference value is selected, and the output of the black box model is interpreted as a combination of an "AND-ADD relationship" and an "OR-ADD relationship" as shown in the following formula.

[0117] in, represents the “AND interaction” of the input unit combination S, represents the “OR interaction” of the input unit combination S. Similarly, the black box model output is interpreted as 2 n The sum of the utilities of the combined “and interactions” between the input units, and 2 n Optionally, the reference value can be selected as one of the mean value, random value, zero value, etc.

[0118] Furthermore, in sub-step (b), in order to further obtain sparse interactions, the present invention hopes to minimize the sum of the L1-norms of all interactions, that is,

[0119] in, ‖·‖1 represents the L1-norm of the vector.

[0120] Optionally, when optimizing the above expression, you can define Make Then the above optimization problem can be converted into the following form. st |q i |<τ i

[0121] Among them, τ i is a preset threshold. In this embodiment, τ S =0.05×|v(N)|.

[0122] In one embodiment of the present invention, the "and-addition relationship" and "or-addition relationship" calculated in Figure 2 (middle) are optimized based on the aforementioned method to obtain a sparser interaction utility. As shown in Figure 2 (right), the figure shows the distribution of the "and interaction" utility and the "or interaction" utility of different input unit combinations in descending order. Compared with the results in Figure 2 (middle), the utility distribution of "and interaction" and "or interaction" is more sparse. Figure 3 (right) shows the utility values ​​of some "and interaction" and "or interaction". The figure is arranged from large to small according to the absolute value of the utility value. Compared with Figure 3 (left), the sparsity of "and interaction" and "or interaction" is also improved.

[0123] In another embodiment of the present invention, the "and-addition relationship" and "or-addition relationship" calculated in Figure 4 (middle) are optimized based on the aforementioned method to obtain a sparser interaction utility. As shown in Figure 4 (right), the figure shows the distribution of the "and interaction" utility and the "or interaction" utility of different input unit combinations in descending order. Compared with the result in Figure 4 (middle), the utility distribution of "and interaction" and "or interaction" is more sparse. Figure 5 (right) shows the utility values ​​of some "and interaction" and "or interaction". The figure is arranged from large to small according to the absolute value of the utility value. Compared with Figure 5 (left), the sparsity of "and interaction" and "or interaction" is also improved.

[0124] A second embodiment of the present invention relates to a system for explaining sparse interaction utilities modeled by a black box artificial intelligence model. The system has a structure as shown in FIG4 . The system includes:

[0125] (1) The input module is configured as a pre-trained black box artificial intelligence model and a set of data to be analyzed.

[0126] (2) A calculation module is configured to calculate the "and-add relationship" and "or-add relationship" between the data input units modeled by the calculation model based on the model and data in the input module, and optimize the combination of the "and-add relationship" and "or-add relationship" so that the expression of the two relationships is more concise and sparse.

[0127] (3) An output module configured to output a combination of the “AND-ADD relationship” and the “OR-ADD relationship” optimized by the calculation module.

[0128] It should be noted that those skilled in the art should understand that the implementation functions of the various modules shown in the above-mentioned embodiments of the system for explaining the sparse interactive utility modeled by the black box artificial intelligence model can be understood with reference to the aforementioned description of the method for explaining the sparse interactive utility modeled by the black box artificial intelligence model. The functions of the various modules shown in the above-mentioned embodiments of the system for explaining the sparse interactive utility modeled by the black box artificial intelligence model can be implemented by a program (executable instruction) running on a processor, or by a specific logic circuit. If the system for explaining the sparse interactive utility modeled by the black box artificial intelligence model in the embodiment of the present invention is implemented in the form of a software function module and sold or used as an independent product, it can also be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the embodiment of the present invention, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the method of each embodiment of the present invention. The aforementioned storage medium includes various media that can store program code, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a magnetic disk, or an optical disk. Thus, embodiments of the present invention are not limited to any specific combination of hardware and software.

[0129] Accordingly, an embodiment of the present invention also provides a computer-readable storage medium having computer-executable instructions stored therein, which, when executed by a processor, implement various method embodiments of the present invention. Computer-readable storage media include permanent and non-permanent, removable and non-removable media that can implement information storage by any method or technology. The information can be computer-readable instructions, data structures, program modules, or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable storage media does not include transitory media such as modulated data signals and carrier waves.

[0130] In addition, an embodiment of the present invention further provides a system for interpreting the sparse interaction utility modeled by a black box artificial intelligence model, which includes a memory for storing computer executable instructions, and a processor; the processor is used to implement the steps in the above-mentioned method implementation methods when executing the computer executable instructions in the memory. Among them, the processor can be a central processing unit (Central Processing Unit, referred to as "CPU"), or other general-purpose processors, digital signal processors (Digital Signal Processor, referred to as "DSP"), application specific integrated circuits (Application Specific Integrated Circuit, referred to as "ASIC"), etc. The aforementioned memory can be a read-only memory (read-only memory, referred to as "ROM"), random access memory (random access memory, referred to as "RAM"), flash memory (Flash), hard disk or solid state drive, etc. The steps of the method disclosed in each embodiment of the present invention can be directly embodied as being executed by a hardware processor, or executed by a combination of hardware and software modules in the processor.

[0131] It should be noted that in this patent specification, relational terms such as first and second are used solely to distinguish one entity or operation from another, and do not necessarily require or imply any actual relationship or order between these entities or operations. Furthermore, the terms "comprise," "include," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, article, or apparatus comprising a list of elements includes not only those elements but also other elements not explicitly listed, or elements inherent to such process, method, article, or apparatus. Without further limitation, an element specified by the phrase "comprising a" does not preclude the presence of additional identical elements in the process, method, article, or apparatus comprising that element. In this patent specification, reference to performing an action in accordance with an element means performing the action in accordance with at least that element, including two situations: performing the action in accordance with that element alone, and performing the action in accordance with that element and other elements. Expressions such as "plurality," "multiple times," and "many" include "two," "twice," "two kinds," and "more than two," "more than two times," and "more than two kinds."

[0132] All documents mentioned in this invention are considered to be included in their entirety in the disclosure of this invention so that they can be used as a basis for modification when necessary. In addition, it should be understood that the above are only preferred embodiments of this specification and are not intended to limit the scope of protection of this specification. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of one or more embodiments of this specification should be included in the scope of protection of one or more embodiments of this specification.

Claims

1. A method for determining the sparse interaction utility of a black box artificial intelligence model, characterized in that: The following steps are involved: (1) Provide a model Providing a black box artificial intelligence model to be analyzed, wherein the black box artificial intelligence model includes an artificial intelligence model pre-trained based on a certain data set; (2) Obtaining the data to be evaluated Based on the black box artificial intelligence model, obtaining data to be evaluated that is compatible with the artificial intelligence model, wherein the data to be evaluated includes n input units, and n is a positive integer ≥ 4; wherein step (1) and step (2) can be interchangeable or performed simultaneously; (3) Calculate the "AND interaction" and "OR interaction" between the input units Input the data to be evaluated into the black box artificial intelligence model, and obtain the output of the black box artificial intelligence model; based on the output of the black box artificial intelligence model, model the interaction and coordination between the input units, so as to obtain a set composed of different input units, recorded as input unit combination S (or evaluation set S); and calculate the "and interaction" and "or interaction" of each input unit combination S; (4) Determining sparse interaction utility Based on the "AND interaction" and "OR interaction" between the input unit combinations S obtained in step (3), the "AND-addition relationship" and "OR-addition relationship" between all input unit combinations S are calculated, and the black box model output is expressed as a combination of the "AND-addition relationship" and "OR-addition relationship" between the input unit combinations, and is used to explain the sparse interaction utility of the black box artificial intelligence model.

2. The method according to claim 1, characterized in that: The method further comprises: (5) The "and-add relationship" and "or-add relationship" are optimized so that the sparsity of the optimized "and-add relationship" and "or-add relationship" combination increases, and the optimized "and-add relationship" and "or-add relationship" are used to explain the sparse interaction effect of the black box artificial intelligence model.

3. The method according to claim 1, characterized in that The "interaction with" in step (3) AND (S) is obtained by the following formula: Wherein, s=|S| and l=|L|; s is the number of input units in a certain input unit combination S, denoted as s=|S|; l is the number of input units in an input unit combination L, denoted as l=|L|, and the input unit combination L is any subset of the input unit combination S, The calculation method of v(L) in the formula is as follows: the n input variables are recorded as N={1, 2, ..., n}, v(L) means that only the input units in the input unit combination L are retained in the data to be evaluated, and the other input units are shielded as a reference value b, the reference value b is a quantity with the same dimension as the data to be evaluated, and the reference value b can be selected as the mean value, random value, zero value, etc. of the input sample set; the shielded data to be evaluated x L The output value obtained by inputting the black box model is recorded as v(L). Specifically, the occluded data to be evaluated x L The input units of are defined by:

4. The method according to claim 1, characterized in that: The "or interaction" in step (3) OR (S) is obtained by the following formula: Among them, s=|S| and l=|L|; s is the number of input units in a certain input unit combination S, recorded as s=|S|; l is the number of input units in an input unit combination L, recorded as l=|L|, and the input unit combination L is any subset of the input unit combination S.

5. The method according to claim 1, characterized in that In step (4), the output v(T) of the black box model is interpreted as a combination of an “and-addition relationship” and an “or-addition relationship” by the following formula: The black box model output v(N) is interpreted as the sum of the utilities of m groups of "and interactions" and one group of "or interactions", b (1) , ..., b (m) represents m reference values, where m is the number of reference values, and the reference value m can be selected as a mean value, a random value, a zero value, etc., and the reference value includes each group of "and interaction" including 2 n The utility of "AND interaction" within the combination of input units The sum of the utilities of this set of "or interactions" contains 2 n The "OR interaction" utility within the combination of input units The m different reference values ​​can be selected is the mean, random value, zero value, etc.; Indicates "any"; e in the formula S Satisfies, when i∈S, (e T ) i =1, otherwise, (e T ) i =0;∧ i∈S (e T ) i Indicates whether all the units in the input unit combination S are triggered. The result of the "and" operation on the elements after the ∧ symbol is ∧ i∈S (e T ) i =∏ i∈S (e T ) i ; ∨ i∈S (e T ) i Indicates whether at least one of the units in the input unit combination S is triggered, and the result of the "or" operation on the elements after the V symbol, that is, ∨ i∈S (e T ) i =1-∏ i∈S [1-(e T ) i ].

6. The method according to claim 2, characterized in that In step (5), a sparser interaction relationship is further obtained by the following formula: in, Wherein ||·||1 represents the L1-norm of the vector, and m in the above formula is the number of selected reference values, and the reference values ​​include the mean of the input sample set, a random value, and a zero value.

7. The method according to claim 6, characterized in that The formula as claimed in claim 6 can be simplified as follows: Can be defined And satisfy p (1) +…+p (m) +p (or) =0, the p (1) , ..., p (m) , p (or) Represents a partition of the neural network output v; and defines The q is a vector with a small absolute value in each dimension, which indicates the deviation caused by interpreting the model output as "and-addition relationship" and "or-addition relationship"; The above optimization problem can be transformed into the following form: s.t.|q i |<τ i Among them, τ i is a preset threshold; preferably, The value range of m is 1 to 10.

8. The method according to claim 1, characterized in that The step (3) further comprises the following steps: Calculate the output value of the black box model when any of the input units of the data to be analyzed is blocked.

9. The method according to claim 1, characterized in that: The data to be evaluated is selected from the following group: grid data, pictures, text, voice or a combination thereof.

10. A system for explaining the sparse interaction utility modeled by a black box artificial intelligence model, characterized in that Includes the following modules: (1) Input module, which is configured as a pre-trained black box AI model and a set of data to be analyzed; (2) a calculation module configured to calculate, based on the model and data in the input module, the "AND-ADD relationship" and "OR-ADD relationship" between the data input units modeled by the model, and optimize the combination of the "AND-ADD relationship" and the "OR-ADD relationship" so that the expressions of the two relationships are more concise and sparse; (3) An output module is configured to output a combination of the "AND-ADD relationship" and the "OR-ADD relationship" optimized by the calculation module.

Citation Information

Patent Citations

  • Self-adaptive relation modeling method for structured data

    CN113191441A

  • Apparatus for the semantic-based optimization of production facilities with explainability

    CN113518999A

  • Method and system for characterization diagnosis and explanation, model comparison and training sample collection facing black box model

    CN114462291A

  • Model interpretation method and device, electronic equipment and storage medium

    CN115457365A

  • Method for an explainable autoencoder and an explainable generative adversarial network

    US20220172050A1

Cited By

  • Method and system for characterization diagnosis and explanation, model comparison and training sample collection facing black box model

    CN114462291A

  • Methods and systems for characterization diagnosis and interpretation, model comparison, and training sample collection for black-box models

    CN114462291B