CSBench: A Comprehensive Benchmark for Evaluating Project-Level System Construction in Computer Science

Hongli Yu, Huan-ang Gao, Botian Wang, Hanlin Wu, YiFei Wang, Daoguang Zan, Huang Anni, Weinan Dai, Qiying Yu, Jiaze Chen, Wei-Ying Ma, Ya-Qin Zhang, Jingjing Liu, Mingxuan Wang, Hao ZhouNeurIPS 2026 Evaluations and Datasets Track Poster 2026

TL;DR

We know AI coding agents can fix bugs in existing repositories, but can they actually build complex computer systems from scratch? This paper introduces CSBench, a benchmark of 100 university-level computer science projects—ranging from operating systems to compilers—designed to test "Spec-to-Code" system construction. The results reveal a striking blind spot: while top models like GPT-5.2 ace Machine Learning tasks (94.44%), their performance craters to 34.78% on core Systems tasks, exposing a deep gap in long-horizon reasoning and architectural planning.

What Problem Does This Paper Address?

Modern coding benchmarks like SWE-bench have pushed AI agents to graduate from writing single functions to navigating entire GitHub repositories. However, these benchmarks almost exclusively test software maintenance—fixing a bug or adding a small feature to an already-working codebase where the architecture and patterns are already laid out.

Building a system from the ground up is a completely different beast. In System Construction, an agent is handed a detailed specification and a bare-bones starter scaffold, and must reason about low-level abstractions, manage dependencies across many files, and assemble a functional system (like a B+ Tree, a TCP stack, or an OS kernel). Without a benchmark for this foundational skill, we risk mistaking an AI's ability to patch existing code for true computer science mastery.

Methods

The authors built CSBench through a rigorous, three-stage pipeline designed to turn real university coursework into standardized, reproducible, and cheat-proof evaluations:

Figure 1: Overview of CSBench. CSBench evaluates project-level Spec-to-Code system construc- tion from rigorous specifications. It is built through a three-stage pipeline of broad-scope project sourcing, adversarial expert annotation, and multi-layer quality assurance.
  1. Sourcing: They collected open-source course projects from top-tier universities, filtering for non-trivial, multi-file starter scaffolds rather than single scripts.
  2. Adversarial Annotation: Domain experts refactored each project into a clean task tuple—a Markdown specification ($\mathcal{S}$), a starter codebase ($\mathcal{C}_{init}$), a canonical test suite ($\mathcal{U}$), and an isolated Docker environment ($\mathcal{E}$)—alongside a "golden patch" solution. Independent reviewers then tried to break or poke holes in the tasks, iterating until every requirement was airtight.
  3. Quality Assurance: Every task passed automated checks (ensuring tests fail on the starter code and pass 100% with the golden patch), LLM-based auditing for ambiguity or information leakage, and final human verification.

For evaluation, the authors tested 9 frontier LLMs using a minimalist, OpenHands-style agent loop equipped with stateless Bash execution and file-editing tools. Each model was given up to 50 interaction rounds inside the Docker container, and performance was averaged across 4 independent runs (avg@4).

Datasets

CSBench consists of 100 expert-curated tasks (selected from a pool of 237 verified tasks) drawn from 43 university courses. It spans 4 broad categories—System (46%), AI (30%), Application (19%), and Others (5%)—and 19 fine-grained topics across 9 programming languages (led by Python at 41%, C++ at 21%, and C at 18%).

Figure 2: Left: task distribution of the 100-task evaluation set by course topic taxonomy (Sys- tems/AI/Applications/Others) with the name and percentage of subtopics displayed. Right: pro- gramming language distribution across CSBench tasks.

Compared to maintenance benchmarks like SWE-bench, CSBench demands an order of magnitude more construction effort:

  • Specifications average 676.2 words (up to 5,693 words).
  • Golden patches edit an average of 902.3 lines across 10.6 files (compared to just 32.8 lines across 1.7 files in SWE-bench).
  • Test suites emphasize Fail-to-Pass verification (13.7 out of 17.1 total tests on average), meaning agents cannot coast on pre-existing passing logic.

Key Insights and Ideas

  • Coding ability isn't uniform across CS: A model that excels at high-level AI or web development can completely fall apart when asked to manage low-level memory, concurrency, or hardware-adjacent constraints.
  • Agents quit too early or patch superficially: Analyzing 2,573 failed trajectories revealed that nearly 69% of failures stem from Strategic & Planning and Debugging & Iteration rather than basic syntax or tool-use errors. Agents frequently Stopped Too Early (terminating before meeting all specs) or Failed to Locate Root Cause (applying superficial band-aids instead of fixing underlying architectural bugs).
  • More attempts don't close the gap: Even when given up to 8 independent sampling attempts (Pass@8), System-level performance remains far from saturated, showing that the bottleneck is a genuine lack of systemic reasoning rather than bad luck.

Key Results

  • Overall Leaderboard: GPT-5.2 leads overall at 55.50%, followed by Claude-Sonnet-4.5 (45.50%) and Gemini-3-Pro (39.00%).
  • The System Construction Gap: GPT-5.2 scores 94.44% on Machine Learning and 77.63% on Application tasks, but drops to 34.78% on the broad System category (including 37.50% on Operating Systems, 20.00% on Parallel & Distributed Systems, and 19.44% on System Fundamentals).
  • Domain Specialists: Gemini-3-Pro actually outperforms GPT-5.2 on System tasks (38.59% vs. 34.78%), proving that aggregate scores hide important domain-specific strengths.

Limitations and Future Work

The authors note several limitations:

  • Binary grading: Evaluation relies purely on unit-test pass/fail rates, without grading code efficiency, elegance, or architectural quality.
  • Potential contamination: Because tasks come from public university courses, pre-training data exposure cannot be completely ruled out.
  • Scaffold & baseline scope: Results are tied to one unified agent scaffold (with a second scaffold tested only as a sensitivity check), there is no controlled human baseline, and topics with fewer than five tasks are diagnostic only.

Future work could incorporate multi-dimensional rubrics (like runtime performance and memory efficiency) and use CSBench's failure taxonomy to train agents that are better at long-horizon requirement tracking and evidence-based debugging.

Summary updated

BibTeX
@inproceedings{yu2026csbench,
  author = {Hongli Yu and Huan-ang Gao and Botian Wang and Hanlin Wu and YiFei Wang and Daoguang Zan and HUANG Anni and Weinan Dai and Qiying Yu and Jiaze Chen and Wei-Ying Ma and Ya-Qin Zhang and Jingjing Liu and Mingxuan Wang and Hao Zhou},
  title = {{CSBench: A Comprehensive Benchmark for Evaluating Project-Level System Construction in Computer Science}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2026},
  url = {https://openreview.net/forum?id=fHaQSToCTh},
}
Figure