我们研究大型语言模型(LLMs)是否能直接在半正式文本蓝图上执行特征模型分析操作(AOs),即对特征层次和约束的简洁受限语言描述,从而在软件产品线规划阶段实现早期验证。使用12种最先进的LLM和16种标准AOs,我们将其输出与基于求解器的Oracle FLAMA进行比较。结果表明,经过推理优化的模型(如Grok 4 Fast Reasoning、Gemini 2.5 Pro)在所有评估的蓝图和操作上平均准确率为88-89%,接近求解器的正确性。我们识别出结构解析和约束推理中的系统性错误,并强调了精度与成本之间的权衡,这为模型选择提供了指导。这些发现将LLM定位为轻量级助手,用于早期变体验证。
英文摘要:
We study whether Large Language Models (LLMs) can perform feature model analysis operations (AOs) directly on semi-formal textual blueprints, i.e., concise constrained-language descriptions of feature hierarchies and constraints, enabling early validation in Software Product Line scoping. Using 12 state-of-the-art LLMs and 16 standard AOs, we compare their outputs against the solver-based oracle FLAMA. Results show that reasoning-optimized models (e.g., Grok 4 Fast Reasoning, Gemini 2.5 Pro) achieve 88-89% average accuracy across all evaluated blueprints and operations, approaching solver correctness. We identify systematic errors in structural parsing and constraint reasoning, and highlight accuracy-cost trade-offs that inform model selection. These findings position LLMs as lightweight assistants for early variability validation.
Testing learning-enabled cyber-physical systems with Large-Language Models: A Formal Approach
Macquarie University(麦考瑞大学);University of Texas at Austin(德克萨斯大学奥斯汀分校);Yale University(耶鲁大学);University of Wisconsin Madison(威斯康星大学麦迪逊分校);University of Southern California(南加州大学);University of Texas at San Antonio(德克萨斯大学圣安东尼奥分校);University of Pennsylvania(宾夕法尼亚大学)
Neuro-Symbolic Generation and Validation of Memory-Aware Formal Function Specifications
School of Computer Science, Shanghai Jiao Tong University(上海交通大学计算机科学学院);School of Artificial Intelligence, Shanghai Jiao Tong University(上海交通大学人工智能学院);Shanghai Innovation Institute(上海创新研究院);School of Computer Science and Engineering, University of Washington(华盛顿大学计算机科学与工程学院)
Modelling an Aircraft Landing System in Event-B (Full Report)
关键系统中的硬件或软件故障可能导致生命损失。在系统开发过程中,设计错误可能是引入故障的主要原因。形式化技术是验证关键系统正确性的一种替代方法,克服了传统验证技术如仿真和测试的局限性。日益增加的复杂性和故障率给航空电子系统的验证和确认领域带来了新的挑战。由于软件的可靠性无法量化,因此\textit{correct by construction}方法可以实现可靠的系统。精化在从抽象规范到具体系统的增量式构建大型系统中扮演着重要角色。本文是对某型飞机着陆系统的逐步形式化开发。正式的模型包括复杂的行为,时间行为和起落架系统的操作顺序。模型的形式化事件B建模语言,支持逐步细化。该案例研究被认为是专门用于验证系统行为特性的技术和工具的基准。该报告是为ABZ 2014案例研究发表的论文的完整版本。是