Why can't AI correct its own mistakes? The myth of self-correction in language models

Artificial intelligence writes poems, builds complex programs and solves hard math problems. It is easy to assume that when we ask it: “Are you sure you didn’t make a mistake? Review your answer again”, it will sit down with the text and fix the error on its own.

Many users of large language models (LLMs) think exactly that. Research shows it is an illusion.

Recent papers and tests on the newest models give the same result: AI cannot detect and fix its own logical errors by itself if all it has is its own reasoning. Older models, under the pressure of the question, spoiled good answers. Newer ones declare with full confidence that a flawed result is perfect.

1. Two kinds of self-criticism

It is worth distinguishing two ways AI can correct its mistakes.

Intrinsic Self-Correction is an attempt to improve an answer purely within a text conversation. We ask the model: “Is your code or result correct?”, and without any external tools it analyzes its own text from scratch.

Grounded Self-Correction relies on feedback from the real world. Code written by the AI is run in a safe sandbox, and when the program crashes or returns a compilation error, the exact text of the error (for example a stack trace message) goes back to the model with a request to fix it.

Most of us expect the first mode, that the model will simply rethink its own text. Research shows this does not work.

2. Why asking “Are you sure?” does not help

Take a student who got a math test wrong because of a faulty line of reasoning. The teacher hands the paper back with the words “Check it again”. Very often the student will repeat the same mistake, because they look at the problem through the same patterns that led them to the error.

Language models add three more limitations that come from how they are built.

  1. The same model generates and evaluates, so its errors are correlated. A language model produces text word by word based on probability. When the same model, with the same frozen knowledge, writes code and then reviews it, it uses the same patterns. The blind spot that caused the error in the first step hides it in the second as well.
  2. The model cannot go back (no backtracking). Text is produced only forward. When the model writes a wrong fragment of code or a wrong assumption, it lands in its context, its working memory. It fits the following sentences to what it has already written, even when that was wrong.
  3. The model defers to the person it talks to (sycophancy). It is trained to be helpful and to agree with humans. So it often reads the question “Are you sure?” as a hint that the user thinks the answer is bad. It starts to apologize and swaps a good answer for a bad one to please the asker.

3. What the research says

Google DeepMind: a drop in accuracy and oracle leakage

A team led by Jie Huang at Google DeepMind published the paper Large Language Models Cannot Self-Correct Reasoning Yet at ICLR 2024. The researchers tested leading models, including GPT-3.5-Turbo and GPT-4, on math tasks (GSM8K) and general knowledge tasks (CommonSenseQA). When they simply asked the model to re-analyze its own answer, accuracy fell instead of rising.

On GSM8K, GPT-3.5 kept its original answer in 74.7% of cases. In 8.8% it changed a correct answer into a wrong one, and it fixed an error in only 7.6%.

On CommonSenseQA, GPT-3.5 gave in to suggestion far more often. It kept its original choice in only 42.8% of cases, changed a correct answer to an incorrect one in 39.8%, and fixed an error in 5.8%.

The stronger GPT-4-Turbo fell on GSM8K after textual self-criticism from 91.5% to a range of 88.0% to 89.5%.

Why, then, did earlier works such as Self-Refine and Reflexion claim that textual self-correction works? Huang and colleagues pointed to so-called oracle leakage. In those experiments the testing program knew the true answer. If the model got it right on the first try, the test ended. It got a second attempt only when the answer was wrong. So the chance of spoiling a correct answer was zero by construction (P(correct → incorrect) = 0), which inflated the results.

Arizona State University: a sharp collapse in performance

A team led by Prof. Subbarao Kambhampati (ICLR 2025 and NeurIPS 2023) checked how GPT-4 handles deterministic planning, such as arranging blocks by rules (Blocksworld) and coloring graphs.

Generating a plan on the first attempt alone gave GPT-4 a success rate of 40%. When the researchers combined two models, one building the plan and the other reviewing it, the success rate of the whole system fell to between 0% and 5%.

