CSBench: Evaluating Project-Level System Construction in Computer Science

Hongli Yu, Huang-ang Gao, Botian Wang, Hanlin Wu, YiFei Wang, Daoguang Zan, Anni Huang, Weinan Dai, Qiying Yu, Jiaze Chen, Wei-Ying Ma, Ya-Qin Zhang, Jingjing Liu, Mingxuan Wang, Hao ZhouarXiv 2026

TL;DR

Today’s AI coding agents are getting remarkably good at fixing bugs and patching existing software, yet we rarely test whether they can actually build complex systems from scratch. Enter CSBench, a new benchmark built from grueling university computer science projects that asks AI agents to construct operating systems, compilers, and databases from formal specifications. Evaluating top frontier models reveals a massive blind spot: an AI that easily breezes through Machine Learning assignments hits a wall when asked to build low-level computer systems.

What Problem Does This Paper Address?

If you have ever debugged a typo in someone else's code versus stared at a blank terminal trying to build a database engine from a design doc, you know those are two completely different cognitive workouts.

Historically, AI coding benchmarks started with bite-sized algorithmic puzzles (like HumanEval) and recently graduated to repository-scale engineering (like SWE-bench). However, benchmarks like SWE-bench primarily measure software maintenance—adapting to an established codebase to resolve a GitHub issue or add an incremental feature. They overlook System Construction (or "Spec-to-Code"): the foundational engineering skill of reading a rigorous specification, reasoning about domain-specific abstractions (like TCP stacks or B+ Trees), and assembling a working multi-file system from a bare-bones starter scaffold.

Methods

To test true system construction without relying on messy, passive web scraping, the authors built a three-stage, adversarial pipeline to convert top-tier university coursework into standardized, containerized coding challenges:

  1. Sourcing: Filtering open-source university CS courses for complex, multi-file starter scaffolds rather than single-script homework.
  2. Adversarial Annotation: Domain experts package each assignment into a formal four-part tuple: a self-contained Markdown specification, a clean starter codebase, a grading test suite, and an isolated Docker environment—plus a "golden patch" to prove solvability. Independent human reviewers then actively try to break these setups, forcing iterative refinements.
  3. Quality Assurance: Tasks undergo automated Docker checks (starter code must fail; golden patch must pass 100%), an LLM-auditor scan for spec ambiguities or data leakage, and final human inspection.
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.

For evaluation, 9 frontier LLMs were placed inside a minimalist agent loop (using a standardized OpenHands-derived prompt) equipped with bash execution and file-editing tools. Each agent got up to 50 interaction rounds inside the Docker container to read specs, write code, compile, and debug autonomously.

Datasets

This paper introduces CSBench, selecting 100 core tasks (from a verified pool of 237) drawn from 43 university courses across 9 programming languages—primarily Python (41%), C++ (21%), and C (18%). Tasks span four overarching categories (System, AI, Application, and Others) covering 19 subtopics.

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, CSBench demands heavy architectural lifting: reference solutions edit an average of 902.3 lines across 10.6 files, dwarfing SWE-bench's average of 32.8 lines across 1.7 files. Furthermore, 13.7 out of 17.1 average tests are "Fail-to-Pass," ensuring agents must build missing core functionality rather than coasting on existing passing logic. (No models were trained in this study.)

Key Insights and Ideas

  • The AI vs. Systems Chasm: Frontier models exhibit lopsided computer science mastery. High-level data workflows and ML implementations are largely within reach, whereas low-level systems programming—requiring tight memory, concurrency, and cross-file architectural consistency—remains brutally hard.
  • Coding Capability Isn't Monolithic: The "best" overall model isn't the best everywhere. Different model families show distinct domain specialties, proving aggregate leaderboard scores can hide major blind spots.
  • Agents Fail at Management, Not Just Syntax: Analyzing 2,573 failed trajectories showed that 68.83% of failures stemmed from Strategic & Planning and Debugging & Iteration, rather than basic syntax or tool errors. Agents routinely quit before checking off every requirement ("Stopped Too Early") or slap superficial band-aids onto compiler/test errors instead of diagnosing the underlying bug ("Failed to Locate Root Cause").

Key Results

Averaged across 4 runs per task (avg@4), overall benchmark performance remains far from saturated:

  • Overall Leaders: GPT-5.2 leads overall at 55.50%, followed by Claude-Sonnet-4.5 (45.50%), Gemini-3-Pro (39.00%), and DeepSeek-V3.2 (22.00%).
  • Domain Disparity: GPT-5.2 scores 77.63% on Application and 70.00% on AI tasks (hitting 94.44% specifically on Machine Learning), yet plummets to 34.78% on the broad System category—scoring just 37.50% on Operating Systems, 20.00% on Parallel & Distributed Systems, and 19.44% on System Fundamentals.
  • Cross-Model Surprises: Despite ranking third overall, Gemini-3-Pro outperforms GPT-5.2 on System tasks (38.59% vs. 34.78%), maintaining that lead even when given up to 8 independent attempts (Pass@8). In case studies, Gemini-3-Pro successfully used gprof to profile serial C code, isolate a computational bottleneck, and parallelize it with OpenMP for a 3.25× speedup.

Limitations and Future Work

The authors highlight three primary limitations:

  1. Binary Grading: Tasks are currently scored strictly on unit-test pass/fail outcomes, ignoring code efficiency or architectural elegance.
  2. Training Data Contamination: Because assignments originate from public university courses, underlying concepts or solutions may overlap with LLM pretraining corpora.
  3. Single Scaffold & Missing Human Baseline: All models were tested using one shared minimalist agent scaffold without a controlled human student/expert baseline. Future work aims to incorporate multi-dimensional grading rubrics, test diverse agent scaffolds, and benchmark directly against human experts.

Summary updated

BibTeX
@misc{yu2026csbench,
  author = {Hongli Yu and Huang-ang Gao and Botian Wang and Hanlin Wu and YiFei Wang and Daoguang Zan and Anni Huang 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: Evaluating Project-Level System Construction in Computer Science}},
  year = {2026},
  eprint = {2611.39717},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2611.39717},
}
Figure