Theoretical Computer Science Benchmark for LLMs: How Machine-Verifiable Evaluation Works

    This article breaks down a benchmark that tests leading large language models on theoretical computer science (TCS) problems with machine-checkable answers. It explains why solving problems is not the same as doing research, the three structural weaknesses of existing benchmarks, the four task types and deterministic verifier-based grading pipeline, and how to build a reproducible evaluation workflow using container platforms, object storage, message queues, and monitoring. The key takeaway: no model completed proofs of open problems without external hints, which exposes a measurable boundary of current research capability.

    1. Background: Being Good at Problems Is Not the Same as Doing Research

    A recent evaluation paper from a joint team of universities and research institutions has drawn significant attention. Its approach is straightforward: give the most capable current large language models an exam drawn entirely from Theoretical Computer Science (TCS), with conclusions designed to be automatically verifiable by machine. The finding is equally straightforward but powerful: when facing long-standing open problems in the field, none of the evaluated models actually completed a proof without external hints.

    To understand the significance, it helps to clear up a common misconception: rising scores on leaderboards mainly show that a model is getting better at tasks with established solution patterns, not that it can conduct independent research.

    1.1 The Core Difference Between Solving Problems and Doing Research

    • Is the goal known? When solving a problem, the answer is fixed and the grading criteria are public. In research, you often do not even know what the correct answer looks like.
    • Is the path given? Problem solving offers reusable techniques. Research requires choosing among many paths that may all turn out to be dead ends.
    • How is the result judged? Problem solving is a matter of comparing against an answer key. Research relies on peer review, which is slow, costly, and subjective.

    An analogy: programmers are more like drivers, concerned with the engine, transmission, and interior. TCS cares about traffic itself—what is the theoretical minimum travel time between any two points, and are there routes that can never be traversed? It studies the boundaries of “computation” as an object.

    1.2 Why Math and TCS Are the “Sweet Spot” for Evaluation

    Proofs in mathematics and TCS have one important property: correctness can be checked automatically by a program. This is like Sudoku—filling in the grid is hard, but once it is filled, a single scan confirms whether it is correct. In these two fields, the cost of grading is significantly lower than in other disciplines, and uncontroversial conclusions are easier to obtain.

    2. Three Structural Weaknesses of Existing Benchmarks

    Weakness 1: Public Questions and Answers Let “Memory” Contaminate “Ability”

    In many benchmarks, the questions, reference solutions, and even solution steps already appear extensively in public corpora. Models may have memorized conclusions and common techniques rather than genuine derivation ability. Evaluation results are therefore systematically inflated.

    Weakness 2: Grading Against Reference Answers Cannot Cover “Multiple Solutions” or “New Solutions”

    Traditional automatic evaluation relies on string matching or model-based scoring. The former is extremely fragile against equivalent transformations; the latter introduces new uncertainty. Neither can answer a critical question: is the proof a model provides logically sound?

    Weakness 3: A Narrow Task Distribution Fails to Reflect Real Research Work

    Real research includes proposing conjectures, constructing counterexamples, providing algorithms and lower bounds, and systematic surveys and re-proofs. Covering it only with “solve problems with known answers” leaves out the most valuable parts of research.

    3. Benchmark Design: 100 Problems, Four Task Types, Machine-Graded

    The core design idea can be summarized in one sentence: only ask questions a machine can grade, and make the questions as close to real research as possible. TCS happens to satisfy this constraint—a large number of results have discrete, enumerable, verifiable decision procedures.

    3.1 Four Task Types and the Capabilities They Target

    • Decidable slices of open problems: decompose long-standing conjectures into finite-scale subproblems that can be exhaustively verified, with unique, automatically checkable answers.
    • Constructions and counterexamples: produce a construction satisfying specific properties, or a counterexample that refutes a proposition, verified by programmatically checking whether the properties hold.
    • Complexity and bound decisions: under a given model and resource constraints, decide whether an upper or lower bound is achievable, with answers given in discrete form.
    • Proof rediscovery and equivalent transformation: given a result, produce a sequence of proof steps that a machine can verify.

    3.2 A Sketch of the Grading Flow

    Grading does not depend on reference answer text; it depends on a “verifier.” Pseudocode:

    1. def grade(submission, verifier):
    2. # 1) Syntax check: format, symbols, and dependencies are complete
    3. if not verifier.check_syntax(submission):
    4. return {"score": 0, "reason": "syntax"}
    5. # 2) Semantic check: verify each reasoning step
    6. ok, trace = verifier.check_proof(submission)
    7. # 3) Counterexample/construction: run the programmatic property check
    8. if submission.kind in ("construction", "counterexample"):
    9. ok = verifier.run_property_test(submission)
    10. return {"score": 1 if ok else 0, "trace": trace}

    The key point: the scoring function is deterministic, repeatable, and model-independent. This removes any dispute over “who grades the exam.”

    3.3 Contamination Control and Difficulty Tuning

    • Private variants: apply parameterized perturbations to public problems to generate isomorphic instances with different phrasing.
    • Scale ladder: give both a small-scale (exhaustively solvable) and large-scale (requires insight) version of the same problem to see whether the model is merely brute-force enumerating.
    • Time split: prioritize new results that appeared after the evaluation cutoff to reduce the payoff from memorization.

    4. Interpreting the Results: Why “No One Solved the Open Conjectures” Is an Important Signal

    The evaluation shows that the models performed steadily on “decidable slice” and “construction/counterexample” tasks, but generally failed on open-problem slices requiring multi-step, long-chain reasoning. This conveys three points:

    1. Current models are more like “efficient pattern matchers and local searchers” than “autonomous researchers.”
    2. The automatic verification mechanism makes negative conclusions equally credible: it is not that “no one can understand it,” but that “the verifier explicitly determined it does not hold.”
    3. The value of the evaluation is not the ranking, but a traceable capability boundary that provides direction for future training and tool integration.

    5. Engineering Practice: Building a Reproducible Evaluation Pipeline

    To reproduce a similar evaluation within your own team, you can follow this layered architecture. The overall approach is a four-stage flow: problem generation → sandbox execution → automatic grading → report attribution.

    5.1 Resources and Isolation

    • Compute: use a container platform to host untrusted code, limiting CPU, memory, and execution time.
    • Storage: store problems, submissions, and verification logs separately in object storage, managed by batch and version.
    • Queue: use a message queue to decouple “submission → verification,” supporting high concurrency and retry on failure.

    5.2 Observability

    • A logging service centrally collects verifier output for post-mortem analysis of failures.
    • Monitoring and alerting set thresholds for “verification timeout rate,” “syntax failure rate,” and “pass rate drift” to prevent evaluation environment degradation.

    5.3 Data and Versioning

    • Problems and verifiers are bound to the same version; any change generates a new version number.
    • Sampling and random seeds are fixed to guarantee reproducibility.

    5.4 A Minimal Submission Format Example

    1. {
    2. "task_id": "tcs-0421",
    3. "kind": "counterexample",
    4. "artifact": "proof_or_instance.json",
    5. "meta": {"seed": 7, "model": "anonymous", "prompt_ver": "v3"}
    6. }

    6. Common Pitfalls and Best Practices

    • Pitfall 1: Higher scores mean closer to research ability. In practice, report scores in layers: decidable tasks, construction tasks, and open slices each get separate scores.
    • Pitfall 2: Letting the model grade itself. Self-assessment introduces new uncertainty; rely on a deterministic verifier instead.
    • Pitfall 3: One large one-off evaluation. Run small and iterate quickly—start with small exhaustive instances, then scale up gradually.
    • Best practice: treat the “verifier” as a first-class citizen in design and testing. Its coverage and edge-case quality directly determine the credibility of the evaluation.

    7. Conclusion

    The significance of this exam is not to rank models, but to break “research ability” into a verifiable, reproducible, and traceable engineering problem. For developers, it offers a reusable methodology: replace subjective review with deterministic grading, suppress memorization and enumeration with private variants and scale ladders, and use layered reporting to reveal the true capability boundary. If you are building an evaluation or training pipeline on Baidu AI Cloud, you can combine the four-stage architecture above with general cloud product categories (container platform, object storage, message queue, logging service, monitoring and alerting) to form a robust, scalable, and auditable capability assessment system.