Disentangling Neural Disjunctive Normal Form Models

Kexin Gu Baugh, Vincent Perreault, Matthew Baugh, Luke Dickens, Katsumi Inoue, Alessandra Russo

TL;DR

Neural Disjunctive Normal Form (DNF) models offer a powerful way to combine the learning capacity of neural networks with the interpretability of formal logic. However, converting these trained networks into clean symbolic rules usually tanks their performance due to naive weight thresholding. This paper introduces a novel "disentanglement" method that splits complex, multi-rule neural nodes into independent logical expressions, preserving model accuracy while delivering highly compact and readable rule sets.

What Problem Does This Paper Address?

Neuro-symbolic AI aims to marry the raw predictive power of deep learning with the transparent, verifiable nature of symbolic logic. Neural DNF models are a promising approach: they are end-to-end differentiable networks structured to mimic logical conjunctions (ANDs) and disjunctions (ORs). After training, these networks can be translated directly into formal logic programs (like Answer Set Programming).

However, there is a catch. During this translation process, continuous neural weights must be discretized into discrete logical values (i.e., true, false, or ignored). Standard methods use a simple global threshold to prune small weights. The authors discover that this naive thresholding severely degrades performance because individual neural nodes often learn "entangled" or nested rules—using smaller weight magnitudes to capture subtle conditional sub-cases. When you apply a blanket threshold, you destroy these nuanced sub-rules, leading to a massive drop in accuracy.

Methods

To extract faithful logic programs without losing accuracy, the authors propose a three-step Disentanglement Method:

  1. Node Splitting: Instead of forcing an entangled conjunctive node into a single oversimplified rule, the method analyzes its "soft-valued truth table" and splits it into a collection of smaller, independent, fully discretized conjunctive nodes that jointly preserve the original behavior.
  2. Reconnection: These newly created split nodes are reconnected to the subsequent disjunctive layer using the original node's connection weights, maintaining logical equivalence without needing complex auxiliary predicates.
  3. Disjunctive Layer Thresholding: Standard thresholding is then applied to the disjunctive layer to finalize the symbolic translation.
The three steps of the node disentanglement method

To prevent an explosion in the number of generated rules, they introduce an optimization algorithm based on logical subsumption (Algorithm 1) to identify and remove redundant rules.

Additionally, the paper introduces Threshold-Learning Predicate Invention for continuous, real-valued features. Instead of using black-box MLPs to invent predicates, they learn explicit threshold bounds (e.g., $feature > value$) end-to-end using a parameterized activation function with a dynamically decreasing temperature schedule.

Datasets

The authors evaluated their approach across ten diverse classification benchmarks:

  • Binary Classification: Monk's Problems, Mushroom, BCC (Breast Cancer Coimbra—requires predicate invention), and CDC (Diabetes Health Indicators—requires predicate invention).
  • Multiclass Classification: Car Evaluation and Covertype (requires predicate invention).
  • Multilabel Classification: Four Boolean Network gene-regulation datasets with known ground-truth logic programs: ARA, Budding, Fission, and MAM.

Key Insights and Ideas

  • Neural Networks are Natural Overpackers: Even when trained with regularization losses designed to encourage clean binary weights, neural layers naturally exploit continuous weight magnitudes to "pack" multiple overlapping rules into a single node.
  • Splitting Beats Pruning: Traditional neuro-symbolic translation treats small weights as noise to be pruned. This paper flips the script: small weights are often signals of secondary rules, which should be isolated into their own distinct logical paths (nodes) rather than erased.
  • Interpretable-by-Design Predicate Invention: Learning thresholds directly via a temperature-scheduled activation function provides a mathematically guaranteed, highly interpretable alternative to neural-network-based predicate inventors, which act as uninterpretable black boxes.

Key Results

  • Massive Reduction in Performance Drop: The proposed disentanglement method drastically minimizes the accuracy loss caused by symbolic translation. For instance, on the Mushroom dataset, traditional thresholding caused an F1-score drop of 0.316, whereas the disentanglement method reduced that drop to just 0.029. Similar dramatic improvements were observed across almost all datasets (Table 3).
  • Superior Compactness: The extracted logic programs are remarkably compact. When compared against standard Decision Trees, the Neural DNF models with disentanglement produced significantly fewer rules, with both lower average and maximum rule lengths (Table 4). They achieved comparable compactness to Optimal Sparse Decision Trees (OSDT) while delivering vastly superior predictive performance.

Limitations and Future Work

  • Worst-Case Exponential Complexity: The runtime of the disentanglement algorithm scales exponentially with the number of inputs actively used by a single conjunctive node. While this doesn't hurt training time, it can make post-training rule extraction slow for highly dense, un-sparsified networks.
  • Disjunctive Layer Entanglement: The current node-splitting mathematical guarantees rely on inputs being strictly binary ($\{-1, 1\}$). Because the outputs of the conjunctive layer (which feed into the disjunctive layer) are soft continuous values during training, the disjunctive layer cannot yet be perfectly disentangled using this method, sometimes leading to imperfect translations when complex nested disjunctions occur.

Summary updated

BibTeX
@inproceedings{baugh2025disentangling,
  author = {Kexin Gu Baugh and Vincent Perreault and Matthew Baugh and Luke Dickens and Katsumi Inoue and Alessandra Russo},
  title = {{Disentangling Neural Disjunctive Normal Form Models}},
  booktitle = {NeSy - Phase 2},
  year = {2025},
  url = {https://openreview.net/forum?id=66YzQK1eLW},
}
Figure