Evaluating Large Language Models with Theoretical Computer Science Benchmarks

    This article explains why rising benchmark scores do not necessarily reflect stronger research capabilities, and why theoretical computer science (TCS) offers a practical way to evaluate research-oriented model behavior. It outlines three hard constraints for a credible benchmark, breaks down four question types with their scoring criteria, describes a layered grading pipeline, and lists common evaluation pitfalls. Engineering teams will also find guidance on building a repeatable evaluation system covering question-bank governance, containerized grading, data and compute infrastructure, reporting, and ongoing calibration.

    1. The Starting Point: Higher Scores Do Not Mean Better Research

    Over the past two years, the overall benchmark scores of frontier large models have been broken almost every two months. Leaderboards are released constantly and rankings shift frequently, making it hard for technical decision-makers to tell which numbers actually matter. One repeatedly confirmed pattern is that math scores improve the fastest and attract the least controversy. The reason is straightforward: math answers are unique and decidable, so grading requires almost no human involvement. It is like filling in Sudoku—extremely hard while solving, but once it is filled in, a quick check reveals whether it is right or wrong.

    This also creates a cognitive bias: being able to solve problems and being able to do research are two fundamentally different capabilities.

    Solving problems is closer to cooking from a recipe: the steps are given, the goal is clear, the evaluation criteria are public, and there is often a large amount of highly similar training material. Research is the opposite. There are no prescribed moves and no known endpoint; for many problems, even the person who posed them does not know the answer, and failure is the norm. This puts benchmark designers in a dilemma: the closer a question is to real research, the harder it is to grade.

    Theoretical Computer Science (TCS) is an exception to this dilemma. Sitting at the intersection of mathematics and computer science, every problem revolves around “computation”: whether a problem can be computed, at least how many resources it requires, and whether there is a path that fundamentally does not work. Its conclusions are mostly presented as theorems, proofs can be checked step by step, and some results can even be verified with machine assistance. This provides natural ground for building a benchmark that is “research-like yet gradable.”

    2. Three Hard Constraints for Benchmark Design

    A credible benchmark for research capability must satisfy three conditions at the same time, none of which can be missing.

    1. Verifiable answers. A question’s correctness must not depend on the subjective preference of a particular expert, but on a reviewable proof process. This makes the grader engineerable and the evaluation results reproducible by third parties.
    2. Complete coverage rather than sampling. The daily work of theoretical computer scientists can be roughly grouped into four categories: proposing and proving new results, judging whether a conjecture holds, constructing counterexamples or lower bounds, and locating errors in existing proofs. Testing only one category will systematically amplify the conclusions.
    3. Inclusion of genuinely open problems. If every question has a public answer, the model only needs retrieval and pattern matching. A portion of conjectures that remain unresolved to this day must be retained in order to observe whether the model can “make progress from zero.”

    A hundred-question exam organized around these three constraints gives each of the four question types a share, covering the full gradient from routine derivations to open problems. The results are not encouraging: on questions involving open conjectures, none of the tested reference models could independently produce a correct solution.

    The value of this result is not “proving that models are incapable,” but providing a quantifiable capability boundary: models perform well on reorganizing existing results and on routine proofs, but on problems that require long-term exploration with no intermediate feedback, they still rely on external hints.

    3. What Each Question Type Tests and How It Is Graded

    Question Type Real-World Task Grading Basis Main Discriminating Factor
    Theorem proving Writing new proofs Each proof step is checkable and the conclusion holds Length of the logical chain
    Conjecture verdict Judging whether a statement is true or false Conclusion + counterexample or proof Willingness to commit to a definite conclusion
    Lower bounds and constructions Proving “it cannot be done faster” Correctness of the construction or inequality derivation Abstract modeling ability
    Proof error correction Peer review, reproduction Locating the erroneous step and explaining why Critical reading

    For grading engineering, a layered strategy is recommended:

    1. Layer 1: Conclusion comparison (whether it matches the expected statement/counterexample)
    2. Layer 2: Structure check (which known theorems are cited, and whether the citations are valid)
    3. Layer 3: Step-by-step verification (whether the reasoning in each step holds)
    4. Layer 4: Human or formal-tool review (disputed samples)

    The first two layers can be automated to the highest degree. The third layer needs to draw on formal verification ideas, and the fourth layer is used to calibrate overall accuracy. Only by recording the verdicts of all four layers separately can you tell whether a rising score comes from hitting the right conclusion or from a genuine improvement in reasoning quality.

    4. Common Evaluation Pitfalls

    • Looking only at the final score, not the type distribution. With the same total score, one category may be perfect while another is entirely wrong, which carries completely different engineering implications.
    • Replacing research evaluation with a closed-book exam. The higher the proportion of questions whose answers already appear in the training corpus, the more distorted the evaluation becomes.
    • Ignoring prompt sensitivity. The same model can fluctuate noticeably under different prompts and sampling configurations, so an evaluation should fix the configuration and report variance.
    • One-off evaluation. Research capability is a long-term variable, so you should build a repeatable evaluation pipeline rather than publish a single leaderboard.

    5. Engineering Implementation

    To build a similar evaluation system inside an organization, the following process can be used as a reference:

    1. Question-bank governance: Store questions, reference answers, and validation scripts separately, put them under version control, and make every change traceable.
    2. Grading pipeline: Run the validation logic in containers, write results to a logging service, and track failure and timeout rates with monitoring and alerting.
    3. Data and compute foundation: Keep the question bank and proof texts in object storage, and hand batch evaluation jobs to a container platform for elastic scheduling, so evaluation peaks do not squeeze out business resources.
    4. Result presentation: Produce reports along three dimensions—question type, difficulty, and whether the problem is open—rather than giving only a single total score.
    5. Continuous calibration: Periodically sample results for manual review and correct grader bias.

    In these scenarios, Baidu AI Cloud is typically used to carry the general capabilities described above: object storage for evaluation data, a container platform for running batch validation jobs, and logging and monitoring services for observing pipeline health. This turns evaluation itself into a sustainable engineering asset rather than a one-off temporary script.

    6. Conclusion

    Evaluating frontier models with theoretical computer science is essentially about compressing “research,” which is hard to grade, into a verifiable subset that can be observed. What it provides is not a ranking but a clear capability boundary: routine derivation is close to usable, while open problems still need human leadership. For developers, the real takeaway is this—when evaluating a model, first ask whether the question can be verified, then ask what the score is.