arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.05728cs.LOcs.AIcs.SE
收藏

LTLGuard:利用紧凑语言模型和轻量符号推理形式化LTL规范

LTLGuard: Formalizing LTL Specifications with Compact Language Models and Lightweight Symbolic Reasoning

AIT Austrian Institute of Technology(奥地利技术研究所);Aristotle University of Thessaloniki(希腊塞萨洛尼基亚里士多德大学);Northeatern University(东北大学)

Medina Andresel, Cristinel Mateis, Dejan Nickovic, Spyridon Kounoupidis, Panagiotis Katsaros, Stavros Tripakis

AI总结:

LTLGuard通过结合紧凑语言模型与轻量符号推理,有效生成无冲突的LTL规范,提升形式化验证的效率和准确性。

摘要:

将非正式需求转化为形式化规范具有挑战性,因为自然语言(NL)存在歧义性和变异性。当依赖于紧凑型(小中型)语言模型时,这种挑战尤为突出,因为这些模型可能缺乏对时序逻辑的稳健知识,因此难以生成语法正确且一致的形式化规范。在本工作中,我们关注如何使资源高效的开放权重模型(4B-14B参数)能够从非正式需求中生成正确的线性时序逻辑(LTL)规范。我们提出了LTLGuard,一个模块化的工具链,结合了约束生成与形式一致性检查,以从非正式输入中生成无冲突的LTL规范。我们的方法整合了模型语言的生成能力与轻量自动推理工具,以迭代地细化候选规范,理解冲突的来源,从而帮助消除不一致。我们展示了我们方法的可用性和有效性,并对所得到的框架进行了定量评估。

英文摘要:

Translating informal requirements into formal specifications is challenging due to the ambiguity and variability of natural language (NL). This challenge is particularly pronounced when relying on compact (small and medium) language models, which may lack robust knowledge of temporal logic and thus struggle to produce syntactically valid and consistent formal specifications. In this work, we focus on enabling resource-efficient open-weight models (4B--14B parameters) to generate correct linear temporal logic (LTL) specifications from informal requirements. We present LTLGuard, a modular toolchain that combines constrained generation with formal consistency checking to generate conflict-free LTL specifications from informal input. Our method integrates the generative capabilities of model languages with lightweight automated reasoning tools to iteratively refine candidate specifications, understand the origin of the conflicts and thus help in eliminating inconsistencies. We demonstrate the usability and the effectiveness of our approach and perform quantitative evaluation of the resulting framework.

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

↑