The critic model raised a great many false alarms. The false negative rate (FNR) was 97.09% on the obfuscated Mystery Blocksworld and 95.8% on graph coloring. The model rejected almost all correct plans, finding imaginary errors in them, and forced the generator to spoil good solutions.

When the language verifier was replaced with an external checking program (the VAL tool), planning success rose from 40% to between 60% and 87%.

4. A new finding: instead of giving in, today’s AI sticks to its mistake

We ran our own experiments on a newer model (gpt-6-sol, October 2026) on the hard programming benchmark BigCodeBench-Hard, which is 50 complex Python tasks. The conclusions from earlier years still hold, but the symptom has changed. The code and data of the experiment are in the public repository corret-bench. The results look like this:

Experiment variant What the model gets Accuracy Change Correct kept (C → C) Correct spoiled (C → I) Errors fixed (I → C) Wrong unchanged (I → I)
A. Baseline (single attempt) Task text, 1 answer 34% (17/50) none none none none none
B. Intrinsic SC (plain text) Prompt: “Review your output carefully…” 34% (17/50) 0.00 pp. 17 0 0 33
C. Grounded SC (compiler tests) Result of running a public test 48% (24/50) +14.00 pp. 17 0 7 26

In older studies, for example from 2023, models gave in to pressure and spoiled correct answers after the question “Are you sure?”. The newer model behaved the opposite way. In 48 of 50 tasks it stated: “I reviewed my code, it is fully correct” and returned an identical string. It did the same in 33 tasks in which its code contained serious logical errors.

Newer models at least no longer destroy correct answers: 0 of 17 tasks were spoiled. They still do not detect errors, though. They have moved from deference to overconfidence.

5. What works: colliding code with reality

Since self-criticism in plain text fails, self-correction has to rest on an execution environment. We do not ask the AI what it thinks of its code. We do this instead:

  1. The code generated by the AI goes into an isolated sandbox and is run.
  2. If the program reports an error, we capture its raw message, for example a ZeroDivisionError exception or a failed pytest assertion.
  3. This evidence from the environment goes back to the model together with a request to fix it.

The data from our BigCodeBench-Hard experiment: feedback from running a test raised accuracy by 14.00 pp. (from 34% to 48%, p ≈ 0.016 in McNemar’s test). The model fixed 7 hard tasks and spoiled none.

External research is similar. In the Self-Debugging paper (Chen et al., ICLR 2023), the Codex model received a stack trace and assertions, which raised pass@1 by 12 percentage points on the MBPP and TransCoder benchmarks. The CodaMosa tool (Lemieux et al., ICSE 2023) combines genetic algorithms with an LLM. It reached 91.8% code coverage in hard open source libraries, while the LLM alone gave 64.5% and traditional tests 18.4%.

A limitation: weak tests block fixes

Of the 26 tasks the model did not fix in grounded mode, as many as 21 passed the single public test and only then failed on the hidden final tests. The effectiveness of environment-based self-correction therefore depends on the quality of the tests. With a weak test, the AI will take wrong code for correct.

6. Four rules for working with AI

  1. Do not ask in plain text: “Are you sure you’re right?”. Asking the model to verify its own answer in a chat window, with no facts from outside, achieves nothing. The model will repeat the same mistake or, in older versions, change a good answer into a bad one.
  2. Connect the model to an execution environment. For AI to fix programs or calculations effectively, it needs a compiler, a Python interpreter, a linter or a database. Only an objective error from the environment gives it a chance at a correct diagnosis.
  3. Separate the roles of creator and tester (TDD). The model makes fewer mistakes when it first writes rigorous unit tests from the specification and only in a separate step generates code that has to pass those tests.
  4. Do not confuse the absence of apologies with the ability to detect errors. The newest models, such as gpt-6-sol, no longer give in so easily to user suggestions and do not spoil good results. Without an external test they still do not see their own logical errors and consider their code perfect.