Are Agents Just Automata? On the Formal Equivalence Between Agentic AI and the Chomsky Hierarchy
Roham Koohestani, Ziyou Li, Anton Podkopaev, Maliheh Izadi
TL;DR
This work addresses the lack of a formal basis for classifying agentic AI by proposing a memory-centric mapping to the Chomsky hierarchy. It defines the language of an agent, $L(A)$, as the perception sequences that drive the agent to accepting configurations, and shows formal equivalences: Regular Agents with Finite Automata, Context-Free Agents with Pushdown Automata, Context-Sensitive Agents with Linear-Bounded Automata, and TC Agents with Turing Machines, enabling principled right-sizing and formal verification. The paper also extends the framework to multi-agent systems, probabilistic models, and outlines a practical research roadmap for static analysis, grammars, and hybrid architectures that combine verifiable cores with larger, less predictable components. The significance lies in providing a rigorous, memory-based lens to balance computational power, efficiency, and safety in agentic systems, with concrete implications for cost, latency, and governance in safety-critical deployments.
Abstract
This paper establishes a formal equivalence between the architectural classes of modern agentic AI systems and the abstract machines of the Chomsky hierarchy. We posit that the memory architecture of an AI agent is the definitive feature determining its computational power and that it directly maps it to a corresponding class of automaton. Specifically, we demonstrate that simple reflex agents are equivalent to Finite Automata, hierarchical task-decomposition agents are equivalent to Pushdown Automata, and agents employing readable/writable memory for reflection are equivalent to TMs. This Automata-Agent Framework provides a principled methodology for right-sizing agent architectures to optimize computational efficiency and cost. More critically, it creates a direct pathway to formal verification, enables the application of mature techniques from automata theory to guarantee agent safety and predictability. By classifying agents, we can formally delineate the boundary between verifiable systems and those whose behavior is fundamentally undecidable. We address the inherent probabilistic nature of LLM-based agents by extending the framework to probabilistic automata that allow quantitative risk analysis. The paper concludes by outlining an agenda for developing static analysis tools and grammars for agentic frameworks.
