BackendForge: Benchmarking Agentic End-to-End Code Generation with Backend Services
Summary
BackendForge is a new benchmark designed to evaluate agentic large language models (LLMs) in end-to-end code generation for backend services. It comprises 56 contract-defined tasks derived from real open-source applications, requiring LLMs to generate Dockerized services that are built, deployed, and tested exclusively through HTTP interactions against an OpenAPI contract. The benchmark employs a unique co-evolution process where a test agent proposes specification-grounded backend tests and a code agent repairs the reference implementation, strengthening evaluation without hidden requirements. Initial results show that GPT-5.5, the best-performing model, achieved a 55.4% success rate under the base oracle, but this dropped significantly to 28.6% under the final, more rigorous oracle. This performance gap indicates that current LLMs can implement many local API behaviors but still struggle to produce complete, deployable backend services.
Key takeaway
For Machine Learning Engineers developing or deploying agentic LLMs for backend code generation, you must prioritize end-to-end deployability and integration over isolated API functionality. The significant performance drop from 55.4% to 28.6% under a rigorous oracle suggests current models struggle with complete service artifacts. Focus your model training and evaluation on comprehensive system-level correctness, using robust testing against OpenAPI contracts to ensure deployable solutions.
Key insights
Agentic LLMs struggle to generate complete, deployable backend services, despite proficiency with local API behaviors.
Principles
- End-to-end deployable artifacts are crucial for agentic LLM evaluation.
- OpenAPI contracts enable deterministic black-box testing of backend services.
- Co-evolving test oracles and reference implementations improves evaluation rigor.
Method
BackendForge evaluates LLMs by requiring them to generate Dockerized backend services from specifications and OpenAPI contracts. Evaluation occurs via HTTP tests, with a test agent and code agent co-evolving the test oracle and reference implementation.
In practice
- Use OpenAPI contracts for black-box testing of generated services.
- Employ co-evolutionary testing to enhance code generation evaluation.
- Prioritize LLM development on full service integration, beyond API logic.
Topics
- Agentic LLMs
- Code Generation
- Backend Services
- BackendForge Benchmark
- OpenAPI Contracts
- Dockerized Services
Best for: Research Scientist, AI Scientist, Machine Learning Engineer, AI Engineer
Related on AIssential
See Counsel's argued verdicts on the open AI decisions leaders are weighing →
Editorial summary, takeaway, and curation by AIssential. Original article published by Artificial Intelligence.