Evaluating LLMs on Theoretical Computer Science: Research Capability, Not Just Problem Solving

    This article argues that LLM evaluations for theoretical computer science should test research actions rather than closed-book problem solving. It outlines four task types—statement formalization and reductions, constructive proofs and algorithm correctness, lower bounds and counterexamples, and grounded progress on open problems—along with scoring, anti-contamination, and reproducibility practices. It also examines the gap between AI-generated mathematical drafts and verified theorems and offers practical guidance for researchers and engineering teams.

    Why Evaluate Research Capability Rather Than Problem-Solving Ability

    Leaderboards for large language models (LLMs) update quickly, and rising scores are easily interpreted as evidence that models are already close to doing scientific research. For engineering deployment, benchmark problem-solving ability matters: it corresponds to standardized inputs, reference answers, and reproducible scoring protocols. But for proof-centric work such as theoretical computer science (TCS), real research often has no predefined steps, and even the person posing the question may not know the final answer. When a model claims to have solved a long-standing open problem, outsiders can hardly judge whether the claim is correct without a verifiable proof object.

    The more important issue is the shape of errors. In many fields, an error can “look very much like a correct answer,” and manual review is extremely expensive. TCS is relatively special: many conclusions can be formalized as decidable statements, or at least broken into machine-checkable proof fragments. Therefore, questions that “can be machine-graded while staying as close as possible to real research actions” constrain exaggerated claims better than pure competition problems, and they expose more clearly the model’s weaknesses in original reasoning, counterexample construction, and complexity lower bounds.

    This distinction is also practical for cloud-based intelligent applications and enterprise R&D. Object storage, message queues, container platforms, logging services, and monitoring and alerting can support experimental pipelines, but they address observability and scale; they cannot replace whether a proof holds. Evaluation design should separate “runnable” from “provable,” avoiding the mistake of treating pipeline automation as a theoretical breakthrough.

    Core Constraints for Evaluation Design: Questions Should Look Like Research, and Scores Must Be Decidable

    An ideal evaluation has tension between two poles: the more it resembles real research, the harder it is to grade automatically; the easier it is to grade automatically, the more likely it degenerates into template problems. TCS offers a middle path: break scientists’ daily work into several decidable subtasks instead of testing only closed-book exam-style questions.

    A research evaluation covering all areas of TCS usually needs to satisfy several requirements at once:

    • Coverage: It should not test only algorithm problems. It should also cover computability, complexity, cryptographic foundations, distributed computing theory, randomness and pseudorandomness, approximation algorithms and hardness, data structure lower bounds, and related areas.
    • Verifiability: Answers should be checkable automatically or semi-automatically—for example, deciding whether a statement is true or false, checking whether a reduction preserves constraints, or checking whether a construction satisfies a complexity bound.
    • Contamination resistance: Reduce inflated scores caused by “having seen the original problem in the training corpus” as much as possible. For open conjectures in particular, prevent online discussion from being treated as proof.
    • Capability stratification: Score separately “retrieving known theorems,” “completing standard proof steps,” and “giving correct new results on open problems,” so that a single total score does not hide structural failures.

    In engineering implementation, the evaluation pipeline can be deployed on a general container platform, with logging services recording each generation and verification trace, and monitoring and alerting detecting timeouts, looping generation, or checker crashes. These are infrastructure capabilities, unrelated to whether a proof is correct, but they determine whether the evaluation is reproducible.

    Four Task Types: Corresponding to What Theoretical Researchers Actually Do

    The evaluation can be organized into four task types, each corresponding to a decidable fragment of the research workflow. Each type below includes design points and common failure modes so readers can extend the question bank themselves.

    1. Statement Formalization and Problem Reductions

    The first step in research is often not “inventing a new theorem,” but writing a natural-language problem as a precise statement and determining its relationship to known problems. A question can ask: given an informal description, output the input encoding for a decision problem, the yes/no decision target, and the direction of a polynomial-time reduction to or from a standard problem.

    The scoring focus is not prose quality, but whether the reduction is computable in polynomial time, whether it preserves yes-instances and no-instances, and whether boundary cases (empty input, trivial graphs, constant-size cases) are covered. A common model failure is a “reduction-like” answer: it writes only algorithmic intuition, does not prove equivalence in both directions, or quietly changes approximation ratios or randomness assumptions.

    2. Constructive Proofs and Algorithm Correctness

    The second type is close to “give an algorithm and prove it.” The answer should include a pseudocode-level procedure together with loop invariants, potential functions, or amortized analysis, so that a checker can verify that the invariant holds in the initial, maintenance, and termination phases.

    What is more instructive for readers is that correctness proofs are easier for models to make plausible-sounding than complexity proofs. Therefore, resource bounds should be mandatory: time, space, random bits, communication rounds. Correctness without bounds is often meaningless in TCS. In enterprise settings, if this kind of generation is connected to intelligent coding tools, formal verification must be placed in continuous integration rather than merely checking whether the code runs.

    3. Lower Bounds, Infeasibility, and Counterexamples

    Theoretical work spends a great deal of time showing that “this path does not work.” Questions can ask for an information-theoretic lower bound for a class of data structures, a gap-preserving reduction for a class of approximations, or a minimal counterexample to a false proposition.

    This type best separates “can solve problems” from “can do research.” A model may generate long paragraphs of “obviously,” yet fail to provide a checkable counterexample instance. A good grader should require counterexamples to be instantiable: graph vertex lists, function tables, circuit descriptions, and so on must be concrete enough to run a simulation. Abstract adjectives should receive no credit.

    4. “Grounded Progress” on Open Problems, Not “Announcing a Solution”

    Open conjectures are the most viral and also the most dangerous. A responsible evaluation should not encourage a model to claim completion when verification is impossible. Instead, it should separate decidable progress: proofs of special cases, conditional results under some assumption, barrier results showing that a class of techniques cannot work, or verifiable partial constructions.

    In practice, if an “unsolved conjecture” is used directly as a question-answering item, reference models often cannot independently provide a verifiable complete solution. This does not deny the model’s auxiliary value in literature search, proof drafting, and example search, but it shows that assisted research and replacement research must be accounted for separately. For cloud collaboration platforms, a more reasonable product form is: humans provide conjectures and definitions, models generate candidate lemmas, and machine checkers and human experts review them together.

    How This Compares with the Wave of “AI-Generated Mathematical Manuscripts”

    Public discussion has seen large batches of mathematical drafts written by models and clustered by topic. At the level of dissemination, it is easy to form the impression that “mathematics has been replaced.” A calmer technical judgment is: the number of generated items does not equal the number of verified new theorems. Drafts can cover number theory, geometry, mathematical physics, theoretical computer science, and other directions, but the key issue remains whether errors can be discovered at low cost.

    A common analogy is crossword-style puzzles: filling in is hard, while checking is relatively easy. Mathematics and TCS do not both have the same checking cost. The formalizable parts of TCS are closer to “checking is relatively easy,” making them suitable as a stress test: if even verifiable domains cannot autonomously break through open problems, then treating long drafts in unverifiable domains directly as results carries higher risk.

    Industry perspectives also repeatedly emphasize that models make errors that are hard to verify. If evaluations use only multiple choice or short answers, they will systematically underestimate this risk. Handing proof objects to machines for checking is what turns “fluent errors” into zero scores.

    Evaluation Scale, Scoring Protocol, and Leakage Prevention

    A design on the order of one hundred questions across four task types is suitable as a slice of research capability, not as a replacement for peer review. Implementation suggestions:

    • Dual-track answers: Weight objective tracks (decidable true/false or runnable counterexamples) and process tracks (completeness of proof structure) separately.
    • Multiple samples: Generate multiple proofs for the same question and track both “at least one passes verification” and “all pass,” avoiding accidental lucky guesses.
    • Tool isolation: Whether external solvers are allowed must be an explicit condition; if allowed, call logs must be recorded, otherwise model capability and solver capability cannot be distinguished.
    • Version freezing: Archive questions, checkers, and random seeds together for long-term reproducibility in object storage.

    Illustrative verification interface (not proprietary; shown only to illustrate structure):

    1. verify(statement, proof_artifact) -> {pass: bool, errors: [span]}

    proof_artifact can be a formal proof script, an executable counterexample, or a reduction program. errors should locate specific steps rather than returning only a failure code; otherwise the model cannot be used for iterative improvement, and the evaluation loses diagnostic value.

    Practical Advice for R&D and Academic Readers

    If the goal is to use LLMs for theoretical work, use them according to capability boundaries:

    • Suitable: rewriting definitions, enumerating small-scale examples, checking local gaps in proof drafts, and converting paper statements into a more decidable chain of lemmas.
    • Not suitable for standalone delivery: final proofs of open conjectures, complexity separations involving subtle quantifier order, and “obviously true” claims that depend on undeclared assumptions.
    • Process: separate generation from verification; humans decide definitions and evaluation standards; run checkers in containers; use logs and monitoring to ensure auditability.

    For platform building on intelligent cloud, general categories are sufficient: use object storage to save question banks and proof artifacts, message queues to distribute evaluation tasks, container platforms to isolate untrusted generated code, and logging services and monitoring and alerting to ensure a complete trace of evaluation jobs. These practices improve experimental credibility, not some model’s mysterious score.

    Conclusion: What Should Be Relaxed Is the Standard, Not the Use of Models

    Testing frontier models with full-domain, verifiable TCS questions often leads to a sober conclusion: on truly open problems that require original proofs, current systems cannot yet produce verifiable completion on their own. This does not deny the model’s efficiency as a research assistant, but it corrects a mistaken extrapolation—writing problem-solving scores, draft counts, or clustering scale directly as “research has been automated.”

    For the mathematics and theoretical computer science communities, what is valuable is not emotional relief but tighter evaluation standards: if something can be machine-checked, do not let human eyes be persuaded by prose; if it cannot be machine-checked, do not let the model declare victory on its own. Breaking research actions into decidable tasks and continuously iterating question banks and checkers is what brings capability discussions back to a falsifiable track.