arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.01209cs.SEcs.FL
收藏

ClarifySTL: 一种通过需求澄清的交互式LLM代理框架用于STL转换

ClarifySTL: An Interactive LLM Agent Framework for STL Transformation through Requirements Clarification

School of Computer Science, Peking University(北京大学计算机学院);Institute of Software Chinese Academy of Sciences(中国科学院软件研究所);School of Computer Science, Wuhan University(武汉大学计算机学院);East China Normal University(华东师范大学)

Yue Fang, Zhi Jin, Jie An, Hongshen Chen, Xiaohong Chen, Naijun Zhan

AI总结:

本文提出ClarifySTL框架,通过交互式澄清需求中的模糊和歧义信息,提升STL转换的准确性与效率,实验表明其在多个基准测试中表现优异。

摘要:

信号时间逻辑(STL)是一种用于描述嵌入式系统的实时行为的形式语言。自动将自然语言需求转换为STL规范已引起广泛关注。最近利用大语言模型(LLM)的努力展示了出色的性能,但实践中的一些自然语言需求包含模糊或歧义信息,这仍然对LLM处理具有挑战性。为了解决这些挑战,我们提出ClarifySTL,一种交互式LLM代理框架,通过需求澄清增强STL转换。ClarifySTL首先检测需求中的模糊表达,指示未规范的信息。如果检测到模糊性,它会生成针对性的澄清查询以指导用户补充需求,直到提供所有必要细节。随后,如果ClarifySTL检测到歧义,它会制定聚焦的歧义澄清查询,并根据用户反馈更新需求,直到所有歧义得到解决。最后,经过澄清的需求通过LLM转换为STL规范。此交互框架确保生成的STL公式忠实于用户意图,同时减轻用户负担。我们评估ClarifySTL在代表性的DeepSTL和STL-DivEn基准以及我们新引入的AmbiEval基准上,后者专门评估代理在处理模糊和歧义时的性能,包括检测和查询生成。实验结果表明,ClarifySTL是有效的。

英文摘要:

Signal Temporal Logic (STL) is a formal language for specifying real-time behaviors of cyber-physical systems (CPS). Automatically transforming natural language requirements into STL specifications has received growing attention. Recent efforts leveraging large language models (LLMs) have demonstrated impressive performance, but some natural language requirements in practice contain vague or ambiguous information, which remains challenging for LLMs to handle. To address these challenges, we propose ClarifySTL, an interactive LLM-agent framework that enhances STL transformation through requirements clarification. ClarifySTL first detects vague expressions that indicate underspecified information in a requirement. If any vagueness is detected, it generates targeted clarification queries to guide users in supplementing the requirement until all necessary details are provided. Subsequently, if ClarifySTL detects ambiguities, it formulates focused ambiguity clarification queries and updates the requirements based on user feedback until all ambiguities are resolved. Finally, the requirements with vagueness and ambiguity clarified are transformed into STL specifications using LLMs. This interactive framework ensures that the resulting STL formulas faithfully capture user intent while reducing the burden on the user. We evaluate ClarifySTL on the representative benchmarks DeepSTL and STL-DivEn, as well as our newly introduced AmbiEval benchmark, which is specifically designed to assess the performance of the agents in handling vagueness and ambiguity, including both detection and query generation. The experimental results show that ClarifySTL is effective.

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

↑