/Patent Tracker
MicrosoftPatent applicationAI & softwareInterest 7/10

Microsoft patents tool that automatically improves AI instructions

Patent drawing
Patent drawing from the official filing.

Microsoft describes a system that automatically refines the text instructions given to large language models to make them work better. It breaks the instructions into a structured tree format and uses two AI models to test, score, and rewrite specific parts of the text until the output matches the desired result.

Why it mattersThis could make it easier for developers to create effective AI tools without manually tweaking complex text instructions every time.

In the filing’s own words

The technology described herein automatically tunes large language model (LLM) prompts for improved performance. The system receives an LLM prompt as input, optimizes it, and outputs a more effective prompt. The optimization process involves converting the prompt into a hierarchical prompt tree, which organizes the prompt into distinct sections and subsections. This structured format allows for systematic refinements targeting specific components without altering the entire prompt. The system uses an actor/critic learning model, where the critic evaluates the prompts generated by the actor and provides feedback to guide future prompt generation decisions. The actor executes actions based on the feedback, continuously improving its performance. The iterative process generates replacement prompts, assigns quality scores, and selects high-quality prompts for further optimization.

What exactly they claim (claim 1)

1. One or more computer storage media comprising computer-executable instructions that when executed by computing device performs a method of tuning a prompt, the method comprising: receiving a prompt; generating a hierarchical prompt tree from text in the prompt; providing the hierarchical prompt tree, a large language model (LLM) output generated in response to the prompt combined with an input, and an expected output to a critic model, wherein the input includes actual values that are inserted in placeholders within the prompt; generating, at the critic model, a reflection; providing the reflection and the hierarchical prompt tree of text to an actor model; generating, by the actor model, a revised hierarchical prompt tree; generating a revised prompt from the revised hierarchical prompt tree; and storing the revised prompt.

Facts

Company
Microsoft (Microsoft Technology Licensing, LLC)
Official title
AUTOMATIC TUNING OF LLM PROMPTS
Publication number
US20260310980A1
Application number
19098084
Filed
Apr 2, 2025
Published
Oct 8, 2026
Inventors
5
Claims
20

Classified under

G06N 3/092 Physics & computingG06F 16/242 Physics & computingG06N 3/0475 Physics & computing

More from Microsoft in AI & software

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.