MathConstruct: Challenging LLM Reasoning with Constructive Proofs

Mislav Balunovic, Jasper Dekoninck, Nikola Jovanović, Ivo Petrov, Martin Vechev

Introduction

As Large Language Models (LLMs) continue to advance, traditional mathematical benchmarks like MATH and GSM8K are reaching saturation. State-of-the-art models now frequently achieve near-perfect scores on these datasets, which often rely on fixed, short-form numerical or multiple-choice answers. This saturation suggests that these benchmarks may no longer effectively distinguish between genuine mathematical reasoning and sophisticated pattern matching or memorization.

To address this, we introduce MathConstruct, a new benchmark consisting of 121 olympiad-level problems designed to shift the evaluative focus from simple answer-matching to constructive proofs. These tasks require models to generate complex mathematical objects—such as specific matrices, graphs, or sequences—that satisfy a set of rigorous constraints.

The Challenge of Constructive Proofs

Constructive proofs represent a middle ground between simple numerical answers and formal theorem proving (e.g., using languages like Lean). While formal proofs are difficult to evaluate without specialized fine-tuning, constructive proofs are "asymmetric": they are intellectually demanding to solve but computationally simple to verify.

MathConstruct utilizes a curated set of problems from high-level competitions like the International Mathematical Olympiad (IMO) and the United States of America Mathematical Olympiad (USAMO). The dataset spans four primary domains: Combinatorics, Algebra, Number Theory, and Geometry.

Methodology and Evaluation Framework

The core of MathConstruct is its automated evaluation pipeline, which moves beyond string matching to verify the underlying logic of a solution:

  • Programmatic Verifiers: Each problem is paired with a Python-based checker. Instead of checking if a model's output matches a specific string, the checker evaluates whether the proposed mathematical object satisfies the problem's constraints.
  • Problem Variations: To test for generalized reasoning rather than specific instance memorization, the benchmark includes variations for each problem (e.g., changing a parameter $n$ from 4 to 6). The 121 unique problems are thus expanded into 456 distinct instances.
  • Robust Accuracy: This metric requires a model to solve all variations of a problem to receive credit. This stricter standard reveals whether a model has developed a generalized algorithm or is merely succeeding on specific cases through luck or data contamination.
  • Parser Feedback: Constructing complex objects in LaTeX is syntactically demanding. To ensure models are judged on their reasoning rather than their formatting skills, the framework provides two rounds of feedback from a specialized parser to help correct syntax errors.

Experimental Results

The results from MathConstruct highlight a significant performance gap between different classes of models, particularly between standard autoregressive models and those optimized for reasoning.

The Reasoning Tier vs. Standard Models

"Reasoning" models—those utilizing extended inference-time compute—demonstrate a clear advantage. OpenAI’s o3-mini currently leads the benchmark, achieving 60.54% average accuracy and 42.15% robust accuracy. It is followed by o1 (45.32% average) and Google's experimental Flash-Thinking (28.79%).

In contrast, standard models like GPT-4o (4.13%) and Claude 3.5 Sonnet (4.96%) largely fail the benchmark. This suggests that constructive proofs require "System 2" thinking—deliberate, multi-step reasoning—that standard generation lacks.

The Robustness Gap

A key finding is the disparity between average and robust accuracy. For instance, o1-mini achieves approximately 27% average accuracy but drops to 11% robust accuracy. This "robustness gap" indicates that models often fail to generalize their solutions across different parameters of the same mathematical principle.

Impact of Tools and Feedback

  • Parser Feedback: Providing automated feedback on formatting errors significantly improves performance. For o3-mini, this feedback loop increased accuracy by approximately 15%, highlighting that output formatting remains a non-trivial bottleneck in evaluation.
  • Code Execution: When models are permitted to write and execute Python code to assist in finding solutions, their accuracy roughly doubles, though this significantly increases the computational cost of the inference.

Discussion and Future Work

MathConstruct reveals that even the most advanced reasoning models struggle with generalized constructive proofs. While models like o1 show signs of pattern recognition from similar problems found in training data, others like Flash-Thinking appear to rely on exhaustive search, which becomes computationally infeasible as problem complexity scales.

Future iterations of this work will focus on expanding the problem set and developing "agentic" frameworks where models can iteratively self-correct using their own verifiers. By moving the goalposts from "getting the right number" to "building the right object," MathConstruct provides a more rigorous path toward evaluating true mathematical intelligence in LLMs.

Summary updated

BibTeX
@inproceedings{balunovic2025mathconstruct,
  author = {Mislav Balunovic and Jasper Dekoninck and Nikola Jovanović and Ivo Petrov and Martin Vechev},
  title = {{MathConstruct: Challenging LLM Reasoning with Constructive Proofs}},
  booktitle = {International Conference on Machine Learning},
  year = {2025},
  url = {https://openreview.net/forum?id=focYle7CfD},
}
Figure