TL;DR
This paper investigates whether Large Language Models (LLMs) like GPT-4 can truly "self-critique" and improve their reasoning abilities through iterative prompting. The study found that LLMs are surprisingly poor at verifying their own solutions, and their iterative improvements are largely due to chance rather than genuine self-correction, casting doubt on claims of robust LLM reasoning.
What Problem Does This Paper Address?
There's a growing debate about the reasoning capabilities of LLMs. While initial excitement suggested that complex reasoning might emerge with scale, numerous counterexamples have emerged. A persistent belief is that LLMs can iteratively refine their answers by "self-critiquing." This idea is often rooted in the classical computational complexity assumption that verification is easier than generation. However, if LLMs are primarily performing approximate retrieval, this assumption might not hold. This paper aims to systematically test this self-critique hypothesis by examining LLMs' performance on graph coloring, a well-known NP-complete reasoning problem.
Methods
The researchers designed an empirical study using GPT-4 to solve graph coloring problems and verify proposed colorings. They explored two main iterative prompting strategies:
- LLM Self-Critique: The LLM generates a solution, then acts as a verifier to critique its own solution, and then attempts to correct it based on its own feedback.
- External Verifier: The LLM generates a solution, and a separate, guaranteed-correct verifier provides feedback. This feedback ranged from a simple "try again" to detailed error explanations.
They also compared these iterative approaches to a direct prompting baseline where the LLM generates a single answer without any iterative refinement. To isolate the effect of feedback versus simply generating more options, they also tested a "top-k" sampling approach where the LLM generates multiple solutions, and an external verifier picks the first correct one.
Datasets
The paper introduces a custom dataset of 100 graph coloring instances. These graphs were generated using the Erdős–Rényi method with a modification to ensure planarity and avoid isomorphism. The instances had an average of 24 edges and node counts ranging from 10 to 17. This size was chosen because empirical probing suggested it was an area where LLM performance was volatile, making it suitable for testing reasoning capabilities. The graphs were compiled into the standard DIMACS format, with their precalculated chromatic number included.
Key Insights and Ideas
- Verification is Hard for LLMs: Contrary to the intuition that verification should be easier than generation, LLMs struggled significantly to correctly verify graph colorings. This inability to reliably identify errors is a major roadblock for self-critique.
- Self-Critique Doesn't Help (and Hurts): When LLMs were tasked with critiquing their own solutions, performance actually worsened compared to direct prompting. This is attributed to the LLM verifier failing to recognize correct solutions and often generating spurious feedback.
- External Feedback is Better, But Content Doesn't Matter Much: Using a sound external verifier did improve performance over direct prompting. However, the type of feedback (e.g., just "incorrect" vs. detailed error lists) had a surprisingly small impact on the overall success rate.
- "Top-K" Sampling is as Good as Iterative Refinement: The most significant finding is that simply having the LLM generate multiple candidate solutions and letting an external verifier pick a correct one (the "top-k" approach) yielded performance comparable to more complex iterative prompting strategies. This suggests that observed improvements in iterative settings might be due to the correct solution being present in the generated set by chance, rather than the LLM genuinely learning from feedback.
Key Results
- Direct Prompting: LLMs performed poorly on graph coloring instances in direct mode, achieving a baseline score of around 16% correct.
- LLM Self-Critique: This iterative approach resulted in even lower performance, with only about 1% of instances answered correctly.
- External Verifier: With an external verifier, performance improved to nearly 40% correct. However, the difference between providing minimal feedback (Pass/Fail) and detailed error lists was negligible.
- Top-K Sampling: Querying for multiple responses (e.g., top 15) and having an external verifier select a correct one achieved performance comparable to iterative prompting with an external verifier, around 40%.
- Verification Accuracy: When tested on verifying colorings, GPT-4 only correctly identified 2 out of 100 optimal colorings and made numerous "hallucinations" (incorrectly identifying errors).
Limitations and Future Work
The authors acknowledge that their study is limited to the graph coloring domain. They suggest that future work could explore these iterative prompting strategies on other reasoning tasks to see if the observed patterns hold. The paper's findings strongly suggest that claims about LLMs' robust self-critiquing and iterative reasoning capabilities should be met with skepticism, and that observed improvements may often be artifacts of sampling or external verification rather than genuine internal refinement.
Summary updated