Inferensys

Glossary

Self-Critique Prompt

A self-critique prompt is an instruction that directs a language model to analyze and evaluate the quality, correctness, or potential flaws in its own generated response.
ML engineer working on model compression and quantization, laptop showing performance benchmarks, technical workspace.
SELF-CORRECTION INSTRUCTIONS

What is a Self-Critique Prompt?

A self-critique prompt is a foundational technique in context engineering that instructs a language model to evaluate its own initial output.

A self-critique prompt is an instruction that directs a language model to analyze and evaluate the quality, correctness, or potential flaws in its own generated response. This technique initiates a self-correction loop, forcing the model to act as its own reviewer before finalizing an answer. It is a core component of agentic cognitive architectures designed to improve reliability by reducing hallucinations and logical errors without external validation.

The prompt typically follows a critique-generate cycle, where the model first produces a draft, then executes an internal consistency check or output verification against provided facts. This process enhances factual grounding and logical coherence. It is distinct from, but often integrated with, techniques like chain-of-thought prompting and structured output generation to build more deterministic and auditable AI systems.

SELF-CRITIQUE PROMPT

Core Mechanisms and Components

A self-critique prompt is an instruction that directs a language model to analyze and evaluate the quality, correctness, or potential flaws in its own generated response. This section breaks down its key operational components and design patterns.

01

The Two-Phase Structure

A standard self-critique prompt follows a critique-generate cycle. The model is first instructed to produce an initial draft. In the second phase, it is given a specific rubric to analyze that draft for errors, inconsistencies, or missing elements. Finally, it synthesizes this critique to produce a revised, higher-quality final output. This separates the generative and evaluative cognitive modes, reducing bias and improving objectivity.

02

Explicit Evaluation Rubrics

Effectiveness hinges on providing the model with a concrete, actionable evaluation rubric. Vague instructions like "check for errors" are insufficient. Effective rubrics specify criteria such as:

  • Factual consistency against provided sources
  • Logical coherence and absence of contradictions
  • Completeness in addressing all query parts
  • Adherence to format (JSON, XML)
  • Clarity and conciseness, flagging redundancy This structured checklist guides the model's internal audit process.
03

Hallucination Mitigation

A primary application is the hallucination self-check. The prompt explicitly tasks the model with verifying that every factual claim in its output is grounded in the provided context or its general knowledge, flagging potential fabrications. This often involves a grounding prompt that requires the model to cite source excerpts for key claims. This technique directly addresses one of the most critical reliability challenges in LLM deployment.

04

Logical and Structural Auditing

Beyond facts, self-critique prompts enforce internal consistency and sound reasoning. This includes:

  • Logical fallacy detection (e.g., identifying straw man arguments)
  • Assumption checking to surface implicit premises
  • Stepwise verification of multi-step reasoning chains
  • Schema compliance checks for structured data outputs
  • Ambiguity resolution to rephrase vague statements These components transform the model into a preliminary quality assurance agent for its own work.
05

Bias and Safety Scanning

Self-critique can be directed toward alignment and safety through instructions like a bias self-scan or toxicity self-filter. The model reviews its output for potential demographic, cultural, or cognitive biases, as well as harmful or inappropriate content. A more advanced form is constitutional self-review, where the output is evaluated against a predefined set of ethical or safety principles, prompting censorship or rewriting if violations are found.

06

Integration with Broader Architectures

Self-critique is rarely a standalone operation. It is a core subroutine within larger agentic frameworks:

  • In a ReAct loop, it acts as the reflection step.
  • It enables iterative revision within a self-correction loop.
  • Multi-agent self-review architectures use multiple model instances to critique a single output, simulating panel review.
  • It provides the reasoning trace and confidence calibration needed for observability and trust in production systems.
CONTEXT ENGINEERING

How Self-Critique Prompts Work

A self-critique prompt is an instruction that directs a language model to analyze and evaluate the quality, correctness, or potential flaws in its own generated response.

A self-critique prompt is a structured instruction appended after a model's initial output, explicitly tasking it with performing an internal audit. This typically involves a multi-step directive, such as 'Review your previous answer. Identify any factual inaccuracies, logical inconsistencies, or unsupported assumptions. Then, provide a revised and improved response.' The technique leverages a model's inherent reasoning capabilities to act as its own first-pass quality assurance mechanism, often revealing errors that a single forward pass might miss.

