NeurIPS 2026Coming to NeurIPS?Explore papers, orals & directions

BackendForge: Benchmarking Agentic End-to-End Code Generation with Backend Services

Yuzhe Guo, Mengzhou Wu, Yuan Cao, Jialei Wei, Dezhi Ran, Wei Yang, Tao XiearXiv 2026

TL;DR

BackendForge is a new benchmark designed to evaluate whether agentic Large Language Models (LLMs) can build complete, deployable, and behaviorally correct backend services from scratch. While top-tier models excel at implementing individual API endpoints, the benchmark reveals they struggle significantly with complex, system-wide logic like authorization, validation, and state consistency, with even the best model's success rate dropping from 55.4% to just 28.6% under a hardened test suite.

What Problem Does This Paper Address?

AI coding assistants have evolved rapidly, moving from simple code completion (like HumanEval) to fixing bugs in existing codebases (like SWE-bench). However, a major frontier remains: can an agentic LLM generate a fully functional, usable software artifact from scratch?

Evaluating this is tricky. Full-stack benchmarks often entangle backend logic with unstable frontend rendering, flaky browser automation, and subjective GUI interactions. To isolate functional correctness, the authors focus entirely on backend services. Backends provide a perfect, deterministic testbed because their behavior can be strictly defined by an OpenAPI contract and verified via black-box HTTP requests.

The core challenge the authors tackle is building a test suite (an "oracle") that is rigorous enough to catch subtle backend bugs (like edge cases in multi-step workflows or data isolation) without introducing "hidden requirements" that weren't explicitly stated in the initial specification.

Methods

BackendForge introduces a rigorous end-to-end evaluation pipeline and a novel method for benchmark generation:

  1. The Agentic Evaluation Pipeline: An LLM agent is given a natural language specification (spec.md) and an OpenAPI contract (openapi.yaml). Working within an agentic coding harness, the LLM must autonomously write the code, manage dependencies, and output a Dockerized Python service. The evaluation framework then builds and deploys this container, testing it purely through black-box HTTP interactions.
Figure 1: BACKENDFORGE evaluation pipeline. The agent receives only the visible task contract, develops and self-tests a Dockerized backend service, and submits the service for black-box scoring. The evaluator deploys the submitted service and runs the hidden HTTP oracle. Task-level success requires all oracle items to pass.
  1. Multi-Agent Oracle Co-Evolution: To harden the evaluation without unfairness, the authors used a multi-agent loop to build the benchmark itself.
  2. A Test Agent proposes adversarial HTTP tests based on the spec.
  3. A Review Agent checks these tests against the visible contract, filtering out any that assume undocumented behaviors.
  4. A Code Agent attempts to repair a reference implementation to pass the new tests. A test is only added to the final benchmark if it uncovers a genuine defect in the reference code and the repaired reference successfully passes all previous tests.
Figure 2: BACKENDFORGE construction pipeline. Source backend applications are rewritten into visible task contracts, which serve as the source of truth for base oracle construction, reference construction, and repair-guided oracle co-evolution. Candidate oracle items are admitted only when they are grounded in the visible contract and expose a defect in the old reference.

Datasets

The paper introduces the BACKENDFORGE Benchmark, consisting of 56 tasks rewritten from real-world open-source applications (spanning e-commerce, project management, finance tools, and identity management).

To prevent models from simply memorizing upstream GitHub repositories, the authors heavily rewrote the API surfaces, authentication mechanisms, and implementation stacks while preserving realistic business logic. The final benchmark is massive in scope, covering 2,345 API operations and executing 24,798 HTTP requests across 7,890 distinct test items.

Key Insights and Ideas

  • The "Local vs. Global" Capability Gap: LLMs are highly proficient at "local" tasks—making a single endpoint return data in the correct JSON format. However, they fail at "global" service semantics, such as ensuring that deleting a parent resource correctly cascades to delete child resources, or maintaining strict state consistency across multi-step workflows.
  • The Illusion of Success: Evaluating models against a basic test suite gives a false sense of security. A modest 8.8% increase in test coverage via the co-evolution process caused model success rates to plummet, proving that standard boilerplate tests miss critical architectural and security flaws.
  • Self-Verification Helps, But Isn't a Silver Bullet: Giving models access to a coarse "pass/fail" feedback loop during development improves performance slightly, but agents frequently give up and submit broken code once they exhaust their initial debugging hypotheses.

Key Results

The authors evaluated leading proprietary and open-source models using a standardized agentic coding harness. Success was measured as a strict "all-pass" at the task level.

  • GPT-5.5 emerged as the top performer, but its success rate dropped from 55.36% on the base test suite to just 28.57% on the final hardened oracle.
  • Claude Opus 4.7 followed a similar trajectory, dropping sharply from 58.93% to 17.86%.
  • Open-Source Models Struggled Heavily: The strongest open-source model, DeepSeek V4 Pro, achieved a final success rate of only 3.57%.
  • Dominant Failure Modes: Models failed most frequently on validation and authorization/data isolation rules, rather than syntax errors or missing endpoints.

Limitations and Future Work

  • Language and Protocol Scope: BackendForge is currently limited to Python backend services interacting over REST/HTTP. It does not explore other popular backend languages (like Go or Java) or protocols (like gRPC and WebSockets).
  • Production Realism: The benchmark does not evaluate non-functional but vital production requirements, such as performance engineering, database indexing, deployment security hardening, or asynchronous message queues.
  • Oracle Completeness: While highly rigorous, the co-evolved test suites are still bounded by the initial specifications and cannot exhaustively cover every conceivable edge case.

Summary updated

BibTeX
@misc{guo2026backendforge,
  author = {Yuzhe Guo and Mengzhou Wu and Yuan Cao and Jialei Wei and Dezhi Ran and Wei Yang and Tao Xie},
  title = {{BackendForge: Benchmarking Agentic End-to-End Code Generation with Backend Services}},
  year = {2026},
  eprint = {2607.11042},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2607.11042},
}
Figure