通过大语言模型将自然语言翻译为策略时序规范
Translating Natural Language to Strategic Temporal Specifications via LLMs
AI总结:
提出利用大语言模型将自然语言描述的策略需求翻译为ATL/ATL*公式,构建专家验证数据集,通过领域内微调小模型达到与强少样本专有API基线相当的语义准确性(0.84 vs 0.86),并集成到模型检查器中支持非专家用户。
摘要:
系统需求的严格形式化是多智能体系统(MAS)验证的基本前提。然而,编写正确的形式化规范众所周知是一个容易出错、耗时且需要专业知识密集的任务。这一困难在MAS中更加突出,因为需求必须捕捉策略能力和时序目标。目前,尚无成熟的方法从自然语言推导出MAS规范。我们提出了一个框架,利用大语言模型(LLMs)将策略需求的自然语言描述翻译为格式良好的ATL/ATL*公式。由于没有可用的数据集支持NL到ATL/ATL*翻译任务的监督学习,我们创建并整理了一个新颖的专家验证数据集,用于训练和评估微调模型。在保留测试集上,根据与专家注释最一致的LLM评判者的评估,小规模开放权重模型(3-7B参数)的领域内微调匹配了强少样本专有API基线。我们最佳微调系统达到0.84的语义准确性,在统计上与最强少样本专有基线的0.86相当,同时保持需求在本地。我们进一步发现,评判者可靠性与生成器强度成反比。开放权重的Llama-3.3-70B最接近人类判断,而最强的专有模型是最不可靠的评判者,过度拒绝参考的忠实释义。为了评估生成规范的实际适用性,我们将我们的工具嵌入到现有的策略逻辑模型检查器中,使非专家用户能够用自然语言指定策略属性。
英文摘要:
A rigorous formalization of system requirements is a fundamental prerequisite for the verification of Multi-Agent Systems (MAS). However, writing correct formal specifications is well known as an error-prone, time-consuming, and expertise-intensive task. This difficulty is further accentuated in MAS, where requirements must capture strategic abilities and temporal objectives. At present, there is no established methodology for deriving MAS specifications from natural language. We present a framework for translating Natural Language descriptions of strategic requirements into well-formed ATL/ATL* formulas using Large Language Models (LLMs). Since no available dataset supports supervised learning for the NL-to-ATL/ATL* translation task, we create and curate a novel expert-validated dataset, employed for training and evaluating fine-tuned models. On a held-out test set, evaluated under the LLM judge that best agrees with expert annotations, in-domain fine-tuning of small open-weight models (3 - 7B parameters) matches strong few-shot proprietary API baselines. Our best fine-tuned system reaches 0.84 semantic accuracy, statistically on par with 0.86 for the strongest few-shot proprietary baseline, while keeping requirements on-premises. We further find that judge reliability is inverse to generator strength. The open-weight Llama-3.3-70B tracks human verdicts most closely, whereas the strongest proprietary models are the least reliable judges, over-rejecting faithful paraphrases of the reference. To assess the practical applicability of the generated specifications, we embed our tool to an existing strategic logics model checker, enabling non-expert users to specify strategic properties in natural language.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。