验证器引导修复 LLM 生成的 TLA+ 规约:面向 NASA DDMR-26 的技能中介智能体循环
Verifier-Guided Repair of LLM-Generated TLA+ Specifications: A Skill-Mediated Agentic Loop for NASA DDMR-26
AI 导读
一项试点研究评估了以 TLC 验证为门控的 LLM 生成 TLA+ 规约修复流程:对 NASA 需求 DDMR-26 用 GPT-4o 进行 100 组配对试验,TLC 可执行的规约从初始 20/100 提升到最终 88/100;按 TypeOK 和 DDMR26 属性复检后,通过率从 19/100 提升到 75/100。
正文 · 原文
Abstract:Large language models (LLMs) can draft formal specifications from natural-language requirements, but a draft is useful only if a model checker can execute it and its encoded properties hold. We evaluate a bounded, verifier-guided workflow for LLM-generated TLA+ specifications: TLC verification gates repair; failing specifications are regenerated once using TLC diagnostics and a matching reusable repair skill; passing specifications bypass repair. On 100 paired trials for NASA requirement DDMR-26 with GPT-4o, TLC accepts and explores 20/100 initial and 88/100 final specifications (executable pass; 68 of 80 failing trials rescued). The pipeline's generated TLC configurations omitted the encoded invariants in 87 of the 88 passing runs; re-checking all passing specifications against TypeOK and DDMR26 gives 19/100 initial and 75/100 final passes (property pass; 56 of 80 rescued). Repairability depends on failure class: unknown-operator failures were rescued in 40/45 trials and missing next-state assignments in 27/27 (21/27 under property pass), whereas IF/THEN/ELSE parse errors (0/4) and Boolean-evaluation errors (0/3) were never rescued. The study is a pilot: one requirement, one LLM, one repair attempt, a persistent order-dependent skill registry, and no no-skill control, so it does not isolate the contribution of skills or of human-approved skill synthesis.
| Comments: | 7 pages, 2 figures, 4 tables. Accepted manuscript of the paper presented at the 2026 IEEE International Conference on Emerging Trends in Engineering and Computing (ETECOM), Paris, France; to appear in IEEE Xplore. Code: this https URL artifacts: this https URL |
| Subjects: | Hardware Architecture (cs.AR); Artificial Intelligence (cs.AI); Logic in Computer Science (cs.LO) |
| ACM classes: | D.2.4; F.3.1; I.2.2 |
| Cite as: | arXiv:2612.04376 [cs.AR] |
| (or arXiv:2612.04376v1 [cs.AR] for this version) | |
| https://doi.org/10.48550/arXiv.2612.04376 arXiv-issued DOI via DataCite |
Submission history
From: Tianxiang Lu [view email]
[v1]
Wed, 25 Nov 2026 15:52:14 UTC (817 KB)
来源:arXiv cs.AI · arxiv.org