Introduction
Large Language Models (LLMs) have demonstrated remarkable capabilities in generating human-like text, code, and even images. However, a critical question remains: do these models truly understand the content they produce? This paper introduces a novel "first generate, then evaluate" framework to assess the self-knowledge of LLMs. By requiring models to verify specific constraints in their own outputs—such as word counts or linguistic features—researchers have uncovered a significant gap between a model's generative prowess and its internal comprehension.
The Self-Knowledge Gap
Standard benchmarks like MMLU or GSM-8k evaluate models against human-curated data. While useful, these metrics don't reveal if a model possesses "self-knowledge"—the ability to consistently comprehend and respond to its own self-generated content.
The authors evoke Richard Feynman’s adage, "What I cannot create, I do not understand," but apply it in reverse: If a model creates something, does it truly understand it? If an LLM can generate a paragraph following a specific constraint but fails to verify that same constraint immediately afterward, it suggests the model is operating without true internal consistency. This "flying blind" phenomenon indicates a fundamental lack of self-awareness regarding its own outputs.
Methodology: The "First Generate, Then Evaluate" Framework
To quantify self-knowledge, the researchers proposed a simple two-step evaluation process:
- Self-Generate: The LLM is prompted to generate content $x$ that satisfies a specific answer $a$ (e.g., "Generate a paragraph with exactly 56 words").
- Self-Verify: In a separate context or run, the LLM is asked to verify the generated content (e.g., "How many words are in the following paragraph?").
The resulting "Self-Knowledge Score" is the accuracy of these verifications. The study also utilized:
- Dual-Generating Strategy: Asking the model to produce a second piece of content that should share the same properties as the first.
- Consistency Checks: Modifying the generated text in ways that should (or should not) alter the verification answer to see if the model's logic remains robust.
- Attention Analysis: Examining attention scores to determine if the model's internal focus aligns with the constraints it was tasked to follow.
Experimental Setup
The framework was tested across 7 prominent LLMs (including GPT-4, Llama3, and Mistral) and 9 diverse tasks categorized into:
- Linguistic & Logic: Word counting, keyword identification, Part-of-Speech tagging, and basic SQL-like text operations.
- Knowledge & Reasoning: Fact verification (e.g., birthdays), ArXiv ID recognition, high school mathematics, and theorem proving.
- Multimodal Tasks: Evaluation of Large Multimodal Models (LMMs) like Gill and SEED-LLaMa on their ability to count objects or identify colors in images they generated.
Key Insights
- The Attention Gap: Higher self-knowledge scores correlate with attention mechanisms that mirror human focus. However, LLMs generally exhibit "less concentrated" attention, leading them to lose track of constraints during generation.
- Robustness in GPT-4: GPT-4 showed unique resilience. While most models failed when "noise" (irrelevant text) was introduced between generation and verification, GPT-4 maintained high accuracy.
- The Prompting Paradox: While "Expert Personas" helped, Chain-of-Thought (CoT) prompting—a staple for improving LLM reasoning—did not consistently boost self-knowledge and occasionally hindered performance.
- Self-Improvement Loops: Fine-tuning models on their own generated problems (once corrected) improved performance on external benchmarks like GSM-8k, suggesting self-knowledge evaluation could drive autonomous model refinement.
Results and Discussion
The findings were sobering. Most models performed poorly across the board. In the "Total Word Count" task, accuracy for almost every model hovered near 0%.
Surprisingly, Llama2-7B-Chat achieved the highest average self-knowledge score (0.47), largely due to its consistency in Math and Theorem proving, even surpassing GPT-4 (0.31) in those specific metrics. Multimodal models also struggled; while they could identify colors in their own drawings with up to 81% accuracy, they failed miserably at counting the objects they had just rendered (dropping as low as 6%).
Conclusion and Future Directions
The study highlights a critical weakness in current LLM architectures: the inability to "read" what they "write" with the same precision they use to generate it. Future research should focus on:
- Scaling Task Complexity: Moving beyond handcrafted tasks to agent-based generation of complex challenges.
- Understanding CoT Failures: Investigating why reasoning steps fail to bridge the gap between generation and comprehension.
- Architectural Improvements: Developing models that maintain higher internal consistency and more human-like attention focus.
Summary updated