用真实复杂系统测试AI生成形式化模型的能力
SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systems
- 构建基于TLA+的形式化建模基准,评估AI对复杂系统的抽象能力
- 涵盖11个真实系统组件,验证生成模型在语法、运行和不变性上的正确性
- 为大模型在系统验证领域的应用提供可量化的评估框架
形式化模型对于规范大型复杂计算机系统并验证其正确性至关重要,但编写和维护成本极高。近期生成式AI在生成特定规格说明方面展现出潜力,但现有研究多集中于小规模代码,难以应对真实系统所需的行为抽象。本文提出SysMoBench,一个评估AI对大型复杂系统进行形式化建模能力的基准。聚焦并发与分布式系统,涵盖操作系统与云基础设施等关键计算基础设施。采用TLA+作为主流规范语言,可扩展至其他语言。通过自动化指标(如语法正确性、运行正确性、与系统代码的一致性、不变性正确性)解决评估难题。当前包含11个多样化系统组件:Etcd与Redis中的Raft实现、ZooKeeper的领导者选举、Asterinas OS中的自旋锁、互斥锁与环形缓冲区等,后续将持续扩充。该基准使我们得以理解当前LLMs与智能体在该任务中的能力与局限,为该领域工具奠定坚实基础,并开启有前景的新研究方向。
原文摘要 · Abstract (English)
Formal models are essential to specifying large, complex computer systems and verifying their correctness, but are notoriously expensive to write and maintain. Recent advances in generative AI show promise in generating certain forms of specifications. However, existing work mostly targets small code, not complete systems. It is unclear whether AI can deal with realistic system artifacts, as this requires abstracting their complex behavioral properties into formal models. We present SysMoBench, a benchmark that evaluates AI's ability to formally model large, complex systems. We focus on concurrent and distributed systems, which are keystones of today's critical computing infrastructures, encompassing operating systems and cloud infrastructure. We use TLA+, the de facto specification language for concurrent and distributed systems, though the benchmark can be extended to other specification languages. We address the primary challenge of evaluating AI-generated models by automating metrics like syntactic and runtime correctness, conformance to system code, and invariant correctness. SysMoBench currently includes eleven diverse system artifacts: the Raft implementation of Etcd and Redis, the leader election of ZooKeeper, the Spinlock, Mutex, and Ringbuffer in Asterinas OS, etc., with more being added. SysMoBench enables us to understand the capabilities and limitations of today's LLMs and agents, putting tools in this area on a firm footing and opening up promising new research directions.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。