LLM Meta-Reflection Prompts for Faster Prompt Refinement

Resolve Bottlenecks,
Find Innovative Solutions
Generate Solutions

Solution Overview

Problem

Creating specific prompts for Large Language Models (LLMs) to perform particular tasks is challenging, consuming significant computing resources and user time due to the iterative process of refining prompts to achieve desired outcomes.

Innovation Solution

Implementing meta-reflection techniques that utilize past self-reflections of the LLM to generate meta-reflection instructions, which are included in prompts to improve prompt construction efficiency, reducing the need for real-time feedback during inference.

Engineering Contradictions & Design Principles

VSEngineering Contradiction Analysis

1Reliability

If multiple conversational turns are used to refine LLM output, then the likelihood of achieving desired outcome improves, but computing resources and user time increase significantly

Engineering Contradiction:
Improvelikelihood of achieving desired outcomeVSAvoiduser time and computing resources
Core Design Contradiction:
ReliabilityVSLoss of time

Solution Approach 1:

The system performs preliminary action by generating self-reflection responses during the training phase that capture lessons from past errors. These reflections are stored and reused in subsequent interactions, eliminating the need to repeatedly learn from the same mistakes through multiple conversational turns.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates copies of valuable insights by generating text representations of self-reflection responses that capture the essence of past errors and corrections. These textual copies are stored in a knowledge base and reused across multiple interactions, replacing the need for repeated iterative refinement.

Inventive Principle:
Principle #26Copying

2Reliability

If specific prompts are created for particular tasks, then LLM performance improves, but the complexity of prompt engineering increases

Engineering Contradiction:
ImproveLLM performanceVSAvoidprompt engineering complexity
Core Design Contradiction:
ReliabilityVSDevice complexity

Solution Approach 1:

The system implements self-service by automatically generating self-reflection responses and updating the knowledge base without requiring manual prompt engineering. The LLM reflects on its own performance and learns from its mistakes autonomously, reducing the complexity of prompt creation and maintenance.

Inventive Principle:
Principle #25Self-service

Solution Approach 2:

The system introduces feedback mechanisms where the LLM generates self-reflection responses about its own output quality. This automated feedback loop allows the system to continuously improve prompt effectiveness without manual intervention, maintaining high performance while reducing engineering complexity.

Inventive Principle:
Principle #23Feedback

3Reliability

If iterative refinement of prompts is performed, then convergence between LLM output and user intent is achieved, but computing resources are consumed

Engineering Contradiction:
Improveconvergence between LLM output and user intentVSAvoidcomputing resources
Core Design Contradiction:
ReliabilityVSUse of energy by moving object

Solution Approach 1:

The system performs preliminary learning during the training phase by generating and storing self-reflection responses. This preliminary action captures valuable insights that would otherwise require repeated iterative refinement during deployment, significantly reducing computing resource consumption during actual use.

Inventive Principle:
Principle #10Preliminary action

Solution Approach 2:

The system creates textual copies of learned insights from past interactions and stores them in a knowledge base. These copies allow the system to retrieve and apply lessons from past errors without reprocessing the same information through computationally intensive iterative refinement.

Inventive Principle:
Principle #26Copying

Data Source

PatentUS12626064B2Meta-reflection techniques for learning instructions for language agents using past self-reflections
Publication Date: 2026.05.12 MICROSOFT TECHNOLOGY LICENSING LLC
  • US12626064B2 patent drawing
  • US12626064B2 patent drawing
  • US12626064B2 patent drawing

AI summary

A data processing system implements accessing a datastore of training data using a model training unit to obtain a first training sample, the first training sample comprising a first natural language utterance, first ground truth information, the first natural language utterance requesting that content be generated by a language model, the first ground truth information providing a first example of first expected output of the language model in response to the first natural language utterance; constructing a first prompt based on the first natural language utterance using a prompt construction unit; providing, using the prompt construction unit, the first prompt to the language model as an input to cause the language model to generate a first output; analyzing the first output and the first ground truth information using the model training unit to determine whether the first output is erroneous; constructing, using the prompt construction unit, a second prompt that instructs the language model to generate a first self-reflection response that indicates why the language model generated the first output; providing the second prompt as an input to the language model to cause the language model to generate the first self-reflection response; constructing, using the prompt construction unit, a third prompt that includes the first self-reflection response, the third prompt instructing the language model to generate prompt improvement instructions to be included in subsequently constructed prompts for the language model to assist the language model in generating a correct response to the subsequently constructed prompts; providing the third prompt to the language model to cause the language model to generate the prompt improvement instructions; and including the prompt improvement instructions in the subsequently constructed prompts generated using the prompt construction unit.