New Benchmark Reveals LLM Weaknesses in Graph Reasoning

Stefano Goria (AIM Research Lab)· August 20, 2026 View original

Key takeaways

  • Dynamic benchmarks are crucial for accurately assessing LLM reasoning and preventing data contamination.
  • LLMs, even frontier models, struggle with compositional graph reasoning as complexity increases.
  • Misinterpretation of natural language graph descriptions is a significant bottleneck.
  • Fine-tuning models to emit executable programs can dramatically improve compositional reasoning performance.

Who benefits

AI/ML DevelopmentSoftware EngineeringData ScienceResearch & Development

Summary

ClosureBench is a novel, constructive benchmark for compositional graph-relational reasoning that generates instances on demand with programmatically verified ground truth, preventing data contamination. It reveals that even frontier LLMs struggle with increasing graph size and query depth, often misinterpreting natural language graph descriptions.

Evaluating the true reasoning capabilities of large language models (LLMs) is challenging due to the risk of data contamination in fixed test sets. This paper introduces ClosureBench, a new benchmark designed to overcome this by generating unique test instances on demand. Each task's correct answer is verified by executing a program in the Ein tensor-logic language, ensuring objective ground truth. ClosureBench covers 26 task categories across three compositional levels and allows control over difficulty through graph size, edge density, and query depth. The researchers tested various models, from 1.5B open-source models to frontier systems like GPT-4.1 and Gemini 2.5. Key findings include a significant performance gap between seen and fresh instances for models fine-tuned on fixed sets, highlighting memorization over true reasoning. Accuracy consistently drops as graph size and query depth increase, even for the strongest models, which often misinterpret natural language graph descriptions before reasoning. Interestingly, a 4B model fine-tuned to emit executable programs rather than direct answers performed significantly better, maintaining accuracy across compositional levels and approaching frontier model performance at a fraction of the token cost. This suggests program synthesis is a promising avenue for robust compositional reasoning.

Why it matters

Professionals involved in LLM development, evaluation, or application need robust benchmarks like ClosureBench to accurately assess model reasoning capabilities, identify weaknesses, and guide the development of more reliable AI systems.

How to implement this in your domain

  1. 1Utilize ClosureBench or similar dynamic, programmatically verified benchmarks to rigorously evaluate LLMs for compositional reasoning tasks.
  2. 2Prioritize LLM development efforts on improving graph understanding and compositional reasoning, especially with increasing complexity.
  3. 3Explore fine-tuning LLMs to generate executable code (e.g., Python, Ein) as a strategy for enhancing their reasoning and verification capabilities.
  4. 4Design internal evaluation metrics that account for potential data contamination and distinguish between memorization and genuine reasoning.

Original post by Stefano Goria (AIM Research Lab)

"arXiv:2608.18242v1 Announce Type: new Abstract: We introduce ClosureBench, a constructive benchmark for compositional graph-relational reasoning with programmatically verified ground truth. Unlike fixed-test-set benchmarks vulnerable to data contamination, ClosureBench generates…"

View on X

Originally posted by Stefano Goria (AIM Research Lab) on X · view source

Want to go deeper?

Turn these trends into skills with Learnijoy's hands-on AI & tech courses.

Explore courses