SysMoBench: Evaluating AI on Formally Modeling Complex Real-World Systems
Qian Cheng, Ruize Tang, Emilie Ma, Finn Hackett, Peiyang He, Yiming Su, Ivan Beschastnikh, Yu Huang, Xiaoxing Ma, Tianyin Xu
TL;DR
SysMoBench tackles the challenge of evaluating AI-generated formal models for large, real-world distributed systems by adopting the TLA+ language and an automated metric pipeline. It defines four core metrics—syntax correctness, runtime correctness, conformance, and invariant correctness—and demonstrates an end-to-end workflow from task specification to automated checks. Results on Spinlock and Etcd Raft reveal that while current LLMs can model small artifacts, large, protocol-rich systems remain difficult, though code-translation approaches can improve coverage and correctness. The benchmark provides a foundation for advancing AI-assisted formal modeling, with implications for maintaining correct, scalable system specifications in production environments.
Abstract
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 nine diverse system artifacts: the Raft implementation of Etcd and Redis, the Spinlock and Mutex in Asterinas OS, etc.; more artifacts are being actively 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.
