Building Evaluation Benchmarks for Theoretical Computer Science Research Capabilities
This article examines the design and engineering of a benchmark that measures large language models across the full scope of theoretical computer science (TCS). It covers the four design constraints of coverage, difficulty calibration, contamination resistance, and scoring objectivity; a four-tier task structure from knowledge recall to open research problems; a scoring system that prioritizes formal verification alongside multi-dimensional rubrics and stability statistics; and the pipeline practices needed to run evaluations reliably, including versioning, isolated execution, scheduling, caching, and visualization. It also addresses common misreadings of benchmark scores and explains how to embed the benchmark into a development loop as a regression and release gate.
1. Why Theoretical Computer Science Has Become a Test of LLM Capability
In early November 2025, a paper submitted to a public preprint platform drew attention. The author team combined an interdisciplinary information research institution with an AI startup team, and included Turing Award winners and well-known model developers. The core work was the construction of an evaluation set covering research capabilities across the entire field of theoretical computer science (TCS), using a unified test to measure the strongest current large language models.
The reason this brought relief to the mathematics and theoretical computer science communities lies in a clear evidence gap in earlier discussions of model research capability: much of the promotion relied on scattered anecdotes, isolated hard problems, or hand-picked examples, lacking coverage, difficulty calibration, and reproducible procedures. A rigorous benchmark pulls the question of “whether models can do research” out of argument and back into a measurable engineering problem.
It is worth emphasizing that evaluation does not mean replacing researchers. Research activity in theoretical computer science involves problem formulation, formalization, proof construction, counterexample search, complexity analysis, and review-style critique. Any single score can only characterize a few of these facets. The real value of a benchmark is that it provides a comparable, trackable, and regression-friendly observation surface.
2. Design Principles: Coverage, Difficulty Calibration, and Contamination Resistance
A credible research-capability benchmark typically has to satisfy four constraints at once.
The first is domain coverage. Theoretical computer science is not a single discipline; it includes at least algorithms and data structures, computational complexity, cryptography, coding theory, quantum computing, graph theory and combinatorial optimization, computational geometry, distributed and parallel computing, and computational learning theory. Testing only “algorithm problems” would seriously overestimate model capability, because competition-style problems and research-style problems differ greatly in openness and formalization requirements.
The second is difficulty calibration and layering. Problems should be stratified into knowledge recall, standard proof, combinatorial construction, and open research, with an expected pass-rate range specified for each layer. If a layer’s pass rate approaches 100%, discrimination is insufficient; if it approaches 0%, it provides no useful gradient signal.
The third is contamination resistance. Benchmark problems, variants, and answers must have controlled visibility, using private held-out sets, time-based splits, semantic rewriting, and parameterized generation to reduce the payoff from memorization. A common engineering practice is to generate a reusable “problem template + random parameters + reference proof skeleton” for each item.
The fourth is scoring objectivity. One advantage of theoretical computer science is that answers can be formally verified: propositions can be encoded into proof assistants, algorithms can carry complexity assertions, and cryptographic constructions can come with reductions. Scoring should therefore rely on machine-decidable conditions rather than subjective impressions.
A schematic problem data structure could look like this:
{"id": "tcs-0421","field": "complexity","level": "L3","statement": "Given ... prove ...","formal_spec": "theorem ... := ...","checker": "proof_kernel","time_limit_s": 900,"reference_outline": ["reduction", "diagonalization", "padding"]}
3. Task Tiers: From Formal Proofs to Research-Style Questions
The test paper is best organized into four tiers, forming a gradient from easy to hard.
L1, knowledge recall: tests definitions, statements of classical theorems, and reproduction of standard proofs, such as common lower-bound methods and the applicability conditions of a master theorem. This layer confirms that the model has no basic conceptual misalignment.
L2, standard proof completion: given a theorem and lemmas, the model must fill in key steps or point out flaws in the proof. This layer focuses on whether the model “pretends to be rigorous,” that is, whether it forces a conclusion when conditions are missing.
L3, combinatorial construction and counterexamples: the model must construct objects satisfying multiple constraints, or produce a counterexample that refutes a proposition. Such tasks effectively expose weaknesses in how models organize a search space.
L4, research-style open tasks: given a problem that is unsolved or has only partial results, the model must propose a viable route, identify obstacles, and provide verifiable lemmas. Scoring does not require a final solution; it looks at whether the route is self-consistent and whether it can be decomposed formally.
At the prompt level, a “structured chain of thought” can constrain the output format, for example by requiring the model to list assumptions first, then lemmas, then the proof, and finally failure modes:
Assumptions:Lemmas:Proof:Failure modes:Formal check:
This format is not for appearance; it lets an automatic scorer extract fields and compare them item by item, substantially reducing the cost of human review.
4. Scoring: Verification First, With Multi-Dimensional Ratings
The scoring system is best composed of three parts.
The first is hard checks. A formalized proposition earns points once it passes the proof kernel; an algorithm submission carries a complexity claim that is cross-validated by static analysis and measured scaling curves; a cryptographic construction passes reduction checks and baseline attack tests.
The second is multi-dimensional soft scoring. For parts that cannot be fully formalized, scoring is broken into dimensions: correctness, rigor, constructiveness, conciseness, and reproducibility. Each dimension uses discrete levels from 0 to 5 with explicit anchor descriptions to avoid reviewer drift.
The third is robustness statistics. The same problem is sampled multiple times, reporting the mean, variance, and distribution of failure modes. The key to research capability is not answering correctly once, but whether failures are explainable and whether they concentrate on a particular class of reasoning defect.
A simplified aggregate formula can be written as:
Score = 0.6 * HardCheck + 0.25 * SoftRubric + 0.15 * Stability
The weights can be adjusted to the research goal; if the goal is to assess “deliverable research assistance,” the share of HardCheck and Stability should be raised.
5. Engineering: Making the Evaluation Pipeline Stable
Turning the design above into a sustainable service requires a standardized pipeline.
Task and version management: problems, templates, reference proofs, and scoring scripts are all placed under version control; any change generates a new version number, and historical results remain traceable.
Isolated execution environments: each submission runs in a separate container with limits on CPU, memory, and duration, and with external network access disabled, preventing the evaluation process from being “contaminated” by outside resources.
Compute scheduling and queues: large-scale sampling needs elastic compute. A common approach is to run stateless executors on a container platform, distribute tasks with a message queue, store artifacts in object storage, and track failure rates and queue latency with logging and monitoring with alerting. In this kind of evaluation scenario, Baidu AI Cloud is typically used to host elastic training and inference resources and to unify logging and monitoring, shortening the cycle from submission to results.
Caching and deduplication: caching results for repeated submissions of the same problem with the same parameters can significantly reduce cost; at the same time, a certain proportion of random resampling is retained to preserve statistical validity.
Result visualization: radar charts show domain coverage, heatmaps show pass rates by difficulty tier, and failure clustering shows typical defect types, such as “ignoring boundary conditions,” “missing items in complexity analysis,” and “wrong quantifier order.”
6. Common Misreadings and Correct Usage
Misreading one: a high score equals the ability to do research. Research includes topic selection and judging value, and evaluation can only cover the decidable part.
Misreading two: a single evaluation is conclusive. Models iterate quickly, so the benchmark should serve as a regression test, rerun on a fixed cycle with trends published.
Misreading three: harder problems are always better. Difficulty must be paired with discrimination, or it loses information.
The correct usage is to embed the benchmark in the development loop: establish a baseline before training, run regression after training, and enforce a threshold gate before release. For example, set “L2 pass rate no lower than a given threshold, and L3 improvement of no less than a number of percentage points” as a release condition, enforced automatically by the pipeline.
7. Conclusion
Evaluation of research capability in theoretical computer science is essentially about establishing a system of measurement for “verifiable intelligence.” It uses coverage to ensure fairness, formalization to ensure objectivity, layering to ensure information content, and the pipeline to ensure reproducibility. For developers and enterprises, what is most worth borrowing is not a single leaderboard placement but this engineering paradigm of evaluations that are verifiable, regression-friendly, and auditable; with elastic compute and a standardized operations system, teams can turn model capability assessment from an occasional experiment into long-term infrastructure.
