NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

Neural DNF-MT: A Neuro-symbolic Approach for Learning Interpretable and Editable Policies

Kexin Gu Baugh, Luke Dickens, Alessandra Russo

Abstract

Deep Reinforcement Learning (DRL) has achieved remarkable success in complex decision-making tasks, yet its "black-box" nature remains a significant barrier to deployment in high-stakes environments. This paper introduces Neural DNF-MT, a neuro-symbolic framework designed to bridge the gap between high-performance neural learning and human-readable logic. By utilizing a differentiable Disjunctive Normal Form (DNF) architecture coupled with a novel Mutex-tanh activation function, the model learns policies that are both competitive with standard neural networks and directly translatable into symbolic rules. Crucially, these policies can be human-edited to incorporate domain knowledge or correct errors and then "ported" back into a neural format for high-speed inference.

Introduction

While DRL agents have mastered domains ranging from strategic games to robotics, understanding the rationale behind their decisions remains a challenge. In sectors like healthcare or under frameworks like the EU AI Act, transparency is not just a feature but a requirement. Existing neuro-symbolic methods often struggle with the need for manual rule templates or fail to represent the stochastic nature of real-world reinforcement learning tasks.

Neural DNF-MT addresses these limitations by providing a model that learns logical rules from scratch, handles both deterministic and probabilistic policies, and allows for seamless bidirectional translation between neural weights and symbolic logic.

Methodology

The Neural DNF-MT Architecture

The core of the approach is a "semi-symbolic" neural network structured to mirror logical operations. The architecture consists of two primary layers:

  1. Conjunction Layer (AND): Learns to group input features into logical conditions.
  2. Disjunction Layer (OR): Combines these conditions to determine the final action.

Mutex-tanh Activation

A common failure point in neuro-symbolic models is the violation of mutual exclusivity—where a model might simultaneously conclude that multiple, contradictory actions are "True." The authors introduce Mutex-tanh, a specialized activation function that ensures the model's output adheres to a valid probability distribution. This allows the agent to maintain the flexibility of stochastic policies during training while ensuring stable conversion to discrete logic during extraction.

Bidirectional Translation and Editability

One of the most significant contributions of this work is the ability to move fluidly between neural and symbolic representations:

  • Extraction: A trained neural model is pruned and thresholded into a set of logic rules (such as Answer Set Programming or ProbLog).
  • Human Intervention: A human expert can inspect these rules, identify flaws, or add new logic to handle novel scenarios.
  • Porting: The modified rules are converted back into neural weights. This "ported" model retains the benefits of fast, parallelized neural inference (microseconds) compared to the relatively slow execution of symbolic solvers (seconds).

Experimental Evaluation

The framework was evaluated across four diverse environments designed to test different aspects of the model's capabilities:

  • Switcheroo Corridor: A navigation task requiring the agent to identify "special" states that reverse the effects of its actions.
  • Blackjack: A classic card game used to test the model's ability to handle stochastic outcomes and probabilistic logic.
  • Taxi: A hierarchical task involving passenger pickup and delivery, testing the model's capacity for complex decision-making.
  • Door Corridor: A grid-world task where the agent must navigate based on raw 3x3 observations. This environment specifically demonstrated predicate invention, where the model uses a neural encoder to "invent" its own concepts before processing them through the logic layers.

Key Insights

Performance and Interpretability

Neural DNF-MT consistently achieved performance parity with standard Multi-Layer Perceptron (MLP) actors. However, unlike MLPs, the resulting policies were highly concise. In the Small Corridor task, for instance, the model extracted a rule as simple as: action(left) :- in_special_state_1. This level of clarity allows developers to verify exactly what the agent has learned.

The Power of Manual Editing

In the Door Corridor task, the researchers demonstrated the practical utility of editability. By taking a policy learned in one map configuration and manually editing the logic rules to account for a new goal mechanism, the agent was able to succeed in the new environment immediately without any additional reinforcement learning. This suggests a future where humans and AI can collaborate iteratively on policy refinement.

Limitations and Future Work

The primary challenge identified is the performance loss during thresholding. Converting "fuzzy" neural weights (e.g., a confidence of 0.85) into hard logical truths (1.0) can occasionally shift the agent's behavior, leading to reduced success rates in complex environments like Blackjack.

Future research will focus on making this thresholding process more robust and exploring the use of editable policies as "hot starts." By providing an agent with a basic set of human-written rules before training begins, researchers hope to significantly accelerate the learning process in complex domains.

Summary updated

BibTeX
@inproceedings{baugh2025neural,
  author = {Kexin Gu Baugh and Luke Dickens and Alessandra Russo},
  title = {{Neural DNF-MT: A Neuro-symbolic Approach for Learning Interpretable and Editable Policies}},
  booktitle = {AAMAS},
  year = {2025},
  doi = {10.48550/arxiv.2501.03888},
}
Figure