Academia.eduAcademia.edu

A Survey on Neural Network Interpretability

2021, IEEE transactions on emerging topics in computational intelligence

Along with the great success of deep neural networks, there is also growing concern about their black-box nature. The interpretability issue affects people's trust on deep learning systems. It is also related to many ethical problems, e.g., algorithmic discrimination. Moreover, interpretability is a desired property for deep networks to become powerful tools in other research fields, e.g., drug discovery and genomics. In this survey, we conduct a comprehensive review of the neural network interpretability research. We first clarify the definition of interpretability as it has been used in many different contexts. Then we elaborate on the importance of interpretability and propose a novel taxonomy organized along three dimensions: type of engagement (passive vs. active interpretation approaches), the type of explanation, and the focus (from local to global interpretability). This taxonomy provides a meaningful 3D view of distribution of papers from the relevant literature as two of the dimensions are not simply categorical but allow ordinal subcategories. Finally, we summarize the existing interpretability evaluation methods and suggest possible research directions inspired by our new taxonomy.

IEEE TRANSACTIONS ON XXXX, VOL. X, NO. X, MM YYYY 1 A Survey on Neural Network Interpretability arXiv:2012.14261v3 [cs.LG] 15 Jul 2021 Yu Zhang, Peter Tiňo, Aleš Leonardis, and Ke Tang trees, support vector machines), but also achieved the stateof-the-art performance on certain real-world tasks [4], [10]. Products powered by DNNs are now used by billions of people1 , e.g., in facial and voice recognition. DNNs have also become powerful tools for many scientific fields, such as medicine [11], bioinformatics [12], [13] and astronomy [14], which usually involve massive data volumes. However, deep learning still has some significant disadvantages. As a really complicated model with millions of free parameters (e.g., AlexNet [2], 62 million), DNNs are often found to exhibit unexpected behaviours. For instance, even though a network could get the state-of-the-art performance and seemed to generalize well on the object recognition task, Szegedy et al. [15] found a way that could arbitrarily change the network’s prediction by applying a certain imperceptible change to the input image. This kind of modified input is called “adversarial example”. Nguyen et al. [16] showed another way Index Terms—Machine learning, neural networks, inter- to produce completely unrecognizable images (e.g., look like white noise), which are, however, recognized as certain objects pretability, survey. by DNNs with 99.99% confidence. These observations suggest that even though DNNs can achieve superior performance on I. I NTRODUCTION many tasks, their underlying mechanisms may be very different VER the last few years, deep neural networks (DNNs) from those of humans’ and have not yet been well-understood. have achieved tremendous success [1] in computer vision [2], [3], speech recognition [4], natural language process- A. An (Extended) Definition of Interpretability To open the black-boxes of deep networks, many researchers ing [5] and other fields [6], while the latest applications can be found in these surveys [7]–[9]. They have not only beaten started to focus on the model interpretability. Although this many previous machine learning techniques (e.g., decision theme has been explored in various papers, no clear consensus on the definition of interpretability has been reached. Most This work was supported in part by the Guangdong Provincial Key previous works skimmed over the clarification issue and left it Laboratory under Grant 2020B121201001; in part by the Program for as “you will know it when you see it”. If we take a closer look, Guangdong Introducing Innovative and Entrepreneurial Teams under Grant the suggested definitions and motivations for interpretability 2017ZT07X386; in part by the Stable Support Plan Program of Shenzhen Natural Science Fund under Grant 20200925154942002; in part by the are often different or even discordant [17]. Science and Technology Commission of Shanghai Municipality under Grant One previous definition of interpretability is the ability to 19511120602; in part by the National Leading Youth Talent Support Program of China; and in part by the MOE University Scientific-Technological Innovation provide explanations in understandable terms to a human [18], Plan Program. Peter Tino was supported by the European Commission Horizon while the term explanation itself is still elusive. After reviewing 2020 Innovative Training Network SUNDIAL (SUrvey Network for Deep previous literature, we make further clarifications of “explanaImaging Analysis and Learning), Project ID: 721463. We also acknowledge tions” and “understandable terms” on the basis of [18]. MoD/Dstl and EPSRC for providing the grant to support the UK academics involvement in a Department of Defense funded MURI project through EPSRC Interpretability is the ability to provide explanagrant EP/N019415/1. 1 tions in understandable terms2 to a human. Y. Zhang and K. Tang are with the Guangdong Key Laboratory of BrainInspired Intelligent Computation, Department of Computer Science and where Engineering, Southern University of Science and Technology, Shenzhen 518055, 1) Explanations, ideally, should be logical decision rules P.R.China, and also with the Research Institute of Trust-worthy Autonomous (if-then rules) or can be transformed to logical rules. Systems, Southern University of Science and Technology, Shenzhen 518055, P.R.China (e-mail: [email protected], [email protected]). However, people usually do not require explanations to Y. Zhang, P. Tiňo and A. Leonardis are with the School of Computer Science, be explicitly in a rule form (but only some key elements University of Birmingham, Edgbaston, Birmingham B15 2TT, UK (e-mail: which can be used to construct explanations). {p.tino, a.leonardis}@cs.bham.ac.uk). Manuscript accepted July 09, 2021, IEEE-TETCI. © 2021 IEEE. Personal 2) Understandable terms should be from the domain use of this material is permitted. Permission from IEEE must be obtained for knowledge related to the task (or common knowledge all other uses, in any current or future media, including reprinting/republishing according to the task). this material for advertising or promotional purposes, creating new collective Abstract—Along with the great success of deep neural networks, there is also growing concern about their black-box nature. The interpretability issue affects people’s trust on deep learning systems. It is also related to many ethical problems, e.g., algorithmic discrimination. Moreover, interpretability is a desired property for deep networks to become powerful tools in other research fields, e.g., drug discovery and genomics. In this survey, we conduct a comprehensive review of the neural network interpretability research. We first clarify the definition of interpretability as it has been used in many different contexts. Then we elaborate on the importance of interpretability and propose a novel taxonomy organized along three dimensions: type of engagement (passive vs. active interpretation approaches), the type of explanation, and the focus (from local to global interpretability). This taxonomy provides a meaningful 3D view of distribution of papers from the relevant literature as two of the dimensions are not simply categorical but allow ordinal subcategories. Finally, we summarize the existing interpretability evaluation methods and suggest possible research directions inspired by our new taxonomy. O works, for resale or redistribution to servers or lists, or reuse of any copyrighted component of this work in other works. 1 https://www.acm.org/media-center/2019/march/turing-award-2018 2 IEEE TRANSACTIONS ON XXXX, VOL. X, NO. X, MM YYYY TABLE I S OME INTERPRETABLE “ TERMS ” USED IN PRACTICE . Field Raw input Computer vision Images (pixels) NLP Bioinformatics Word embeddings Sequences a b c Understandable terms Super pixels (image patches)a Visual conceptsb Words Motifs (position weight matrix)c image patches are usually used in attribution methods [20]. colours, materials, textures, parts, objects and scenes [21]. proposed by [22] and became an essential tool for computational motif discovery. the general neural network methodology, which cannot be covered by this paper. For example, the empirical success of DNNs raises many unsolved questions to theoreticians [30]. What are the merits (or inductive bias) of DNN architectures [31], [32]? What are the properties of DNNs’ loss surface/critical points [33]–[36]? Why DNNs generalizes so well with just simple regularization [37]–[39]? What about DNNs’ robustness/stability [40]–[45]? There are also studies about how to generate adversarial examples [46], [47] and detect adversarial inputs [48]. B. The Importance of Interpretability Our definition enables new perspectives on the interpretabilThe need for interpretability has already been stressed by ity research: (1) We highlight the form of explanations rather many papers [17], [18], [49], emphasizing cases where lack of than particular explanators. After all, explanations are expressed interpretability may be harmful. However, a clearly organized in a certain “language”, be it natural language, logic rules exposition of such argumentation is missing. We summarize or something else. Recently, a strong preference has been the arguments for the importance of interpretability into three expressed for the language of explanations to be as close as groups. possible to logic [19]. In practice, people do not always require 1) High Reliability Requirement: Although deep networks a full “sentence”, which allows various kinds of explanations have shown great performance on some relatively large test (rules, saliency masks etc.). This is an important angle to sets, the real world environment is still much more complex. categorize the approaches in the existing literature. (2) Domain As some unexpected failures are inevitable, we need some knowledge is the basic unit in the construction of explanations. means of making sure we are still in control. Deep neural As deep learning has shown its ability to process data in the raw networks do not provide such an option. In practice, they have form, it becomes harder for people to interpret the model with often been observed to have unexpected performance drop in its original input representation. With more domain knowledge, certain situations, not to mention the potential attacks from the we can get more understandable representations that can be adversarial examples [50], [51]. evaluated by domain experts. Table I lists several commonly Interpretability is not always needed but it is important used representations in different tasks. for some prediction systems that are required to be highly We note that some studies distinguish between interpretabil- reliable because an error may cause catastrophic results (e.g., ity and explainability (or understandability, comprehensibility, human lives, heavy financial loss). Interpretability can make transparency, human-simulatability etc. [17], [23]). In this potential failures easier to detect (with the help of domain paper we do not emphasize the subtle differences among those knowledge), avoiding severe consequences. Moreover, it can terms. As defined above, we see explanations as the core help engineers pinpoint the root cause and provide a fix of interpretability and use interpretability, explainability and accordingly. Interpretability does not make a model more understandability interchangeably. Specifically, we focus on reliable or its performance better, but it is an important part the interpretability of (deep) neural networks (rarely recurrent of formulation of a highly reliable system. neural networks), which aims to provide explanations of their 2) Ethical and Legal Requirement: A first requirement is to inner workings and input-output mappings. There are also avoid algorithmic discrimination. Due to the nature of machine some interpretability studies about the Generative Adversarial learning techniques, a trained deep neural network may inherit Networks (GANs). However, as a kind of generative models, the bias in the training set, which is sometimes hard to notice. it is slightly different from common neural networks used as There is a concern of fairness when DNNs are used in our daily discriminative models. For this topic, we would like to refer life, for instance, mortgage qualification, credit and insurance readers to the latest work [24]–[29], many of which share the risk assessments. similar ideas with the “hidden semantics” part of this paper (see Deep neural networks have also been used for new drug Section II), trying to interpret the meaning of hidden neurons discovery and design [52]. The computational drug design field or the latent space. was dominated by conventional machine learning methods such Under our definition, the source code of Linux operating as random forests and generalized additive models, partially system is interpretable although it might be overwhelming for because of their efficient learning algorithms at that time, a developer. A deep decision tree or a high-dimensional linear and also because a domain chemical interpretation is possible. model (on top of interpretable input representations) are also Interpretability is also needed for a new drug to get approved by interpretable. One may argue that they are not simulatable [17] the regulator, such as the Food and Drug Administration (FDA). (i.e. a human is able to simulate the model’s processing from Besides the clinical test results, the biological mechanism input to output in his/her mind in a short time). We claim, underpinning the results is usually required. The same goes however, they are still interpretable. for medical devices. Besides above confined scope of interpretability (of a trained Another legal requirement of interpretability is the “right to neural network), there is a much broader field of understanding explanation” [53]. According to the EU General Data Protection ZHANG et al.: A SURVEY ON NEURAL NETWORK INTERPRETABILITY Regulation (GDPR) [54], Article 22, people have the right not to be subject to an automated decision which would produce legal effects or similar significant effects concerning him or her. The data controller shall safeguard the data owner’s right to obtain human intervention, to express his or her point of view and to contest the decision. If we have no idea how the network makes a decision, there is no way to ensure these rights. 3) Scientific Usage: Deep neural networks are becoming powerful tools in scientific research fields where the data may have complex intrinsic patterns (e.g., genomics [55], astronomy [14], physics [56] and even social science [57]). The word “science” is derived from the Latin word “scientia”, which means “knowledge”. When deep networks reach a better performance than the old models, they must have found some unknown “knowledge”. Interpretability is a way to reveal it. C. Related Work and Contributions 3 we emphasize the type (or format) of explanations (e.g, rule forms, including both decision trees and decision rule sets). This acts as an important dimension in our proposed taxonomy. Previous papers usually organize existing methods into various isolated (to a large extent) explanators (e.g., decision trees, decision rules, feature importance, saliency maps etc.). • We analyse the real needs for interpretability and summarize them into 3 groups: interpretability as an important component in systems that should be highly-reliable, ethical or legal requirements, and interpretability providing tools to enhance knowledge in the relevant science fields. In contrast, a previous survey [49] only shows the importance of interpretability by providing several cases where black-box models can be dangerous. • We propose a new taxonomy comprising three dimensions (passive vs. active approaches, the format of explanations, and local-semilocal-global interpretability). Note that although many ingredients of the taxonomy have been discussed in the previous literature, they were either mentioned in totally different context, or entangled with each other. To the best of our knowledge, our taxonomy provides the most comprehensive and clear categorization of the existing approaches. The three degrees of freedom along which our taxonomy is organized allow for a schematic 3D view illustrating how diverse attempts at interpretability of deep networks are related. It also provides suggestions for possible future work by filling some of the gaps in the interpretability research (see Figure 2). There have already been attempts to summarize the techniques for neural network interpretability. However, most of them only provide basic categorization or enumeration, without a clear taxonomy. Lipton [17] points out that the term interpretability is not well-defined and often has different meanings in different studies. He then provides simple categorization of both the need (e.g., trust, causality, fair decision-making etc.) and methods (post-hoc explanations) in interpretability study. Doshi-Velez and Kim [18] provide a discussion on the definition and evaluation of interpretability, which inspired us to formulate a stricter definition and to categorize the existing methods based on it. Montavon et al. [58] confine the definition of explanation to feature importance (also called D. Organization of the Survey The rest of the survey is organized as follows. In Section II, explanation vectors elsewhere) and review the techniques we introduce our proposed taxonomy for network interpretation to interpret learned concepts and individual predictions by methods. The taxonomy consists of three dimensions, passive networks. They do not aim to give a comprehensive overview vs. active methods, type of explanations and global vs. local and only include some representative approaches. Gilpin et interpretability. Along the first dimension, we divide the al. [59] divide the approaches into three categories: explaining methods into two groups, passive methods (Section III) and data processing, explaining data representation and explanationactive methods (Section IV). Under each section, we traverse producing networks. Under this categorization, the linear proxy the remaining two dimensions (different kinds of explanations, model method and the rule-extraction method are equally and whether they are local, semi-local or global). Section V viewed as proxy methods, without noticing many differences gives a brief summary of the evaluation of interpretability. between them (the former is a local method while the latter is usually global and their produced explanations are different, Finally, we conclude this survey in Section VII. we will see it in our taxonomy). Guidotti et al. [49] consider II. TAXONOMY all black-box models (including tree ensembles, SVMs etc.) and give a fine-grained classification based on four dimensions We propose a novel taxonomy with three dimensions (see (the type of interpretability problem, the type of explanator, the Figure 1): (1) the passive vs. active approaches dimension, type of black-box model, and the type of data). However, they (2) the type/format of produced explanations, and (3) from treat decision trees, decision rules, saliency masks, sensitivity local to global interpretability dimension respectively. The analysis, activation maximization etc. equally, as explanators. In first dimension is categorical and has two possible values, our view, some of them are certain types of explanations while passive interpretation and active interpretability intervention. some of them are methods used to produce explanations. Zhang It divides the existing approaches according to whether they and Zhu [60] review the methods to understand network’s mid- require to change the network architecture or the optimization layer representations or to learn networks with interpretable process. The passive interpretation process starts from a trained representations in computer vision field. network, with all the weights already learned from the training This survey has the following contributions: set. Thereafter, the methods try to extract logic rules or extract • We make a further step towards the definition of inter- some understandable patterns. In contrast, active methods pretability on the basis of reference [18]. In this definition, require some changes before the training, such as introducing 4 IEEE TRANSACTIONS ON XXXX, VOL. X, NO. X, MM YYYY Dimension 1 — Passive vs. Active Approaches Passive Post hoc explain trained neural networks Active Actively change the network architecture or training process for better interpretability Dimension 2 — Type of Explanations (in the order of increasing explanatory power) To explain a prediction/class by Examples Provide example(s) which may be considered similar or as prototype(s) Attribution Assign credit (or blame) to the input features (e.g. feature importance, saliency masks) Hidden semantics Make sense of certain hidden neurons/layers Rules Extract logic rules (e.g. decision trees, rule sets and other rule formats) Dimension 3 — Local vs. Global Interpretability (in terms of the input space) Local Explain network’s predictions on individual samples (e.g. a saliency mask for an input image) Semi-local In between, for example, explain a group of similar inputs together Global Explain the network as a whole (e.g. a set of rules/a decision tree) Fig. 1. The 3 dimensions of our taxonomy. extra network structures or modifying the training process. saliency maps and concept attribution [63] as different types of These modifications encourage the network to become more explanations, while we view them as being of the same kind, interpretable (e.g., more like a decision tree). Most commonly but differing in the dimension below. such active interventions come in the form of regularization The last dimension, from local to global interpretability terms. (w.r.t. the input space), has become very common in recent In contrast to previous surveys, the other two dimensions papers (e.g., [18], [49], [58], [64]), where global interpretability allow ordinal values. For example, the previously proposed means being able to understand the overall decision logic of a dimension type of explanator [49] produces subcategories like model and local interpretability focuses on the explanations of decision trees, decision rules, feature importance, sensitivity individual predictions. However, in our proposed dimension, analysis etc. However, there is no clear connection among there exists a transition rather than a hard division between these pre-recognised explanators (what is the relation between global and local interpretability (i.e. semi-local interpretability). decision trees and feature importance). Instead, our second Local explanations usually make use of the information at the dimension is type/format of explanation. By inspecting various target input (e.g., its feature values, its gradient). But global kinds of explanations produced by different approaches, we can explanations try to generalize to as wide ranges of inputs as observe differences in how explicit they are. Logic rules provide possible (e.g., sequential covering in rule learning, marginal the most clear and explicit explanations while other kinds of contribution for feature importance ranking). This view is also explanations may be implicit. For example, a saliency map supported by the existence of several semi-local explanation itself is just a mask on top of a certain input. By looking methods [65], [66]. There have also been attempts to fuse local at the saliency map, people construct an explanation “the explanations into global ones in a bottom-up fashion [19], [67], model made this prediction because it focused on this highly [68]. influential part and that part (of the input)”. Hopefully, these To help understand the latter two dimensions, Table II parts correspond to some domain understandable concepts. lists examples of typical explanations produced by different Strictly speaking, implicit explanations by themselves are not subcategories under our taxonomy. (Row 1) When considering complete explanations and need further human interpretation, rule as explanation for local interpretability, an example is to which is usually automatically done when people see them. We provide rule explanations which only apply to a given input recognize four major types of explanations here, logic rules, x(i) (and its associated output ŷ (i) ). One of the solutions is to hidden semantics, attribution and explanations by examples, find out (by perturbing the input features and seeing how the listed in order of decreasing explanatory power. Similar output changes) the minimal set of features xk . . .xl whose discussions can be found in the previous literature, e.g., presence supports the prediction ŷ (i) . Analogously, features Samek et al. [61] provide a short subsection about “type of xm . . .xn can be found which should not be present (larger explanations” (including explaining learned representations, values), otherwise ŷ (i) will change. Then an explanation rule explaining individual predictions etc.). However, it is mixed for x(i) can be constructed as “it is because xk . . .xl are up with another independent dimension of the interpretability present and xm . . .xn are absent that x(i) is classified as research which we will introduce in the following paragraph. ŷ (i) ” [69]. If a rule is valid not only for the input x(i) , but A recent survey [62] follows the same philosophy and treats also for its “neighbourhood” [65], we obtain a semi-local ZHANG et al.: A SURVEY ON NEURAL NETWORK INTERPRETABILITY interpretability. And if a rule set or decision tree is extracted from the original network, it explains the general function of the whole network and thus provides global interpretability. (Row 2) When it comes to explaining the hidden semantics, a typical example (global) is to visualize what pattern a hidden neuron is mostly sensitive to. This can then provide clues about the inner workings of the network. We can also take a more pro-active approach to make hidden neurons more interpretable. As a high-layer hidden neuron may learn a mixture of patterns that can be hard to interpret, Zhang et al. [70] introduced a loss term that makes high-layer filters either produce consistent activation maps (among different inputs) or keep inactive (when not seeing a certain pattern). Experiments show that those filters are more interpretable (e.g., a filter may be found to be activated by the head parts of animals). (Row 3) Attribution as explanation usually provides local interpretability. Thinking about an animal classification task, input features are all the pixels of the input image. Attribution allows people to see which regions (pixels) of the image contribute the most to the classification result. The attribution can be computed e.g., by sensitivity analysis in terms of the input features (i.e. all pixels) or some variants [71], [72]. For attribution for global interpretability, deep neural networks usually cannot have as straightforward attribution as e.g., coefficients w in linear models y = w⊤ x + b, which directly show the importance of features globally. Instead of concentrating on input features (pixels), Kim et al. [63] were interested in attribution to a “concept” (e.g., how sensitive is a prediction of zebra to the presence of stripes). The concept (stripes) is represented by the normal vector to the plane which separates having-stripes and non-stripes training examples in the space of network’s hidden layer. It is therefore possible to compute how sensitive the prediction (of zebra) is to the concept (presence of stripes) and thus have some form of global interpretability. (Row 4) Sometimes researchers explain network prediction by showing other known examples providing similar network functionality. To explain a single input x(i) (local interpretability), we can find an example which is most similar to x(i) in the network’s hidden layer level. This selection of explanation examples can also be done by testing how much the prediction of x(i) will be affected if a certain example is removed from the training set [73]. To provide global interpretability by showing examples, a method is adding a (learnable) prototype layer to a network. The prototype layer forces the network to make predictions according to the proximity between input and the learned prototypes. Those learned and interpretable prototypes can help to explain the network’s overall function. With the three dimensions introduced above, we can visualize the distribution of the existing interpretability papers in a 3D view (Figure 2 only provides a 2D snapshot, we encourage readers to visit the online interactive version for better presentation). Table III is another representation of all the reviewed interpretability approaches which is good for quick navigation. In the following the sections, we will scan through Table III along each dimension. The first dimension results in two sections, passive methods (Section III) and active methods (Section IV). We then expand each section to several subsections according to the second dimension (type of explanation). 5 Fig. 2. The distribution of the interpretability papers in the 3D space of our taxonomy. We can rotate and observe the density of work in certain areas/planes and find the missing parts of interpretability research. (See https: //yzhang-gh.github.io/tmp-data/index.html) Under each subsection, we introduce (semi-)local vs. global interpretability methods respectively. III. PASSIVE I NTERPRETATION OF T RAINED N ETWORKS Most of the existing network interpreting methods are passive methods. They try to understand the already trained networks. We now introduce these methods according to their types of produced explanations (i.e. the second dimension). A. Passive, Rule as Explanation Logic rules are commonly acknowledged to be interpretable and have a long history of research. Thus rule extraction is an appealing approach to interpret neural networks. In most cases, rule extraction methods provide global explanations as they only extract a single rule set or decision tree from the target model. There are only a few methods producing (semi)local rule-form explanations which we will introduce below (Section III-A1), followed are global methods (Section III-A2). Another thing to note is that although the rules and decision trees (and their extraction methods) can be quite different, we do not explicitly differentiate them here as they provide similar explanations (a decision tree can be flattened to a decision rule set). A basic form of a rule is If P , then Q. where P is called the antecedent, and Q is called the consequent, which in our context is the prediction (e.g., class label) of a network. P is usually a combination of conditions on several input features. For complex models, the explanation rules can be of other forms such as the propositional rule, first-order rule or fuzzy rule. 1) Passive, Rule as Explanation, (Semi-)local: According to our taxonomy, methods in this category focus on a trained neural network and a certain input (or a small group of inputs), and produce a logic rule as an explanation. Dhurandhar et al. [69] construct local rule explanations by finding out features 6 IEEE TRANSACTIONS ON XXXX, VOL. X, NO. X, MM YYYY . TABLE II E XAMPLE EXPLANATIONS OF NETWORKS . Please see Section II for details. Due to lack of space, we do not provide examples for semi-local interpretability here. (We thank the anonymous reviewer for the idea to improve the clarity of this table.) Local (and semi-local) interpretability applies to a certain input x(i) (and its associated output ŷ (i) ), or a small range of inputs-outputs Explain a certain (x(i) , y (i) ) with a decision rule: Rule as explanation • The result “x(i) is classified as ŷ (i) ” is because x1 , x4 , . . . are present and x3 , x5 , . . . are absent [69]. • (Semi-local) For x in the neighbourhood of x(i) , if (x1 > α) ∧ (x3 < β) ∧ . . ., then y = ŷ (i) [65]. Global interpretability w.r.t. the whole input space Explain the whole model y(x) with a decision rule set: The neural network can be approximated by  If (x2 < α) ∧ (x3 > β) ∧ . . . , then y = 1,   If (x > γ) ∧ (x < δ) ∧ . . . , then y = 2, 1 5  ···   If (x . . . ) ∧ (x . . . ) ∧ . . . , then y = M 4 7 Explain a hidden neuron/layer h(x) instead of y(x): Explaining hidden semantics (make sense of certain hidden neurons/layers) Explain a hidden neuron/layer h(x(i) ): (*No explicit methods but many local attribution methods (see below) can be easily modified to “explain” a hidden neuron h(x) rather than the final output y). • An example active method [70] adds a special loss term that encourages filters to learn consistent and exclusive patterns (e.g. head patterns of animals) image animal label actual “receptive fields” [74]: Explain a certain (x(i) , y (i) ) with an attribution a(i) : For x(i) : Attribution as explanation neural net The “contribution”1 of each pixel: ŷ (i) : junco bird [75] a.k.a. saliency map, which can be computed by different methods like gradients [71], sensitivity analysis2 [72] etc. Explain y(x) with attribution to certain features in general: (Note that for a linear model, the coefficients is the global attribution to its input features.) • Kim et al. [63] calculate attribution to a target “concept” rather than the input pixels of a certain input. For example, “how sensitive is the output (a prediction of zebra) to a concept (the presence of stripes)?” Explain a certain (x(i) , y (i) ) with another x(i)′ : For x(i) : Explanation by showing examples neural net By asking how much the network will change ŷ (i) if removing a certain training image, we can find: most helpful2 training images: 1 2 3 Explain y(x) collectively with a few prototypes: ŷ (i) : fish • Adds a (learnable) prototype layer to the network. Every prototype should be similar to at least an encoded input. Every input should be similar to at least a prototype. The trained network explains itself by its prototypes. [76] [73] the contribution to the network prediction of x(i) . how sensitive is the classification result to the change of pixels. without the training image, the network prediction of x(i) will change a lot. In other words, these images help the network make a decision on x(i) . that should be minimally and sufficiently present and features that should be minimally and necessarily absent. In short, the explanation takes this form “If an input x is classified as class y, it is because features fi , . . . , fk are present and features fm , . . . , fp are absent”. This is done by finding small sparse perturbations that are sufficient to ensure the same prediction by its own (or will change the prediction if applied to a target input)2 . A similar kind of methods is counterfactual explanations [124]. Usually, we are asking based on what features (’s values) the neural network makes the prediction of class c. However, Goyal et al. [78] try to find the minimum-edit on an input image which can result in a different predicted class c′ . In other words, they ask: “What region in the input image makes the prediction to be class c, rather 2 The authors also extended this method to learn a global interpretable model, e.g., a decision tree, based on custom features created from above local explanations [92]. than c′ ”. Kanamori et al. [79] introduced distribution-aware counterfactual explanations, which require above “edit” to follow the empirical data distribution instead of being arbitrary. Wang et al. [77] came up with another local interpretability method, which identifies critical data routing paths (CDRPs) of the network for each input. In convolutional neural networks, each kernel produces a feature map that will be fed into the next layer as a channel. Wang et al. [77] associated every output channel on each layer with a gate (non-negative weight), which indicates how critical that channel is. These gate weights are then optimized such that when they are multiplied with the corresponding output channels, the network can still make the same prediction as the original network (on a given input). Importantly, the weights are encouraged to be sparse (most are close to zero). CDRPs can then be identified for each input by first identifying the critical nodes, i.e. the intermediate kernels associated with positive gates. We can explore and ZHANG et al.: A SURVEY ON NEURAL NETWORK INTERPRETABILITY 7 TABLE III A N OVERVIEW OF THE INTERPRETABILITY PAPERS . Local Semi-local Global M ofN [82] , NeuralRule [83] , NeuroLinear [84] , GRG [85] , GyanFO [86] , •FZ [87], [88] , Trepan [89] , • [90] , DecText [91] , Global model on CEM [92] KT [81] , Rule Passive CEM [69] , CDRPs [77] , DACE [79] Anchors [65] , Interpretable partial substitution [80] Hidden semantics (*No explicit methods but many in the below cell can be applied here.) — Attribution1 LIME [20] , MAPLE [101] , Partial derivatives [71] , DeconvNet [72] , Guided backprop [102] , Guided Grad-CAM [103] , Shapley values [104]–[107] , Sensitivity analysis [72], [108], [109] , Feature selector [110] , Bias attribution [111] DeepLIFT [112] , LRP [113] , Integrated gradients [114] , Feature selector [110] , MAME [68] By example Influence functions [73] , Representer point selection [117] Rule Active CVE2 [78] , — Hidden semantics Attribution By example ExpO [120] , — Regional tree regularization [118] Visualization [71], [93]–[98] , Network dissection [21] , Net2Vec [99] , Linguistic correlation analysis [100] Feature selector [110] , TCAV [63] , ACE [115] , SpRAy3 [67] , MAME [68] DeepConsensus [116] — Tree regularization [119] — — “One filter, one concept” [70] DAPr [121] — Dual-net (feature importance) [122] — — Network with a prototype layer [76] , ProtoPNet [123] FO First-order rule FZ Fuzzy rule 1 Some attribution 2 3 methods (e.g., DeconvNet, Guided Backprop) arguably have certain non-locality because of the rectification operation. Short for counterfactual visual explanations SpRAy is flexible to provide semi-local or global explanations by clustering local (individual) attributions. assign meanings to the critical nodes so that the critical paths examples for classic rule learning algorithms. They are called become local explanations. However, as the original paper did pedagogical approaches. not go further on the CDRPs representation which may not be a) Decompositional approaches: Decompositional aphuman-understandable, it is still more of an activation pattern proaches generate rules by observing the connections in a than a real explanation. network. As many of the these approaches were developed We can also extract rules that cover a group of inputs rather before the deep learning era, they are mostly designed for than a single one. Ribeiro et al. [65] propose anchors which classic fully-connected feedforward networks. Considering a are if-then rules that are sufficiently precise (semi-)locally. In single-layer setting of a fully-connected network (only one other words, if a rule applies to a group of similar examples, output neuron), their predictions are (almost) always the same. It is similar ! to (actually, on the basis of) an attribution method LIME, X w i xi + b y=σ which we will introduce in Section III-C. However, they are i different in terms of the produced explanations (LIME produces attribution for individual examples). Wang et al. [80] attempted where σ is an activation function (usually sigmoid, σ(x) = to find an interpretable partial substitution (a rule set) to the 1/(1+ e−x )), w are the trainable weights, x is the input vector, network that covers a certain subset of the input space. This and b is the bias term (often referred as a threshold θ is the early substitution can be done with no or low cost on the model time, and b here can be interpreted as the negation of θ). Lying accuracy according to the size of the subset. at the heart of rule extraction is to search for combinations 2) Passive, Rule as Explanation, Global: Most of the time, of certain values (or ranges) of attributes xi that make y near we would like to have some form of an overall interpretation 1 [82]. This is tractable only when we are dealing with small of the network, rather than its local behaviour at a single networks because the size of the search space will soon grow point. We again divide these approaches into two groups. to an astronomical number as the number of attributes and Some rule extraction methods make use of the network-specific the possible values for each attribute increase. Assuming we information such as the network structure, or the learned have n Boolean attributes xi as an input, and each attribute weights. These methods are called decompositional approaches can be true or false or absent in the antecedent, there are in previous literature [125]. The other methods instead view O(3n ) combinations to search. We therefore need some search the network as a black-box and only use it to generate training strategies. 8 One of the earliest methods is the KT algorithm [81]. KT algorithm first divides the input attributes into two groups, pos-atts (short for positive attributes) and neg-atts, according to the signs of their corresponding weights. Assuming activation function is sigmoid, all the neurons are booleanized to true (if close enough to 1) or false (close to 0). Then, all combinations of pos-atts are selected if the combination can on its own make y be true (larger than a pre-defined threshold β without considering P the neg-atts), for instance, a combination {x1 , x3 } and σ( i∈{1,3} wi xi + b) > β. Finally, it takes into account the neg-atts. For each above pos-atts combination, it finds combinations of neg-atts (e.g., {x2 , x5 }) that when absent the output calculated from the selected pos-atts and unselected P neg-atts is still true. In other words, σ( i∈I wi xi + b) > β, where I = {x1 , x3 } ∪ {neg-atts} \ {x2 , x5 }. The extracted rule can then be formed from the combination I and has the output class 1. In our example, the translated rule is IEEE TRANSACTIONS ON XXXX, VOL. X, NO. X, MM YYYY decision tree extraction (from neural networks) can be found in references [89]–[91]. Odajima et al. [85] followed the framework of NeuroLinear but use a greedy form of sequential covering algorithm to extract rules. It is reported to be able to extract more concise and precise rules. Gyan method [86] goes further than extracting propositional rules. After obtaining the propositional rules by the above methods, Gyan uses the Least General Generalization (LGG [130]) method to generate first-order logic rules from them. There are also some approaches attempting to extract fuzzy logic from trained neural networks [87], [88], [131]. The major difference is the introduction of the membership function of linguistic terms. An example rule is If (x1 = high) ∧ . . . , then y = class1. where high is a fuzzy term expressed as a fuzzy set over the numbers. Most of the above “Rule as Explanation, Global” methods If x1 (is true) ∧ x3 ∧ ¬x2 ∧ ¬x5 , then y = 1. were developed in the early stage of neural network research, Similarly, this algorithm can generate rules for class 0 (search- and usually were only applied to relatively small datasets ing neg-atts first and then adding pos-atts). To apply to the (e.g., the Iris dataset, the Wine dataset from the UCI Machine multi-layer network situation, it first does layer-by-layer rule Learning Repository). However, as neural networks get deeper generation and then rewrites them to omit the hidden neurons. and deeper in recent applications, it is unlikely for a single In terms of the complexity, KT algorithm reduces the search decision tree to faithfully approximate the behaviour of deep space to O(2n ) by distinguishing pos-atts and neg-atts (pos- networks. We can see that more recent “Rule as Explanation” atts will be either true or absent, and neg-atts will be either methods turn to local or semi-local interpretability [80], [118]. false or absent). It also limits the number of attributes in the antecedent, which can further decrease the algorithm B. Passive, Hidden Semantics as Explanation complexity (with the risk of missing some rules). The second typical kind of explanations is the meaning Towell and Shavlik [82] focus on another kind of rules of of hidden neurons or layers. Similar to the grandmother cell “M -of-N ” style. This kind of rule de-emphasizes the individual 3 hypothesis in neuroscience, it is driven by a desire to associate importance of input attributes, which has the form abstract concepts with the activation of some hidden neurons. If M of these N expressions are true, then Q. Taking animal classification as an example, some neurons may have high response to the head of an animal while others This algorithm has two salient characteristics. The first one neurons may look for bodies, feet or other parts. This kind of is link (weight) clustering and reassigning them the average explanations by definition provides global interpretability. weight within the cluster. Another characteristic is network 1) Passive, Hidden Semantics as Explanation, Global: simplifying (eliminating unimportant clusters) and re-training. Existing hidden semantics interpretation methods mainly focus Comparing with the exponential complexity of subset searching on the computer vision field. The most direct way is to show algorithm, M -of-N method is approximately cubic because of what the neuron is “looking for”, i.e. visualization. The key to its special rule form. visualization is to find a representative input that can maximize NeuroRule [83] introduced a three-step procedure of ex- the activation of a certain neuron, channel or layer, which tracting rules: (1) train the network and prune, (2) discretize is usually called activation maximization [93]. This is an (cluster) the activation values of the hidden neurons, (3) extract optimization problem, whose search space is the potentially the rules layer-wise and rewrite (similar as previous methods). huge input (sample) space. Assuming we have a network NeuroLinear [84] made a little change to the NeuroRule method, taking as input a 28 × 28 pixels black and white image (as allowing neural networks to have continuous input. Andrews in the MNIST handwritten digit dataset), there will be 228×28 et al. [126] and Tickle et al. [127] provide a good summary possible input images, although most of them are probably of the rule extraction techniques before 1998. nonsensical. In practice, although we can find a maximum b) Pedagogical approaches: By treating the neural net- activation input image with optimization, it will likely be work as a black-box, pedagogical methods (or hybrids of unrealistic and uninterpretable. This situation can be helped both) directly learn rules from the examples generated by with some regularization techniques or priors. the network. It is essentially reduced to a traditional rule We now give an overview over these techniques. The learning or decision tree learning problem. For rule set learning, framework of activation maximization was introduced by Erhan we have sequential covering framework (i.e. to learn rules et al. [93] (although it was used in the unsupervised deep one by one). And for decision tree, there are many classic 3 https://en.wikipedia.org/wiki/Grandmother cell algorithms like CART [128] and C4.5 [129]. Example work of ZHANG et al.: A SURVEY ON NEURAL NETWORK INTERPRETABILITY models like Deep Belief Networks). In general, it can be formulated as x⋆ = arg max(act(x; θ) − λΩ(x)) x where act(·) is the activation of the neuron of interest, θ is the network parameters (weights and biases) and Ω is an optional regularizer. (We use the bold upright x to denote an input matrix in image related tasks, which allows row and column indices i and j.) Simonyan et al. [71] for the first time applied activation maximization to a supervised deep convolutional network (for ImageNet classification). It finds representative images by maximizing the score of a class (before softmax). And the Ω is the L2 norm of the image. Later, people realized high frequency noise is a major nuisance that makes the visualization unrecognizable [94], [98]. In order to get natural and useful visualizations, finding good priors or regularizers Ω becomes the core task in this kind of approaches. Mahendran and Vedaldi [95] propose a regularizer total variation β X 2 2 2 (xi,j+1 − xi,j ) + (xi+1,j − xi,j ) Ω(x) = i,j which encourages neighbouring pixels to have similar values. This can also be viewed as a low-pass filter that can reduce the high frequency noise in the image. This kind of methods is usually called image blurring. Besides suppressing high amplitude and high frequency information (with L2 decay and Gaussian blurring respectively), Yosinski et al. [96] also include other terms to clip the pixels of small values or little importance to the activation. Instead of using many handcrafted regularizers (image priors), Nguyen et al. [97] suggest using natural image prior learned by a generative model. As Generative Adversarial Networks (GANs) [132] showed recently great power to generate high-resolution realistic images [133], [134], making use of the generative model of a GAN appears to be a good choice. For a good summary and many impressive visualizations, we refer the readers to [98]. When applied to certain tasks, researchers can get some insights from these visual interpretations. For example, Minematsu et al. [135], [136] inspected the behaviour of the first and last layers of a DNN used for change detection (in video stream), which may suggest the possibility of a new background modelling strategy. Besides visualization, there are also some work trying to find connections between kernels and visual concepts (e.g., materials, certain objects). Bau et al. [21] (Network Dissection) collected a new dataset Broden which provides a pixel-wise binary mask Lc (x) for every concept c and each input image x. The activation map of a kernel k is upscaled and converted (given a threshold) to a binary mask Mk (x) which has the same size of x. Then the alignment between a kernel k and a certain concept c (e.g., car) is computed as P |Mk (x) ∩ Lc (x)| IoUk,c = P |Mk (x) ∪ Lc (x)| 9 P where | · | is the cardinality of a set and the summation is over all the inputs x that contains the concept c. Along the same lines, Fong and Vedaldi [99] investigate the embeddings of concepts over multiple kernels by constructing M with a combination of several kernels. Their experiments show that multiple kernels are usually required to encode one concept and kernel embeddings are better representations of the concepts. Dalvi et al. [100] also analysed the meaning of individual units/neurons in the networks for NLP tasks. They build a linear model between the network’s hidden neurons and the output. The neurons are then ranked according to the significance of the weights of the linear model. For those top-ranking neurons, their linguistic meanings are investigated by visualizing their saliency maps on the inputs, or by finding the top words by which they get activated. C. Passive, Attribution as Explanation Attribution is to assign credit or blame to the input features in terms of their impact on the output (prediction). The explanation will be a real-valued vector which indicates feature importance with the sign and amplitude of the scores [58]. For simple models (e.g., linear models) with meaningful features, we might be able to assign each feature a score globally. When it comes to more complex networks and input, e.g., images, it is hard to say a certain pixel always has similar contribution to the output. Thus, many methods do attribution locally. We introduce them below and at the end of this section we mention a global attribution method on intermediate representation rather than the original input features. 1) Passive, Attribution as Explanation, (Semi-)local: Similarly to the decompositional vs. pedagogical division of rule extraction methods, attribution methods can be also divided into two groups: gradient-related methods and model agnostic methods. a) Gradient-related and backpropagation methods: Using gradients to explain the individual classification decisions is a natural idea as the gradient represents the “direction” and rate of the fastest increase on the loss function. The gradients can also be computed with respect to a certain output class, for example, along which “direction” a perturbation will make an input more/less likely predicted as a cat/dog. Baehrens et al. [137] use it to explain the predictions of Gaussian Process Classification (GPC), k-NN and SVM. For a special case, the coefficients of features in linear models (or general additive models) are already the partial derivatives, in other words, the (global) attribution. So people can directly know how the features affect the prediction and that is an important reason why linear models are commonly thought interpretable. While plain gradients, discrete gradients and path-integrated gradients have been used for attribution, some other methods do not calculate real gradients with the chain rule but only backpropagate attribution signals (e.g., do extra normalization on each layer upon backpropagation). We now introduce these methods in detail. In computer vision, the attribution is usually represented as a saliency map, a mask of the same size of the input image. In reference [71], the saliency map is generated from the 10 gradients (specifically, the maximum absolute values of the partial derivatives over all channels). This kind of saliency maps are obtained without effort as they only require a single backpropagation pass. They also showed that this method is equivalent to the previously proposed deconvolutional nets method [72] except for the difference on the calculation of ReLU layer’s gradients. Guided backpropagation [102] combines above two methods. It only takes into account the gradients (the former method) that have positive error signal (the latter method) when backpropagating through a ReLU layer. There is also a variant Guided Grad-CAM (Gradient-weighted Class Activation Mapping) [103], which first calculates a coarsegrained attribution map (with respect to a certain class) on the last convolutional layer and then multiply it to the attribution map obtained from guided backpropagation. (Guided GradCAM is an extension of CAM [138] which requires a special global average pooling layer.) However, gradients themselves can be misleading. Considering a piecewise continuous function, ( x1 + x2 if x1 + x2 < 1 ; y= 1 if x1 + x2 ≥ 1 . IEEE TRANSACTIONS ON XXXX, VOL. X, NO. X, MM YYYY TABLE IV F ORMULATION OF GRADIENT- RELATED ATTRIBUTION METHODS . Sc is the output for class c (and it can be any neuron of interest), σ is the nonlinearity ∂Sc (x) in the network and g is a replacement of σ ′ (the derivative of σ) in ∂x in order to rewrite DeepLIFT and LRP with gradient formulation (see [139] for more details). xi is the i-th feature (pixel) of x. Method Attribution Gradient [71], [137] ∂Sc (x) ∂xi Gradient ⊙ Input xi · ∂Sc (x) ∂xi LRP [113] xi · ∂ g Sc (x) σ(z) , g= ∂xi z DeepLIFT [112] (xi − xref i )· Integrated Gradient [114] ∂ g Sc (x) σ(z) − σ(z ref ) , g= ∂xi z − z ref Z 1 ∂Sc (x̃) (xi − xref dα i )· ∂ x̃i x̃=xref +α(x−xref ) 0 discussed above, Wang et al. [111] point out that bias terms can contain attribution information complementary to the gradients. They propose a method to recursively assign the bias attribution it is saturated when x1 +x2 ≥ 1. At points where x1 +x2 > 1, back to the input vector. Those discrete gradient methods (e.g., LRP and DeepLIFT) their gradients are always zeros. DeepLIFT [112] points out this problem and highlights the importance of having provide semi-local explanations as they explain a target input a reference input besides the target input to be explained. w.r.t. another reference input. But methods such as DeconvNet The reference input is a kind of default or ‘neutral’ input and Guided Backprop, which are only proposed to explain and will be different in different tasks (e.g., blank images or individual inputs, arguably have certain non-locality because zero vectors). Actually, as Sundararajan et al. [114] point out, of the rectification operation during the process. Moreover, one DeepLIFT is trying to compute the “discrete gradient” instead can accumulate multiple local explanations to achieve a certain of the (instantaneous) gradient. Another similar “discrete degree of global interpretability, which will be introduced in gradient” method is LRP [113] (choosing a zero vector as Section III-C2. the reference point), differing in how to compute the discrete Although we have many approaches to produce plausible gradient. This view is also present in reference [139] that LRP saliency maps, there is still a small gap between saliency and DeepLIFT are essentially computing backpropagation for maps and real explanations. There have even been advermodified gradient functions. sarial examples for attribution methods, which can produce However, discrete gradients also have their drawbacks. As perceptively indistinguishable inputs, leading to the same the chain rule does not hold for discrete gradients, DeepLIFT predicted labels, but very different attribution maps [140]– and LRP adopt modified forms of backpropagation. This makes [142]. Researchers came up with several properties a saliency their attributions specific to the network implementation, in map should have to be a valid explanation. Sundararajan et other words, the attributions can be different even for two al. [114] (integrated gradients method) introduced two requirefunctionally equivalent networks (a concrete example can be ments, sensitivity and implementation invariance. Sensitivity seen in reference [114] appendix B). Integrated gradients [114] requirement is proposed mainly because of the (local) gradient have been proposed to address this problem. It is defined as the saturation problem (which results in zero gradient/attribution). path integral of all the gradients in the straight line between Implementation invariance means two functionally equivalent input x and the reference input xref . The i-th dimension of the networks (which can have different learned parameters given the over-parametrizing setting of DNNs) should have the same integrated gradient (IG) is defined as follows, attribution. Kindermans et al. [143] introduced input invariance. Z  1 ∂f (x̃) It requires attribution methods to mirror the model’s invariance ref IGi (x) := xi − xi dα with respect to transformations of the input. For example, a ∂ x̃ ref ref i 0 x̃=(x +α(x−x )) model with a bias term can easily deal with a constant shift of where ∂f∂x(x) is the i-th dimension of the gradient of f (x). the input (pixel values). Obviously, (plain) gradient attribution i For those attribution methods requiring a reference point, methods satisfy this kind of input invariance. For discrete semi-local interpretability is provided as users can select gradient and other methods using reference points, they depend different reference points according to what to explain. Table IV on the choices of reference. Adebayo et al. [75] took a different summarizes the above gradient-related attribution methods approach. They found that edge detectors can also produce (adapted from [139]). In addition to the “gradient” attribution masks which look similar to saliency masks and highlight ZHANG et al.: A SURVEY ON NEURAL NETWORK INTERPRETABILITY some features of the input. But edge detectors have nothing to do with the network or training data. Thus, they proposed two tests to verify whether the attribution method will fail (1) if the network’s weights are replaced with random noise, or (2) if the labels of training data are shuffled. The attribution methods should fail otherwise it suggests that the method does not reflect the trained network or the training data (in other words, it is just something like an edge detector). b) Model agnostic attribution: LIME [20] is a well-known approach which can provide local attribution explanations (if choosing linear models as the so-called interpretable components). Let f : Rd → {+1, −1} be a (binary classification) model to be explained. Because the original input x ∈ Rd might be uninterpretable (e.g., a tensor of all the pixels in an image, or a word embedding [144]), LIME introduces an ′ intermediate representation x′ ∈ {0, 1}d (e.g., the existence of certain image patches or words). x′ can be recovered to the original input space Rd . For a given x, LIME tries to find a potentially interpretable model g (such as a linear model or decision tree) as a local explanation. gx = arg min L(f, g, πx ) + Ω(g) g∈G where G is the explanation model family, L is the loss function that measures the fidelity between f and g. L is evaluated on a set of perturbed samples around x′ (and their recovered input), which are weighted by a local kernel πx . Ω is the complexity penalty of g, ensuring g to be interpretable. MAPLE [101] is a similar method using local linear models as explanations. The difference is it defines the locality as how frequently the data points fall into a same leaf node in a proxy random forest (fit on the trained network). In game theory, there is a task to “fairly” assign each player a payoff from the total gain generated by a coalition of all players. Formally, let N be a set of n players, v : 2N → R is a characteristic function, which can be interpreted as the total gain of the coalition N . Obviously, v(∅) = 0. A coalitional game can be denoted by the tuple hN, vi. Given a coalitional game, Shapley value [145] is a solution to the payoff assignment problem. The payoff (attribution) for player i can be computed as follows, X |N | − 1−1 1 φi (v) = (v(S ∪ {i}) − v(S)) |N | |S| 11 Back to the neural network (denoted by f ), let N be all the input features (attributes), S is an arbitrary feature subset of interest (S ⊆ N ). For an input x, the characteristic function v(S) is the difference between the expected model output when we know all the features in S, and the expected output when no feature value is known (i.e. the expected output over all possible input), denoted by X X 1 1 f (τ (x, y, S)) − v(S) = f (z) |X N | |X N \S | N N \S y∈X z∈X X N and X N \S are respectively the input space containing feature sets N and N \ S. τ (x, y, S) is a vector composed by x and y according to whether the feature is in S. However, a practical problem is the exponential computation complexity, let alone the cost of the feed-forward computing on each v(S) call. Štrumbelj and Kononenko [104] approximate Shapley value by sampling from S(N )×X (Cartesian product). There are other variants such as using different v. More can be found in reference [105] which proposes a unified view including not only the Shapley value methods but also LRP and DeepLIFT. There is also Shapley value through the lens of causal graph [107]. Sensitivity analysis can also be used to evaluate the importance of a feature. Specifically, the importance of a feature could be measured as how much the model output will change upon the change of a feature (or features). There are different kinds of changes, e.g., perturbation, occlusion [72], [108] etc. [109]. Chen et al. [110] propose an instance-wise feature selector E which maps an input x to a conditional distribution P (S | x), where S is any subset (of certain size) of the original feature set. The selected features can be denoted by xS . Then they aim to maximize the mutual information between the selected features and the output variable Y , max I(XS ; Y ) E subject to S ∼ E(X). A variational approximation is used to obtain a tractable solution of the above problem. 2) Passive, Attribution as Explanation, Global: A natural way to get global attribution is to combine individual ones obtained from above local/semi-local methods. SpRAy [67] clusters on the individual attributions and then summarizes some groups of prediction strategies. MAME [68] is a similar method that can generate a multilevel (local to global) explaS⊆N \{i} nation tree. Salman et al. [116] provide a different way, which where v(S ∪ {i}) − v(S) is the marginal contribution of player makes use of multiple neural networks. Each of the network can i to coalition S. The rest of the formula can be viewed as a provide its own local attributions, on top of which a clustering is normalization factor. A well-known alternative form of Shapley performed. Those clusters, intuitively the consensus of multiple value is models, can provide more robust interpretations. X    1 The attribution does not necessarily attribute ‘credits’ or O O φi (v) = v Pi ∪ {i} − v Pi |N |! ‘blame’ to the raw input or features. Kim et al. [63] propose a O∈S(N ) method TCAV (quantitative Testing with Concept Activation where S(N ) is the set of all ordered permutations of N , and Vectors) that can compute the model sensitivity of any userPiO is the set of players in N which are predecessors of player interested concept. By first collecting some examples with and i in the permutation O. Štrumbelj and Kononenko adopted this without a target concept (e.g., the presence of stripes in an form so that v can be approximated in polynomial time [104] animal), the concept can then be represented by a normal vector (also see [106] for another approximation method). to the hyperplane separating those positive/negative examples 12 (pictures of animals with/without stripes) in a hidden layer. The score of the concept can be computed as the (average) output sensitivity if the hidden layer representation (of an input x) moves an infinitesimally small step along the concept vector. This is a global interpretability method as it explains how a concept affects the output in general. Besides being manually picked by a human, these concepts can also be discovered automatically by clustering input segments [115]. D. Passive, Explanation by Example The last kind of explanations we reviewed is explanation by example. When asked for an explanation for a new input, these approaches return other example(s) for supporting or counter example. One basic intuition is to find examples that the model considers to be most similar (in terms of latent representations) [146]. This is local interpretability but we can also seek a set of representative samples within a class or for more classes that provides global interpretability. A general approach is presented in [147]. There are other methods, such as measuring how much a training example affects the model prediction on a target input. Here we only focus on work related to deep neural networks. 1) Passive, Explanation by Example, Local: Koh and Liang [73] provide an interesting method to evaluate how much a training example affects the model prediction on an unseen test example. The change of model parameters upon a change of training example is first calculated with approximation. Further, its influence on the loss at the test point can be computed. By checking the most influential (positively or negatively) training examples (for the test example), we can have some insights on the model predictions. Yeh et al. [117] show that the logit (the neuron before softmax) can be decomposed into a linear combination of training points’ activations in the pre-logit layer. The coefficients of the training points indicate whether the similarity to those points is excitatory or inhibitory. The above two approaches both provide local explanations. IV. ACTIVE I NTERPRETABILITY I NTERVENTION D URING T RAINING Besides passive looking for human-understandable patterns from the trained network, researchers also tried to impose interpretability restrictions during the network training process, i.e. active interpretation methods in our taxonomy. A popular idea is to add a special regularization term Ω(θ) to the loss function, also known as “interpretability loss” (θ collects all the weights of a network). We now discuss the related papers according to the forms of explanations they provide. A. Active, Rule as Explanation (semi-local or global) Wu et al. [119] propose tree regularization which favours models that can be well approximated by shallow decision trees. It requires two steps (1) train a binary decision tree using  N data points x(i) , ŷ (i) , where ŷ = fθ (x) is the network prediction rather than the true label, (2) calculate the average path length (from root to leaf node) of this decision tree over all the data points. However, this tree regularization term Ω(θ) IEEE TRANSACTIONS ON XXXX, VOL. X, NO. X, MM YYYY is not differentiable. Therefore, a surrogate regularization term  J Ω̂(θ) was introduced. Given a dataset θ(j) , Ω(θ(j) ) j=1 , Ω̂ can be trained as a multi-layer perceptron network which minimizes the squared error loss min ξ J     2 X 2 Ω θ(j) − Ω̂ θ(j) ; ξ + ǫkξk2 j=1 J θ(j) , Ω(θ(j) ) j=1 can be assembled during network training. Also, data augmentation techniques can be used to generate θ, especially in the early training phase. Tree regularization enables global interpretability as it forces a network to be easily approximable by a decision tree. Later, the authors also proposed regional tree regularization which did this in a semilocal way [118].  B. Active, Hidden semantics as Explanation (global) Another method aims to make a convolutional neural network learn better (disentangled) hidden semantics. Having seen feature visualization techniques mentioned above and some empirical studies [21], [148], CNNs are believed to have learned some low-level to high-level representations in the hierarchical structure. But even if higher-layers have learned some objectlevel concepts (e.g., head, foot), those concepts are usually entangled with each other. In other words, a high-layer filter may contain a mixture of different patterns. Zhang et al. [70] propose a loss term which encourages high-layer filters to represent a single concept. Specifically, for a CNN, a feature map (output of a high-layer filter, after ReLU) is an n × n matrix. Zhang et al. predefined a set of n2 ideal feature map templates (activation patterns) T, each of which is like a Gaussian kernel only differing on the position of its peak. During the forward propagation, the feature map is masked (element-wise product) by a certain template T ∈ T according to the position of the most activated “pixel” in the original feature map. During the back propagation, an extra loss is plugged in, which is the mutual information between M (the feature maps of a filter calculated on all images) and T∪{T− } (all the ideal activation patterns plus a negative pattern which is full of a negative constant). This loss term makes a filter to either have a consistent activation pattern or keep inactivated. Experiments show that filters in their designed architecture are more semantically meaningful (e.g., the “receptive field” [74] of a filter corresponds to the head of animals). C. Active, Attribution as Explanation Similar to tree regularization which helps to achieve better global interpretability (decision trees), ExpO [120] added an interpretability regularizer in order to improve the quality of local attribution. That regularization requires a model to have fidelitous (high fidelity) and stable local attribution. DAPr [121] (deep attribution prior) took into account additional information (e.g., a rough prior about the feature importance). The prior will be trained jointly with the main prediction model (as a regularizer) and biases the model to have similar attribution as the prior. ZHANG et al.: A SURVEY ON NEURAL NETWORK INTERPRETABILITY Besides performing attribution on individual input (locally in input space), Dual-net [122] was proposed to decide feature importance population-wise, i.e., finding an ‘optimal’ feature subset collectively for an input population. In this method, a selector network is used to generate an optimal feature subset, while an operator network makes predictions based on that feature set. These two networks are trained jointly. After training, the selector network can be used to rank feature importance. 13 feature importance etc. according to the specific task). Samek et al. [149] evaluate saliency maps by the performance degradation if the input image is partially masked with noise in an order from salient to not salient patches. A similar evaluation method is proposed in [75] and Hooker et al. [150] suggest using a fixed uninformative value rather than noise as the mask and evaluating performance degradation on a retrained model. Samek et al. also use entropy as another measure in the belief that good saliency maps focus on relevant regions and do not contain much irrelevant information and noise. Montavon et al. [58] would like the explanation function (which maps an D. Active, Explanations by Prototypes (global) input to a saliency map) to be continuous/smooth, which means Li et al. [76] incorporated a prototype layer to a network the explanations (saliency maps) should not vary too much (specifically, an autoencoder). The network acts like a pro- when seeing similar inputs. totype classifier, where predictions are made according to the proximity between (the encoded) inputs and the learned prototypes. Besides the cross-entropy loss and the (autoencoder) VI. D ISCUSSION reconstruction error, they also included two interpretability regularization terms, encouraging every prototype to be similar In practice, different interpretation methods have their own to at least one encoded input, vice versa. After the network is advantages and disadvantages. Passive (post-hoc) methods have trained, those prototypes can be naturally used as explanations. been widely studied because they can be applied in a relatively Chen et al. [123] add a prototype layer to a regular CNN rather straightforward manner to most existing networks. One can than an autoencoder. This prototype layer contains prototypes choose methods that make use of a network’s inner information that are encouraged to resemble parts of an input. When asked (such as connection weights, gradients), which are usually for explanations, the network can provide several prototypes more efficient (e.g., see Paragraph III-C1a). Otherwise there for different parts of the input image respectively. are also model-agnostic methods that have no requirement of the model architecture, which usually compute the marginal V. E VALUATION OF I NTERPRETABILITY effect of a certain input feature. But this generality is also a In general, interpretability is hard to evaluate objectively as downside of passive methods, especially because there is no the end-tasks can be quite divergent and may require domain easy way to incorporate specific domain knowledge/priors. knowledge from experts [58]. Doshi-Velez and Kim [18] Active (interpretability intervention) methods put forward proposed three evaluation approaches: application-grounded, ideas about how a network should be optimized to gain human-grounded, and functionally-grounded. The first one interpretability. The network can be optimized to be easily measures to what extent interpretability helps the end-task fit by a decision tree, or to have preferred feature attribution, (e.g., better identification of errors or less discrimination). better tailored to a target task. However, the other side of the Human-grounded approaches are, for example, directly letting coin is that such active intervention requires the compatibility people evaluate the quality of explanations with human-subject between networks and interpretation methods. As for the second dimension, the format of explanations, experiments (e.g., let a user choose which explanation is of the highest quality among several explanations). Functionally- logical rules are the most clear (do not need further human grounded methods find proxies for the explanation quality (e.g., interpretation). However, one should carefully control the sparsity). The last kind of approaches require no costly human complexity of the explanations (e.g., the depth of a decision experiments but how to properly determine the proxy is a tree), otherwise the explanations will not be useful in practice. Hidden semantics essentially explain a subpart of a network, challenge. In our taxonomy, explanations are divided into different types. with most work developed in the computer vision field. Although the interpretability can hardly be compared between Attribution is very suitable for explaining individual inputs. different types of explanations, there are some measurements But it is usually hard to get some overall understanding about proposed for this purpose. For logic rules and decision trees, the network from attribution (compared to, e.g., logical rules). the size of the extracted rule model is often used as a Explaining by providing an example has the lowest (the most criterion [85], [119], [127] (e.g., the number of rules, the implicit) explanatory power. As for the last dimension, local explanations are more useful number of antecedents per rule, the depth of the decision tree etc.). Strictly speaking, these criteria measure more about when we care more about every single prediction (e.g., a credit whether the explanations are efficiently interpretable. Hidden or insurance risk assessment). For some research fields, such semantics approaches produce explanations on certain hidden as genomics and astronomy, global explanations are more units in the network. Network Dissection [21] quantifies the preferred as they may reveal some general “knowledge”. Note, interpretability of hidden units by calculating their matchiness however, there is no hard line separating local and global to certain concepts. As for the hidden unit visualization interpretability. With the help of explanation fusing methods approaches, there is no a good measurement yet. For attribution (e.g., MAME), we can obtain multilevel (from local to global) approaches, their explanations are saliency maps/masks (or explanations. 14 IEEE TRANSACTIONS ON XXXX, VOL. X, NO. X, MM YYYY VII. C ONCLUSION In this survey, we have provided a comprehensive review of neural network interpretability. First, we have discussed the definition of interpretability and stressed the importance of the format of explanations and domain knowledge/representations. Specifically, there are four commonly seen types of explanations: logic rules, hidden semantics, attribution and explanations by examples. Then, by reviewing the previous literature, we summarized 3 essential reasons why interpretability is important: the requirement of high reliability systems, ethical/legal requirements and knowledge finding for science. After that, we introduced a novel taxonomy for the existing network interpretation methods. It evolves along three dimensions: passive vs. active, types of explanations and global vs. local interpretability. The last two dimensions are not purely categorical but with ordinal values (e.g., semi-local). This is the first time we have a coherent overview of interpretability research rather than many isolated problems and approaches. We can even visualize the distribution of the existing approaches in the 3D space spanned by our taxonomy. From the perspective of the new taxonomy, there are still several possible research directions in the interpretability research. First, the active interpretability intervention approaches are underexplored. Some analysis of the passive methods also suggests that the neural network does not necessarily learn representations which can be easily interpreted by human beings. Therefore, how to actively make a network interpretable without harming its performance is still an open problem. During the survey process, we have seen more and more recent work filling this blank. Another important research direction may be how to better incorporate domain knowledge in the networks. As we have seen in this paper, interpretability is about providing explanations. And explanations build on top of understandable terms (or concepts) which can be specific to the targeted tasks. We already have many approaches to construct explanations of different types, but the domain-related terms used in the explanations are still very simple (see Table I). If we can make use of terms that are more domain/task-related, we can get more informative explanations and better interpretability. R EFERENCES [1] Y. LeCun, Y. Bengio, and G. Hinton, “Deep learning,” nature, vol. 521, 2015. [2] A. Krizhevsky, I. Sutskever, and G. E. Hinton, “Imagenet classification with deep convolutional neural networks,” in Advances in neural information processing systems, 2012. [3] K. He, X. Zhang, S. Ren, and J. Sun, “Deep residual learning for image recognition,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2016. [4] G. Hinton, L. Deng, D. Yu, G. Dahl, A.-r. Mohamed, N. Jaitly, A. Senior, V. Vanhoucke, P. Nguyen, B. Kingsbury et al., “Deep neural networks for acoustic modeling in speech recognition,” IEEE Signal processing magazine, vol. 29, 2012. [5] I. Sutskever, O. Vinyals, and Q. V. Le, “Sequence to sequence learning with neural networks,” in Advances in neural information processing systems, 2014. [6] D. Silver, J. Schrittwieser, K. Simonyan, I. Antonoglou, A. Huang, A. Guez, T. Hubert, L. Baker, M. Lai, A. Bolton et al., “Mastering the game of go without human knowledge,” Nature, vol. 550, 2017. [7] S. Dong, P. Wang, and K. Abbas, “A survey on deep learning and its applications,” Computer Science Review, 2021. [8] P. Dixit and S. Silakari, “Deep learning algorithms for cybersecurity applications: A technological and status review,” Computer Science Review, 2021. [9] T. Bouwmans, S. Javed, M. Sultana, and S. K. Jung, “Deep neural network concepts for background subtraction: A systematic review and comparative evaluation,” Neural Networks, 2019. [10] Y. Wu, M. Schuster, Z. Chen, Q. V. Le, M. Norouzi, W. Macherey, M. Krikun, Y. Cao, Q. Gao, K. Macherey et al., “Google’s neural machine translation system: Bridging the gap between human and machine translation,” arXiv preprint arXiv:1609.08144, 2016. [11] M. Wainberg, D. Merico, A. Delong, and B. J. Frey, “Deep learning in biomedicine,” Nature biotechnology, vol. 36, 2018. [12] H. Y. Xiong, B. Alipanahi, L. J. Lee, H. Bretschneider, D. Merico, R. K. Yuen, Y. Hua, S. Gueroussov, H. S. Najafabadi, T. R. Hughes et al., “The human splicing code reveals new insights into the genetic determinants of disease,” Science, vol. 347, 2015. [13] S. Zhang, H. Hu, T. Jiang, L. Zhang, and J. Zeng, “Titer: predicting translation initiation sites by deep learning,” Bioinformatics, vol. 33, 2017. [14] D. Parks, J. X. Prochaska, S. Dong, and Z. Cai, “Deep learning of quasar spectra to discover and characterize damped lyα systems,” Monthly Notices of the Royal Astronomical Society, vol. 476, 2018. [15] C. Szegedy, W. Zaremba, I. Sutskever, J. Bruna, D. Erhan, I. Goodfellow, and R. Fergus, “Intriguing properties of neural networks,” arXiv preprint arXiv:1312.6199, 2013. [16] A. Nguyen, J. Yosinski, and J. Clune, “Deep neural networks are easily fooled: High confidence predictions for unrecognizable images,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2015. [17] Z. C. Lipton, “The Mythos of Model Interpretability,” arXiv, 2016. [18] F. Doshi-Velez and B. Kim, “Towards A Rigorous Science of Interpretable Machine Learning,” arXiv, 2017. [19] D. Pedreschi, F. Giannotti, R. Guidotti, A. Monreale, S. Ruggieri, and F. Turini, “Meaningful explanations of black box ai decision systems,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, 2019. [20] M. T. Ribeiro, S. Singh, and C. Guestrin, “Why should i trust you?: Explaining the predictions of any classifier,” in Proceedings of the 22nd ACM SIGKDD international conference on knowledge discovery and data mining, 2016. [21] D. Bau, B. Zhou, A. Khosla, A. Oliva, and A. Torralba, “Network dissection: Quantifying interpretability of deep visual representations,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. [22] G. D. Stormo, T. D. Schneider, L. Gold, and A. Ehrenfeucht, “Use of the ‘perceptron’ algorithm to distinguish translational initiation sites in e. coli,” Nucleic acids research, vol. 10, 1982. [23] A. B. Arrieta, N. Dı́az-Rodrı́guez, J. Del Ser, A. Bennetot, S. Tabik, A. Barbado, S. Garcı́a, S. Gil-López, D. Molina, R. Benjamins et al., “Explainable artificial intelligence (xai): Concepts, taxonomies, opportunities and challenges toward responsible ai,” Information Fusion, vol. 58, 2020. [24] D. Bau, J.-Y. Zhu, H. Strobelt, B. Zhou, J. B. Tenenbaum, W. T. Freeman, and A. Torralba, “Gan dissection: Visualizing and understanding generative adversarial networks,” in Proceedings of the International Conference on Learning Representations (ICLR), 2019. [25] C. Yang, Y. Shen, and B. Zhou, “Semantic hierarchy emerges in deep generative representations for scene synthesis,” International Journal of Computer Vision, 2021. [26] A. Voynov and A. Babenko, “Unsupervised discovery of interpretable directions in the gan latent space,” in International Conference on Machine Learning, 2020. [27] A. Plumerault, H. L. Borgne, and C. Hudelot, “Controlling generative models with continuous factors of variations,” in International Conference on Learning Representations, 2020. [28] E. Härkönen, A. Hertzmann, J. Lehtinen, and S. Paris, “Ganspace: Discovering interpretable gan controls,” in Advances in Neural Information Processing Systems, 2020. [29] M. Kahng, N. Thorat, D. H. Chau, F. B. Viégas, and M. Wattenberg, “Gan lab: Understanding complex deep generative models using interactive visual experimentation,” IEEE transactions on visualization and computer graphics, 2018. [30] R. Vidal, J. Bruna, R. Giryes, and S. Soatto, “Mathematics of deep learning,” arXiv preprint arXiv:1712.04741, 2017. [31] J. Bruna and S. Mallat, “Invariant scattering convolution networks,” IEEE transactions on pattern analysis and machine intelligence, 2013. ZHANG et al.: A SURVEY ON NEURAL NETWORK INTERPRETABILITY [32] R. Eldan and O. Shamir, “The power of depth for feedforward neural networks,” in Conference on learning theory, 2016. [33] M. Nouiehed and M. Razaviyayn, “Learning deep models: Critical points and local openness,” arXiv preprint arXiv:1803.02968, 2018. [34] C. Yun, S. Sra, and A. Jadbabaie, “Global optimality conditions for deep neural networks,” in International Conference on Learning Representations, 2018. [35] A. Choromanska, M. Henaff, M. Mathieu, G. B. Arous, and Y. LeCun, “The loss surfaces of multilayer networks,” in Artificial intelligence and statistics, 2015. [36] B. D. Haeffele and R. Vidal, “Global optimality in neural network training,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2017. [37] N. Srivastava, G. Hinton, A. Krizhevsky, I. Sutskever, and R. Salakhutdinov, “Dropout: a simple way to prevent neural networks from overfitting,” The journal of machine learning research, 2014. [38] P. Mianjy, R. Arora, and R. Vidal, “On the implicit bias of dropout,” in International Conference on Machine Learning, 2018. [39] H. Salehinejad and S. Valaee, “Ising-dropout: A regularization method for training and compression of deep neural networks,” in ICASSP 2019-2019 IEEE International Conference on Acoustics, Speech and Signal Processing (ICASSP), 2019. [40] B. Sengupta and K. J. Friston, “How robust are deep neural networks?” arXiv preprint arXiv:1804.11313, 2018. [41] S. Zheng, Y. Song, T. Leung, and I. Goodfellow, “Improving the robustness of deep neural networks via stability training,” in Proceedings of the ieee conference on computer vision and pattern recognition, 2016. [42] E. Haber and L. Ruthotto, “Stable architectures for deep neural networks,” Inverse Problems, 2017. [43] B. Chang, L. Meng, E. Haber, L. Ruthotto, D. Begert, and E. Holtham, “Reversible architectures for arbitrarily deep residual neural networks,” in Proceedings of the AAAI Conference on Artificial Intelligence, 2018. [44] K. K. Thekumparampil, A. Khetan, Z. Lin, and S. Oh, “Robustness of conditional gans to noisy labels,” in Advances in Neural Information Processing Systems, 2018. [45] A. Creswell and A. A. Bharath, “Denoising adversarial autoencoders,” IEEE transactions on neural networks and learning systems, 2018. [46] U. G. Konda Reddy Mopuri and V. B. Radhakrishnan, “Fast feature fool: A data independent approach to universal adversarial perturbations,” in Proceedings of the British Machine Vision Conference (BMVC), 2017. [47] K. R. Mopuri, U. Ojha, U. Garg, and R. V. Babu, “Nag: Network for adversary generation,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. [48] Z. Zheng and P. Hong, “Robust detection of adversarial attacks by modeling the intrinsic properties of deep neural networks,” in Proceedings of the 32nd International Conference on Neural Information Processing Systems, 2018. [49] R. Guidotti, A. Monreale, S. Ruggieri, F. Turini, F. Giannotti, and D. Pedreschi, “A survey of methods for explaining black box models,” ACM computing surveys (CSUR), vol. 51, 2018. [50] N. Papernot, P. McDaniel, S. Jha, M. Fredrikson, Z. B. Celik, and A. Swami, “The limitations of deep learning in adversarial settings,” in 2016 IEEE European Symposium on Security and Privacy (EuroS&P), 2016. [51] S.-M. Moosavi-Dezfooli, A. Fawzi, O. Fawzi, and P. Frossard, “Universal adversarial perturbations,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2017. [52] E. Gawehn, J. A. Hiss, and G. Schneider, “Deep learning in drug discovery,” Molecular Informatics, vol. 35, 2016. [53] B. Goodman and S. Flaxman, “European union regulations on algorithmic decision-making and a “right to explanation”,” AI Magazine, vol. 38, 2017. [54] European Parliament, Council of the European Union, “Regulation (eu) 2016/679 of the european parliament and of the council of 27 april 2016 on the protection of natural persons with regard to the processing of personal data and on the free movement of such data, and repealing directive 95/46/ec (general data protection regulation),” Official Journal of the European Union, Apr. 2016, https://eurlex.europa.eu/eli/reg/2016/679/oj. [55] Y. Park and M. Kellis, “Deep learning for regulatory genomics,” Nature biotechnology, vol. 33, 2015. [56] P. Baldi, P. Sadowski, and D. Whiteson, “Searching for exotic particles in high-energy physics with deep learning,” Nature communications, vol. 5, 2014. [57] J. M. Hofman, A. Sharma, and D. J. Watts, “Prediction and explanation in social systems,” Science, vol. 355, 2017. 15 [58] G. Montavon, W. Samek, and K.-R. Müller, “Methods for interpreting and understanding deep neural networks,” Digital Signal Processing, vol. 73, 2018. [59] L. H. Gilpin, D. Bau, B. Z. Yuan, A. Bajwa, M. Specter, and L. Kagal, “Explaining explanations: An overview of interpretability of machine learning,” in 2018 IEEE 5th International Conference on data science and advanced analytics (DSAA), 2018. [60] Q.-s. Zhang and S.-c. Zhu, “Visual interpretability for deep learning: a survey,” Frontiers of Information Technology & Electronic Engineering, vol. 19, 2018. [61] W. Samek and K.-R. Müller, “Towards explainable artificial intelligence,” in Explainable AI: interpreting, explaining and visualizing deep learning. Springer, 2019. [62] F. Bodria, F. Giannotti, R. Guidotti, F. Naretto, D. Pedreschi, and S. Rinzivillo, “Benchmarking and survey of explanation methods for black box models,” arXiv preprint arXiv:2102.13076, 2021. [63] B. Kim, M. Wattenberg, J. Gilmer, C. Cai, J. Wexler, F. Viegas, and R. Sayres, “Interpretability beyond feature attribution: Quantitative testing with concept activation vectors (TCAV),” in International Conference on Machine Learning, 2018. [64] C. Molnar, G. Casalicchio, and B. Bischl, “Interpretable machine learning—a brief history, state-of-the-art and challenges,” in ECML PKDD 2020 Workshops, 2020. [65] M. T. Ribeiro, S. Singh, and C. Guestrin, “Anchors: High-precision model-agnostic explanations,” in Thirty-Second AAAI Conference on Artificial Intelligence, 2018. [66] P. Adler, C. Falk, S. A. Friedler, T. Nix, G. Rybeck, C. Scheidegger, B. Smith, and S. Venkatasubramanian, “Auditing black-box models for indirect influence,” Knowledge and Information Systems, vol. 54, 2018. [67] S. Lapuschkin, S. Wäldchen, A. Binder, G. Montavon, W. Samek, and K.-R. Müller, “Unmasking clever hans predictors and assessing what machines really learn,” Nature communications, vol. 10, 2019. [68] K. Natesan Ramamurthy, B. Vinzamuri, Y. Zhang, and A. Dhurandhar, “Model agnostic multilevel explanations,” Advances in Neural Information Processing Systems, vol. 33, 2020. [69] A. Dhurandhar, P.-Y. Chen, R. Luss, C.-C. Tu, P. Ting, K. Shanmugam, and P. Das, “Explanations based on the missing: Towards contrastive explanations with pertinent negatives,” in Advances in Neural Information Processing Systems 31. Curran Associates, Inc., 2018. [70] Q. Zhang, Y. Nian Wu, and S.-C. Zhu, “Interpretable convolutional neural networks,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. [71] K. Simonyan, A. Vedaldi, and A. Zisserman, “Deep inside convolutional networks: Visualising image classification models and saliency maps,” arXiv preprint arXiv:1312.6034, 2013. [72] M. D. Zeiler and R. Fergus, “Visualizing and understanding convolutional networks,” in European conference on computer vision, 2014. [73] P. W. Koh and P. Liang, “Understanding black-box predictions via influence functions,” in Proceedings of the 34th International Conference on Machine Learning-Volume 70, 2017. [74] B. Zhou, A. Khosla, À. Lapedriza, A. Oliva, and A. Torralba, “Object detectors emerge in deep scene cnns,” in 3rd International Conference on Learning Representations, ICLR 2015, San Diego, CA, USA, May 7-9, 2015, Conference Track Proceedings, 2015. [75] J. Adebayo, J. Gilmer, M. Muelly, I. Goodfellow, M. Hardt, and B. Kim, “Sanity checks for saliency maps,” in Advances in Neural Information Processing Systems 31, 2018. [76] O. Li, H. Liu, C. Chen, and C. Rudin, “Deep learning for casebased reasoning through prototypes: A neural network that explains its predictions,” in Thirty-Second AAAI Conference on Artificial Intelligence, 2018. [77] Y. Wang, H. Su, B. Zhang, and X. Hu, “Interpret neural networks by identifying critical data routing paths,” in Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition, 2018. [78] Y. Goyal, Z. Wu, J. Ernst, D. Batra, D. Parikh, and S. Lee, “Counterfactual visual explanations,” in Proceedings of the 36th International Conference on Machine Learning, vol. 97, 2019. [79] K. Kanamori, T. Takagi, K. Kobayashi, and H. Arimura, “Dace: Distribution-aware counterfactual explanation by mixed-integer linear optimization,” in Proceedings of the Twenty-Ninth International Joint Conference on Artificial Intelligence, IJCAI-20, Christian Bessiere (Ed.). International Joint Conferences on Artificial Intelligence Organization, 2020. [80] T. Wang, “Gaining free or low-cost interpretability with interpretable partial substitute,” in International Conference on Machine Learning, 2019. [81] L. Fu, “Rule Learning by Searching on Adapted Nets,” AAAI, 1991. 16 [82] G. G. Towell and J. W. Shavlik, “Extracting refined rules from knowledge-based neural networks,” Machine Learning, vol. 13, 1993. [83] R. Setiono and H. Liu, “Understanding Neural Networks via Rule Extraction,” IJCAI, 1995. [84] ——, “NeuroLinear: From neural networks to oblique decision rules,” Neurocomputing, vol. 17, 1997. [85] K. Odajima, Y. Hayashi, G. Tianxia, and R. Setiono, “Greedy rule generation from discrete data and its use in neural network rule extraction,” Neural Networks, vol. 21, 2008. [86] R. Nayak, “Generating rules with predicates, terms and variables from the pruned neural networks,” Neural Networks, vol. 22, 2009. [87] J. M. Benitez, J. L. Castro, and I. Requena, “Are artificial neural networks black boxes?” IEEE Transactions on Neural Networks, vol. 8, 1997. [88] J. L. Castro, C. J. Mantas, and J. M. Benitez, “Interpretation of artificial neural networks by means of fuzzy rules,” IEEE Transactions on Neural Networks, vol. 13, 2002. [89] M. Craven and J. W. Shavlik, “Extracting Tree-Structured Representations of Trained Networks,” Advances in Neural Information Processing Systems, 1996. [90] R. Krishnan, G. Sivakumar, and P. Bhattacharya, “Extracting decision trees from trained neural networks,” Pattern recognition, vol. 32, 1999. [91] O. Boz, “Extracting decision trees from trained neural networks,” in Proceedings of the eighth ACM SIGKDD international conference on Knowledge discovery and data mining, 2002. [92] T. Pedapati, A. Balakrishnan, K. Shanmugam, and A. Dhurandhar, “Learning global transparent models consistent with local contrastive explanations,” Advances in Neural Information Processing Systems, vol. 33, 2020. [93] D. Erhan, Y. Bengio, A. Courville, and P. Vincent, “Visualizing higherlayer features of a deep network,” University of Montreal, vol. 1341, 2009. [94] F. Wang, H. Liu, and J. Cheng, “Visualizing deep neural network by alternately image blurring and deblurring,” Neural Networks, vol. 97, 2018. [95] A. Mahendran and A. Vedaldi, “Understanding deep image representations by inverting them,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2015, pp. 5188–5196. [96] J. Yosinski, J. Clune, A. Nguyen, T. Fuchs, and H. Lipson, “Understanding Neural Networks Through Deep Visualization,” ICML Deep Learning Workshop, Jun. 2015. [97] A. Nguyen, A. Dosovitskiy, J. Yosinski, T. Brox, and J. Clune, “Synthesizing the preferred inputs for neurons in neural networks via deep generator networks,” NIPS, 2016. [98] C. Olah, A. Mordvintsev, and L. Schubert, “Feature visualization,” Distill, 2017. [99] R. Fong and A. Vedaldi, “Net2vec: Quantifying and explaining how concepts are encoded by filters in deep neural networks,” in The IEEE Conference on Computer Vision and Pattern Recognition (CVPR), 2018. [100] F. Dalvi, N. Durrani, H. Sajjad, Y. Belinkov, D. A. Bau, and J. Glass, “What is one grain of sand in the desert? analyzing individual neurons in deep nlp models,” in Proceedings of the AAAI Conference on Artificial Intelligence (AAAI), 2019. [101] G. Plumb, D. Molitor, and A. S. Talwalkar, “Model agnostic supervised local explanations,” in Advances in Neural Information Processing Systems, 2018. [102] J. T. Springenberg, A. Dosovitskiy, T. Brox, and M. Riedmiller, “Striving for simplicity: The all convolutional net,” arXiv preprint arXiv:1412.6806, 2014. [103] R. R. Selvaraju, M. Cogswell, A. Das, R. Vedantam, D. Parikh, and D. Batra, “Grad-cam: Visual explanations from deep networks via gradient-based localization,” in Proceedings of the IEEE International Conference on Computer Vision, 2017. [104] E. Štrumbelj and I. Kononenko, “An efficient explanation of individual classifications using game theory,” Journal of Machine Learning Research, vol. 11, 2010. [105] S. M. Lundberg and S.-I. Lee, “A unified approach to interpreting model predictions,” 2017. [106] M. Ancona, C. Oztireli, and M. Gross, “Explaining deep neural networks with a polynomial time algorithm for shapley value approximation,” in Proceedings of the 36th International Conference on Machine Learning, vol. 97, 2019. [107] T. Heskes, E. Sijben, I. G. Bucur, and T. Claassen, “Causal shapley values: Exploiting causal knowledge to explain individual predictions of complex models,” Advances in Neural Information Processing Systems, vol. 33, 2020. IEEE TRANSACTIONS ON XXXX, VOL. X, NO. X, MM YYYY [108] R. C. Fong and A. Vedaldi, “Interpretable explanations of black boxes by meaningful perturbation,” in Proceedings of the IEEE International Conference on Computer Vision, 2017. [109] L. M. Zintgraf, T. S. Cohen, T. Adel, and M. Welling, “Visualizing deep neural network decisions: Prediction difference analysis,” arXiv preprint arXiv:1702.04595, 2017. [110] J. Chen, L. Song, M. Wainwright, and M. Jordan, “Learning to explain: An information-theoretic perspective on model interpretation,” in Proceedings of the 35th International Conference on Machine Learning, vol. 80, 2018. [111] S. Wang, T. Zhou, and J. Bilmes, “Bias also matters: Bias attribution for deep neural network explanation,” in International Conference on Machine Learning, 2019. [112] A. Shrikumar, P. Greenside, and A. Kundaje, “Learning important features through propagating activation differences,” in Proceedings of the 34th International Conference on Machine Learning, 2017. [113] S. Bach, A. Binder, G. Montavon, F. Klauschen, K.-R. Müller, and W. Samek, “On pixel-wise explanations for non-linear classifier decisions by layer-wise relevance propagation,” PloS one, vol. 10, 2015. [114] M. Sundararajan, A. Taly, and Q. Yan, “Axiomatic attribution for deep networks,” in Proceedings of the 34th International Conference on Machine Learning-Volume 70, 2017. [115] A. Ghorbani, J. Wexler, J. Y. Zou, and B. Kim, “Towards automatic concept-based explanations,” in Advances in Neural Information Processing Systems, 2019, pp. 9277–9286. [116] S. Salman, S. N. Payrovnaziri, X. Liu, P. Rengifo-Moreno, and Z. He, “Deepconsensus: Consensus-based interpretable deep neural networks with application to mortality prediction,” in 2020 International Joint Conference on Neural Networks (IJCNN), 2020. [117] C.-K. Yeh, J. Kim, I. E.-H. Yen, and P. K. Ravikumar, “Representer point selection for explaining deep neural networks,” in Advances in Neural Information Processing Systems 31, 2018. [118] M. Wu, S. Parbhoo, M. C. Hughes, R. Kindle, L. A. Celi, M. Zazzi, V. Roth, and F. Doshi-Velez, “Regional tree regularization for interpretability in deep neural networks.” in AAAI, 2020, pp. 6413–6421. [119] M. Wu, M. C. Hughes, S. Parbhoo, M. Zazzi, V. Roth, and F. DoshiVelez, “Beyond sparsity: Tree regularization of deep models for interpretability,” in Thirty-Second AAAI Conference on Artificial Intelligence, 2018. [120] G. Plumb, M. Al-Shedivat, Á. A. Cabrera, A. Perer, E. Xing, and A. Talwalkar, “Regularizing black-box models for improved interpretability,” Advances in Neural Information Processing Systems, vol. 33, 2020. [121] E. Weinberger, J. Janizek, and S.-I. Lee, “Learning deep attribution priors based on prior knowledge,” Advances in Neural Information Processing Systems, vol. 33, 2020. [122] M. Wojtas and K. Chen, “Feature importance ranking for deep learning,” Advances in Neural Information Processing Systems, vol. 33, 2020. [123] C. Chen, O. Li, D. Tao, A. Barnett, C. Rudin, and J. K. Su, “This looks like that: deep learning for interpretable image recognition,” in Advances in Neural Information Processing Systems, 2019. [124] S. Wachter, B. Mittelstadt, and C. Russell, “Counterfactual explanations without opening the black box: Automated decisions and the gdpr,” Harvard Journal of Law & Technology, 2018. [125] M. W. Craven and J. W. Shavlik, “Using sampling and queries to extract rules from trained neural networks,” in Machine learning proceedings 1994, 1994. [126] R. Andrews, J. Diederich, and A. B. Tickle, “Survey and critique of techniques for extracting rules from trained artificial neural networks,” Knowledge-Based Systems, vol. 8, 1995. [127] A. B. Tickle, R. Andrews, M. Golea, and J. Diederich, “The truth will come to light: directions and challenges in extracting the knowledge embedded within trained artificial neural networks,” IEEE Transactions on Neural Networks, vol. 9, 1998. [128] L. Breiman, J. H. Friedman, R. A. Olshen, and C. J. Stone, Classification and regression trees. Wadsworth & Brooks/Cole Advanced Books & Software, 1984. [129] J. R. Quinlan, “C4.5: Programs for machine learning,” The Morgan Kaufmann Series in Machine Learning, San Mateo, CA: Morgan Kaufmann,— c1993, 1993. [130] G. D. Plotkin, “A note on inductive generalization,” Machine intelligence, vol. 5, 1970. [131] S. Mitra and Y. Hayashi, “Neuro-fuzzy rule generation: survey in soft computing framework,” IEEE Transactions on Neural Networks, vol. 11, 2000. [132] I. Goodfellow, J. Pouget-Abadie, M. Mirza, B. Xu, D. Warde-Farley, S. Ozair, A. Courville, and Y. Bengio, “Generative adversarial nets,” in Advances in neural information processing systems, 2014. ZHANG et al.: A SURVEY ON NEURAL NETWORK INTERPRETABILITY [133] A. Radford, L. Metz, and S. Chintala, “Unsupervised representation learning with deep convolutional generative adversarial networks,” ICLR, 2016. [134] C. Ledig, L. Theis, F. Huszár, J. Caballero, A. Cunningham, A. Acosta, A. Aitken, A. Tejani, J. Totz, Z. Wang et al., “Photo-realistic single image super-resolution using a generative adversarial network,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2017. [135] T. Minematsu, A. Shimada, and R.-i. Taniguchi, “Analytics of deep neural network in change detection,” in 2017 14th IEEE International Conference on Advanced Video and Signal Based Surveillance (AVSS), 2017. [136] T. Minematsu, A. Shimada, H. Uchiyama, and R.-i. Taniguchi, “Analytics of deep neural network-based background subtraction,” Journal of Imaging, 2018. [137] D. Baehrens, T. Schroeter, S. Harmeling, M. Kawanabe, K. Hansen, and K.-R. MÞller, “How to explain individual classification decisions,” Journal of Machine Learning Research, vol. 11, 2010. [138] B. Zhou, A. Khosla, A. Lapedriza, A. Oliva, and A. Torralba, “Learning deep features for discriminative localization,” in Proceedings of the IEEE conference on computer vision and pattern recognition, 2016. [139] M. Ancona, E. Ceolini, C. Öztireli, and M. Gross, “Towards better understanding of gradient-based attribution methods for deep neural networks,” in International Conference on Learning Representations, 2018. [140] A. Ghorbani, A. Abid, and J. Zou, “Interpretation of neural networks is fragile,” in Proceedings of the AAAI Conference on Artificial Intelligence, vol. 33, 2019. [141] A.-K. Dombrowski, M. Alber, C. Anders, M. Ackermann, K.-R. Müller, and P. Kessel, “Explanations can be manipulated and geometry is to blame,” Advances in Neural Information Processing Systems, vol. 32, 2019. [142] J. Heo, S. Joo, and T. Moon, “Fooling neural network interpretations via adversarial model manipulation,” in Advances in Neural Information Processing Systems, 2019. [143] P.-J. Kindermans, S. Hooker, J. Adebayo, M. Alber, K. T. Schütt, S. Dähne, D. Erhan, and B. Kim, “The (un)reliability of saliency methods,” in Explainable AI: Interpreting, Explaining and Visualizing Deep Learning, 2019. [144] T. Mikolov, I. Sutskever, K. Chen, G. S. Corrado, and J. Dean, “Distributed representations of words and phrases and their compositionality,” in Advances in neural information processing systems, 2013. [145] L. S. Shapley, “A value for n-person games,” Contributions to the Theory of Games, vol. 2, 1953. [146] R. Caruana, H. Kangarloo, J. Dionisio, U. Sinha, and D. Johnson, “Casebased explanation of non-case-based learning methods.” in Proceedings of the AMIA Symposium, 1999, p. 212. [147] J. Bien, R. Tibshirani et al., “Prototype selection for interpretable classification,” The Annals of Applied Statistics, vol. 5, 2011. [148] B. Zhou, D. Bau, A. Oliva, and A. Torralba, “Interpreting deep visual representations via network dissection,” IEEE Transactions on Pattern Analysis and Machine Intelligence, 2018. [149] W. Samek, A. Binder, G. Montavon, S. Lapuschkin, and K.-R. Müller, “Evaluating the visualization of what a deep neural network has learned,” IEEE transactions on neural networks and learning systems, vol. 28, 2016. [150] S. Hooker, D. Erhan, P.-J. Kindermans, and B. Kim, “A benchmark for interpretability methods in deep neural networks,” in Advances in Neural Information Processing Systems, 2019. Yu Zhang received the B.Eng. degree from the Department of Computer Science and Engineering, Southern University of Science and Technology, China, in 2017. He is currently pursuing the Ph.D. degree in the Department of Computer Science and Engineering, Southern University of Science and Technology, jointly with the School of Computer Science, University of Birmingham, Edgbaston, Birmingham, UK. His current research interest is interpretable machine learning. 17 Peter Tino (M.Sc. Slovak University of Technology, Ph.D. Slovak Academy of Sciences) was a Fulbright Fellow with the NEC Research Institute, Princeton, NJ, USA, and a Post-Doctoral Fellow with the Austrian Research Institute for AI, Vienna, Austria, and with Aston University, Birmingham, U.K. Since 2003, he has been with the School of Computer Science, University of Birmingham, Edgbaston, Birmingham, U.K., where he is currently a full Professor—Chair in Complex and Adaptive Systems. His current research interests include dynamical systems, machine learning, probabilistic modelling of structured data, evolutionary computation, and fractal analysis. Peter was a recipient of the Fulbright Fellowship in 1994, the U.K.–Hong-Kong Fellowship for Excellence in 2008, three Outstanding Paper of the Year Awards from the IEEE Transactions on Neural Networks in 1998 and 2011 and the IEEE Transactions on Evolutionary Computation in 2010, and the Best Paper Award at ICANN 2002. He serves on the editorial boards of several journals. Aleš Leonardis is Chair of Robotics at the School of Computer Science, University of Birmingham. He is also Professor of Computer and Information Science at the University of Ljubljana. He was a visiting researcher at the GRASP Laboratory at the University of Pennsylvania, post-doctoral fellow at PRIP Laboratory, Vienna University of Technology, and visiting professor at ETH Zurich and University of Erlangen. His research interests include computer vision, visual learning, and biologically motivated vision—all in a broader context of cognitive systems and robotics. Aleš Leonardis was a Program Co-chair of the European Conference on Computer Vision 2006, and he has been an Associate Editor of the IEEE PAMI and IEEE Robotics and Automation Letters, an editorial board member of Pattern Recognition and Image and Vision Computing, and an editor of the Springer book series Computational Imaging and Vision. In 2002, he coauthored a paper, Multiple Eigenspaces, which won the 29th Annual Pattern Recognition Society award. He is a fellow of the IAPR and in 2004 he was awarded one of the two most prestigious national (SI) awards for his research achievements. Ke Tang (Senior Member, IEEE) received the B.Eng. degree from the Huazhong University of Science and Technology, Wuhan, China, in 2002 and the Ph.D. degree from Nanyang Technological University, Singapore, in 2007. From 2007 to 2017, he was with the School of Computer Science and Technology, University of Science and Technology of China, Hefei, China, first as an Associate Professor from 2007 to 2011 and later as a Professor from 2011 to 2017. He is currently a Professor with the Department of Computer Science and Engineering, Southern University of Science and Technology, Shenzhen, China. He has over 10000 Google Scholar citation with an H-index of 48. He has published over 70 journal papers and over 80 conference papers. His current research interests include evolutionary computation, machine learning, and their applications. Dr. Tang was a recipient of the Royal Society Newton Advanced Fellowship in 2015 and the 2018 IEEE Computational Intelligence Society Outstanding Early Career Award. He is an Associate Editor of the IEEE Transactions on Evolutionary Computation and served as a member of Editorial Boards for a few other journals.