BacktestBench: Benchmarking Large Language Models for Automated Quantitative Strategy Backtesting
Abstract
Domain fit: AI-adjacent · Paper appears method- or tooling-adjacent to AI workflows with partial ecosystem coverage.
Quantitative backtesting is essential for evaluating trading strategies but remains hampered by high technical barriers and limited scalability. While Large Language Models (LLMs) offer a transformative path to automate this complex, interdisciplinary workflow through advanced code generation, tool usage, and agentic planning, the practical realization is significantly challenged by the current lack of a large-scale benchmark dedicated to automated quantitative backtesting, which hinders progress in this field. To bridge this critical gap, we introduce BacktestBench, the first large-scale benchmark for automated quantitative backtesting. Built from over 6 million real market records, it comprises 18,246 meticulously annotated question-answering pairs across four task categories: metrics calculation, ticker selection, strategy selection, and parameter confirmation. We also propose AutoBacktest, a robust multi-agent baseline that translates natural language strategies into reproducible backtests by coordinating a Summarizer for semantic factor extraction, a Retriever for validated SQL generation, and a Coder for Python backtesting implementation. Our evaluation on 23 mainstream LLMs, complemented by targeted ablations, identifies key factors that influence end-to-end performance and highlights the importance of grounded verification and standardized indicator representations.
Results and benchmarks
Quantitative backtesting is essential for evaluating trading strategies but remains hampered by high technical barriers and limited scalability.
| Task | Dataset | Metric | Value | Source |
|---|---|---|---|---|
| Computer science | DeepSeek V3.2 | F1 . | 66.92 | paper-derived |
| Computer science | Qwen3 4B | F1 . | 59.52 | paper-derived |
Audit each benchmark finding before selecting an implementation path. Evidence refs map to the disclosure below.
Evidence graph: 2 refs, 1 links.
Utility signals: depth 100/100, grounding 68/100, status medium.
Implementation
No direct implementation yet
Maintained implementation evidence is not confirmed for this paper yet.
Use the implementation status and reproduction sections for the current action plan.
No verified maintained repo yet
There is no verified maintained implementation yet. Use this baseline plan to decide whether to prototype now or defer.
- No direct maintained implementation was found. Use the paper PDF and citation graph to design a baseline reproduction.
- Start from related paper: Market-Bench: Evaluating Large Language Models on Introductory Quantitative Trading and Market Dynamics.
- Track assumptions and missing details in an experiment log before coding.
Time to first repro: a few days
Recommendation evidence is currently too limited for a maintained-repo choice. Use Implementation Status and Reproduction Path for a practical baseline plan.
- Estimate is based on paper-only reproduction flow
Reproduction readiness
No repo
No verified implementation available
- No maintained repository has been identified for this paper. Check adjacent implementations or HF artifacts below.
Hardware requirements
- Expect multi-day setup/compute for meaningful reproduction based on current guidance.
Repositories and ecosystem
No additional verified repositories beyond the primary recommendation.
These repositories had low-confidence matching signals and are hidden by default.
- jensenw1/BacktestBench
Confidence: Low · 7 stars
Hugging Face artifacts
No trustworthy direct or curated related Hugging Face artifacts were found yet. Use targeted searches to quickly locate candidate models, datasets, and demos.
Tip: start with models, then check datasets and spaces if you need evaluation data or demos.
Research context
1
Citations
0
References
Tasks
Computer science, Benchmarking, Workflow, Benchmark (surveying), Python (programming language), Key (lock), Software engineering, Data mining
Methods
Language model, large language models
Domains
Machine learning, Artificial intelligence
Related papers
- Market-Bench: Evaluating Large Language Models on Introductory Quantitative Trading and Market DynamicsSearch on Paper2Code
2025 · Semantic similarity
- QuantEval: A Benchmark for Financial Quantitative Tasks in Large Language ModelsSearch on Paper2Code
2026 · Semantic similarity
- QuantCode-Bench: A Benchmark for Evaluating the Ability of Large Language Models to Generate Executable Algorithmic Trading StrategiesSearch on Paper2Code
2026 · Semantic similarity
- Quant-Arena: Benchmarking LLM Agents for Quantitative Trading ResearchSearch on Paper2Code
2026 · Semantic similarity
- Backtrader-Bench: Benchmarking LLM Agents on Algorithmic Trading with Self-Generated MCQsSearch on Paper2Code
2026 · Semantic similarity
- QuantCode-Eval: Benchmarking Quantitative Strategy Code Reproduction from Finance PapersSearch on Paper2Code
2026 · Semantic similarity
Open this paper in HFEPX to review benchmark signals, evaluation modes, and human-feedback protocol context.
Open in HFEPXJump to Paper2Code search queries derived from this paper's research context.