[Paper Review] Probabilistic Neural Programs
This paper introduces probabilistic neural programs (PNPs), a framework that integrates deep neural networks with probabilistic programming by combining computation graphs for neural architecture with weighted nondeterministic choice operators to model decision-making in program induction. The approach enables end-to-end training via stochastic gradient descent and achieves a 14.9% execution accuracy on a diagram question-answering task—nearly twice the baseline—by learning expressive latent representations for decision scoring.
We present probabilistic neural programs, a framework for program induction that permits flexible specification of both a computational model and inference algorithm while simultaneously enabling the use of deep neural networks. Probabilistic neural programs combine a computation graph for specifying a neural network with an operator for weighted nondeterministic choice. Thus, a program describes both a collection of decisions as well as the neural network architecture used to make each one. We evaluate our approach on a challenging diagram question answering task where probabilistic neural programs correctly execute nearly twice as many programs as a baseline model.
Motivation & Objective
- Address the challenge of program induction in noisy, real-world settings where both control flow and decision-making must be learned.
- Overcome limitations of prior approaches that either restrict computational models (e.g., neural abstract machines) or exclude deep learning (e.g., probabilistic programming languages).
- Enable flexible specification of both computational models and inference algorithms while supporting deep neural networks for decision scoring.
- Improve program execution accuracy in complex, structured reasoning tasks such as diagram question answering by learning better latent representations of decisions.
Proposed method
- Extend computation graph frameworks with a weighted nondeterministic choice operator that allows probabilistic selection among options based on neural network scores.
- Define program sketches as probabilistic programs where each decision is scored by a neural network whose architecture is specified within the computation graph.
- Use stochastic gradient descent to train the neural network parameters using either input/output examples or full execution traces.
- Support multiple inference algorithms (e.g., beam search, sampling) on the same sketch, enabling flexible reasoning over possible program executions.
- Integrate lower-level vision system outputs directly into the network architecture (e.g., maxpooling over detected relations) to learn latent features without handcrafted features.
- Apply the framework to a domain-specific computational model for food web reasoning, where decisions involve identifying organisms and eating relationships from diagrams.
Experimental results
Research questions
- RQ1Can a unified framework combine deep neural networks with probabilistic programming to improve program induction in complex, real-world tasks?
- RQ2Does learning latent representations through neural networks improve decision accuracy and overall program execution compared to handcrafted features?
- RQ3To what extent does the integration of neural networks into probabilistic program sketches enhance execution accuracy on diagram question-answering tasks?
- RQ4How do different neural network architectures (e.g., multi-layer vs. maxpooling) affect performance in structured decision-making under uncertainty?
Key findings
- The Maxpool PNP model achieved 14.9% execution accuracy on the foodwebs dataset, a significant improvement over the 8.6% of the Loglinear baseline.
- Despite only a 3.8% increase in choose accuracy (from 78.2% to 82.5%), the Maxpool PNP model achieved substantially higher execution accuracy, demonstrating the impact of better latent representations.
- The 2-Layer PNP model improved execution accuracy to 12.5% compared to 8.6% for the Loglinear model, showing that neural networks enhance modeling power even with handcrafted features.
- The inclusion of raw vision system outputs (e.g., confidence scores and detected relations) in the Maxpool PNP architecture led to the largest performance gain, highlighting the benefit of end-to-end feature learning.
- The framework successfully supports flexible inference algorithms and allows joint training of neural network parameters and program execution using stochastic gradient descent.
- The approach enables correct execution of nearly twice as many programs as the baseline model, validating its effectiveness in complex, multi-step reasoning tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.