Intent Formalization: A Grand Challenge for Reliable Coding in the Age of AI Agents
Shuvendu K. Lahiri

TL;DR
This paper emphasizes the importance of formalizing user intent into checkable specifications to improve the reliability of AI-generated code, highlighting current research and future challenges in validation and interaction.
Contribution
It introduces intent formalization as a key approach to enhance AI code reliability and surveys early research demonstrating its potential and challenges.
Findings
Interactive test-driven formalization improves correctness
AI-generated postconditions detect real-world bugs
Verified pipelines produce provably correct code
Abstract
Agentic AI systems can now generate code with remarkable fluency, but a fundamental question remains: \emph{does the generated code actually do what the user intended?} The gap between informal natural language requirements and precise program behavior -- the \emph{intent gap} -- has always plagued software engineering, but AI-generated code amplifies it to an unprecedented scale. This article argues that \textbf{intent formalization} -- the translation of informal user intent into a set of checkable formal specifications -- is the key challenge that will determine whether AI makes software more reliable or merely more abundant. Intent formalization offers a tradeoff spectrum suitable to the reliability needs of different contexts: from lightweight tests that disambiguate likely misinterpretations, through full functional specifications for formal verification, to domain-specific…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsEthics and Social Impacts of AI · Software Testing and Debugging Techniques · Logic, programming, and type systems
