arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2509.02491cs.LGcs.FLcs.LO
收藏

RNN对ω-正则语言的泛化能力

RNN Generalization to Omega-Regular Languages

Imperial College London, UK(伦敦帝国学院)

Charles Pert, Dalal Alrajeh, Alessandra Russo

AI总结:

本研究首次探究RNN对LTL导出的ω-正则语言的泛化能力,通过训练RNN复现Büchi自动机行为并测试分布外长序列,证实其在多数复杂任务上可实现高精度泛化,为神经符号验证提供了可行性支撑。

摘要:

Büchi自动机(Büchi automata, BAs)可识别由线性时序逻辑(linear temporal logic, LTL)等形式规约定义的ω-正则语言,广泛应用于反应式系统验证。但BAs在处理和操纵复杂系统行为时面临可扩展性挑战。随着神经网络被越来越多地用于解决模型检验等领域的这类可扩展性问题,研究其在训练数据之外的泛化能力变得十分必要。本研究首次探究循环神经网络(recurrent neural networks, RNNs)能否泛化到由LTL公式导出的ω-正则语言。我们在最终周期ω-词序列上训练RNN以复现目标BA的行为,并评估其对分布外序列的泛化效果。通过对对应不同结构复杂度(3个状态到100余个状态)的确定性自动机的LTL公式开展实验,我们发现:在长度为训练样本8倍的序列上进行评估时,RNN在目标ω-正则语言任务上取得了高精度,92.6%的任务实现了完美或近乎完美的泛化。这些结果证实了神经方法学习复杂ω-正则语言的可行性,表明其有潜力成为神经符号验证方法的组成部分。

英文摘要:

Büchi automata (BAs) recognize $ω$-regular languages defined by formal specifications like linear temporal logic (LTL) and are commonly used in the verification of reactive systems. However, BAs face scalability challenges when handling and manipulating complex system behaviors. As neural networks are increasingly used to address these scalability challenges in areas like model checking, investigating their ability to generalize beyond training data becomes necessary. This work presents the first study investigating whether recurrent neural networks (RNNs) can generalize to $ω$-regular languages derived from LTL formulas. We train RNNs on ultimately periodic $ω$-word sequences to replicate target BA behavior and evaluate how well they generalize to out-of-distribution sequences. Through experiments on LTL formulas corresponding to deterministic automata of varying structural complexity, from 3 to over 100 states, we show that RNNs achieve high accuracy on their target $ω$-regular languages when evaluated on sequences up to $8 \times$ longer than training examples, with $92.6\%$ of tasks achieving perfect or near-perfect generalization. These results establish the feasibility of neural approaches for learning complex $ω$-regular languages, suggesting their potential as components in neurosymbolic verification methods.

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

↑