arXiv · 2611.38168
Exact Solutions and Topological Phase Transitions to Boolean Logic in Minimal RNNs
Abstract
The mechanistic interpretability of Recurrent Neural Networks (RNNs) executing exact algorithmic tasks remains challenging, as continuous latent spaces typically entangle logic within approximate, non-convex manifolds. We study continuous binary addition with carry using a minimal RNN with hyperbolic tangent activation. Introducing a saturated penalty---the repulsive dead-zone loss---on datasets of 256, 64, and even 16 additions, we show that the optimization landscape abruptly undergoes a topological phase transition to Boolean logic. Rather than stagnating in local minima, this transition quantizes the dynamics into compact, infinitely stable logical regions separated by a finite gap and mapped into their interiors, guaranteeing zero error over arbitrary sequence lengths. We prove exact invariance and zero-error execution in latent dimensions $d=2,3,4$. Crucially, the domain of structurally stable exact solutions includes nonempty open subsets in parameter space encompassing a dense set of dyadic rationals, ensuring that an appropriately optimized RNN inevitably converges into error-absorbing logical regions with infinite zero-error stability without requiring infinite precision. We further demonstrate hierarchical composability by using the exact neural adder as an immutable Arithmetic Logic Unit directed by a lightweight, memoryless neural controller to orchestrate sequential shift-and-add multiplication with absolute zero error over arbitrary lengths. Decomposing complex tasks into a hierarchy of topologically protected, statistically certain micro-tasks thus enables continuous dynamical systems to construct exact logical scaffolding. Serving as a proof of concept for the verticalization of AI via structurally stable neural modules, this result provides a robust path toward a "Super AI'' capable of infinite-horizon reasoning.
Explore related subjects
Keep this discovery
Explore connections, maps & timelines
Damiano Anselmi. 2026-11-27. Exact Solutions and Topological Phase Transitions to Boolean Logic in Minimal RNNs. https://arxiv.science/abs/2611.38168
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 arXiv Science by Indiciae: BibTeX · RIS.