arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2603.28426cs.CLcs.SC
收藏

结构模糊性感知的自然语言到信号时间逻辑的翻译

Structural-Ambiguity-Aware Translation from Natural Language to Signal Temporal Logic

Graduate School of Engineering, The University of Osaka(大阪大学工学研究科)

Kosei Fushimi, Kazunobu Serizawa, Junya Ikemoto, Kazumune Hashimoto

AI总结:

本文提出一种保留结构模糊性的方法,将自然语言任务描述转换为信号时间逻辑候选公式,通过三阶段流程保留多个可能的语法分析,生成带有可信度评分的STL候选公式。

摘要:

信号时间逻辑(STL)广泛用于指定具有时间约束的安全关键任务,但非专家用户直接编写STL公式困难。自然语言(NL)提供便捷接口,但其固有的结构模糊性使得一对一转换到STL不可靠。本文提出一种保留模糊性的方法,将NL任务描述转换为STL候选公式。关键思想是保留多个可能的语法分析,而非在解析阶段强制单一解释。为此,我们开发基于组合范畴语法(CCG)的三阶段流程:保留模糊性的n-best解析、面向STL的模板基于语义组合、以及通过得分聚合的规范化。所提方法输出一个去重的STL候选集合,带有可信度评分,从而显式表示模糊指令的多个可能形式化解释。与现有单最佳NL到逻辑转换方法不同,所提方法设计用于保留附着和作用域模糊性。案例研究显示,该方法为真正模糊的输入生成多个STL候选公式,同时将不模糊或等价的推导合并为单一STL公式。

英文摘要:

Signal Temporal Logic (STL) is widely used to specify timed and safety-critical tasks for cyber-physical systems, but writing STL formulas directly is difficult for non-expert users. Natural language (NL) provides a convenient interface, yet its inherent structural ambiguity makes one-to-one translation into STL unreliable. In this paper, we propose an \textit{ambiguity-preserving} method for translating NL task descriptions into STL candidate formulas. The key idea is to retain multiple plausible syntactic analyses instead of forcing a single interpretation at the parsing stage. To this end, we develop a three-stage pipeline based on Combinatory Categorial Grammar (CCG): ambiguity-preserving $n$-best parsing, STL-oriented template-based semantic composition, and canonicalization with score aggregation. The proposed method outputs a deduplicated set of STL candidates with plausibility scores, thereby explicitly representing multiple possible formal interpretations of an ambiguous instruction. In contrast to existing one-best NL-to-logic translation methods, the proposed approach is designed to preserve attachment and scope ambiguity. Case studies on representative task descriptions demonstrate that the method generates multiple STL candidates for genuinely ambiguous inputs while collapsing unambiguous or canonically equivalent derivations to a single STL formula.

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

↑