arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.22874cs.AIcs.LO
收藏

NeuroNL2LTL:用于线性时序逻辑自然语言翻译的神经符号框架

NeuroNL2LTL: A Neurosymbolic Framework for Natural Language Translation of Linear Temporal Logic

Baylor University(贝勒大学)

Paapa Kwesi Quansah, Ernest Bonnah

AI总结:

提出NeuroNL2LTL神经符号框架,通过验证器在环训练和最小编辑修复机制,实现自然语言到线性时序逻辑的高可靠性翻译,在20万+需求上达到86%的可满足性输出。

摘要:

有效地在自然语言(NL)和形式逻辑(如线性时序逻辑LTL)之间进行转换需要专业知识,这限制了形式验证在安全关键开发中的覆盖范围。基于模板的方法牺牲表达能力换取可靠性;神经方法实现了流畅性但无法提供正确性保证。我们提出了NeuroNL2LTL,一种将学习翻译与形式验证统一起来的神经符号架构。NeuroNL2LTL通过一种中间表示进行翻译,该表示到LTL的映射在结构上是保持的。生成的规约经过可满足性和非平凡性检查;一个最小编辑修复机制在近似的错误输出到达下游工具之前对其进行纠正。核心创新是验证器在环训练:验证结果作为强化学习的奖励信号,使神经组件直接针对形式正确性进行优化。在涵盖航空航天、机器人、自动驾驶汽车及其他十个领域的20万+需求上,NeuroNL2LTL实现了与参考规约28%的语义等价性,同时确保86%的输出被验证为可满足。该系统还能从LTL生成上下文相关的解释,使领域专家无需专门培训即可验证规约。这项工作表明,形式验证可以作为神经规约系统的训练目标和运行时过滤器,使我们能够构建可靠性源于逻辑保证而非统计置信度的基于神经的工具。

英文摘要:

Effectively translating between natural language (NL) and formal logics like Linear Temporal Logic (LTL) requires expertise that limits formal verification's reach in safety-critical development. Template-based approaches sacrifice expressiveness for reliability; neural methods achieve fluency but provide no correctness guarantees. We present NeuroNL2LTL, a neurosymbolic architecture unifying learned translation with formal verification. NeuroNL2LTL routes translation through an intermediate representation whose mapping to LTL is structure-preserving by construction. Generated specifications undergo satisfiability and non-triviality checking; a minimal-edit repair mechanism corrects near-miss outputs before they reach downstream tools. The central innovation is verifier-in-the-loop training: verification outcomes serve as reward signals for reinforcement learning, producing neural components that optimize directly for formal correctness. On 200,000+ requirements spanning aerospace, robotics, autonomous vehicles, and ten additional domains, NeuroNL2LTL achieves 28\% semantic equivalence with reference specifications while ensuring 86\% of outputs are verified satisfiable. The system also generates contextually grounded explanations from LTL, enabling domain experts to validate specifications without specialized training. This work demonstrates that formal verification can function as both training objective and runtime filter for neural specification systems, allowing us to build neural-based tools whose reliability derives from logical guarantees rather than statistical confidence.

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

↑