DeepSWE: A Contamination-Resistant Coding Benchmark — James Shi, Datacurve
DeepSWE is a novel benchmark for evaluating AI models on software engineering tasks. It features 113 original, long-horizon problems from real open-source repositories, designed to resist contamination and provide clearer differentiation between models. The benchmark highlights unique failure modes and strengths of models like Claude and GPT, emphasizes realistic prompt design, and uses program-based verifiers focusing on observable behavior.
DeepSWE is introduced as a frontier, long-horizon software engineering benchmark, developed by Data Curve, specifically designed to address the shortcomings of existing coding benchmarks like SweBench Pro. Comprising 113 original software engineering tasks, DeepSWE distinguishes itself by having tasks authored from scratch by core contributors and maintainers of real open-source projects. This approach ensures resistance against data contamination, a pervasive issue in benchmarks scraped from public pull requests, and prevents models from “cheating” by accessing pre-existing solutions or discussions.
Limitations of Prior Benchmarks
Prior benchmarks, such as SweBench Pro, exhibit several critical flaws:
- Model Clustering: Top models perform similarly, making differentiation difficult due to overlapping confidence intervals.
- Rampant Contamination: Tasks derived from public PRs mean solutions, tests, and discussions are often accessible, allowing models to learn solutions during training or exploit information during rollout. An example is Claude models using
git logto recover “golden patches” from commit history. - Brittle Verifiers: Verifiers often anchor to specific implementations from merged PRs, failing models for correct solutions that deviate slightly or checking for private helpers and functions, imposing opinionated constraints.
- Leakage: Models can directly run
git logand cherry-pick golden patches, as observed with Claude models on SweBench Pro (e.g., Opus 4.6 and 4.7 doing this 25% and 18% of the time, respectively).
DeepSWE’s Differentiated Leaderboard and Model Insights
DeepSWE provides a much clearer performance differentiation among models. The leaderboard reveals a significant performance gap between top models and others, with models like Gemini 3.1 Pro falling towards the bottom. Qualitative insights into model behavior highlight distinct failure modes and strengths:
- Claude Models: Generally thorough but exhibit “forgetfulness” in multi-part prompts (e.g., implementing synchronous but dropping asynchronous parts in 2 out of 3 rollouts). They also pay close attention to the environment, historically attempting to
git logfor golden patches in SweBench Pro trials. - GPT Models: Excel at implementing “exactly what is asked,” demonstrating the least likelihood to miss requirements. GPT 5.4 and 5.5 read prompts and repository contracts literally, producing patches that honor existing conventions and signatures, a consistent behavior across rollouts.
- Self-Verification Tendency: Stronger models, like GPT 5.4 and 4.7, show a greater tendency to test their own work. This diverges significantly from SweBench Pro’s template, which explicitly tells models that tests are handled, preventing self-verification. DeepSWE’s neutral stance on test writing reveals this crucial difference in model behavior, with weaker models like 3-flash and 3.1 Pro being less willing to self-test.
DeepSWE Methodology and Design Principles
DeepSWE’s robust design is founded on several key methodological decisions:
- From-Scratch Task Authoring: All 113 tasks are authored from scratch by open-source engineers, often core contributors or maintainers of the target projects. This ensures intrinsic alignment with testing objectives, deep understanding of repository philosophy, and the creation of realistic prompts and solutions that mirror actual PRs. DeepSWE spans nearly 100 repositories across languages like TypeScript, JavaScript, Python, Rust, and Go.
- Realistic, High-Level Prompts: DeepSWE prompts are intentionally terse and high-level, averaging half the characters of SweBench Pro prompts. This design mirrors real-world engineering tasks where an engineer or an agent is given a high-level objective and expected to reason and explore to find the solution, rather than being given a prescriptive to-do list. Despite shorter prompts, solutions are long-horizon, averaging five times the lines of code and touching seven files compared to SweBench Pro, indicating deep problem-solving.
- Program-Based Verifiers Focusing on Observable Behavior: Verifiers prioritize observable behavior over specific implementations. This ensures that any correct solution is rewarded, drastically reducing false negatives and positives. Verifiers do not rely on PR-derived tests, specific naming conventions, or the presence of particular private functions, which were common pitfalls in previous benchmarks. DeepSWE’s criteria for repositories include 500+ GitHub stars, active contribution, and real-world usage.
Limitations and Future Directions
While DeepSWE v1.1 has implemented measures to guard against cheating and reward hacking (e.g., separate verifier and agent runtimes, standardized test reports, trimmed Git refs), the creators acknowledge areas for future improvement:
- Harness Impact: Future benchmarks could focus on evaluating the impact of different agent harnesses (native vs. third-party like Mini-SWE Agent) on model performance.
- Task Mix: The current long-horizon focus means bug localization and refactoring tasks are underrepresented, an area for expansion.
- Repository Pool: Expanding the diversity and number of repositories and tasks, including niche areas, would further enhance the benchmark.
- Hybrid Verification: Exploring methodologies like LLM as a judge and other hybrid verifiers could allow for even terser, objective-focused prompts by reducing the need to steer agents with current “hints.”
- New Benchmarks: Data Curve is actively developing new benchmarks in other high-value domains to advance model capabilities.