Search arXiv⌕ Search

arXiv · 2611.39825

Learning Programs as Neural Networks for Generalization and Reuse

Abstract

We investigate knowledge acquisition through human-like logical reasoning by learning executable computations from examples and retaining them for later use. Generalization is sought through acquiring a program that expresses the rule behind the examples. Neural NP4G represents programs as networks of computational nodes and directed connections, jointly learns their structure and numerical parameters, and accumulates acquired programs as reusable automatically defined functions (ADFs). We assume access to a detector that checks candidate behavior and guides acceptance or correction. We evaluate this approach on relational reasoning tasks with known specifications, where faithful logical extraction and equivalence checking prove that each accepted circuit implements its target on every input in the declared domain under real arithmetic. In a 160-run detector comparison, feeding the exact detectors' counterexamples back into training increased verified acquisition on both edge reversal and edge symmetrization. In the main experiment, selecting the first program verified by the equivalence oracle among ten seeds per task yielded one library covering all fourteen tasks. With the selected dependencies held fixed for downstream tasks, acquisition succeeded in 74/100 primary and 22/40 auxiliary attempts. The learned circuit for reachability within six edges composed two previously acquired relations, for paths of at most two and at most four edges, in the opposite order from the target formula. We proved that this circuit computes the target reachability relation on every finite graph in the declared domain.

Explore related subjects

Keep this discovery

Explore connections, maps & timelines

BibTeXRIS

Shoichiro Hara, Yuji Watanabe. 2026-11-29. Learning Programs as Neural Networks for Generalization and Reuse. https://searcharxiv.org/abs/2611.39825

Citations retain the original authors and DOI and include this site’s record URL. If this discovery service contributed to your research, you can also cite Search arXiv by Indiciae: BibTeX · RIS.

KEEP EXPLORING

Related papers

Settling the Reward Hypothesis

The reward hypothesis posits that, "all of what we mean by goals and purposes can be well thought of as maximization of the expected value of the cumulative sum of a received scalar signal (reward)." We aim to fully settle this hypothesis. This will not conclude with a simple affirmation or refutation, but rather specify completely the implicit requirements on goals and purposes under which the hypothesis holds.

cs.AI↗

Explainable Innovation Engine: Dual-Tree Agent-RAG with Methods-as-Nodes and Verifiable Write-Back

Retrieval-augmented generation (RAG) improves factual grounding, yet most systems rely on flat chunk retrieval and provide limited control over multi-step synthesis. We propose an Explainable Innovation Engine that upgrades the knowledge unit from text chunks to methods-as-nodes. The engine maintains a weighted method provenance tree for traceable derivations and a hierarchical clustering abstraction tree for efficient top-down navigation. At inference time, a strategy agent selects explicit synthesis operators (e.g., induction, deduction, analogy), composes new method nodes, and records an auditable trajectory. A verifier-scorer layer then prunes low-quality candidates and writes validated nodes back to support continual growth. Expert evaluation across six domains and multiple backbones shows consistent gains over a vanilla baseline, with the largest improvements on derivation-heavy settings, and ablations confirm the complementary roles of provenance backtracking and pruning. These results suggest a practical path toward controllable, explainable, and verifiable innovation in agentic RAG systems. Code is available at the project GitHub repository https://github.com/xiaolu-666113/Dual-Tree-Agent-RAG.

cs.AI↗

Strategic Algorithmic Monoculture: Experimental Evidence from Coordination Games

AI agents increasingly make high-stakes decisions in multi-agent environments where outcomes depend on coordination (e.g., hiring, pricing, and trading). We distinguish primary algorithmic monoculture---baseline action similarity---from strategic algorithmic monoculture, whereby agents adjust similarity in response to incentives. We design a simple experiment that cleanly separates these forces and deploy it on human and large-language-model (LLM) subjects. LLMs exhibit high levels of baseline similarity (primary monoculture) and, like humans, they regulate it in response to coordination incentives (strategic monoculture). While LLMs coordinate extremely well on the same action, they lag behind humans in sustaining heterogeneity when divergence is rewarded.

cs.AI↗