CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing

Zhibin Gou, Zhihong Shao, Yeyun Gong, yelong shen, Yujiu Yang, Nan Duan, Weizhu Chen

Large Language Models (LLMs) often struggle to correct their own mistakes because they inherently "don't know what they don't know." CRITIC is a novel framework that allows frozen, black-box LLMs to use external tools—like search engines and code interpreters—to verify their own outputs and iteratively refine them. This approach leads to significant gains in truthfulness, coding accuracy, and safety.

The Problem: The Limits of Internal Self-Correction

Despite their impressive capabilities, LLMs are notorious for hallucinating facts, writing non-functional code, and occasionally generating toxic content. While researchers have attempted to make models "self-correct" through simple prompting techniques (e.g., asking the model, "Are you sure about that?"), the results are often underwhelming. Without an external source of truth, a model that is confident in a wrong answer will frequently just double down on its mistake.

The authors of this paper argue that humans don't simply "think harder" to fix errors; we use tools. We Google a fact we’re unsure of, or we run a snippet of code to see if it throws an error. The CRITIC framework aims to give LLMs this exact capability: the ability to interact with the external world to find out where they went wrong.

Methods: The CRITIC Framework

CRITIC (Self-Correcting with Real-time Interactive Tool-Interactive Critiquing) operates in a loop that mimics human troubleshooting.

The CRITIC framework loop interacting with external tools.

The process follows five key steps:

  1. Initialization: The model generates an initial response to a user prompt.
  2. Verification: The model generates a query for an external tool (e.g., a Google Search query or a Python script).
  3. Critique: The tool returns evidence, such as search snippets or execution errors. The LLM then interprets this evidence to identify specific flaws in its initial response.
  4. Correction: The model generates a revised response based on the critique.
  5. Iteration: This process repeats for a set number of rounds or until the model decides the output is correct.

Crucially, this is achieved via in-context learning. The researchers do not retrain the models; instead, they provide a few-shot prompt that demonstrates how to use tools and interpret feedback. This makes CRITIC a "plug-and-play" solution for any black-box model, including GPT-4 or LLaMA.

Evaluation Domains & Examples

The authors evaluated CRITIC across three diverse domains to test its versatility:

  • Free-form QA: Tested on AmbigNQ, TriviaQA, and HotpotQA to measure factual accuracy and multi-hop reasoning using search engines.
  • Mathematical Program Synthesis: Used GSM8k, SVAMP, and TabMWP to see if the model could write and debug Python code to solve math problems using a code interpreter.
  • Toxicity Reduction: Used RealToxicityPrompts to evaluate the model's ability to sanitize its own output using a toxicity-detection API (Perspective API).
Examples of CRITIC applied to Question Answering, Math, and Toxicity Reduction.

Key Insights and Results

CRITIC consistently outperformed standard prompting (Chain-of-Thought) and other popular methods like ReAct across all tested domains.

  • The "Self-Correction" Myth: One of the most striking findings is that LLMs are remarkably bad at correcting themselves without tools. In many cases, "self-correction" without external feedback actually degraded the model's performance.
  • Tools as an "Anchor": External tools provide necessary "grounding" for the model. A code interpreter, for instance, provides an objective "Success" or "Failure" signal that the model cannot ignore or hallucinate away.
  • Performance Leaps:
    • Question Answering: ChatGPT saw a 7.7 F1 score improvement across the three QA datasets.
  • Mathematics: On the TabMWP dataset, LLaMA-2-70B's accuracy jumped by 16% simply by using a code interpreter to verify its logic.
  • Toxicity: CRITIC reduced the probability of toxic outputs by 79.2% for ChatGPT, bringing it nearly in line with supervised state-of-the-art detoxification methods.
  • Interpretability: Because the model writes out its critique based on search results or code errors, the correction process is highly transparent. Users can see exactly why the model changed its mind.

Limitations and Future Work

While highly effective, CRITIC does have limitations. The biggest drawback is inference latency. Running multiple rounds of verification and correction is computationally expensive and slow, requiring several sequential calls to the LLM and external APIs. Additionally, the system relies heavily on the quality of the few-shot prompts; if the demonstrations aren't perfect, the model might struggle to use the tools correctly.

Future work could involve expanding to multi-modal tools (e.g., an LLM using an image-recognition tool to verify a visual description) and integrating more specialized tools like WolframAlpha for complex math or formal verifiers for software engineering.

Summary updated

BibTeX
@inproceedings{gou2024critic,
  author = {Zhibin Gou and Zhihong Shao and Yeyun Gong and yelong shen and Yujiu Yang and Nan Duan and Weizhu Chen},
  title = {{CRITIC: Large Language Models Can Self-Correct with Tool-Interactive Critiquing}},
  booktitle = {International Conference on Learning Representations},
  year = {2024},
  url = {https://openreview.net/forum?id=Sx038qxjek},
}
Figure