Automatic tuning of llm prompts
AssigneeMicrosoft Technology Licensing, LLC
InventorsShanu KUMAR, Shubhanshu KHANDELWAL, Akhila YESANTARAO VENKATA, Manish GUPTA, Parag AGRAWAL
Life of this patent
Estimating the term…
Loading patent…
AssigneeMicrosoft Technology Licensing, LLC
InventorsShanu KUMAR, Shubhanshu KHANDELWAL, Akhila YESANTARAO VENKATA, Manish GUPTA, Parag AGRAWAL
Estimating the term…
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.
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:
A method of tuning a prompt comprising:
The method of claim 11, where the method further comprises applying a search method to select a subset of the plurality of revised prompts to be used as input to a subsequent iteration of prompt tuning.
The method of claim 12, wherein the search method is an Upper Confidence Bound based selection mechanism.
A method of tuning a prompt, comprising:
Dependencies are inferred from the claim text.