Neural Networks as Universal Finite-State Machines: A Constructive Deterministic Finite Automaton Theory
Sahil Rajesh Dhayalkar

TL;DR
This paper establishes a theoretical and empirical framework showing that feedforward neural networks can exactly simulate deterministic finite automata, bridging automata theory and neural network expressivity.
Contribution
It provides constructive proofs and explicit neural architectures demonstrating how neural networks can serve as universal finite-state machines, with formal characterizations of their capabilities.
Findings
ReLU and threshold networks can simulate DFAs exactly
DFA transitions are linearly separable in neural representations
Fixed-depth networks cannot recognize non-regular languages
Abstract
We present a complete theoretical and empirical framework establishing feedforward neural networks as universal finite-state machines (N-FSMs). Our results prove that finite-depth ReLU and threshold networks can exactly simulate deterministic finite automata (DFAs) by unrolling state transitions into depth-wise neural layers, with formal characterizations of required depth, width, and state compression. We demonstrate that DFA transitions are linearly separable, binary threshold activations allow exponential compression, and Myhill-Nerode equivalence classes can be embedded into continuous latent spaces while preserving separability. We also formalize the expressivity boundary: fixed-depth feedforward networks cannot recognize non-regular languages requiring unbounded memory. Unlike prior heuristic or probing-based studies, we provide constructive proofs and design explicit DFA-unrolled…
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.
Taxonomy
TopicsMachine Learning and Algorithms · Ferroelectric and Negative Capacitance Devices · Topic Modeling
MethodsDirect Feedback Alignment · *Communicated@Fast*How Do I Communicate to Expedia?
