How to Evaluate Large Language Models on Theoretical Computer Science Research: A Practical Benchmarking Guide
This guide explains why traditional math benchmarks fail to measure real research capability in theoretical computer science (TCS) and presents an executable evaluation framework built around four complementary tracks: formalized theorem proving, solver engineering, mathematical construction, and open conjecture exploration. Every result must be verified automatically by proof kernels, hidden tests, or independent checkers; leaderboards must be sensitive to task distribution; and "novel results" must be rigorously separated from retrieval and paraphrase. The article also covers how to build such a benchmark, how to interpret ranking flips, and how research teams should use LLMs as candidate generators under machine-checkable adjudication.
How to Evaluate Large Language Models on Theoretical Computer Science Research: A Practical Benchmarking Guide
The daily work of theoretical computer science (TCS) is not writing out the solution to a competition problem with a known answer. Researchers design algorithms, construct extreme counterexamples, turn vague conjectures into testable propositions, build solvers to search enormous spaces, and judge whether a proof is genuinely new or merely a restatement of the public literature. If an evaluation only checks whether text is fluent or whether the model recites textbook theorems, a model can rank at the top of a leaderboard while contributing nothing to actual research.
This article distills the problem into an executable evaluation framework with four principles:
- Tasks should cover multiple stages of real research.
- Every result must be automatically judged by a formal kernel or an executable checker.
- Leaderboards must be sensitive to task distribution.
- “New results” must be strictly distinguished from retrieval, paraphrase, and independent discovery.
Why Traditional Math Benchmarks Fall Short
Common math benchmarks suffer from three limitations:
Narrow goals. Olympiad-style problems and proofs of known theorems cover only a small slice of the research cycle. They test the ability to reproduce derivations under given conditions—not the ability to propose constructions, choose invariants, design search strategies, or judge which side of a conjecture is worth attacking.
Subjective scoring. Long-form natural-language reasoning can earn high scores even when locally wrong, simply because the structure is complete and the terminology is correct. Human grading is expensive, and different graders apply inconsistent standards for “partially correct.”
Homogeneous distributions. If most problems come from the same proof style or difficulty band, model rankings become dominated by memorization and format adaptation to that distribution, and cannot extrapolate to open problems.
A useful evaluation should answer four questions simultaneously:
- Can the model turn a claim into a machine-checkable proof?
- Can it write runnable, reproducible solver programs?
- Can it produce mathematical objects satisfying hard constraints?
- Can it advance a frontier without a known answer, rather than pretending a conjecture has been solved?
Four Task Tracks and Their Evaluation Design
A benchmark can be organized as four complementary tracks rather than a single aggregate score.
1. Formalized Theorem Proving
Given a natural-language statement or a semi-formal lemma, the model must produce a proof script accepted by a proof kernel. Scoring depends only on whether the kernel accepts the script—not on how elegant the comments are.
Design considerations:
- Statements must be unambiguous, with all quantifiers, domains, and edge conditions spelled out. Avoid hidden assumptions like “obviously holds.”
- Allow lemmas already proven in the base library, but record the dependency closure to prevent smuggling the target conclusion back in under an alias.
- Distinguish “proof completion” from “formalization from scratch.” The former tests local reasoning; the latter additionally tests definition choice and library organization.
- Timeouts, memory limits, and search-step budgets must be written into the protocol. Otherwise a model can pass small examples with extremely slow brute-force tactics.
A representative acceptance logic:
Input: formalized statement S, proof script P, allowed dependency set DSteps:1. Statically check that P references only definitions and lemmas in D2. Submit S and P to the proof kernel3. Kernel returns acceptance within time limit T -> score4. Any axiom smuggling, unproven placeholder, or timeout -> 0Output: binary result + hash of kernel log
A binary outcome is better than partial credit on this track. Partial credit rewards text that looks like a proof.
2. Solver Engineering
Many TCS problems at small and medium scale can be written as executable searches: constraint solving, integer programming relaxations, exhaustive search with pruning, randomized local search, and so on. The task is not to “describe an algorithm” but to submit a compilable program that runs on hidden instances.
Recommended protocol:
- Fix the language runtime and dependency whitelist; prohibit network access and reading external corpora.
- Separate public samples from hidden tests; hidden tests are evaluated once after the deadline.
- Record correctness, solve rate within resource limits, solution quality (e.g., objective value), and failure modes.
- For randomized algorithms, fix several seeds and report the median, not the best run.
Engineering scores and research scores must be kept separate. Writing a readable interface and stable, reproducible experiments is not the same as discovering a new complexity bound; conversely, an irreproducible “breakthrough” should not count as research output.
3. Mathematical Constructions
Construction tasks provide a set of constraints—for example, the number of vertices, edges, and a forbidden substructure in a graph, or code length, distance, and stabilizer conditions. The model submits the object itself (adjacency list, generator matrix, parameter set), verified by an independent checker.
This track best distinguishes “telling a good story” from “actually building something”:
- Checkers should be short, auditable, and implemented independently from the generator, to avoid the generator and verifier sharing the same defect.
- Constraints must be decidable, with verification complexity far below search complexity.
- If the goal is to break a public record, the comparison baseline definition, literature cutoff date, and whether local modifications of known constructions are allowed must be stated.
- Save canonical serializations and checksums of objects so third parties can replay verification.
For example, checking whether an undirected simple graph satisfies degree and forbidden-subgraph conditions amounts, logically, to: parse the edge list, reject self-loops and duplicate edges, compute invariants, compare against thresholds. If it passes, the construction counts—regardless of how sophisticated the model’s natural-language explanation sounds.
4. Open Conjecture Exploration
Open problems have no canonical answer. The evaluation goal should not be “did the model claim to prove the conjecture” but “did it produce verifiable partial progress,” such as:
- Verifying the conjecture over a larger parameter range or finding a counterexample;
- Proving a weaker but strictly new lemma, accepted by a proof kernel;
- Tightening an upper or lower bound, with a reproducible proof or an exhaustive-search certificate;
- Reporting a clear failure: systematically ruling out a class of proof approaches, with the conditions of exclusion stated.
Narrative “ideas” without certificates receive no credit. This suppresses hallucinated major announcements.
Automatic Verification Is the Core of Evaluation, Not an Add-On
The biggest problem with LLM-based text graders is that they reward fluency. The value of a TCS result lies in falsifiability and reproducibility. Automated verification should include at least three layers.
Correctness layer. Proofs go through a kernel; programs go through hidden tests; constructions go through an independent checker. These three verdicts are not interchangeable. A solver that passes tests cannot replace a formal proof; a proof accepted by a kernel says nothing about whether the search program works at scale.
Provenance layer. Record whether retrieval was allowed for the model. If retrieval is allowed, retrieved statements, proof fragments, and the final artifact must be aligned and labeled: “reproduced,” “adapted,” “recombined,” or “no public counterpart found.” Retrieval-free tracks must sandbox the model with no network access and conduct post-hoc checks for recitation of known proofs.
Reproducibility layer. Public checkers, instance generators, random seeds, and resource limits. A third party using the same inputs must obtain the same verdicts. Archive log hashes, object checksums, and kernel version numbers.
Acceptable failures include timeouts, checker rejection, and exceeding resource limits. What is unacceptable: a human adding points because the reasoning “looks plausible.”
Why Leaderboards Flip, and How to Read Them
The same set of systems can rank in opposite orders on a “full task set” versus a “reduced subset.” This is not surprising. If the full set is weighted toward theorem proving, systems good at long proofs lead; if the reduced set raises the proportion of construction and solver tasks, systems with stronger engineering and search abilities rise. This means rankings are a function of the task distribution, not a total ordering of research capability.
Interpretation guidelines:
- Report per-track pass rates, certificate types, and resource consumption, not just a weighted total score.
- Report confidence intervals or at least the number of problems. A 20-problem set has high percentage fluctuation; don’t over-interpret rankings.
- Run distribution-sensitivity analysis: reweight by difficulty, domain, and reliance on retrieval, and check whether rankings are stable.
- List “new certificates” separately instead of mixing them into pass rates for old problems. Old problems test capability; new certificates come closest to research increments.
A single leaderboard is good for publicity, not for decisions. Teams should select the track closest to their own work.
What Counts as a “Valuable New Result”
Models can already, when constraints are explicit, produce independently verified constructions or tighter verifiable bounds. This is different from reciting textbooks. Typical increments include: an extreme example that still holds at larger parameters; an object with one more edge or one fewer violated constraint than the public record; pushing the machine-verified range of a combinatorial conjecture one step further; a new small-parameter stabilizer code with verification logs attached.
But the boundary must be drawn soberly:
- In open-conjecture tasks, complete solutions will be rare. Most “partial success” consists of retrieving an existing proof and adapting it to the current formal environment—useful engineering, not an independent conquest of the conjecture.
- Improving a finite-parameter record does not solve an asymptotic question over an infinite family. Papers and leaderboards must state the parameter range.
- Even when a construction passes the checker, ask: is it isomorphic to a known construction, or did a random search merely stumble into a small space? Isomorphism testing, literature comparison, and search logs should be public.
- Negative results are valuable too. A systematic demonstration that “no code of this type exists within the given length” is more reliable than a vague positive announcement.
A simple yardstick for originality: if retrieval and known-proof hints are removed, does the certificate still hold, and does no identical object exist in the public literature? If yes, record it as a verifiable increment; otherwise classify it as reproduction or adaptation.
A Practical Process for Building the Evaluation
For internal assessment or an academic benchmark, you can proceed in the following order without waiting for a perfect problem bank.
- Define capabilities, not models. Decide up front whether you are testing proving, solving, constructing, or conjecture progress. Each problem should primarily test one capability; avoid items that simultaneously reward writing style and correctness.
- Write checkers before soliciting problems. Freeze checkers, kernel versions, and resource limits before collecting candidate problems. Problem authors and checker implementers should ideally be different people.
- Build a small gold-standard set. Use known proofs, known optimal constructions, and deliberately wrong objects to confirm the checkers produce true positives and true negatives. Checkers themselves need regression tests.
- Split public and hidden sets. The public set is for debugging formats; the hidden set is for reporting. For construction tasks, use generators for hidden constraints to prevent hardcoding against individual numbers.
- Protocolize retrieval. Clearly define three modes—no retrieval, retrieval from a fixed corpus, and open retrieval—and rank them separately. Comparisons across systems must use the same retrieval mode.
- Record process, not just answers. Save proof dependencies, program versions, random seeds, and failure logs. Process data is for auditing, not for awarding style points.
- Publish a replication package. At minimum, include problem statements, checkers, accepted examples, rejected examples, and a one-page explanation of verdicts. Scores without a replication package should not be cited.
- Review periodically. Theoretical results get superseded by later literature. Update “knownness” labels each cycle, so last year’s new construction isn’t forever counted as a breakthrough.
How R&D Teams Should Use These Results
If the goal is to use large models in algorithm research and formal verification, evaluation conclusions should translate into workflows, not slogans:
- Put models in the “candidate generator” position and put kernels and checkers in the “final arbiter” position. Humans choose definitions, interpret failures, and decide whether something is worth writing up.
- For proving tasks, prioritize having models complete local lemmas, generate counterexample attempts, and list dependencies—not generating an entire paper-style proof in one shot.
- For construction tasks, use models to propose search neighborhoods and pruning rules, then let deterministic programs enumerate. A single random hit must be replicated.
- For open problems, require output in the form of checkable partial certificates: extended verification ranges, weaker lemmas, or explicit counterexample-search boundaries. Reject conclusions that have narrative but no object.
- Weight internal leaderboards by business distribution. If your team primarily builds solvers, don’t let theorem-proving pass rates decide your technical roadmap.
Limitations and Common Misreadings
Automatic verification removes the “looks right” inflation, but it does not remove all bias. If problems are too close to the training corpus, high scores reflect memorization. If checkers have bugs, wrong constructions slip through. If the hidden set is small and drawn from the same distribution as the public set, rankings remain unstable. Failure on open conjectures is normal and should not be spun as evidence that a model “has no research value”; likewise, improvements on individual parameters should not be advertised as “independently solving major open conjectures.”
The sober formulation is this: when a task is specified precisely and results are machine-falsifiable, large models can serve as candidate generators and experimental accelerators for theoretical research, occasionally producing independently verified constructions or bound improvements. They remain far from independently conquering open conjectures without relying on retrieval. The responsibility of an evaluation is to state both of these facts clearly—and to support them with certificates, not rhetoric.
