From Language Specifications to Executable Turing Machines: Evaluating LLMs as Computational Machine Designers

Shahriyar Zaman Ridoy, S. M. Muhtasimul Hasan, Azmine Toushik Wasi, Kinga Tshering, Koushik Ahamed Tonmoy, Md Mosaddek Khan


Abstract
Recognizing a formal language does not imply the ability to construct the computation that decides it. We operationalize this distinction as an executable benchmark for language-model reasoning: given a formal-language specification, an LLM must synthesize a deterministic or nondeterministic Turing machine that decides the language. We introduce TMEval, a benchmark of 253 language specifications across 7 structural categories spanning context-free and non-context-free phenomena. Each language includes 600 oracle-labeled membership tests, and every output is evaluated as an executable artifact rather than a textual response. Our pipeline enforces a strict output contract, validates machine construction, executes each buildable machine, and assigns one of four outcomes: static_fail, build_fail, semantic_mismatch, or exact_pass. Across eight LLMs, 2,024 model–language candidates, and up to 1,214,400 behavioral evaluations, only 11.12% exactly pass all tests. More than half fail before execution, over one-third implement the wrong language, and 75 languages remain unsolved by all systems. Failure depends less on the context-free/non-context-free boundary than on the operational structure required to realize the specification. TMEval reveals a substantial gap between formal-language recognition and machine-checked symbolic construction. TMEval is available at https://turing-machineeval.github.io/.
Anthology ID:
2026.findings-emnlp.2424
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:
52031–52052
Language:
URL:
https://aclanthology.org/2026.findings-emnlp.2424/
DOI:
Bibkey:
Cite (ACL):
Shahriyar Zaman Ridoy, S. M. Muhtasimul Hasan, Azmine Toushik Wasi, Kinga Tshering, Koushik Ahamed Tonmoy, and Md Mosaddek Khan. 2026. From Language Specifications to Executable Turing Machines: Evaluating LLMs as Computational Machine Designers. In Findings of the Association for Computational Linguistics: EMNLP 2026, pages 52031–52052, Budapest, Hungary. Association for Computational Linguistics.
Cite (Informal):
From Language Specifications to Executable Turing Machines: Evaluating LLMs as Computational Machine Designers (Ridoy et al., Findings 2026)
Copy Citation:
PDF:
https://aclanthology.org/2026.findings-emnlp.2424.pdf