Microsoft patents AI coding that checks its own work
Microsoft describes a method where an AI model writes computer code based on a user's plain-English request. The system includes a built-in check that identifies parts of the request the AI is unsure about and removes them from the final code to prevent errors.
In the filing’s own words
Responsive to digital input received in a natural language, examples formulate an instruction for a generative machine learning model (GMLM), where the instruction includes an input validation sub-instruction and a code generation sub-instruction. Via processing of the digital input and the code generation sub-instruction by the GMLM, examples generate and output, by the GMLM, code in a programming language, where the code in the programming language corresponds to the digital input received in the natural language. Via processing of the input validation sub-instruction and the code by the GMLM, examples detect an unvalidated portion of the digital input. Examples may exclude the unvalidated portion of the digital input from an execution of the code generated by the GMLM.
What exactly they claim (claim 1)
1. A method comprising: responsive to digital input received in a natural language, formulating an instruction for a generative machine learning model (GMLM), wherein the instruction comprises an input validation sub-instruction and a code generation sub-instruction; via processing of the digital input and the code generation sub-instruction by the GMLM, generating and outputting, by the GMLM, code in a programming language, wherein the code in the programming language corresponds to the digital input received in the natural language; via processing of the input validation sub-instruction and the code by the GMLM, detecting an unvalidated portion of the digital input; and excluding the unvalidated portion of the digital input from an execution of the code generated by the GMLM.
Facts
- Company
- Microsoft (Microsoft Technology Licensing, LLC)
- Official title
- AGENTIC CODE GENERATION WITH VALIDATION
- Publication number
- US20260267621A1
- Application number
- 19075698
- Filed
- Mar 10, 2025
- Published
- Sep 10, 2026
- Inventors
- 5
- Claims
- 20
Classified under
G06F 8/35 Physics & computingG06N 5/045 Physics & computingMore from Microsoft in AI & software
- Microsoft patents method to check AI answers against verified facts Oct 20, 2026
- Microsoft patents AI that presents PowerPoint slides for you Sep 3, 2026
- Microsoft patents method to check if LLM answers are based on real data Sep 10, 2026
- Microsoft patents system to blend multiple AI agents into one chat Oct 1, 2026
- Microsoft patents system that answers questions using your screen history Oct 15, 2026
Summaries are simplified from the filing’s own abstract and first claim. A patent filing is not a product announcement.
Patent data and drawings: U.S. Patent and Trademark Office (USPTO). Nebula is not affiliated with or endorsed by the USPTO.