HackerPapers

arXiv:2510.12269cs.AI

Tensor Logic: The Language of AI

Pedro Domingos

Abstract

Progress in AI is hindered by the lack of a programming language with all the requisite features. Libraries like PyTorch and TensorFlow provide automatic differentiation and efficient GPU implementation, but are additions to Python, which was never intended for AI. Their lack of support for automated reasoning and knowledge acquisition has led to a long and costly series of hacky attempts to tack them on. On the other hand, AI languages like LISP and Prolog lack scalability and support for learning. This paper proposes tensor logic, a language that solves these problems by unifying neural and symbolic AI at a fundamental level. The sole construct in tensor logic is the tensor equation, based on the observation that logical rules and Einstein summation are essentially the same operation, and all else can be reduced to them. I show how to elegantly implement key forms of neural, symbolic and statistical AI in tensor logic, including transformers, formal reasoning, kernel machines and graphical models. Most importantly, tensor logic makes new directions possible, such as sound reasoning in embedding space. This combines the scalability and learnability of neural networks with the reliability and transparency of symbolic reasoning, and is potentially a basis for the wider adoption of AI.

arXiv comments
17 pages, 0 figures
Journal reference
DOI
Subjects
cs.AIArtificial Intelligence cs.LGMachine Learning cs.NENeural and Evolutionary Computing cs.PLProgramming Languages stat.MLMachine Learning (Statistics)

On Hacker News

Linked by 3 identifiable commenters in 3 comments across 3 threads, from Jan 2026 to Jul 2026. Found in 4 HN submissions from Oct 2025 to Oct 2025. Open submission discussions.

Comments linking this paper, per year.

Discussed in comments3 threads

    • I don't want to rain on discovering a genuinely cool bit of theory, but it's not "new" per se. The equivalence with Einstein summation was noted in this paper [0]. Sandia labs wrote an SQL database based around graphBLAS called TenSQL a few years back. And something similar to…

      AlotOfReadingView on HNParent context

    • Honestly, I found these two attempts at universal theory more interesting: https://arxiv.org/abs/2510.12269 https://www.mdpi.com/1099-4300/28/3/332 I am also interested in connection with fuzzy logic - it seems that NNs can reason in a fuzzy way, but what they are doing…

      js8View on HNParent context

    • I have a few books still "in flight" that I started in 2025 that I'll finish. One of those is Parallel Distributed Processing - Volume 2[1] by Rumelhart & McClelland. Beyond that, one book I'm specifically putting on the "to read for 2026" list is Artificial Intelligence: A…

      mindcrimeView on HNParent context

Submitted to Hacker News

Connected through shared HN threads, not inferred similarity or a recommendation.