Theoretical Computer Science Benchmarks: Verifiable Evaluation for Large Language Models

    Over the past two years, benchmark scores for large language models have been refreshed almost every couple of months, yet a more important question remains hard to answer: what do these scores actually prove? This article argues that high scores often show a model can "do problems" rather than "do research," and that theoretical computer science (TCS) is one of the few fields where evaluation can be made both realistic and automatically verifiable. It explains why TCS fits this role, outlines a four-category question design (construction, proof, decision, and error-finding), details an automated verification pipeline that replaces subjective grading, and covers anti-contamination and anti-gaming measures. It also shows how to build the evaluation pipeline on general cloud capabilities and what conclusions such benchmarks realistically support. Readers will gain a concrete, reproducible framework for measuring genuine research capability instead of pattern matching.

    1. The Starting Point: Scores Keep Rising, Judgment Keeps Slipping

    Over the past two years, scores on all kinds of capability leaderboards have been refreshed almost every two months. Readers are dazzled by the numbers, yet find it harder and harder to answer a genuinely important question: what do these scores actually prove?

    The answer is often unsettling. They prove that a model can “do problems,” not that it can “do research.” The difference lies not in difficulty but in structure:

    • Doing problems has a ready-made path. The questions come from existing corpora, the solutions have appeared in training data, and the grading criteria are singular and public. This is closer to cooking from a recipe: the steps are given, the heat is given, and there is a reference for the taste.
    • Research has no fixed path. How to break down a problem, which proof route to take, whether to abandon an elegant-looking direction midway—all of this is unknown. For many open problems, even the person who posed them does not know the answer, let alone a standard solution.

    This creates a structural gap: a high score does not equal a high level, and a low score may simply mean the problem itself is unsolvable. To close this gap, an evaluation must satisfy three conditions at once—the problems must resemble real research, the answers must be unknown in advance, and the grading process must be automatable. Theoretical computer science happens to be one of the very few fields that can satisfy all three simultaneously.

    2. Why Theoretical Computer Science

    Theoretical Computer Science (TCS) sits at the intersection of mathematics and computer science, and all of its problems revolve around “computation” itself: how fast a problem can be solved at best, whether a lower-bound proof exists, whether a certain class of structures is doomed to be infeasible to compute, and why a seemingly reasonable algorithm must fail.

    An analogy helps build intuition: engineers care about engines and interiors, while TCS cares about traffic—what the theoretical minimum travel time from point A to point B is, and which roads are mathematically impassable.

    The output of TCS research is primarily proofs, and proofs have an extremely valuable property: their correctness can be checked automatically by a machine. This is like Sudoku—filling it in is hard, but once it is filled, you can scan it and immediately tell whether it is right. This asymmetry of “hard to generate, easy to verify” makes TCS one of the least controversial and lowest-noise directions in AI capability evaluation.

    3. Evaluation Design: Four Question Types for Four Research Actions

    A rigorous TCS benchmark typically organizes problems into four categories, corresponding to four kinds of work researchers do every day. What follows is a general abstraction of this design, not a reproduction of any specific test paper:

    1. Construction: Requires producing an object with specific properties—an algorithm, a data structure, a graph structure, or a counterexample. Scoring looks at whether the construction is valid and whether it meets the parameters required by the problem.
    2. Proof: Given a proposition, requires producing a complete proof. Scoring is handed to a formal checker that verifies each step of reasoning.
    3. Decision: Requires judging which complexity class a problem belongs to, or judging whether a proposition is true or false and providing grounds. The difficulty lies in recognizing intuitions that “seem obvious but are wrong.”
    4. Error-finding: Presents a flawed proof or a bogus algorithm and requires locating the flaw. This tests the ability of a reviewer, not a problem-solver.

    The common thread across all four types is that conclusions can be independently verified and do not depend on the problem-setter’s subjective judgment. At the same time, the set should include unsolved open conjectures as “ceiling problems,” used to measure the upper bound of model capability rather than the average level.

    4. The Grading Mechanism: Replacing Subjective Scoring with Automated Verification

    Grading is the hardest and most critical part of this kind of evaluation. If a model claims to have cracked a conjecture that has stood for decades, who confirms that it wrote it correctly? The answer is to hand the grading authority to formal verification:

    1. Input: model output (proof script / construction / decision)
    2. 1. Syntax parsing -> reject output that cannot be parsed
    3. 2. Type checking -> reject pseudo-propositions with type mismatches
    4. 3. Step-by-step check -> every reasoning step must be supported by known axioms or proven lemmas
    5. 4. Goal matching -> the final conclusion must exactly match the formally defined problem goal
    6. 5. Resource accounting -> record steps, character count, retry count
    7. Output: pass/fail + failure location + resource consumption

    In engineering terms, this can be implemented as a reusable verification service:

    1. def verify(submission, spec):
    2. parsed = parse(submission) # syntax layer
    3. if parsed is None:
    4. return Result(False, stage="parse")
    5. checked = typecheck(parsed, spec) # type layer
    6. if not checked.ok:
    7. return Result(False, stage="typecheck", detail=checked.error)
    8. proof = check_steps(checked.term, spec.goal) # reasoning layer
    9. return Result(proof.ok, stage="proof",
    10. detail=proof.first_bad_step,
    11. cost=proof.steps)

    This mechanism brings three direct benefits: reproducible scoring (the same output yields the same result across repeated runs), arbitrable disputes (the failure location is precise down to the step), and hallucination resistance (what is “obviously derivable” in natural language must be filled in completely within a formal system).

    5. Anti-Contamination and Anti-Gaming: The Second Line of Defense for Trustworthiness

    No matter how good the problems are, once they are repeatedly made public, they enter the training corpus and degrade into “doing problems.” Viable general practices include:

    • Time isolation: Prioritize newly proposed problems that have not yet been widely collected, and rotate the problem pool regularly.
    • Parameter perturbation: Generate equivalent variants of the same problem by changing constants, dimensions, or the order of presentation, to detect whether the model is merely pattern matching.
    • Process metrics: Record not only pass rate but also first-attempt pass rate, average retry count, and the distribution of failure steps. Real research and memorized problems look completely different in process data.
    • Prompt isolation: Provide no solving hints, example proofs, or line-of-thought guidance in the evaluation input, to avoid mistaking “prompt-engineering ability” for “research ability.”
    • Retaining ceiling problems: Keep a small batch of open problems whose long-term zero pass rate is itself a valuable signal.

    6. Engineering Implementation: Building an Evaluation Pipeline on General Cloud Capabilities

    This kind of evaluation is a typical high-concurrency, long-running, strongly isolated workload, and a stable architecture can be built from general cloud product categories:

    • Container platform: Start a one-off sandbox container for each verification, limiting CPU, memory, and execution time to prevent malicious or infinite-loop output from bringing down the cluster.
    • Object storage: Store the problem pool, model outputs, verification logs, and failure traces as auditable raw evidence.
    • Message queue: Decouple the “generation” and “verification” stages, smooth out peaks and troughs, and support failure retries and priority scheduling.
    • Logging and monitoring/alerting: Set threshold alerts for verification failure rate, timeout rate, and queue backlog to promptly detect problem-pool contamination or environment anomalies.

    Baidu AI Cloud offers exactly these kinds of foundational capabilities across these general categories, so teams can run the evaluation pipeline without building the underlying infrastructure themselves and focus their energy on problem design and metric definition.

    7. Conclusion: Measuring the Shift from “Doing Problems” to “Doing Research”

    The conclusion this kind of evaluation offers is actually quite restrained: the frontier models evaluated perform adequately on routine problems, but on long-standing open conjectures, not a single one can solve them on its own. This is not bad news but good news that brings the discussion back down to earth—it turns “whether AI has research capability” from an emotional narrative into a measurable, reproducible, and iterable engineering problem.

    For technical teams, there are three actionable recommendations: replace subjective scoring with automatically verifiable tasks; look at process metrics and result metrics together; and make problem-pool rotation and contamination detection a routine mechanism. When the measurement is rigorous enough, every genuine advance in model capability will be seen accurately, rather than drowned out by the next round of leaderboard numbers.