Skip to main content
QUICK REVIEW

[Paper Review] Layerwise Knowledge Extraction from Deep Convolutional Networks

Simon Odense, Artur d’Avila Garcez|arXiv (Cornell University)|Mar 19, 2020
Explainable Artificial Intelligence (XAI)Computer Science29 references5 citations
TL;DR

This paper proposes a layerwise M-of-N rule extraction method to explain deep convolutional networks, balancing rule complexity and accuracy. It finds that while internal layers resist explainability, the softmax layer is highly explainable with compact, accurate rules—enabling a hybrid explainability approach for interpretable AI.

ABSTRACT

Knowledge extraction is used to convert neural networks into symbolic descriptions with the objective of producing more comprehensible learning models. The central challenge is to find an explanation which is more comprehensible than the original model while still representing that model faithfully. The distributed nature of deep networks has led many to believe that the hidden features of a neural network cannot be explained by logical descriptions simple enough to be comprehensible. In this paper, we propose a novel layerwise knowledge extraction method using M-of-N rules which seeks to obtain the best trade-off between the complexity and accuracy of rules describing the hidden features of a deep network. We show empirically that this approach produces rules close to an optimal complexity-error tradeoff. We apply this method to a variety of deep networks and find that in the internal layers we often cannot find rules with a satisfactory complexity and accuracy, suggesting that rule extraction as a general purpose method for explaining the internal logic of a neural network may be impossible. However, we also find that the softmax layer in Convolutional Neural Networks and Autoencoders using either tanh or relu activation functions is highly explainable by rule extraction, with compact rules consisting of as little as 3 units out of 128 often reaching over 99% accuracy. This shows that rule extraction can be a useful component for explaining parts (or modules) of a deep neural network.

Motivation & Objective

  • To address the challenge of explaining deep neural networks, which are often considered 'black boxes' due to their distributed representations.
  • To investigate whether rule extraction can produce comprehensible, accurate symbolic descriptions of hidden features in deep networks.
  • To evaluate the trade-off between rule complexity and accuracy across different layers of convolutional neural networks.
  • To determine whether the distributed nature of deep networks fundamentally limits rule extraction or if certain layers remain amenable to symbolic explanation.
  • To explore the feasibility of using rule extraction as a component in a multi-method explainability framework for deep learning.

Proposed method

  • The method uses a parallel search over M-of-N rule space to find rules that balance complexity and accuracy, with complexity controlled via a penalty term β in the objective function.
  • Rules are evaluated based on accuracy (how well they match the network's output) and complexity (number of units involved in the M-of-N condition).
  • The algorithm is applied layer-by-layer to deep networks, with a focus on comparing explainability across different layers and activation functions.
  • An optimal search baseline (CORELS) is used to validate results on small networks before scaling to larger models.
  • The approach assumes weight-ordering to guide rule construction, enabling efficient exploration of the rule space.
  • The method is evaluated on multiple CNNs trained on MNIST, Fashion-MNIST, and Olivetti Faces datasets, with results reported for varying complexity penalties.

Experimental results

Research questions

  • RQ1Can M-of-N rule extraction produce accurate and comprehensible symbolic descriptions of hidden features in deep convolutional networks?
  • RQ2How does the explainability of different network layers compare, particularly in terms of rule complexity and accuracy?
  • RQ3Does the choice of activation function (e.g., ReLU, tanh, softmax) affect the success of rule extraction in specific layers?
  • RQ4Is there a fundamental barrier to rule extraction in internal layers due to distributed representations, or can it be overcome with better methods?
  • RQ5Can rule extraction from the final softmax layer serve as a robust and interpretable component in a hybrid explainability framework?

Key findings

  • The softmax layer in deep CNNs and autoencoders with ReLU or tanh activations is highly explainable, with rules as small as 3 out of 128 units achieving over 99% accuracy.
  • On the Olivetti Faces dataset, rules from the softmax layer achieved 100% accuracy with a complexity of just 0.03 (β=0), dropping to 0.024 at β=0.1 with only a 0.1% accuracy loss.
  • For Fashion-MNIST, rule complexity dropped from 0.28 to 0.06 at β=0.1, with accuracy decreasing from 99.3% to 98.8%—indicating high interpretability with minimal accuracy cost.
  • Internal layers of deep networks showed poor rule extraction performance, suggesting fundamental limitations in explaining distributed representations via symbolic rules.
  • The method successfully mapped a rule extraction landscape, revealing that increasing complexity penalties (β) significantly reduce rule size with only minor accuracy penalties.
  • Preliminary results show that M-of-N rules from the output layer were more robust to FGSM adversarial attacks than the original CNN, with 376 out of 1000 adversarial examples correctly classified.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.