Skip to content
Back to the collection

Tensor Logic: The Language of AI

Pedro Domingos

2025 · arXiv

Read the paper
HN score
0
Mentions
3
Readers
3
Months
3
What’s in a score?

From the 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.

Metadata: arXiv. Abstracts retain their original authors’ rights.

In the conversation

Original HN comments, with labels from simple text rules. A label describes the whole comment and may miss context or irony. Read the discussion to make up your own mind. About the labels

3 selected excerpts · 3 total mentions

AlotOfReading
Neutral mention · rule
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 your idea of relational algebra as the basis for AI had a paper published earlier this year [1], naming it Tensor Logic. Are all of these common operations secretly relational, just with the wrong data model? Sadly not, but you can get a long way before you find the limits. Modern databases are very well optimized for their use cases, but there's many other possible points in the design space to…
Read the full comment
explore. If you want to really make efficient use of hardware, there are fundamental scaling problems with natural joins because of the combinatorial explosion that gives us WCO though. If you accept an inability to express triangular queries, you can get something that's embarrassingly parallel and scales really flipping well. If you want to stick to the full relational model, you might be interested in Differential Dataflow [2]. [0] https://arxiv.org/html/2510.12269v3 [1] https://arxiv.org/html/2601.17188v1 [2] https://github.com/TimelyDataflow/differential-dataflow
js8
Neutral mention · rule
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, formally? For years, people have been trying to formalize fuzzy reasoning but it looks like we don't care anymore. I feel like NNs (and transformers) are the OOP (object-oriented programming) of ML. Really popular, works pretty well in practice, but nobody understands the fundamentals; there is a feeling it is a made up new language to express things expressible before, but hard to pinpoint where exactly it helps.
mindcrime
Neutral mention · rule
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 Modern Approach[2] by Russell & Norvig. Papers? I don't necessarily plan those out way in advance, but one that I know I do plan to read is that new one on Tensor Logic[3] by Pedro Domingos. [1]: https://direct.mit.edu/books/monograph/5670/Parallel-Distrib... [2]: https://aima.cs.berkeley.edu/ [3]: https://arxiv.org/abs/2510.12269

Keep following the thread.

More in Statistics & probability

More from the same topics.