[Paper Review] TheoremQA: A Theorem-driven Question Answering dataset
TheoremQA introduces the first theorem-driven question-answering dataset with 800 high-quality questions across 350 theorems in STEM fields, designed to evaluate LLMs' ability to apply domain-specific theorems. GPT-4 achieves 51% accuracy using Program-of-Thoughts prompting, while open-source models lag below 15%, highlighting a significant performance gap and the need for theorem-aware pretraining.
The recent LLMs like GPT-4 and PaLM-2 have made tremendous progress in solving fundamental math problems like GSM8K by achieving over 90% accuracy. However, their capabilities to solve more challenging math problems which require domain-specific knowledge (i.e. theorem) have yet to be investigated. In this paper, we introduce TheoremQA, the first theorem-driven question-answering dataset designed to evaluate AI models' capabilities to apply theorems to solve challenging science problems. TheoremQA is curated by domain experts containing 800 high-quality questions covering 350 theorems (e.g. Taylor's theorem, Lagrange's theorem, Huffman coding, Quantum Theorem, Elasticity Theorem, etc) from Math, Physics, EE&CS, and Finance. We evaluate a wide spectrum of 16 large language and code models with different prompting strategies like Chain-of-Thoughts and Program-of-Thoughts. We found that GPT-4's capabilities to solve these problems are unparalleled, achieving an accuracy of 51% with Program-of-Thoughts Prompting. All the existing open-sourced models are below 15%, barely surpassing the random-guess baseline. Given the diversity and broad coverage of TheoremQA, we believe it can be used as a better benchmark to evaluate LLMs' capabilities to solve challenging science problems. The data and code are released in https://github.com/wenhuchen/TheoremQA.
Motivation & Objective
- To address the lack of benchmarks that evaluate LLMs on complex, theorem-dependent science problems requiring domain-specific knowledge.
- To create a high-quality, expert-curated dataset of 800 question-theorem-answer triples spanning Math, Physics, EE&CS, and Finance.
- To evaluate the performance of diverse large language and code models on theorem-based reasoning tasks using Chain-of-Thoughts and Program-of-Thoughts prompting.
- To identify failure modes and error patterns in LLM outputs, particularly regarding theorem recall, formula application, and calculation errors.
- To explore the challenges of multimodal science questions involving diagrams and assess the performance of vision-augmented LLMs.
Proposed method
- The dataset was constructed in two phases: first, 400 theorems were enumerated across STEM subfields; second, domain experts sourced and refined 800 questions from textbooks and the internet to ensure answer format consistency.
- Questions were curated to require application of specific theorems, such as Taylor’s theorem, Lagrange’s theorem, and Quantum Theorem, ensuring domain-specific reasoning is required.
- A wide range of 16 instruction-fine-tuned language and code models were evaluated, including GPT-4, Claude, LLaMA, CodeGen, and StarCoder.
- Two prompting strategies—Chain-of-Thoughts (CoT) and Program-of-Thoughts (PoT)—were applied to assess reasoning efficiency and accuracy.
- Theorem infusion techniques were explored to improve model performance by explicitly including the relevant theorem in the input prompt.
- Multimodal questions were created by pairing text with diagrams, and models were evaluated with and without visual encoders (CLIP, BLIP).
Experimental results
Research questions
- RQ1How well do state-of-the-art LLMs perform on theorem-driven science problems requiring deep domain-specific knowledge?
- RQ2Can Program-of-Thoughts prompting improve reasoning accuracy and output stability compared to Chain-of-Thoughts?
- RQ3What are the primary failure modes of LLMs when solving theorem-based problems, and how do they differ between models?
- RQ4To what extent do visual encoders enhance performance on multimodal science questions involving diagrams?
- RQ5Can open-source LLMs achieve competitive performance on theorem-based reasoning, or is fine-tuning on science-specific data essential?
Key findings
- GPT-4 achieved 51% accuracy on TheoremQA using Program-of-Thoughts prompting, significantly outperforming all other models.
- The second-best model, ChatGPT, achieved 35% accuracy with the same prompting method, indicating a substantial performance gap from GPT-4.
- Half of GPT-4’s errors were due to minor calculation or rounding mistakes, suggesting that improved prompting or human intervention could close much of the remaining accuracy gap.
- All open-source models tested achieved less than 15% accuracy, barely surpassing random guessing, indicating a critical need for theorem-aware pretraining or fine-tuning.
- Vision-augmented LLMs like LLaVA and VisualGLM showed no significant improvement over text-only models like Alpaca, indicating current visual encoders are inadequate for diagrammatic science questions.
- Error analysis revealed that Alpaca’s primary failure mode was not knowing the theorem (E1), while GPT-4’s errors were mostly minor computational errors (E3), indicating different failure profiles across models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.