mlsanityData to 7 Oct 2026

PBT-Bench: Benchmarking AI Agents on Property-Based Testing

arXiv 2605.15229 ↗First posted 13 May 2026cs.SE cs.AIcited by 0

On the map: LLM agents and tool use → Software engineering coding agents

Abstract (arXiv)

Existing code benchmarks measure whether an agent can produce any test that reproduces a known bug, or whether it can produce a patch that fixes a described issue. Neither isolates the distinct skill of property-based testing: deriving a semantic invariant from documentation, and then constructing an input-generation strategy precise enough to make a random search reveal the violation. We introduce PBT-Bench, a benchmark of 100 curated property-based testing problems across 40 real Python libraries. Each problem injects one or more semantic bugs (365 in total, mean 3.65 per problem) designed so that default-strategy random inputs almost never trigger them; the agent must read the library's documentation, identify the relevant invariant, and specify a Hypothesis @given strategy that concentrates mass in the trigger region. Bugs are stratified across three difficulty levels (L1-L3) spanning single-constraint boundary bugs to stateful, cross-function protocol violations. We evaluate eight contemporary LLMs under two prompting regimes (open-ended baseline vs. explicit Hypothesis scaffolding) for three independent runs per configuration. Bug recall under the PBT-guided prompt ranges from 42.1% to 83.4% across models; under the open-ended baseline, from 31.4% to 76.7%. Hypothesis scaffolding lifts mid-capability models by over 20 percentage points, but yields smaller gains for the strongest models, with two exceptions showing degradation, suggesting the structured prompt can interfere with certain model behaviours rather than complementing them. The hardest bugs prove model-specific: different architectures fail on different problems, leaving persistent gaps that no single model closes. We release the benchmark, harness, and full evaluation corpus to support downstream work on documentation-grounded semantic reasoning.

Key facts. No citing papers in the map yet (data through 7 Oct 2026). Placed in Software engineering coding agents, one of 16 directions in LLM agents and tool use. Builds on 26 of its 48 references that are in the map. First posted on arXiv 13 May 2026.

Builds on

26 of 48 references.

Closest ancestors · 5

Same direction, newest first

  1. 2025SWE-EVO: Benchmarking Coding Agents in Long-Horizon Software Evolution Scenarios20 Dec
  2. 2025Agentic Property-Based Testing: Finding Bugs Across the Python Ecosystem10 Oct
  3. 2025Why Do Multi-Agent LLM Systems Fail?17 Mar
  4. 2024OpenHands: An Open Platform for AI Software Developers as Generalist Agents23 Jul
  5. 2024SWT-Bench: Testing and Validating Real-World Bug-Fixes with Code Agents18 Jun

Other references · 21

  1. 2021Evaluating Large Language Models Trained on Codecited by 8,053
  2. 2023SWE-bench: Can Language Models Resolve Real-World GitHub Issues?cited by 3,193
  3. 2022Beyond the Imitation Game: Quantifying and extrapolating the capabilities of language modelscited by 1,970
  4. 2024LiveCodeBench: Holistic and Contamination Free Evaluation of Large Language Models for Codecited by 1,906
  5. 2026Terminal-Bench: Benchmarking Agents on Hard, Realistic Tasks in Command Line Interfacescited by 515
  6. 2024SWE-bench Multimodal: Do AI Systems Generalize to Visual Software Domains?cited by 196
  7. 2023ClassEval: A Manually-Crafted Benchmark for Evaluating LLMs on Class-level Code Generationcited by 166
  8. 2022Large Language Models are Few-shot Testers: Exploring LLM-based General Bug Reproductioncited by 110
  9. 2022Large Language Models are Zero-Shot Fuzzers: Fuzzing Deep-Learning Libraries via Large Language Modelscited by 102
  10. 2025SWE-Lancer: Can Frontier LLMs Earn 1 Million from Real-World Freelance Software Engineering?cited by 99
  11. 2023ChatUniTest: A Framework for LLM-Based Test Generationcited by 94
  12. 2023Effective Test Generation Using Pre-trained Large Language Models and Mutation Testingcited by 51
9 more
  1. 2023Large Language Models are Edge-Case Fuzzers: Testing Deep Learning Libraries via FuzzGPTcited by 36
  2. 2024CoverUp: Effective High Coverage Test Generation for Pythoncited by 36
  3. 2024BugsInPy: A Database of Existing Bugs in Python Programs to Enable Controlled Testing and Debugging Studiescited by 35
  4. 2023Can Large Language Models Write Good Property-Based Tests?cited by 30
  5. 2025AutoCodeBench: Large Language Models are Automatic Code Benchmark Generatorscited by 24
  6. 2025Mutation-Guided LLM-based Test Generation at Metacited by 23
  7. 2025Mutation-Guided Unit Test Generation with a Large Language Modelcited by 6
  8. 2026TestExplora: Benchmarking LLMs for Proactive Bug Discovery via Repository-Level Test Generationcited by 5
  9. 2026From Natural Language to Executable Properties for Property-based Testing of Mobile Appscited by 1

Built on by

Not cited yet.

Similar, not cited

Close in wording, no citation either way

  1. 2026FVSpec: Real-World Property-Based Tests as Lean Challenges
  2. 2026Grounding AI Agents in Contracts: An Empirical Evaluation of Spec-Driven Test Generation
  3. 2026LogicHunter: Testing LLM Agent Frameworks with an Agentic Oracle
  4. 2026TestJack: Should you trust the results in coding benchmarks? Agentic Coding Benchmarks Auditing via Evaluator Evolution
  5. 2026Breaking, Stale, or Missing? Benchmarking Coding Agents on Project-Level Test Evolution
  6. 2025An Empirical Study of Testing Practices in Open Source AI Agent Frameworks and Agentic Applications
  7. 2026VibeCheck: Assessing the Quality of LLM-Generated Unit Tests: A Multi-agent Empirical Study across Heterogeneous Repositories
  8. 2025Automatically Benchmarking LLM Code Agents through Agent-Driven Annotation and Evaluation