TRANSMISSION // 2611.39825v1
Can neural networks learn reusable programs?
Source published
A neural program-learning system builds executable rules from examples and reuses earlier rules. An arXiv submission reports formal checks and tests on relational reasoning tasks, with important limits.

Could a neural network learn a program that expresses a rule behind examples, then reuse it in later tasks? A submission to arXiv by Shoichiro Hara and Yuji Watanabe explores this question in relational reasoning, combining neural learning with behavioral feedback and formal equivalence checking.
Learning programs from examples
The researchers’ system, Neural NP4G, represents programs as networks of computational nodes connected by directed links. It jointly learns the network structure and its numerical parameters. Programs acquired during learning can be retained as automatically defined functions (ADFs), which may be reused in later tasks.
The approach assumes access to a detector that checks candidate behavior and guides acceptance or correction. This behavioral detector is part of the learning setup. Separately, the authors use an equivalence oracle in their main experiment to verify selected programs against specified target rules.
Relational tasks and formal checks
The evaluation uses relational reasoning tasks with known specifications. The researchers report using faithful logical extraction and equivalence checking to establish whether accepted circuits implement their target for every input in the declared domain under real arithmetic. This checks more than a sample of examples, but the guarantee is tied to those declared specifications and domains.
One experiment compares detector feedback in 160 runs involving edge reversal and edge symmetrization. According to the abstract, feeding exact detectors’ counterexamples back into training increased verified acquisition on both tasks. The abstract does not give further details about how those runs were divided between tasks or conditions.
In the main experiment, the researchers considered ten seeds per task and selected the first program verified by the equivalence oracle. With this procedure, they obtained a library covering all fourteen tasks. They then held the selected dependencies fixed for downstream tasks. Acquisition succeeded in 74 of 100 primary attempts and 22 of 40 auxiliary attempts.
A reported reachability example shows how previously acquired functions could be composed. The target was reachability within six edges; the learned circuit combined relations for paths of at most two edges and at most four edges, in the opposite order from the target formula. The authors report proving that the circuit computes the target relation on every finite graph in the declared domain.
What the evidence supports
The abstract describes a controlled demonstration of learning, retaining and composing programs for specified relational tasks. It reports formal equivalence results for accepted circuits and says counterexample feedback increased verified acquisition in the two named tasks. The attempt counts also show that acquisition did not succeed in every downstream attempt.
These results do not establish that the approach can learn arbitrary rules or perform broadly across real-world reasoning problems. The evaluation concerns tasks with known specifications, and the method assumes access to a detector that can guide acceptance or correction. Whether it works when suitable checking or feedback is unavailable, or on tasks beyond the declared domains, remains an open question based on the evidence summarized here. The abstract does not explain the causes of unsuccessful attempts.
This account is based on the supplied abstract; the full text was not reviewed for this article. The source is an arXiv submission, and the information available here does not establish its review or publication status. The results are best read as evidence for program learning and reuse in this particular verified setting, not as a general demonstration of human-like reasoning.
- program learning
- neural networks
- formal verification
- relational reasoning
- reusable functions
- artificial intelligence
Reviewed cross-references
These connections were reviewed by a model, not independently fact-checked by a human. Similarity does not imply agreement; consult the original papers and the evidence below.
Can AI Make Scientific Reasoning Easier to Check?
Supporting evidence: Both papers show machine checking can establish a formal claim within explicitly stated boundaries: Neural NP4G reports equivalence to target relations on its declared domain under real arithmetic, while the science-workflow paper says Lean checks deductions from approved assumptions. These results support only the bounded point that checking validates formalized claims conditional on their specifications and assumptions; they do not establish that those inputs capture the intended real-world question.
Model review: · openai-codex/gpt-6-luna
Evidence and provenance
Selected excerpts, not complete papers. PDF extraction can omit figures or damage equations, tables and reading order; sources may be preprints.
2611.39825v1 — Original paper
Excerpt reference:
static/papers/2611.39825v1.md:74-122
Basis: Paper text
Source file SHA-256:1b18c52af1ae3b70f8ecaf3c30ee9008f8001cb4bfb37abfbd42a5673fed336e2611.26754v1 — Original paper
Excerpt reference:
static/papers/2611.26754v1.md:205-371
Basis: Paper text
Source file SHA-256:7cb6cec0bb572a9439141ab97d66b8d163f395242a4a78b6b5500173a4680332
Related reading
Automatically matched by shared topic keywords. These links do not imply that the sources agree or establish a consensus.
Can AI Make Scientific Reasoning Easier to Check?
Source published
Shared keywords: artificial intelligence, formal verification
When ‘Verified’ AI Code Proves Less Than It Seems
Source published
Shared keywords: artificial intelligence, formal verification
What Formal Verification Can—and Cannot—Show About Cognitive Models
Source published
Shared keywords: formal verification
Language models write small neural policies—and model checking tests their promises
Source published
Shared keywords: formal verification
Language Models Can Read the Facts Yet Still Struggle to Justify an Answer
Source published
Shared keywords: relational reasoning