SpecBench: Evaluating Specification-Level Reasoning for Software Engineering LLM Agents

Grant Hamblin, Kevin Song, Zhanda Zhu, Anand Jayarajan, Sihang Liu, Nandita Vijaykumar, Gennady PekhimenkoarXiv 2026

TL;DR

Current AI software engineering benchmarks primarily focus on implementation—writing code based on clean, pre-defined requirements. However, real-world software engineering starts much earlier with messy, incomplete, and flawed design proposals. The authors introduce SpecBench, a new benchmark that evaluates an LLM agent's specification-level reasoning by tasking it with identifying omissions, ambiguities, and contradictions in real-world open-source Request for Comments (RFC) documents.

What Problem Does This Paper Address?

Popular benchmarks like SWE-Bench operate under the assumption of a "perfect specification." They give an LLM agent a precise description of a feature or bug and measure its ability to generate the correct code.

In actual production environments, the software development lifecycle begins with a design proposal that undergoes rigorous peer review. Initial specifications are frequently flawed, requiring expert maintainers to flag missing edge cases or system conflicts before implementation even begins. SpecBench shifts the evaluation focus from code generation to system design critique, forcing agents to reason about complex architectures without the safety net of execution feedback (like test suites or compiler errors).

Figure 1. Specification-level reasoning is a critical part of the software engineering process.

Methods

SpecBench tasks simulate the real-world peer-review process. An agent is provided with an initial RFC design proposal, the project's codebase at that specific point in time, and the entire historical archive of past project RFCs. The agent must then predict specification deficiencies, which are categorized into four classes:

  • Omission: Missing critical information required to solve the problem.
  • Ambiguous: Text that allows for multiple conflicting interpretations.
  • Inconsistent: Internal contradictions or conflicts with the existing system.
  • Incorrect: Statements that contradict preceding project documents.

Evaluating open-ended textual critiques is notoriously difficult. To build a reliable benchmark, the authors developed a three-part evaluation pipeline:

  1. Human Expert Variance Mitigation: A panel of LLM experts rates historical human critiques to separate high-consensus "core" community issues from individual "extended" opinions. Core items are weighted double during scoring.
  2. Open-World Validation: Borrowing methodologies from Information Retrieval, unpredicted flaws outside the ground-truth set are treated as "unjudged" rather than strictly incorrect. To prevent agents from gaming the system by spamming predictions, a strict prediction budget is enforced ($N = \lceil 1.25 \times \text{gold deficiencies} \rceil$).
  3. Structured Decomposition Judging: Predictions and ground-truth items are normalized into structured Subject-Predicate-Impact (SPI) triples. An ensemble of LLM judges (GPT-5.4 and Claude Sonnet 4.6) then matches the agent's SPI triples against the ground truth.
Figure 2. SpecBench agent evaluation flow and dataset construction.

Datasets

The authors introduced the SpecBench dataset, which is built from the formal RFC/enhancement processes of 5 diverse, mature open-source ecosystems:

  • Kubernetes (KEPs)
  • React RFCs
  • Rust RFCs
  • TVM RFCs
  • vLLM design proposals

The dataset consists of accepted historical proposals paired with the actual critiques raised by expert maintainers during the original GitHub or forum discussions.

Key Insights and Ideas

  • Static Design Reasoning is Hard: Coding agents often rely on iterative trial-and-error using test suite feedback. SpecBench isolates pure static reasoning; agents must understand deep system invariants purely from documentation and code logic.
  • Community Alignment Matters: A good reviewer must understand a project's implicit philosophy. For instance, an agent reviewing a Rust RFC must prioritize strict memory safety, while a React reviewer must focus heavily on API stability. Generic programming knowledge is not enough.
  • SPI Triples Tame Semantic Ambiguity: Direct string matching fails when comparing open-ended text. Breaking down critiques into Subject, Predicate, and Impact allows automated judges to evaluate semantic alignment accurately, shifting the focus from how a flaw is worded to what the flaw actually is.

Key Results

State-of-the-art LLM agents show a massive performance gap when moving from code generation to specification design:

  • Low Overall Accuracy: The best-performing agent, GPT-5.4, achieved an overall average accuracy of just 44.4% under the bounded prediction budget, leaving substantial room for improvement.
Figure 3. Overall average accuracy.
  • Core vs. Extended Performance: Agents were significantly better at identifying "core" deficiencies (high-consensus items) than "extended" ones. For example, GPT-5.4 reached 49.8% accuracy on core items but dropped to 23.0% on extended items.
Figure 4. Accuracy broken down by core and extended items.
  • Ecosystem Variance: Performance varied noticeably by repository. GPT-5.4 maintained a commanding lead in the React and vLLM ecosystems but faced tighter competition from Claude models in Kubernetes and Rust tasks.
Figure 5. Accuracy in each repository.

Limitations and Future Work

Currently, SpecBench only evaluates the first phase of specification-level reasoning: identifying flaws. The authors note that a crucial next step is evaluating an agent's ability to revise the specification to resolve those identified deficiencies.

Additionally, the current evaluation framework relies entirely on an LLM-in-the-loop judging pipeline. Future versions plan to incorporate human domain experts to validate gold labels and establish solid human performance baselines. The authors also plan to expand the dataset to include rejected or stalled RFCs to test if agents can spot fatal flaws that completely derail a proposal.

Summary updated

BibTeX
@misc{hamblin2026specbench,
  author = {Grant Hamblin and Kevin Song and Zhanda Zhu and Anand Jayarajan and Sihang Liu and Nandita Vijaykumar and Gennady Pekhimenko},
  title = {{SpecBench: Evaluating Specification-Level Reasoning for Software Engineering LLM Agents}},
  year = {2026},
  eprint = {2605.30314},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2605.30314},
}
Figure