DeepProofLog: Efficient Proving in Deep Stochastic Logic Programs
Listen
Radio episode about this paper
Transcript
Introduction to the show: ident: AI Radio. Generated commentary on the latest Artificial Intelligence papers.
Tom: I'm Tom.
Jane: And I'm Jane, here with Lu, Meng and our in-house large language model, Lalam.
Tom: We're looking at the paper: "DeepProofLog: Efficient Proving in Deep Stochastic Logic Programs".
Title and authors: Tom: So we're looking at this paper called "DeepProofLog: Efficient Proving in Deep Stochastic Logic Programs." It comes from a team including Ying Jiao, Rodrigo Castellano Ontiveros, Luc De Raedt, Marco Gori, Francesco Giannini, Michelangelo Diligenti, and Giuseppe Marra.
Jane: It sounds like the title tells us this is about making logic proofs faster and more efficient when you use neural networks to guide them. What does that mean for someone just listening?
Lu: Basically it’s a system called DeepProofLog that uses stochastic logic programs and parameterizes every single step of the derivation process with neural networks. It tackles the scalability problems we usually see in neurosymbolic AI when you try to do logic inference on top of complex subsymbolic modules.
Meng: So, if I'm running a model, how does this help? Does it just make the training slower or something?
Tom: No, it’s about making the proving system itself efficient. The authors introduce this framework because traditional methods often get bogged down when the logic program gets too big.
Jane: So we're moving away from just checking if a statement is true in a world, and instead looking at the probability of how we arrive at that truth through a sequence of steps?
Lu: Exactly. They shift the focus from possible world semantics to uncertainty over derivations themselves, which lets them map this whole process onto something called Markov Decision Processes.
Meng: An MDP? That sounds like reinforcement learning stuff, which I deal with a lot, but mapping logic resolution directly into that is new for me.
Tom: It is new because they are using the structure of the proof search to define the transition probabilities in an MDP. They're saying you can use established MDP solution methods to handle problems that were previously too complex for standard neurosymbolic systems.
Jane: So, instead of guessing which rule to apply next in a blind way, this system uses neural networks conditioned on your current goal to guide the search more intelligently?
Lu: That’s right. They define a resolution transition model that tells you the probability of moving from one goal state to the next based on what’s currently in your goal. This is where they use neural guidance over the proving system.
The paper's summary: Tom: Let's talk about what DeepProofLog actually does, based on their summary. They define stochastic logic programs, which is a big shift because it’s about the probability of a derivation succeeding rather than just whether it’s true in a possible world.
Jane: That means if we ask the system to prove something, it's not just giving us a yes or no; it’s giving us the likelihood of finding that proof through the sequence of resolution steps. How does that translate to practical use?
Lu: The core idea is this probability associated with a clause in these logic programs reflects its likelihood of being used in a successful query derivation, not just its inherent truth value in some possible world >
Meng: So, it’s weighting the rules based on how often they actually help us get to the answer? That sounds like learning from successful paths.
Tom: Precisely. They establish this formal correspondence between the learning process and finding optimal policies in Markov Decision Processes, which is a big conceptual bridge for them >
Jane: That makes sense because MDPs are great at learning optimal actions in complex scenarios, and here they use it to learn the best way to navigate a proof search.
Lu: And they parameterize all derivation steps with neural networks, defining how we select clauses based on the entire current goal, which is what we call goal embeddings >
Tom: They construct these embeddings hierarchically from the subsymbolic parts down to the atomic components, so the neural network can actually process symbolic goals effectively >
Jane: That sounds like they are building a rich representation of what a complex query means in a way that even deep neural networks can understand and use for guiding the logic.
The paper's improvements: Tom: The authors highlight two major ways DeepProofLog improves things. First, they show you can use dynamic programming for exact inference if your goal space is small enough to be encoded in a manageable state space >
Jane: So, when the problem is simple enough, they can get a guaranteed correct answer without relying on approximations? That’s very appealing for formal reasoning tasks.
Lu: Yeah, and it scales linearly in terms of sequence length if you're looking at specific problems like MNIST addition, because they maintain two tables indexed by the sequence position and the specific state >
Meng: If it scales linearly, that’s good for production costs. But what happens when your problem gets really big? That’s where I get worried about running inference on massive graphs.
Tom: That's the other part of their improvement. When the complete goal space is too big for dynamic programming, they switch to deep reinforcement learning to approximate the optimal policy through sampling derivations >
Jane: So they have a plan: if it’s small, use exact dynamic programming; if it’s huge, use reinforcement learning to learn an approximate policy for finding proofs >
Lu: And that RL part is what allows them to tackle scenarios that were previously intractable for standard neurosymbolic systems because they are learning the best proof-finding policy directly >
Meng: Learning a policy from sampled derivations sounds like it could be computationally expensive during the learning phase itself. What’s the cost there?
Tom: The objective function they are optimizing, which is maximizing the expected cumulative reward in that MDP formulation, actually corresponds to minimizing cross-entropy loss that we already use in standard neurosymbolic learning >
Jane: That’s a nice connection. It means we can train this new proof system using the same loss functions we're familiar with from other models.
Conclusion: Tom: So, to wrap up, DeepProofLog is fundamentally about parameterizing every derivation step with neural networks to give us efficient neural guidance over the proving system >
Jane: It establishes a formal mapping between stochastic logic program resolution and Markov Decision Processes, which means we can use dynamic programming for exact inference when the goal space is small enough, or reinforcement learning for approximation when it gets too big >
Lu: And they show that this approach allows us to learn optimal policies to maximize the expected return J lambda, which aligns with minimizing cross-entropy loss on a labeled dataset D = D N i=one > <ref:2511.08581#pg1>
Meng: From a deployment standpoint, what’s the practical implication here? Can we actually deploy this on real traffic without it needing massive compute resources every time?
Tom: It suggests that we can learn an efficient proof-finding policy that navigates deep reasoning paths efficiently, avoiding exhaustive search by contrast to methods like smart grounding techniques which require many groundings >
Jane: It’s fully interpretable because every single classification is expressed as a proof, so you can actually follow the steps and understand why the model made a decision >
Lu: And I think that's key because unlike partially latent reasoning done by other systems, DeepProofLog is fully interpretable >
Meng: So, to summarize, it’s about using neural guidance over logic programs to make them scalable while keeping them explainable.
Ying Jiao, Rodrigo Castellano Ontiveros, Luc De Raedt, Marco Gori, Francesco Giannini, Michelangelo Diligenti, Giuseppe Marra
KU Leuven University of Siena Orebro University Scuola Normale Superiore University of Pisa
cs.AI
Submitted: 2025-11-11
Updated: 2026-01-19
Comments: Accepted as an Oral at AAAI 2026
Journal ref: Proceedings of the AAAI Conference on Artificial Intelligence 40(27), 22381-22389, 2026
DOI: 10.1609/aaai.v40i27.39396
Code: https://github.com/DeepProofLog/DPrL-AAAI
License: http://creativecommons.org/licenses/by/4.0/
Importance score: 92/100
The gist: DeepProofLog (DPrL) is a novel neurosymbolic system based on stochastic logic programs that addresses scalability limitations by parameterizing all derivation steps with neural networks and…
Key concepts
- Stochastic Logic Programs (SLPs)
- SLPs shift uncertainty from possible worlds to the probability of derivation steps. Instead of asking if a statement is true in all worlds, they model the likelihood that a specific clause will be used successfully during a query derivation.
- Markov Decision Processes (MDPs)
- The system formalizes logic resolution as an MDP where states are goals and actions are clause selections. This allows the use of reinforcement learning to learn optimal policies for finding proofs, treating inference as a sequential decision-making problem.
- Neural Guidance
- DeepProofLog uses neural networks to parameterize how clauses are selected during derivation. Goals are represented as embeddings, and the compatibility between goals is calculated via their scalar product, guiding the search toward relevant logical paths.
- Inference Mapping
- The core idea is a formal correspondence: learning optimal policies in MDPs directly corresponds to finding parameters that maximize expected reward in SLPs. This links reinforcement learning objectives to standard cross-entropy loss minimization.
Terminology
Summary
DeepProofLog (DPrL) is a novel neurosymbolic system based on stochastic logic programs that addresses scalability limitations by parameterizing all derivation steps with neural networks and establishing a formal mapping to Markov Decision Processes, enabling efficient inference and learning in complex settings. p. 0 DPrL parameterizes all derivation steps with neural networks, allowing efficient neural guidance over the proving system. Additionally,
we establish a formal mapping between the resolution process
of our deep stochastic logic programs and Markov Decision
Processes, enabling the application of dynamic programming
and reinforcement learning techniques for efficient inference
and learning.Where the paper says it
Conceptual Shift in Logic Modeling
The paper introduces Stochastic Logic Programs (SLPs) as a perspective shift away from possible world semantics, defining uncertainty over derivations rather than over worlds.<ref:2511.08581#pg1, SLPs do not directly model uncertainty about the world, but rather the uncertainty in the behavior of a prover operating within that world >
The probability associated with a clause in SLPs reflects its likelihood of being used in a successful query derivation rather than its truth in a possible world.<ref:2511.08581#pg2>
This perspective allows for the formal correspondence between learning and inference in (deep) SLPs and the problem of learning optimal policies in Markov Decision Processes (MDPs).<ref:2511.08581#pg2>
Neural Guidance and Goal Representation
DeepProofLog parameterizes the resolution process rather than the logic program itself, defining clause selection probabilities conditioned on the entire current goal.<ref:2511.08581#pg3, We define the resolution transition model in DeepProofLog as: pλ(Gi+1 | Gi) = exp(fλ(Gi X, Gi+1)) G∈N(Gi) exp(fλ(Gi, G)) >
Goal embeddings are constructed hierarchically from (sub)symbolic and atomic components to enable neural processing of symbolic goals.<ref:2511.08581#pg3>
The compatibility score between goals G and G′ is computed as the scalar product of their embeddings: fλ(G, G′) = eG · eG′ <ref:2511.08581#pg4>
Mapping Inference to Reinforcement Learning
The SLD-resolution process is formalized as an MDP where states are defined by initial queries and intermediate sub-goals.<ref:2511.08581#pg4, The action space A(G) is defined as A(G) = {(C, θ)| C ∈ P, θ = MGU(A1, head(C)) } >
The transition function is deterministic and follows from logic resolution: given Gi+1 = res(Gi, C, θ), the transition probability is defined as P(G′ Gi, C, θ) = 1 if G′ = Gi+1.<ref:2511.08581#pg4, The reward function R: S →˜ R is defined as R(G, y(i)) = 2y(i) − 1 if G = True 0 otherwise >
Learning in DeepProofLog is equivalent to learning the optimal policy of the corresponding MDP defined in Section 4.<ref:2511.08581#pg5, The objective function simplifies to J(λ) = X N i=1 (2y(i) − 1)pλ success(q(i)) >
Empirical Validation and Scalability Gains
Experiments on standard NeSy benchmarks and knowledge graph reasoning tasks demonstrate that DPrL outperforms existing state-of-the-art NeSy systems, advancing scalability to larger and more complex settings than previously possible.<ref:2511.08581#pg6, On Family, all NeSy systems improve performance over the baseline, and DPrL is particularly effective for MRR and Hits@1 >
DPrL demonstrates superior scalability by learning an efficient proof-finding policy that navigates deep reasoning paths efficiently, avoiding exhaustive search by contrast to methods like smart grounding techniques which require many groundings.<ref:2511.08581#pg7>
Optimization Equivalence
The objective that maximizes the expected cumulative reward in the MDP formulation corresponds to minimizing the cross-entropy loss commonly used in NeSy learning.<ref:2511.08581#pg11, This confirms that both optimization objectives are fundamentally pushing the parameters λ in directions that aim to increase the success probability Pi for positive queries and decrease it for negative queries >
The MDP objective becomes J(λ) = X N i=1 (2y(i) − 1)pλ success(q(i)), which aligns with minimizing cross-entropy loss on a labeled dataset D = D N i=1.<ref:2511.08581#pg3>
Inference Strategies
Exact Inference via Dynamic Programming is feasible when combinatorial search spaces can be encoded to yield a manageable state space, allowing for exact inference without approximation.<ref:2511.08581#pg5, When the full goal space is intractable, the mapping between SLP derivations and MDPs enables the application of reinforcement learning techniques to learn the clause selection policy >
For MNIST addition, DP scales linearly in sequence length N by maintaining two tables indexed by (i, si) and (i, ci), providing a general insight for neurosymbolic problem representations.<ref:2511.08581#pg12>
Conclusion on Interpretability
DPrL is fully interpretable because each classification is expressed by a proof, allowing for clear understanding of the model's decisions.<ref:2511.08581#pg6, DPrL uses Proximal Policy Optimization (PPO) to navigate the complex, large-scale action spaces emerging in KG reasoning >
Unlike partially latent reasoning done by R2N or DCR, DPrL is fully interpretable.<ref:2511.08581#pg7, Figure 2 presents two proof trees generated by DeepProofLog for the Family and WN18RR datasets >
Future Directions
The method shares a limitation with prior work: clause selection is restricted to the leftmost atom, while future work will consider a more flexible selection to prune failing derivations more efficiently.<ref:2511.08581#pg8>
Acknowledgments and Support
This work has been supported by the EU Framework Program for Research and Innovation Horizon under the Grant Agreement. No 101073307 (MSCA-DN LeMuR), the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (Grant agreement No. p. 6 We also see potential in extending to possible world–based NeSy methods like Markov Logic Networks (Richardson and Domingos 2006) and in studying automatic logic program reformulations to reduce the search
space (Leuschel and Bruynooghe 2002). Acknowledgments
This work has been supported by the EU Framework Program for Research and Innovation Horizon under the Grant
Agreement No 101073307 (MSCA-DN LeMuR), the European Research Council (ERC) under the European Union’s Horizon 2020 research and innovation program (Grant
agreement No. 101142702), and the Flemish Government
under the “Onderzoeksprogramma Artificiele Intelligentie ¨
(AI) Vlaanderen” programme. Gori are also supported by the project
“CONSTR: a COllectionless-based Neuro-Symbolic Theory
for learning and Reasoning”, PARTENARIATO ESTESO
“Future Artificial Intelligence Research - FAIR”, SPOKE
1 “Human-Centered AI” Universita di Pisa, “NextGenera- `
tionEU”, CUP I53C22001380006. Marra acknowledges
support by FWO (G033625N) and KU Leuven Research
Fund (CELSA, CELSA/24/008).Where the paper says it
Where the paper says it
Where the paper says it
Green — the paper says it, and the page is printed. Red — no passage carries it, so treat that sentence as unverified. The same check runs on your own text: check a summary against its source, $5.
Improvements for AI systems
-
DeepProofLog can perform efficient neural guidance over stochastic logic programs by parameterizing all derivation steps with neural networks, allowing for
efficient neural guidance over the proving system.
-
The system establishes a formal correspondence between derivation-based probabilistic logic reasoning and Markov Decision Processes, enabling the application of
dynamic programming and reinforcement learning techniques for efficient inference and learning.
-
DeepProofLog can tackle previously intractable NeSy problems by framing SLD resolution as an MDP, allowing for exact inference via dynamic programming when the goal space is manageable or approximate inference via policy gradient when it becomes intractable.
-
The system learns optimal policies to maximize the expected return J(λ), which is equivalent to minimizing the cross-entropy loss L(λ) defined in Equation 2, ensuring alignment with standard NeSy learning objectives.
-
DeepProofLog can generate fully interpretable proofs for knowledge graph completion tasks because
each classification is expressed by a proof makes DPrL’s decisions fully interpretable.
Abstract
Neurosymbolic (NeSy) AI aims to combine the strengths of neural architectures and symbolic reasoning to improve the accuracy, interpretability, and generalization capability of AI models. While logic inference on top of subsymbolic modules has been shown to effectively guarantee these properties, this often comes at the cost of reduced scalability, which can severely limit the usability of NeSy models. This paper introduces DeepProofLog (DPrL), a novel NeSy system based on stochastic logic programs, which addresses the scalability limitations of previous methods. DPrL parameterizes all derivation steps with neural networks, allowing efficient neural guidance over the proving system. Additionally, we establish a formal mapping between the resolution process of our deep stochastic logic programs and Markov Decision Processes, enabling the application of dynamic programming and reinforcement learning techniques for efficient inference and learning. This theoretical connection improves scalability for complex proof spaces and large knowledge bases. Our experiments on standard NeSy benchmarks and knowledge graph reasoning tasks demonstrate that DPrL outperforms existing state-of-the-art NeSy systems, advancing scalability to larger and more complex settings than previously possible.
Sources
- Go for a Walk and Arrive at the Answer: Reasoning Over Paths in Knowledge Bases using Reinforcement Learning
- On the Hardness of Probabilistic Neurosymbolic Learning
- Grounding Methods for Neural-Symbolic AI
- NeuPSL: Neural Probabilistic Soft Logic
- Proximal Policy Optimization Algorithms
- RotatE: Knowledge Graph Embedding by Relational Rotation in Complex Space
- DeepPath: A Reinforcement Learning Method for Knowledge Graph Reasoning
- NeurASP: Embracing Neural Networks into Answer Set Programming
Related papers
- Beyond Moral Performance: Empirical Assessment of LLMs' Moral Competence Through Judgment Stability
- K12Vista: Exploring the Boundaries of MLLMs in K-12 Education
- A Matter of TASTE: Improving Coverage and Difficulty of Agent Benchmarks
- FlowSteer: Towards Agents Designing Agentic Workflows via Reinforced Progressive Canvas Editing
- Tokengeist: Multi-Turn Attribution Tracing in Agentic Conversations
- VESTA: Visual Exploration with Statistical Tool Agents