The effectiveness hinges on prompt engineering that clearly defines the evaluation criteria—such as factual grounding, logical coherence, or bias detection. This creates a critique-generate cycle within a single extended context window. By forcing the model to articulate flaws before revision, the method produces more reliable, verifiable, and higher-quality outputs. It is a foundational technique within agentic cognitive architectures for building self-improving systems.

SELF-CRITIQUE PROMPT

Primary Use Cases and Applications

Self-critique prompts are deployed to enhance the reliability, safety, and accuracy of language model outputs across diverse domains. These instructions systematically guide models to evaluate their own reasoning and content.

01

Factual Accuracy & Hallucination Mitigation

This is the most common application, where a model is instructed to verify its factual claims against a provided source context or its training data. The prompt typically directs the model to:

  • Flag unsupported statements that lack explicit grounding.
  • Cite specific source excerpts for each claim.
  • Revise or retract any identified fabrications. This is critical for Retrieval-Augmented Generation (RAG) systems, technical documentation, and any domain requiring high factual fidelity.
02

Code & Logic Self-Debugging

Here, the model acts as its own code reviewer. A self-critique prompt tasks it with analyzing generated code for:

  • Syntax errors and runtime exceptions.
  • Logical bugs and edge case failures.
  • Security vulnerabilities like injection risks.
  • Performance inefficiencies (e.g., O(n²) algorithms). The model then produces a corrected version. This is foundational for Program-Aided Language Models (PAL) and automated software development tools.
03

Safety, Bias, and Toxicity Filtering

Self-critique prompts enforce constitutional AI principles and content safety policies. The model is prompted to review its output through specific lenses:

  • Toxicity Detection: Identifying harmful, offensive, or inappropriate language.
  • Bias Self-Scan: Checking for demographic, cultural, or cognitive biases in reasoning or recommendations.
  • Ethical Compliance: Ensuring outputs align with predefined safety rules (e.g., no instructions for harm). The model must then censor, rewrite, or flag the problematic content.
04

Structured Output Validation

When generating JSON, XML, or YAML, a self-critique prompt ensures strict schema compliance. The model is instructed to:

  • Verify all required fields are present and correctly named.
  • Validate data types (e.g., string, integer, array).
  • Check for adherence to enumerations or value constraints.
  • Ensure the structure is parseable by standard libraries. This is essential for reliable API integration and function calling workflows.
05

Reasoning & Argument Integrity

This application focuses on the logical soundness of the model's reasoning chain. The prompt guides an internal consistency check and logical audit:

  • Identifying logical fallacies (e.g., straw man, false dilemma).
  • Checking for contradictions between different parts of the response.
  • Validating assumptions made during reasoning.
  • Ensuring stepwise verification in a Chain-of-Thought process. This is vital for complex analysis, legal reasoning, and strategic planning tasks.
06

Instruction Adherence & Completeness

A self-critique prompt can direct the model to perform a final review against the original user query or system instructions. This completeness verification includes:

  • Confirming all sub-tasks in a complex instruction have been addressed.
  • Checking that all explicit constraints (e.g., word count, format, perspective) are satisfied.
  • Pruning redundant information to improve conciseness.
  • Resolving ambiguities for greater precision. This closes the loop in prompt chaining and complex task decomposition.
SELF-CORRECTION INSTRUCTIONS

Frequently Asked Questions

A self-critique prompt is a core instruction in context engineering that directs a language model to analyze and evaluate the quality, correctness, or potential flaws in its own generated response. This FAQ addresses common technical questions about its implementation and relationship to broader AI architectures.

A self-critique prompt is a specific instruction that directs a language model to analyze, evaluate, and identify potential flaws in its own initial output. It is a foundational technique in context engineering designed to improve output reliability by embedding a verification step within the model's reasoning process.

This prompt typically follows a critique-generate cycle, where the model first produces a draft response and then executes a second, distinct reasoning pass to assess that draft against criteria like factual accuracy, logical consistency, adherence to constraints, or completeness. The instruction explicitly tasks the model with acting as its own reviewer, often using phrases like "Critique the following response for errors" or "Identify any assumptions or inaccuracies in the text below."

Prasad Kumkar

About the author

Prasad Kumkar

CEO & MD, Inference Systems

Prasad Kumkar is the CEO & MD of Inference Systems and writes about AI systems architecture, LLM infrastructure, model serving, evaluation, and production deployment. Over 5+ years, he has worked across computer vision models, L5 autonomous vehicle systems, and LLM research, with a focus on taking complex AI ideas into real-world engineering systems.

His work and writing cover AI systems, large language models, AI agents, multimodal systems, autonomous systems, inference optimization, RAG, evaluation, and production AI engineering.