P

Chain Of Verification: Definition and Examples

Prompting technique where the model is asked to generate an initial response, then produce verification questions about that response, answer them independently, and finally revise its original answer accordingly.

Full definition

Chain of Verification (CoVe) is a structured method designed to reduce hallucinations in language models. The principle is simple yet powerful: rather than blindly trusting an initial response, the model is guided through a systematic self-verification process in multiple steps.

The process unfolds in four phases. First, the model generates an initial response (baseline response). Next, it formulates verification questions targeting the factual claims contained in its response. Then, it answers each of these questions independently, without being influenced by its initial response. Finally, it compares the results of this verification with its original answer and produces a revised version, correcting any detected inconsistencies.

This approach leverages an important empirical finding: language models are often more reliable when answering short, targeted questions than when generating long, complex responses. By breaking down verification into micro-questions, the risk of factual errors and hallucinations is significantly reduced.

Introduced by researchers at Meta AI in 2023, Chain of Verification belongs to the family of chain-of-thought reasoning techniques but distinguishes itself by its specific focus on factual reliability rather than logical reasoning. It is particularly useful in contexts where information accuracy is critical.

Etymology

The term combines "Chain", evoking the sequence of linked steps, and "Verification", highlighting the goal of self-checking. The concept was formalized by Dhuliawala et al. in their research paper at Meta AI in 2023, drawing inspiration from chain-of-thought prompting methods while orienting them towards reducing hallucinations.

Concrete examples

Verifying historical facts in a long response

Step 1: List the 5 major events of the French Revolution with their dates.
Step 2: For each event and date mentioned, formulate a verification question.
Step 3: Answer each verification question independently.
Step 4: Compare your verifications with your initial answer and correct any errors.

Making a technical research more reliable

Answer this question: What are the differences between REST and GraphQL?
Now, identify 4 verifiable claims in your answer and formulate a question for each. Answer these questions separately, then revise your initial answer if necessary.

Writing an article with built-in verification

Write a paragraph about the benefits of intermittent fasting. Then, list each health claim you made, verify each individually, and rewrite the paragraph by removing or correcting any questionable claim.

Practical usage

To apply Chain of Verification, structure your prompt into four distinct blocks: generation, creation of verification questions, independent answers, and final revision. The key step is to ensure that verifications are performed in isolation to avoid confirmation bias. This technique is especially recommended for any factual content intended for publication or sharing.

Related concepts

Chain Of ThoughtSelf-ConsistencyHallucinationFact-Checking Prompting

FAQ

What is the difference between Chain of Verification and Chain of Thought?
Chain of Thought aims to improve logical reasoning by asking the model to spell out its thinking steps. Chain of Verification specifically targets factual reliability by adding a self-verification loop after the initial generation. Both techniques are complementary and can be combined.
Does Chain of Verification completely eliminate hallucinations?
No, it significantly reduces them but does not eliminate them completely. The model can also hallucinate during the verification step itself. That is why it is recommended to combine this technique with other approaches like RAG (Retrieval-Augmented Generation) or human verification for critical content.
Does this technique work with all language models?
Chain of Verification works best with large models capable of following complex multi-step instructions (GPT-4, Claude, Gemini). Smaller models may struggle to maintain coherence across the different phases of the process. It is advisable to test with your target model and adjust the level of detail in the instructions.

See also

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More definitions

Get new prompts every week

Join our newsletter.