Introduction
Neural networks are powerful tools for generalization, but the knowledge they acquire is often buried within a complex web of numerical weights, making them "black boxes." This lack of transparency is a significant barrier to their adoption in safety-critical domains. Rule extraction aims to bridge this gap by translating the numerical parameters of a trained network into symbolic, human-readable logic, such as if-then rules.
The Decompositional Rule Extraction Framework
This paper focuses on a decompositional approach to rule extraction. Unlike pedagogical methods that treat the network as a black box, decompositional methods extract rules for individual neurons and then combine them to describe the global behavior of the network.
The fundamental unit of this process is the perceptron. As shown in Figure 1, a perceptron calculates a weighted sum of its inputs and compares it to a threshold $\theta$.
The challenge in decompositional extraction is the exponential growth of potential input combinations. To manage this, the authors utilize the CoOp algorithm to construct search trees that identify "minimal input patterns"—the smallest sets of active inputs sufficient to trigger the neuron's activation.
Binary Decision Diagrams (BDDs)
To represent these rules efficiently, the authors transform the search trees into Binary Decision Diagrams (BDDs). BDDs are directed acyclic graphs that represent Boolean functions. Their primary advantage is compactness; by sharing identical sub-structures, BDDs can represent complex logic with far fewer nodes than a traditional decision tree.
As illustrated in Figure 2, BDDs allow for the direct derivation of propositional formulas (pf) from the graph structure. This representation is particularly effective for "n-of-m" logic common in neural networks, where any subset of $n$ inputs out of $m$ total inputs triggers a response.
Composition and Integrity Constraints
Once BDDs are created for individual neurons, they are composed into a global BDD for the entire network. A key innovation of this work is the integration of "integrity constraints"—domain-specific knowledge about valid input states (e.g., "only one sensor can be active at a time"). By using a BDD representing these constraints as a starting point, the algorithm can prune the search space early, avoiding the generation of rules for impossible input combinations. In an 8-3-8 encoder-decoder benchmark, this pruning reduced the number of nodes constructed from 900 down to just 124.
Results and Efficiency
The experimental results demonstrate that BDDs become increasingly efficient as problem complexity grows. For a perceptron with 20 inputs, while a full search tree would contain over a million nodes ($2^{20}$), the resulting BDD averaged only 1,863.90 nodes. Furthermore, the ratio of BDD nodes to minimal input patterns decreases as the number of inputs increases (from 4.448 for 1 input to 0.072 for 20 inputs), confirming the power of sub-structure sharing. The authors also found that applying constraints drastically reduces the final BDD size, making the extraction of complex networks computationally feasible.
Conclusion
The use of BDDs provides a scalable and compact way to extract symbolic rules from feedforward neural networks. While currently limited to binary threshold units, the ability to incorporate integrity constraints directly into the extraction process represents a significant step toward more efficient and interpretable AI. Future work will focus on extending this methodology to continuous activation functions like ReLU and Sigmoid, as well as studying how extracted rules evolve during the training process.
Summary updated