Evaluating LLM Mathematical Capabilities: The Boundary Between Problem Solving and Research

    Evaluating large language models in mathematics requires more than checking answers to established problems. Graph construction and quantum error-correcting code design illustrate how research-oriented tasks test candidate generation, optimization, and proof. This article explains the verification requirements for these tasks, distinguishes improvements over a baseline from genuine mathematical discoveries, and outlines a reproducible evaluation workflow for research and development teams.

    1. Mathematical Evaluation Is Moving from Finding Answers to Finding Objects

    Before discussing a large language model’s mathematical capabilities, we need to define what is being evaluated. Solving a problem with a known answer and discovering a new mathematical object that satisfies complex constraints both require reasoning, but they test different capabilities.

    Conventional problem-solving tasks provide explicit conditions and ask for a number, expression, or proof. Research-oriented tasks may instead specify constraints and an optimization objective, leaving the model to find a better structure. Examples include constructing the densest possible graph with a fixed number of vertices and no specified short cycles, or designing a quantum code with stronger error protection under fixed physical resources.

    The source material describes two candidate results:

    • A graph with 124 vertices and 630 edges containing no cycles of length 3 or 4, exceeding a stated reference value of 629 edges.
    • A quantum stabilizer code candidate using 25 physical qubits to encode 7 logical qubits, with distance 6 rather than the stated reference distance of 5.

    These descriptions suggest a promising direction, but the material does not include complete constructions, verification programs, evaluation protocols, or supporting proofs. The appropriate interpretation is therefore conditional: if independently verified, these candidates would demonstrate the value of model-assisted mathematical construction. Result summaries alone do not establish originality, optimality, or autonomous research capability.

    2. Graph Construction: Why One Additional Edge Can Matter

    2.1 Discrete Optimization Under Global Constraints

    Consider an undirected simple graph (G=(V,E)) with the following requirements:

    • Exactly 124 vertices.
    • No self-loops or duplicate edges.
    • No triangles.
    • No cycles of length 4.
    • As many edges as possible while satisfying these constraints.

    This is not simply a matter of adding edges one at a time. A new edge may close an existing path into a prohibited short cycle. As the graph becomes denser, the number of legal additions usually decreases. Further improvements may require deleting, replacing, and rearranging several edges at once.

    In this setting, an improvement of one edge can be meaningful. However, exceeding a reference value is not the same as setting a new known record. The reference may come from the task specification, a baseline algorithm, or a limited search. It is not necessarily the best publicly known result.

    2.2 How to Verify a Candidate Graph

    A graph’s validity should be established through deterministic checks on an adjacency list or edge list, not through the model’s verbal assurance.

    Basic checks cover the vertex count, endpoint ranges, duplicate edges, self-loops, and edge count. The verifier must then check the short-cycle constraints.

    For any vertex (v), an edge between two of its neighbors creates a triangle. Triangle detection can therefore check whether each vertex’s neighborhood contains an edge.

    Checking for four-cycles relies on another useful property: an undirected simple graph contains a four-cycle if two distinct vertices have at least two distinct common neighbors. Equivalently, a graph has no four-cycles if every pair of distinct vertices has at most one common neighbor.

    The verification logic can be summarized as follows:

    1. Check vertex count, edge count, self-loops, and duplicate edges
    2. For each vertex:
    3. Check whether any two of its neighbors are connected
    4. If so, report a triangle
    5. For each pair of distinct vertices:
    6. Count their common neighbors
    7. If the count exceeds 1, report a four-cycle
    8. Accept the construction only if every check passes

    These tasks have an important asymmetry: finding a high-quality object can be difficult, while checking a proposed object is often relatively straightforward. That creates a clear interface for collaboration: the model proposes candidates, and a program determines whether they are valid.

    2.3 Where the Model Can Contribute

    An LLM does not necessarily generate the final graph directly. It may contribute to the search strategy by proposing an initial structure, designing local modification rules, explaining failed attempts, or adjusting the search direction based on verification feedback.

    For example, a workflow might generate a candidate graph, identify edges involved in short cycles, and then remove and add edges. The model’s contribution may lie in selecting promising modifications rather than replacing all search computation.

    Evaluations should therefore distinguish between a model that outputs a construction directly and a model that designs an effective search program. Both contributions can be valuable, but they are not evidence of the same capability.

    3. Quantum Error-Correcting Codes: Better Parameters Require More Complex Verification

    3.1 What the Three Parameters Mean

    Quantum error-correcting codes are commonly described using ([[n,k,d]]):

    • (n): the number of physical qubits.
    • (k): the number of encoded logical qubits.
    • (d): the code distance, which characterizes protection against local errors.

    Under the usual error model, a quantum code of distance (d) can correct up to (\lfloor(d-1)/2\rfloor) arbitrary qubit errors at unknown locations. It can also correct up to (d-1) erasure errors whose locations are known.

    Increasing the distance from 5 to 6 therefore does not increase the guaranteed number of correctable arbitrary errors: both distances guarantee correction of up to 2 such errors. The increase does improve capabilities such as error detection and erasure correction. Saying that the higher distance allows correction of one additional arbitrary error would be inaccurate.

    3.2 Requirements for a Valid Stabilizer Code

    A standard binary quantum stabilizer code is typically specified by a set of mutually commuting stabilizer generators that satisfy the necessary independence and consistency conditions.

    To encode (k) logical qubits, the stabilizer must have (n-k) independent generators. For 25 physical qubits and 7 logical qubits, that means 18 independent generators. A supplied generator list may contain more rows, but a rank check must establish the actual number of independent constraints.

    Verification should confirm at least the following:

    1. The generator representations are valid and act on the correct qubits.
    2. Every pair of generators commutes.
    3. The number of independent generators matches the claimed encoding dimension.
    4. The generated stabilizer group does not contain the negative identity operator.
    5. The claimed code distance is adequately supported.

    A statement that “the program ran successfully” is not a substitute for these checks. Each condition should have an inspectable verification result.

    3.3 A Distance Lower Bound Is Not an Exact Distance

    The distance of a stabilizer code is the minimum weight of a nontrivial logical operator: an operator that commutes with every stabilizer but is not itself in the stabilizer group. Weight is the number of physical qubits on which the operator acts nontrivially.

    To prove that the distance is at least 6, verification must rule out every nontrivial logical operator of weight below 6. To prove that the distance is exactly 6, it must also exhibit a nontrivial logical operator of weight 6 or provide equivalent evidence for an upper bound.

    Consequently:

    • Failing to find a low-weight logical operator during a search does not automatically constitute a complete proof.
    • Finding a logical operator of weight 6 generally establishes only that the distance is at most 6.
    • Ruling out all lower-weight operators and providing a weight-6 example establishes the complete evidence chain for exact distance.

    Compared with checking a graph for short cycles, verifying code distance can be more computationally expensive. It therefore requires particular clarity about search coverage, algorithm correctness, and the form of the verification certificate.

    4. Construction, Proof, and Discovery Are Different Achievements

    Mathematical research capability can be evaluated at four levels.

    Level 1: Generate a valid object.
    The model produces an instance that satisfies the constraints. The primary concern is correctness.

    Level 2: Improve the objective value.
    The model exceeds an explicit baseline under the same conditions. The primary concern is optimization capability.

    Level 3: Explain why the object works.
    The model supplies not only data but also a checkable proof or structural explanation. The primary concern is the quality of the mathematical argument.

    Level 4: Develop a generalizable method.
    The model extracts a construction rule, theorem, or algorithm that applies to a class of problems rather than a single instance. The primary concern is generalization.

    Success at one level does not automatically imply success at the next. Finding a strong instance does not establish its optimality. Proving that a particular instance works does not establish a general theory for arbitrary sizes.

    Likewise, a fluent proof is not necessarily a rigorous proof. If formal verification is used, the evaluation must also confirm that the formal statement matches the original problem, that no proof obligations remain unfinished, and that additional assumptions have not bypassed the central conclusion.

    5. Designing Credible Research-Oriented Evaluations

    5.1 Standardize Resource Budgets

    If systems differ in the number of candidates they generate, program executions, runtime, or human guidance, their best results cannot be attributed simply to the models themselves.

    Evaluations should disclose at least:

    • Model-call volume.
    • Search time.
    • External computing resources.
    • Available feedback.
    • The extent of human involvement.

    Ideally, they should report both performance under a fixed budget and how performance changes as the budget increases.

    5.2 Separate Candidate Generation from Verification

    Candidate generation may be stochastic, but verification should be as independent, deterministic, and reproducible as possible. The model must not be allowed to declare its own candidate valid or change the acceptance criteria after a failure.

    For tasks involving generated code, the execution environment should also have restricted permissions and controlled computing resources. Inputs, outputs, and error logs should be retained so that environment failures are not mistaken for mathematical results.

    5.3 Report Distributions, Not Just Highlights

    A single best result may indicate the system’s potential, but it says little about reliability. More informative metrics include:

    • The proportion of valid candidates.
    • The success rate for reaching the reference value.
    • The distribution of achieved objective values.
    • Average verification cost.
    • Variation across independent runs.

    For systems that succeed only occasionally, evaluations should also explain the cost of failure. A low success rate may be acceptable when a verifier can easily reject incorrect constructions. If errors are difficult to detect, the practical risk is much greater.

    5.4 Check Novelty and Reference Baselines

    Exceeding a task’s reference value establishes only an improvement over that baseline. A claim of a new mathematical result requires checking existing literature, published constructions, and equivalent transformations to rule out a restatement of a known object.

    Publishing the candidate object and its verification method is more persuasive than publishing an impressive number alone.

    6. A Practical Workflow for Research and Development Teams

    Teams using LLMs for mathematical exploration, combinatorial optimization, or code design should build a closed-loop workflow:

    Problem specification → Candidate generation → Independent verification → Failure analysis → Targeted improvement → Result archiving

    During problem specification, define the object representation, hard constraints, and optimization objective clearly enough to prevent task misunderstandings.

    During candidate generation, the model may propose structures, search rules, or programs. Independent verification must then evaluate object validity separately from objective quality.

    Feedback should be more specific than “failed.” For graph construction, a verifier can return the vertices involved in a prohibited cycle. For quantum codes, it can return a pair of noncommuting generators, evidence of insufficient rank, or a low-weight logical operator. Concrete, localized feedback is more useful for subsequent improvement.

    Final archives should retain the candidate object, generation process, verifier version, and complete logs. Only then can an occasional success become a technical asset that others can inspect and reuse.

    7. The Current Boundary: Useful Exploration, but Research Requires Evidence

    Research-oriented tasks show why LLMs’ mathematical value should not be measured solely by examination scores. Models can contribute to construction search, algorithm design, counterexample discovery, and proof drafting, especially when paired with independent verification.

    However, a substantial gap remains between producing a valuable candidate and independently completing reliable research. Proofs may omit necessary conditions, searches may fail to cover all cases, results may lack novelty, and successful instances may not generalize.

    The more accurate conclusion is that LLMs are becoming candidate generators and exploration assistants within mathematical research workflows. Their research contributions must still be established through independent verification, rigorous arguments, and reproducible experiments.

    The central question is not merely whether a model can occasionally find a better number. It is whether it can help turn such results into reliable mathematical knowledge consistently, transparently, and verifiably.