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 the best of both worlds—differentiable learning without requiring hand-crafted background knowledge, plus rule-based symbolic interpretability. However, post-training translation to logic programs previously caused large accuracy drops because single neural units learn "entangled" nested rules. This paper introduces an exact disentanglement algorithm that splits complex continuous nodes into clean, subsumption-free symbolic rules alongside an end-to-end threshold-learning module for continuous data.

What Problem Does This Paper Address?

Neuro-symbolic models bridge the gap between gradient-based optimization and formal logic. Standard methods (like Inductive Logic Programming) often demand strict task-specific background knowledge or hand-tuned rule templates. In contrast, Neural DNF models can train end-to-end on arbitrary data using layers of semi-symbolic conjunctive and disjunctive nodes, which are then discretised into bivalent rules (such as Answer Set Programming clauses).

The fatal flaw of this pipeline has been the post-training translation step. Traditionally, continuous weights are converted into discrete values (saturation weights in $\{-6, 0, 6\}$) using simple magnitude thresholding. Because real-valued weights allow a single semi-symbolic node to learn multiple "nested" behaviors—where smaller weights only matter in specific contexts—naive thresholding mangles these nuanced rules. This causes significant performance degradation between the trained neural model and its extracted symbolic rule set.

Methods

The authors propose a multi-part solution to faithfully translate trained Neural DNFs:

  1. Conjunctive Node Disentanglement: Rather than forcing a real-valued conjunctive node into a single rigid logical rule via a threshold cutoff, the node is split into a collection of smaller, discrete conjunctive nodes whose logical disjunction preserves the original node's soft-valued truth-table behavior over discrete inputs. Because $(c_1 \lor \dots \lor c_k) \to d$ is logically equivalent to $(c_1 \to d) \land \dots \land (c_k \to d)$, these split nodes connect directly to downstream disjunctive heads without requiring auxiliary predicates.
  2. Subsumption-Based Rule Minimization: To prevent combinatorial explosion, the authors prove that any weight with magnitude $|w_j| \ge \frac{1}{2}\max|w|$ must appear in every split rule. A breadth-first search identifies maximal exclusion sets among small-magnitude weights ($|w_j| < \frac{1}{2}\max|w|$), stripping out redundant, logically subsumed rules.
  3. Threshold-Learning Predicate Invention: To handle continuous numerical inputs without black-box MLPs, the authors learn explicit thresholds $t_{i,j}$ end-to-end via $p_{i,j} = \tanh((x_i - t_{i,j})/T)$. Annealing the temperature $T$ forces these invented predicates to behave as crisp, human-readable boolean inequalities ($x_i > t_{i,j}$).

Datasets

The authors evaluated their framework on 10 diverse classification benchmarks across three paradigms:

  • Binary Classification: Monk's Problems, Breast Cancer Coimbra (BCC; real-valued), Mushroom, and CDC Diabetes Health Indicators (real-valued).
  • Multiclass Classification: Car Evaluation and Forest Covertype (real-valued, using an MLP predicate inventor).
  • Multilabel Classification: Four Boolean Network benchmarks modeling gene state transitions over time: ARA, Budding yeast, Fission yeast, and MAM (mammalian cell cycle).

Key Insights and Ideas

  • Continuous Weights Enable Multi-Tasking Units: A single neural unit with continuous weights behaves like an entangled combination of several logical clauses. For instance, smaller weights act as secondary conditions that matter only when primary conditions are satisfied.
  • Preserving Semantics via Decomposition: Instead of trying to regularize the neural network to learn only trivial single clauses, it is far more effective to let the network learn naturally and decompose entangled nodes symbolically after training.
  • Superior Interpretability without Pruning Overhead: Compared to standard decision trees, DNF logic representations achieve much shorter clause lengths and dramatically fewer branches because rules are evaluated disjunctively rather than down rigid, deep hierarchical trees.

Key Results

  • Competitive Baseline Performance: Neural DNF architectures matched or outperformed standard non-symbolic baselines (MLP, SVM, Random Forest, Logistic Regression) on 7 out of 10 tasks.
  • Near-Zero Translation Drops: Disentanglement drastically reduced translation-induced performance drops ($F1_{\text{train}} - F1_{\text{discretised}}$) compared to standard thresholding:
  • Mushroom: Drop shrank from $0.316 \pm 0.099$ (thresholding) to $0.029 \pm 0.016$ (disentanglement).
  • Budding Yeast: Drop shrank from $0.159 \pm 0.004$ to $0.007 \pm 0.003$.
  • Car Evaluation: Drop shrank from $0.122 \pm 0.012$ to $0.027 \pm 0.005$.
  • Model Compactness: Extracted Answer Set Programs (ASP) were orders of magnitude more concise than Decision Trees (DT). On the CDC dataset, the decision tree required 31,394 branches (average depth 21.8), whereas the disentangled Neural DNF required just 27.6 rules (average length 2.0).

Limitations and Future Work

  • Asymmetric Disjunctive Layer Handling: Disentanglement currently applies only to the conjunctive layer because the algorithm assumes strictly discrete $\{-1, 1\}$ inputs. Disjunctive layers receive soft, continuous intermediate activations, forcing authors to still use thresholding for disjunctions.
  • Exponential Worst-Case Scaling: Finding all valid split combinations scales exponentially with the number of non-zero inputs active in a conjunctive node. While bounded by a 180-second timeout in benchmarks, maintaining scalability on dense models requires active weight pruning or sparsification.

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