Evaluating the Formal Reasoning Capabilities of Large Language Models through Chomsky Hierarchy

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Dong, Yihong, Xiao, Jianha, Jiang, Xue, Guo, Xuyuan, Fan, Zhiyuan, Qian, Jiaru, Zhang, Kechi, Li, Jia, Jin, Zhi, Li, Ge
Format: Preprint
Published: 2026
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866908965851365376
author Dong, Yihong
Xiao, Jianha
Jiang, Xue
Guo, Xuyuan
Fan, Zhiyuan
Qian, Jiaru
Zhang, Kechi
Li, Jia
Jin, Zhi
Li, Ge
author_facet Dong, Yihong
Xiao, Jianha
Jiang, Xue
Guo, Xuyuan
Fan, Zhiyuan
Qian, Jiaru
Zhang, Kechi
Li, Jia
Jin, Zhi
Li, Ge
contents The formal reasoning capabilities of LLMs are crucial for advancing automated software engineering. However, existing benchmarks for LLMs lack systematic evaluation based on computation and complexity, leaving a critical gap in understanding their formal reasoning capabilities. Therefore, it is still unknown whether SOTA LLMs can grasp the structured, hierarchical complexity of formal languages as defined by Computation Theory. To address this, we introduce ChomskyBench, a benchmark for systematically evaluating LLMs through the lens of Chomsky Hierarchy. Unlike prior work that uses vectorized classification for neural networks, ChomskyBench is the first to combine full Chomsky Hierarchy coverage, process-trace evaluation via natural language, and deterministic symbolic verifiability. ChomskyBench is composed of a comprehensive suite of language recognition and generation tasks designed to test capabilities at each level. Extensive experiments indicate a clear performance stratification that correlates with the hierarchy's levels of complexity. Our analysis reveals a direct relationship where increasing task difficulty substantially impacts both inference length and performance. Furthermore, we find that while larger models and advanced inference methods offer notable relative gains, they face severe efficiency barriers: achieving practical reliability would require prohibitive computational costs, revealing that current limitations stem from inefficiency rather than absolute capability bounds. A time complexity analysis further indicates that LLMs are significantly less efficient than traditional algorithmic programs for these formal tasks. These results delineate the practical limits of current LLMs, highlight the indispensability of traditional software tools, and provide insights to guide the development of future LLMs with more powerful formal reasoning capabilities.
format Preprint
id arxiv_https___arxiv_org_abs_2604_02709
institution arXiv
publishDate 2026
record_format arxiv
spellingShingle Evaluating the Formal Reasoning Capabilities of Large Language Models through Chomsky Hierarchy
Dong, Yihong
Xiao, Jianha
Jiang, Xue
Guo, Xuyuan
Fan, Zhiyuan
Qian, Jiaru
Zhang, Kechi
Li, Jia
Jin, Zhi
Li, Ge
Computation and Language
Artificial Intelligence
Machine Learning
Software Engineering
The formal reasoning capabilities of LLMs are crucial for advancing automated software engineering. However, existing benchmarks for LLMs lack systematic evaluation based on computation and complexity, leaving a critical gap in understanding their formal reasoning capabilities. Therefore, it is still unknown whether SOTA LLMs can grasp the structured, hierarchical complexity of formal languages as defined by Computation Theory. To address this, we introduce ChomskyBench, a benchmark for systematically evaluating LLMs through the lens of Chomsky Hierarchy. Unlike prior work that uses vectorized classification for neural networks, ChomskyBench is the first to combine full Chomsky Hierarchy coverage, process-trace evaluation via natural language, and deterministic symbolic verifiability. ChomskyBench is composed of a comprehensive suite of language recognition and generation tasks designed to test capabilities at each level. Extensive experiments indicate a clear performance stratification that correlates with the hierarchy's levels of complexity. Our analysis reveals a direct relationship where increasing task difficulty substantially impacts both inference length and performance. Furthermore, we find that while larger models and advanced inference methods offer notable relative gains, they face severe efficiency barriers: achieving practical reliability would require prohibitive computational costs, revealing that current limitations stem from inefficiency rather than absolute capability bounds. A time complexity analysis further indicates that LLMs are significantly less efficient than traditional algorithmic programs for these formal tasks. These results delineate the practical limits of current LLMs, highlight the indispensability of traditional software tools, and provide insights to guide the development of future LLMs with more powerful formal reasoning capabilities.
title Evaluating the Formal Reasoning Capabilities of Large Language Models through Chomsky Hierarchy
topic Computation and Language
Artificial Intelligence
Machine Learning
Software Engineering
url https://arxiv.org/abs/2604.02709