Neural Logic Networks for Interpretable Classification

Vincent Perreault, Katsumi Inoue, Richard Labib, Alain Hertz

TL;DR

This paper introduces an enhanced version of Neural Logic Networks (NLNs) that can learn human-readable IF-THEN rules directly from data. By incorporating negation, biases for unobserved data, and a novel factorized structure, the authors create a neuro-symbolic model that matches the performance of "black-box" networks while remaining fully transparent and verifiable.

What Problem Does This Paper Address?

While deep learning has revolutionized fields like image and speech recognition, its "black-box" nature remains a major hurdle for high-stakes applications like medicine, law, and industrial maintenance. In these domains, a prediction is only useful if it is accompanied by a clear explanation that a human expert can verify.

Existing "neuro-symbolic" methods try to bridge this gap by combining neural learning with symbolic logic, but they often struggle with scalability, vanishing gradients, or producing "rules" that are still too complex for humans to understand. The authors aim to provide a rigorous probabilistic framework for these networks that can handle real-world noise and missing information while outputting sparse, elegant logic programs.

Methods

The authors propose several key innovations to the standard Neural Logic Network architecture:

  • Generalized Logic Gates: They define AND and OR neurons using product fuzzy logic, allowing them to handle continuous probabilities. Crucially, they introduce negation (NOT) via negative weights and biases that account for unobserved or "hidden" variables.
  • Factorized Rule Structure: Instead of one giant network, they use "rule modules." Each module learns an independent AND-rule, which are then combined by an OR-layer. This makes the learning process more stable and the resulting rules much easier to disentangle.
  • Rule Reset Mechanism: To solve the "dead neuron" problem (where a neuron stops learning because its gradient vanishes), the algorithm identifies rules that aren't contributing and "resets" them with new random parameters during training.
  • Post-Processing Pipeline: After training, the model undergoes a three-step refinement:
  • Discretization: Probabilistic weights are snapped to -1, 0, or 1.
  • Pruning: Unnecessary connections are removed.
  • Bias Adjustment: Final rule thresholds are statistically tuned based on data coverage.

Datasets

The model was evaluated across three distinct categories:

  1. Boolean Network Discovery: Four biological datasets (Mammalian, Fission, Budding, and Arabidopsis) where the goal is to recover the "ground truth" gene regulatory logic.
  2. UCI Tabular Classification: Seven classic benchmarks including tic-tac-toe, chess, adult, and chronic kidney disease.
  3. Industrial Application: The NSL-KDD dataset, a standard benchmark for cybersecurity anomaly detection.

Key Insights and Ideas

  • Handling the "Unknown": By including biases ($a_i^l, o_i^l$), the model explicitly acknowledges that it might be missing relevant data. This allows it to assign a "probability of presence" to a concept even if the observed features don't fully explain it.
  • Recovery of Ground Truth: In the Boolean discovery tasks, the NLN didn't just get high accuracy; it actually found the exact logical formulas that generated the data, often using only 40% of the available training samples.
  • Sparsity is Sanity: Compared to previous models like the Rule-based Representation Learner (RRL), the NLN produces significantly fewer rules. For the tic-tac-toe dataset, the NLN found the 8 perfect rules for winning, whereas the RRL required over 300 rules to achieve similar accuracy.

Key Results

  • Perfect Logic Recovery: On Boolean networks, the NLN achieved 100% accuracy on all four datasets once provided with 40% of the possible data states, outperforming both neural and purely symbolic competitors.
  • Competitive Accuracy: On UCI datasets, the NLN's F1-scores were generally on par with or slightly better than other interpretable models (like Optimal Decision Diagrams). For example, it achieved 98.08% F1 on the kidney disease dataset.
  • Superior Interpretability: In the kidney disease task, the model reduced a complex medical diagnosis problem to just 4 simple rules involving only 8 features (e.g., IF albumin ≠ 0 AND hemoglobin < 14.9 AND packed_cell_vol < 48.3, THEN class = ckd).

Limitations and Future Work

  • Computational Cost: The weight discretization step is currently the bottleneck, requiring a greedy search that scales with the number of weights and data points ($O(w \cdot |D|)$).
  • Stochasticity: Because the search is stochastic, different training runs can produce different (though logically equivalent) sets of rules, which might confuse users looking for a single "definitive" explanation.
  • Non-Logical Data: The model performs less effectively on datasets that don't have an underlying logical structure (like the "balance" dataset), where traditional linear models or decision trees might be more appropriate.
  • Future Directions: The authors suggest extending this logic-based approach to Convolutional NLNs for image interpretation and Recurrent NLNs for multi-step reasoning tasks like solving Sudoku.

Summary updated

BibTeX
@article{perreault2026neural,
  author = {Vincent Perreault and Katsumi Inoue and Richard Labib and Alain Hertz},
  title = {{Neural Logic Networks for Interpretable Classification}},
  journal = {Trans. Mach. Learn. Res.},
  year = {2026},
}
Figure