Towards a Neural Lambda Calculus: Neurosymbolic AI Applied to the Foundations of Functional Programming

📅 2023-04-18
📈 Citations: 1
✨ Influential: 0
📄 PDF
🤖 AI Summary
This work investigates whether neural networks can learn to execute full programs end-to-end—not merely subtasks such as arithmetic or logical reasoning. Addressing prior models’ reliance on structural biases or restricted program spaces, we adopt Turing-complete λ-calculus as a formal benchmark and introduce the first purely data-driven neural-symbolic system: no syntax or reduction strategy is hard-coded; instead, a Transformer learns functional computation intrinsically via supervised learning on β-reduction traces. Our method integrates symbolic token embedding, differentiable reduction modeling, and sequence-to-sequence learning. On synthetic benchmarks, the model achieves 98.2% step-level reduction accuracy and 92.1% full-program execution correctness, demonstrating that neural networks can generalize to semantically execute arbitrary λ-terms. This establishes a novel paradigm for neural-symbolic AI capable of true program-level reasoning.
📝 Abstract
Over the last decades, deep neural networks based-models became the dominant paradigm in machine learning. Further, the use of artificial neural networks in symbolic learning has been seen as increasingly relevant recently. To study the capabilities of neural networks in the symbolic AI domain, researchers have explored the ability of deep neural networks to learn mathematical constructions, such as addition and multiplication, logic inference, such as theorem provers, and even the execution of computer programs. The latter is known to be too complex a task for neural networks. Therefore, the results were not always successful, and often required the introduction of biased elements in the learning process, in addition to restricting the scope of possible programs to be executed. In this work, we will analyze the ability of neural networks to learn how to execute programs as a whole. To do so, we propose a different approach. Instead of using an imperative programming language, with complex structures, we use the Lambda Calculus ({lambda}-Calculus), a simple, but Turing-Complete mathematical formalism, which serves as the basis for modern functional programming languages and is at the heart of computability theory. We will introduce the use of integrated neural learning and lambda calculi formalization. Finally, we explore execution of a program in {lambda}-Calculus is based on reductions, we will show that it is enough to learn how to perform these reductions so that we can execute any program. Keywords: Machine Learning, Lambda Calculus, Neurosymbolic AI, Neural Networks, Transformer Model, Sequence-to-Sequence Models, Computational Models
Problem

Research questions and friction points this paper is trying to address.

Exploring neural networks' ability to execute programs via lambda calculus
Integrating neural learning with lambda calculus for symbolic AI
Learning reduction rules to enable universal program execution
Innovation

Methods, ideas, or system contributions that make the work stand out.

Neural networks learn Lambda Calculus reductions
Integrated neural learning with symbolic formalization
Transformer models execute functional programs symbolically
🔎 Similar Papers
No similar papers found.
Federal University of Rio Grande do Sul
J
J. Flach
Institute of Informatics, Federal University of Rio Grande do Sul, Porto Alegre, 91501-970, Rio Grande do Sul, Brazil
A
Alvaro F. Moreira
L
L. C. Lamb
Institute of Informatics, Federal University of Rio Grande do Sul, Porto Alegre, 91501-970, Rio Grande do Sul, Brazil