GPT-4 Doesn't Know It's Wrong: An Analysis of Iterative Prompting for Reasoning Problems

TL;DR

Empirical analysis of GPT-4’s iterative prompting on graph coloring; reveals limited self-critique and verification abilities, external verifier boosts success to 40%.

cs.AI 🔴 Advanced 2023-10-19 49 views
Kaya Stechly Matthew Marquez Subbarao Kambhampati
LLMs reasoning iterative prompting verification graph coloring

Key Findings

Methodology

A systematic empirical study was conducted using GPT-4 on 100 randomly generated graph coloring instances (nodes 10-17, edges ~24). The study compared direct solving, self-critique, and external verification modes, employing various feedback strategies (fail, first error, all errors, model feedback). External verifiers and top-k sampling (up to 15 answers) were integrated to analyze performance. The setup ensured reproducibility via OpenAI API, with deterministic settings (temperature=0). Results were statistically analyzed to assess the impact of feedback content and verification methods.

Key Results

  • GPT-4’s baseline success rate in direct mode was only 16%. Self-critique strategies did not improve performance; in fact, they worsened it due to difficulty recognizing correct solutions. External verification combined with top-k sampling increased success to nearly 40%, with minimal differences across feedback types. The model’s ability to verify solutions was extremely weak, correctly identifying less than 10% of solutions. Multiple sampling (e.g., 15 answers) yielded comparable improvements to iterative prompting, indicating that success mainly results from chance hits rather than effective reasoning.

Significance

This work challenges the assumption that large language models can self-improve through iterative prompts and self-critique. It highlights the critical role of external verification in complex reasoning tasks, emphasizing that current models lack robust internal validation. These findings have profound implications for designing reliable AI systems, especially in safety-critical applications where correctness is paramount. The study advocates integrating external formal verification to compensate for models’ internal limitations, guiding future research toward hybrid approaches that combine neural and symbolic reasoning.

Technical Contribution

The paper introduces a comprehensive framework for evaluating iterative prompting and verification in GPT-4 on NP-hard problems. It systematically compares feedback strategies, demonstrating that external verifiers and top-k sampling significantly outperform self-critique. The work provides quantitative evidence of the model’s verification weakness, proposing a hybrid approach that leverages external correctness checks. This advances understanding of the limitations and potential of LLMs in reasoning tasks, offering a blueprint for future hybrid systems integrating neural and symbolic components.

Novelty

This is the first detailed, large-scale empirical investigation into GPT-4’s self-critique and verification capabilities on a canonical NP-complete problem. It reveals that, contrary to claims of emergent reasoning, the model’s internal validation is weak, and success largely depends on chance. The study introduces a novel hybrid approach combining external verification with multiple answer sampling, setting a new benchmark for reasoning system evaluation and challenging the prevailing optimism about LLMs’ autonomous reasoning abilities.

Limitations

  • The experiments are limited to graph coloring, a specific NP-complete problem; generalization to other reasoning domains remains uncertain. The model’s verification ability is fundamentally weak, restricting self-critique effectiveness. Feedback content has minimal impact, indicating poor information utilization. Computational costs are high due to multiple sampling and external verification, limiting scalability. Future work should explore integrating formal symbolic reasoning and improving internal validation mechanisms.

Future Work

Future research should focus on enhancing models’ internal verification capabilities, possibly through hybrid neuro-symbolic architectures. Developing formal reasoning modules or integrating theorem provers could address current limitations. Expanding evaluations to other NP-hard problems and real-world reasoning tasks will validate generality. Additionally, optimizing sampling and verification efficiency is crucial for practical deployment. These directions aim to build more reliable, self-aware AI systems capable of complex reasoning with minimal external intervention.

AI Executive Summary

