The Karp Dataset
Mason DiCicco, Eamon Worden, Conner Olsen, Nikhil Gangaram, Daniel Reichman, Neil Heffernan
TL;DR
The paper tackles assessing and improving the mathematical reasoning of large language models by introducing the Karp dataset, a collection of about 90 natural-language proofs of NP-hardness reductions sourced from literature. It provides a structured LaTeX-to-natural-language format with a consistent template and two evaluation sets (test and challenge), and reports results across Strawberry, Llama, and a fine-tuned LlamaReduce model. Key contributions include the dataset itself, a careful evaluation protocol with manual scoring, and evidence that prompt design and fine-tuning can boost performance on undergraduate-level reductions while remaining difficult for harder tasks. The work highlights both the potential and the challenges of automatic verification of formal reductions and suggests future directions toward machine-verifiable representations and broader datasets.
Abstract
Understanding the mathematical reasoning capabilities of Large Language Models (LLMs) is a central topic in the study of artificial intelligence. This new domain necessitates the creation of datasets of reasoning tasks for both training and benchmarking the performance of LLMs. To this end, we introduce the Karp dataset: The first dataset composed of detailed proofs of NP-completeness reductions. The reductions vary in difficulty, ranging from simple exercises of undergraduate courses to more challenging reductions from academic papers. We compare the performance of state-of-the-art models on this task and demonstrate the effect of fine-tuning with the Karp dataset on reasoning capacity.
