Sutra: Tensor-Op RNNs as a Compilation Target for Vector Symbolic Architectures
Emma Leonhart

TL;DR
Sutra is a functional programming language that compiles to tensor operations, enabling neural networks to perform symbolic logic and train through autograd with validated accuracy across multiple modalities.
Contribution
It introduces a compiler that reduces complex logic programs to tensor-op graphs, bridging symbolic logic and neural network training within a unified framework.
Findings
Validated cross-modal tensor operations with 100% accuracy on multiple embeddings.
Demonstrated backpropagation through the compiled tensor graph for training.
Produced a trainable logic program that is also recompilable and interpretable.
Abstract
Sutra is a typed, purely functional programming language whose compiled forward pass is a PyTorch neural network. The compiler beta-reduces the whole program -- primitives, control flow, string I/O -- to one fused tensor-op graph over a frozen embedding substrate. Rotation binding, unbind, bundle, polynomial Kleene three-valued logic, and tail-recursive loops all lower to tensor operations; the Kleene connectives are Lagrange-interpolated polynomials exact on the {-1, 0, +1} truth grid. Validation is one fact tested two ways. (1) The same program runs on four frozen embeddings spanning two modalities -- three text encoders (nomic-embed-text, all-minilm, mxbai-embed-large) and one protein language model (ESM-2) -- and decodes bundles at 100% accuracy through width k=8 on every substrate, where the textbook Hadamard product has already collapsed (2.5% on mxbai-embed-large, 7.5% on…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