This study critically examines GPT-4’s capacity for iterative reasoning and self-critique within the context of the graph coloring problem, a well-known NP-complete challenge. Despite initial optimism, results reveal that GPT-4’s direct problem-solving success rate remains low at around 16%, and its ability to verify solutions is even weaker, with correct identification below 10%. The researchers implemented various feedback strategies, including self-critique and external verifiers, to assess whether iterative prompts could enhance performance. Surprisingly, iterative self-criticism did not improve results; in fact, it often degraded performance due to the model’s inability to recognize correct solutions. Conversely, integrating an external verifier with top-k sampling significantly increased success rates to nearly 40%, demonstrating the importance of external correctness checks. The key insight is that performance gains are primarily due to chance hits—correct solutions appearing in the top-k outputs—rather than genuine reasoning improvements. These findings challenge claims that LLMs possess strong self-critique and reasoning capabilities, emphasizing the need for external validation mechanisms. The work underscores the limitations of current models in complex reasoning tasks and suggests hybrid approaches that combine neural models with formal verification tools. Overall, this research provides a sobering perspective on the reasoning limitations of state-of-the-art LLMs, guiding future efforts toward more reliable, verifiable AI systems.

Deep Analysis

Background

Over recent years, large language models such as GPT-3 and GPT-4 have demonstrated impressive linguistic abilities, sparking interest in their reasoning potential. Early hypotheses suggested that increasing model scale could lead to emergent reasoning skills, but subsequent studies revealed significant limitations, especially in logic, arithmetic, and planning tasks. Research by Kojima et al. (2022) and others questioned whether these models can truly understand and verify complex solutions. The community has explored prompting strategies, chain-of-thought reasoning, and self-critique, yet conclusive evidence of robust reasoning remains elusive. The challenge lies in the models’ internal verification capabilities, which are often weak or unreliable, especially for NP-hard problems like graph coloring, which require combinatorial reasoning and validation beyond pattern matching.

Core Problem

The core issue addressed is whether GPT-4 can effectively verify and improve its solutions in complex reasoning tasks, specifically graph coloring. Despite claims of emergent reasoning, empirical evidence suggests models struggle with internal validation, often passing incorrect solutions or failing to recognize correct ones. This limits the effectiveness of iterative prompting strategies that rely on self-critique. The problem is compounded by the models’ inability to distinguish between correct and incorrect solutions reliably, raising questions about their suitability for high-stakes applications requiring verifiable correctness.

Innovation

This work introduces a comprehensive evaluation framework combining multiple feedback strategies, external formal verification, and top-k sampling to assess GPT-4’s reasoning and verification abilities. It innovates by systematically contrasting self-critique versus external validation, revealing that external verifiers significantly outperform self-assessment. The approach also demonstrates that success largely depends on chance, challenging assumptions about the emergent reasoning capabilities of LLMs. The integration of external correctness checks with probabilistic sampling offers a new paradigm for reliable reasoning systems, bridging neural models with formal verification techniques.

Methodology

  • �� Generate 100 random graph instances using Erdős–Rényi model, ensuring diversity and manageable complexity.
  • �� Translate graphs into natural language prompts describing edges and coloring constraints.
  • �� Implement multiple prompting strategies: direct solving, self-critique, external verifier with various feedback depths (fail, first error, all errors).
  • �� Use GPT-4 API with temperature=0 for deterministic outputs, and apply top-k sampling (up to 15 answers) to increase chance of correct solutions.
  • �� Integrate a formal external verifier that checks correctness by enumerating all violated constraints.
  • �� Record success rates, analyze the impact of feedback content, and compare iterative versus non-iterative approaches.
  • �� Conduct ablation studies to isolate effects of feedback richness and sampling size, ensuring robustness of conclusions.

Experiments

The experimental setup involved 100 graph instances with nodes 10-17, edges averaging 24, generated via Erdős–Rényi. The models attempted to solve these directly, with iterative self-critique, and with external verification. Different feedback strategies were tested, including minimal (fail/pass), detailed (all errors), and model-generated feedback. Multiple sampling (up to 15 answers) was used to evaluate the chance of hitting correct solutions. Success rates, verification accuracy, and error types were systematically recorded. The experiments aimed to quantify the influence of feedback content, sampling size, and external verification on overall performance, providing a comprehensive assessment of GPT-4’s reasoning and validation capabilities.

