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

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autor principal: Dhayalkar, Sahil Rajesh
Formato: Preprint
Publicado: 2025
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866915311155937280
author Dhayalkar, Sahil Rajesh
author_facet Dhayalkar, Sahil Rajesh
contents 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 neural architectures that empirically validate every claim. Our results bridge deep learning, automata theory, and neural-symbolic computation, offering a rigorous blueprint for how discrete symbolic processes can be realized in continuous neural systems.
format Preprint
id arxiv_https___arxiv_org_abs_2505_11694
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Neural Networks as Universal Finite-State Machines: A Constructive Deterministic Finite Automaton Theory
Dhayalkar, Sahil Rajesh
Machine Learning
Artificial Intelligence
Formal Languages and Automata Theory
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 neural architectures that empirically validate every claim. Our results bridge deep learning, automata theory, and neural-symbolic computation, offering a rigorous blueprint for how discrete symbolic processes can be realized in continuous neural systems.
title Neural Networks as Universal Finite-State Machines: A Constructive Deterministic Finite Automaton Theory
topic Machine Learning
Artificial Intelligence
Formal Languages and Automata Theory
url https://arxiv.org/abs/2505.11694