通过数据与控制的显式分离引导大语言模型生成时序逻辑
Guiding LLM Temporal Logic Generation with Explicit Separation of Data and Control
AI总结:
本文研究在反应式程序综合中通过显式分离数据与控制来引导大语言模型生成时序逻辑规范,提出基准集并验证该方法能有效改善规范生成质量。
摘要:
时序逻辑是广泛用于反应式系统综合与验证的强大工具。大语言模型(LLMs)的近期进展有望使编写此类规范的过程更加易于使用。然而,除最专业的用户外,编写时序逻辑规范对所有人而言仍然具有挑战性。在使用LLMs进行时序逻辑规范工程时,一个关键问题是理解何种引导对LLM和用户最有帮助,以便更容易地生成规范。我们特别关注反应式程序综合问题,探索了向LLM提供关于控制与数据分离的引导所产生的影响——明确告知LLM哪些功能与规范相关,并将其余功能视为一系列预定义函数和谓词的实现细节。我们提出了一个基准集,并发现这种关注点分离能够改善规范生成。我们的基准提供了一个测试集,可用于验证未来在LLM生成时序逻辑规范方面的工作。
英文摘要:
Temporal logics are powerful tools that are widely used for the synthesis and verification of reactive systems. The recent progress on Large Language Models (LLMs) has the potential to make the process of writing such specifications more accessible. However, writing specifications in temporal logics remains challenging for all but the most expert users. A key question in using LLMs for temporal logic specification engineering is to understand what kind of guidance is most helpful to the LLM and the users to easily produce specifications. Looking specifically at the problem of reactive program synthesis, we explore the impact of providing an LLM with guidance on the separation of control and data--making explicit for the LLM what functionality is relevant for the specification, and treating the remaining functionality as an implementation detail for a series of pre-defined functions and predicates. We present a benchmark set and find that this separation of concerns improves specification generation. Our benchmark provides a test set against which to verify future work in LLM generation of temporal logic specifications.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。