Can LLMs Design Computational Machines? Pushdown Automaton Synthesis as a Test of Structured Computational Reasoning

Syed Mumtahin Mahmud, Nazira Jesmin Lina, Shahriyar Zaman Ridoy, S. M. Muhtasimul Hasan, Md Mosaddek Khan


Abstract
Artificial intelligence has long been evaluated by its ability to perform computation and structured reasoning. While recent large language models (LLMs) demonstrate strong capabilities in language generation, code synthesis, and structured problem solving, it remains unclear whether they can construct formal computational mechanisms from high-level specifications. In this work, we investigate whether modern LLMs can synthesize pushdown automata (PDAs) from language descriptions expressed in natural language or mathematical form. Because PDA construction requires explicit reasoning about states, transitions, and stack-based memory, it provides a controlled test of structured symbolic reasoning. We introduce the task of pushdown automaton synthesis and develop an automated evaluation framework that verifies generated PDAs through structural buildability checks and execution-based validation. Using a benchmark of context-free languages with labeled test cases, we evaluate contemporary LLMs and analyze their ability to construct and execute formal computational machines. Our results show that current state-of-the-art LLMs struggle to reliably construct executable PDAs, indicating that synthesizing computational mechanisms requiring coordinated reasoning over state transitions and stack-based memory manipulation remains challenging for present-day models. All code and data are available at: https://github.com/Dip-to/Pushdown-Automaton-Synthesis-Dataset.git
Anthology ID:
2026.findings-emnlp.2058
Volume:
Findings of the Association for Computational Linguistics: EMNLP 2026
Month:
October
Year:
2026
Address:
Budapest, Hungary
Editors:
Hung-Yi Lee, Sunipa Dev, Jessy Li, Desmond Elliott
Venue:
Findings
SIG:
SIGDAT
Publisher:
Association for Computational Linguistics
Note:
Pages:
43820–43845
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.2058/
DOI:
Bibkey:
Cite (ACL):
Syed Mumtahin Mahmud, Nazira Jesmin Lina, Shahriyar Zaman Ridoy, S. M. Muhtasimul Hasan, and Md Mosaddek Khan. 2026. Can LLMs Design Computational Machines? Pushdown Automaton Synthesis as a Test of Structured Computational Reasoning. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 43820–43845, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
Can LLMs Design Computational Machines? Pushdown Automaton Synthesis as a Test of Structured Computational Reasoning (Mahmud et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.2058.pdf