{"slug": "specula-scaling-formal-specs-for-autonomous-model-checking-of-system-code", "title": "Specula: Scaling formal specs for autonomous model checking of system code", "summary": "Specula, a push-button agentic system that uses LLM-based coding agents to autonomously generate TLA+ formal specifications for system code, has found 249 bugs across 48 open-source system projects, including many deep bugs difficult to detect with existing approaches. The system, maintained by several companies, eliminates the traditional human-centric barrier to applying formal methods by iteratively improving specification quality through self-evolving loops that counter reward hacking and hallucinations.", "body_md": "# Computer Science > Software Engineering\n\n[Submitted on 28 Jul 2026]\n\n# Title:Specula: Scaling formal specifications for autonomous model checking of system code\n\n[View PDF](/pdf/2607.25333)\n\n[HTML (experimental)](https://arxiv.org/html/2607.25333v1)\n\nAbstract:Specula is a push-button agentic system that generates high-quality formal specifications for large, complex system code and uses the specifications for highly effective model checking and bug finding. Specula employs large language model (LLM) based coding agents to autonomously develop TLA+ specifications, including invariants that describe correctness properties of the target system and formal models that describe the system implementation with the right level of abstractions. Specula is fully autonomous and thus eliminates the barrier of applying formal methods to real-world system code (as in traditional human-centric approaches). Meanwhile, Specula addresses limitations of LLM-driven techniques like reward hacking and hallucinations through self-evolving loops that iteratively improve specification quality by enabling the agents to deepen their understanding of system code and its behaviors. We have used Specula to check 48 open-source system projects; Specula found 249 bugs including many deep bugs that are hard to find by existing approaches. Specula has been used by several companies and is maintained at[this https URL].\n\n### Current browse context:\n\ncs.SE\n\n### References & Citations\n\nLoading...\n\n# Bibliographic and Citation Tools\n\nBibliographic Explorer\n\n*(*[What is the Explorer?](https://info.arxiv.org/labs/showcase.html#arxiv-bibliographic-explorer))\nConnected Papers\n\n*(*[What is Connected Papers?](https://www.connectedpapers.com/about))\nLitmaps\n\n*(*[What is Litmaps?](https://www.litmaps.co/))\nscite Smart Citations\n\n*(*[What are Smart Citations?](https://www.scite.ai/))# Code, Data and Media Associated with this Article\n\nalphaXiv\n\n*(*[What is alphaXiv?](https://alphaxiv.org/))\nCatalyzeX Code Finder for Papers\n\n*(*[What is CatalyzeX?](https://www.catalyzex.com))\nDagsHub\n\n*(*[What is DagsHub?](https://dagshub.com/))\nGotit.pub\n\n*(*[What is GotitPub?](http://gotit.pub/faq))\nHugging Face\n\n*(*[What is Huggingface?](https://huggingface.co/huggingface))\nScienceCast\n\n*(*[What is ScienceCast?](https://sciencecast.org/welcome))# Demos\n\n# Recommenders and Search Tools\n\nInfluence Flower\n\n*(*[What are Influence Flowers?](https://influencemap.cmlab.dev/))\nCORE Recommender\n\n*(*[What is CORE?](https://core.ac.uk/services/recommender))# arXivLabs: experimental projects with community collaborators\n\narXivLabs is a framework that allows collaborators to develop and share new arXiv features directly on our website.\n\nBoth individuals and organizations that work with arXivLabs have embraced and accepted our values of openness, community, excellence, and user data privacy. arXiv is committed to these values and only works with partners that adhere to them.\n\nHave an idea for a project that will add value for arXiv's community? [ Learn more about arXivLabs](https://info.arxiv.org/labs/index.html).", "url": "https://wpnews.pro/news/specula-scaling-formal-specs-for-autonomous-model-checking-of-system-code", "canonical_source": "https://arxiv.org/abs/2607.25333", "published_at": "2026-07-30 23:38:59+00:00", "updated_at": "2026-07-30 23:52:11.037369+00:00", "lang": "en", "topics": ["artificial-intelligence", "ai-agents", "ai-tools", "ai-research", "large-language-models"], "entities": ["Specula", "TLA+", "arXiv"], "alternates": {"html": "https://wpnews.pro/news/specula-scaling-formal-specs-for-autonomous-model-checking-of-system-code", "markdown": "https://wpnews.pro/news/specula-scaling-formal-specs-for-autonomous-model-checking-of-system-code.md", "text": "https://wpnews.pro/news/specula-scaling-formal-specs-for-autonomous-model-checking-of-system-code.txt", "jsonld": "https://wpnews.pro/news/specula-scaling-formal-specs-for-autonomous-model-checking-of-system-code.jsonld"}}