Results

GPT-4’s baseline success rate was only 16%. Self-critique strategies did not improve performance; they often worsened it due to the model’s inability to recognize correct solutions. External verification combined with top-k sampling increased success to nearly 40%, with minimal differences across feedback types. The model’s verification accuracy was extremely low, correctly identifying less than 10% of solutions. Multiple sampling approaches yielded similar improvements, indicating that success depends more on chance than genuine reasoning. These results highlight the current limitations of LLMs in internal validation and reasoning, emphasizing the necessity of external correctness checks.

Applications

Findings inform the design of AI systems requiring high reliability, such as automated scheduling, resource allocation, and decision-making in safety-critical domains. Integrating external formal verification modules with neural models can enhance correctness guarantees. The approach can be extended to other NP-hard problems, complex planning, and multi-modal reasoning tasks, fostering development of hybrid AI architectures that combine neural flexibility with symbolic rigor, ultimately improving trustworthiness and robustness in real-world applications.

Limitations & Outlook

The study focuses solely on graph coloring, limiting generalizability to other reasoning domains. The models’ verification weakness constrains the effectiveness of self-critique strategies. Feedback content has limited impact, indicating poor information utilization. Computational costs are high due to multiple sampling and external verification, affecting scalability. Future work should explore integrating formal reasoning modules, improving internal validation, and testing broader problem sets to enhance model reliability.

Plain Language Accessible to non-experts

想象你在厨房做饭,菜谱就像模型要解决的问题。大厨(模型)试图自己判断菜是否做好,但有时会搞错。为了确保菜好吃,你会请另一位厨师(外部验证器)检查。模型自己批评时,可能会说“还差点”,但其实菜已经很好了,或者反过来。用外部厨师检查,能大大提高成功率。这个过程就像模型在不断试错和被检查,最终做出满意的菜肴。研究发现,模型自己判断的能力很有限,靠外部帮忙才更靠谱。

ELI14 Explained like you're 14

想象你在学校做作业,你自己检查答案,但有时候会看错。你可以请朋友帮你检查,确保答案正确。这个研究就像让AI自己检查它的答案,但发现它自己很难找到错误。反而,找个聪明的朋友帮忙检查,效果会更好。甚至让AI多试几次,最后由朋友挑出正确答案。结果显示,AI自己批评答案的能力很差,只有外部帮忙才能提高成功率。这告诉我们,要让AI变得更聪明,不能只靠它自己,还要有外部的“老师”帮忙。

Abstract

There has been considerable divergence of opinion on the reasoning abilities of Large Language Models (LLMs). While the initial optimism that reasoning might emerge automatically with scale has been tempered thanks to a slew of counterexamples, a wide spread belief in their iterative self-critique capabilities persists. In this paper, we set out to systematically investigate the effectiveness of iterative prompting of LLMs in the context of Graph Coloring, a canonical NP-complete reasoning problem that is related to propositional satisfiability as well as practical problems like scheduling and allocation. We present a principled empirical study of the performance of GPT4 in solving graph coloring instances or verifying the correctness of candidate colorings. In iterative modes, we experiment with the model critiquing its own answers and an external correct reasoner verifying proposed solutions. In both cases, we analyze whether the content of the criticisms actually affects bottom line performance. The study seems to indicate that (i) LLMs are bad at solving graph coloring instances (ii) they are no better at verifying a solution--and thus are not effective in iterative modes with LLMs critiquing LLM-generated solutions (iii) the correctness and content of the criticisms--whether by LLMs or external solvers--seems largely irrelevant to the performance of iterative prompting. We show that the observed increase in effectiveness is largely due to the correct solution being fortuitously present in the top-k completions of the prompt (and being recognized as such by an external verifier). Our results thus call into question claims about the self-critiquing capabilities of state of the art LLMs.

cs.AI