arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2510.09227cs.AIcs.FL
收藏

RegexPSPACE:评估大语言模型在 PSPACE 完全正则表达式问题上推理能力的基准

RegexPSPACE: A Benchmark for Evaluating LLM Reasoning on PSPACE-complete Regex Problems

Department of Computer Science Yonsei University(计算机科学系延世大学)

Hyundong Jin, Joonghyuk Hahn, Yo-Sub Han

AI总结:

本文提出了 RegexPSPACE 基准,基于两个 PSPACE 完全的正则表达式问题评估大语言模型及大型推理模型的空间计算极限,并通过对 11 个模型的广泛评估揭示了其常见推理失败模式。

摘要:

大语言模型(LLMs)在自然语言处理(NLP)、数学推理和编程方面表现出色,近期的大型推理模型(LRMs)进一步强调了显式推理。然而,它们的计算极限,特别是受限于有限上下文窗口的空间复杂度,仍不明确。尽管近期工作通常关注 NP 复杂度类内的问题,我们通过引入基于两个 PSPACE 完全正则表达式(regex)问题的新基准来突破这一边界:等价判定(RegexEQ)和最小化(RegexMin)。PSPACE 完全问题可作为评估计算能力的更严格标准,因为其求解需要海量的搜索空间探索。我们进行了双指数级的空间探索,构建了包含超过一百万个正则表达式实例的标注数据集,并通过可靠的过滤过程构建了该基准。我们对不同规模的 6 个 LLMs 和 5 个 LRMs 进行了广泛评估,揭示了冗长和重复等常见失败模式。凭借其明确的结构和定量评估指标,这项工作对 LLMs 和 LRMs 的空间计算局限性进行了首次实证研究,为评估其高级推理能力提供了新框架。我们的代码可在 https://github.com/hyundong98/RegexPSPACE 获取。

英文摘要:

Large language models (LLMs) show strong performance across natural language processing (NLP), mathematical reasoning, and programming, and recent large reasoning models (LRMs) further emphasize explicit reasoning. Yet their computational limits, particularly spatial complexity constrained by finite context windows, remain poorly understood. While recent works often focus on problems within the NP complexity class, we push the boundary by introducing a novel benchmark grounded in two PSPACE-complete regular expression (regex) problems: equivalence decision (RegexEQ) and minimization (RegexMin). PSPACE-complete problems serve as a more rigorous standard for assessing computational capacity, as their solutions require massive search space exploration. We perform a double-exponential space exploration to construct a labeled dataset of over a million regex instances with a sound filtering process to build the benchmark. We conduct extensive evaluations on 6 LLMs and 5 LRMs of varying scales, revealing common failure patterns such as verbosity and repetition. With its well-defined structure and quantitative evaluation metrics, this work presents the first empirical investigation into the spatial computational limitations of LLMs and LRMs, offering a new framework for evaluating their advanced reasoning capabilities. Our code is available at https://github.com/hyundong98/RegexPSPACE .

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