The patent badge is an abbreviated version of the USPTO patent document. The patent badge does contain a link to the full patent document.
The patent badge is an abbreviated version of the USPTO patent document. The patent badge covers the following: Patent number, Date patent was issued, Date patent was filed, Title of the patent, Applicant, Inventor, Assignee, Attorney firm, Primary examiner, Assistant examiner, CPCs, and Abstract. The patent badge does contain a link to the full patent document (in Adobe Acrobat format, aka pdf). To download or print any patent click here.
Patent No.:
Date of Patent:
May. 19, 2026
Filed:
Sep. 29, 2023
Microsoft Technology Licensing, Llc, Redmond, WA (US);
Reid Allen Pryzant, Seattle, WA (US);
Jerry Zheng Li, Redmond, WA (US);
Dan Iter, Cedar Park, TX (US);
Yin Tat Lee, Seattle, WA (US);
Chenguang Zhu, Issaquah, WA (US);
Nanshan Zeng, Bellevue, WA (US);
Anup Shirgaonkar, New York, NY (US);
Microsoft Technology Licensing, LLC, Redmond, WA (US);
Abstract
Systems and methods are provided for implementing automatic prompt optimization using textual gradients. In various embodiments, a feedback prompt, input into a large language model ('LLM'), is used to generate textual gradients that criticize a current prompt. The feedback prompt includes the current prompt and predictions that are incorrect compared with corresponding labels associated with minibatch data processed by the LLM using the current prompt. The textual gradients and current prompt are used in an editing prompt to the LLM to obtain a set of optimized prompts, which may be expanded using a paraphrasing prompt that is input into the LLM to generate a set of paraphrased prompts. A selection algorithm is used to select one or more optimized prompts from the set of optimized prompts and/or the set of paraphrased prompts, and the process is repeated with the selected one or more optimized prompts replacing the current prompt.