Can I Understand What I Create? Self-Knowledge Evaluation of Large Language Models

Zhiquan Tan, Lai Wei, Jindong Wang, Xing Xie, Weiran Huang · Submission to ICLR 2025 · Rejected

TL;DR

Inspired by Richard Feynman’s famous adage—“What I cannot create, I do not understand”—this paper flips the script to ask: Do large language models actually understand what they create? By evaluating models on their ability to inspect, verify, and answer questions about their own outputs, the authors uncover a striking disconnect between generative capability and self-comprehension, while demonstrating that fine-tuning on self-generated problems can boost downstream reasoning.

What Problem Does This Paper Address?

Standard evaluation benchmarks for Large Language Models (LLMs) and Large Multimodal Models (LMMs) typically rely on massive, human-annotated datasets (e.g., MMLU, GSM-8K). These benchmarks are expensive to curate and tell us little about a model’s self-knowledge—its internal consistency and genuine comprehension of its own generated text or imagery.

If a human authors a 50-word paragraph or writes a math question designed around a specific answer, they can effortlessly confirm those properties when asked later. Do LLMs possess this same coherence, or are they merely stringing together plausible tokens without "knowing" what they just produced?

Methods

The authors introduce an easy-to-implement framework centered on a two-step paradigm:

  1. First Generate, Then Evaluate:
  2. Self-Generate Step: The model is prompted with a constraint or embedded answer (e.g., "Generate a paragraph with exactly 56 words" or "Generate a math problem whose answer is 10cm").
  3. Self-Verify Step: In an independent run (or under varied context conditions), the model is presented with its own generated content and asked to verify that same attribute (e.g., "How many words are in this paragraph?"). Self-knowledge is measured by consistency between the target answer and the verified answer: $\mathbb{I}(a = \hat{a})$.
  4. Dual-Generating & Invariant Transformations:
  5. To evaluate models without known ground-truth targets, the authors test invariant transformations—such as moving the first sentence to the end of a paragraph (which should preserve the total count of prepositions) or simulating basic database operations (add, delete, or change words at an index) to see if the model's reported state stays consistent.
  6. Multimodal Probing:
  7. Extends the framework to image generation and perception (counting, color identification, and spatial positioning) using image-to-text and text-to-image models.

Datasets

Rather than relying on static, human-labeled benchmarks, the evaluation generates dynamic test sets (typically 100 samples per task) across 9 tasks:

  • Text Tasks: Total word count, designated keyword count, historical celebrity birthdates, arXiv paper ID/title matching, math problem creation, single-variable inequality theorem proving, code execution result matching, part-of-speech (preposition) counting, and SQL-like word manipulations.
  • Multimodal Perception: Object counting, color recognition, and spatial positioning.
  • Standard Datasets for Transfer/Fine-Tuning: The authors utilize subsets of MMLU (College Computer Science) to benchmark self-questioning and GSM-8K to evaluate mathematical reasoning after supervised fine-tuning (LoRA) on self-generated math problems.

Key Insights and Ideas

  • Generation $\neq$ Comprehension: LLMs frequently fail basic verification questions about text they just generated. Even state-of-the-art models struggle to count their own words or confirm the parameters of their generated code.
  • The Attention Concentration Gap: In designated keyword counting tasks, human focus naturally sharpens around target tokens. Attention head analysis revealed that while higher-performing models align closer to human-inspired attention mechanisms, LLM attention remains significantly more diffuse, contributing to counting errors.
  • Noise Causes Human-like "Distraction": When the generation and verification happen in the same prompt ("in-context"), GPT-4 and Gemma achieve 100% consistency. However, inserting ~7,000 tokens of irrelevant text between the two steps degrades their performance—mirroring human cognitive interference and memory decay.
  • Self-Improvement via Self-Generation: Models fine-tuned on their own generated math problems saw notable gains on GSM-8K. Crucially, models benefited more from tuning on their own generated content than on content generated by other (even higher-accuracy) models, suggesting self-alignment plays a specialized role in model capability.

Key Results

  • Poor Overall Self-Knowledge: Across the 7 tested LLMs, the average self-knowledge score was surprisingly low: GPT-4 scored 0.31, Llama3-8B scored 0.26, Mistral-7B scored 0.32, and Llama2-7B scored 0.47.
  • Counting is Universally Broken: For exact total word counting, almost all models scored near zero in independent evaluations (GPT-4 scored 0.03, while GPT-3.5, Llama2, Llama3, and Mistral scored 0.00).
  • Multimodal Gaps: On vision tasks, SEED-LLaMa scored 0.53 overall (0.81 on color, but only 0.26 on counting), while GILL scored 0.32 overall (0.06 on counting).
  • Downstream GSM-8K Boost: Fine-tuning on self-generated math data boosted Llama3-8B's accuracy from 76.72% to 79.80% (when using human-verified correct answers) and to 78.58% (even when using unverified model outputs).

Limitations and Future Work

  • Simplicity of Tasks: The evaluation tasks focus primarily on elementary, single-variable, or short-text constraints; scaling to multi-step reasoning proofs and complex long-form generation remains unexplored.
  • Naive Verification: The study uses direct prompt-response querying for verification rather than advanced verifiers (e.g., chain-of-thought, self-consistency sampling, or code execution tools), though preliminary CoT experiments showed mixed results.
  • Black-Box API Constraints: Proprietary models like GPT-4 could not be fine-tuned or subjected to direct attention-weight analysis.
  • Future Work: Developing autonomous multi-agent loops where AI judges generate, verify, and curate their own synthetic curricula for unsupervised self-improvement.

Summary updated

BibTeX
@misc{tan2024can,
  author = {Zhiquan Tan and Lai Wei and Jindong Wang and Xing Xie and Weiran Huang},
  title = {{Can I Understand What I Create? Self-Knowledge Evaluation of Large Language Models}},
  year = {2024},
  eprint = {2406.06140},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2406.06140},
}
Figure