SYNTOLOGY HomeExplorerAtlasCodeMethodologyAboutDevelopersFeedPricing
Paper · 2605.17937 · 2026

BacktestBench: Benchmarking Large Language Models for Automated Quantitative Strategy Backtesting

Weijia Jia, Wenmian Yang, Zhensheng Wang, Yiquan Zhang, Qingtai Wu, Lequan Ma

arXiv · PDF · Open in the Atlas

Code that ran

6 of 6 samples (functions and classes) lifted from this paper's linked repositories executed on a synthesized input in Syntology's jail (0 of them constructed an object rather than computing a result; 2 honoured the contract we drafted, 0 violated it and 0 have no contract verdict; 4 failures of our instrument; 0 no recorded run), measured 2026-11-24; bodies inline only under a permissive licence as GitHub detects it. Not a reproduction of the paper's results.

"Ran" means the function executed on a synthesized input and returned a value. It is not a reproduction of the paper's results. This record, dated, as JSON: /api/ran/2605.17937.json · badge: /api/ran/2605.17937.svg

Each repository's role is a label: a classifier's output recorded on the link, or, where no role is recorded, what the Papers with Code archive marked. The line under it names its basis. Neither says who wrote the code.

RepositoryRoleRan
jensenw1/BacktestBench canonical (classifier label)
classifier basis: census
6 ran · 0 no recorded run
FunctionStatusWhere it lives
execute_dataframe_code Ran
ran; our contract draft was wrong, not the code
jensenw1/BacktestBench/AutoBacktest/003_BackTest/tools.py
pointer only (licence: NONE) · get_code("3c201f9b4b366285")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jensenw1/BacktestBench when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_answer_from_response Ran
ran, honoured the contract we drafted
jensenw1/BacktestBench/AutoBacktest/003_BackTest/utils.py
pointer only (licence: NONE) · get_code("c7e4a4439fc947ba")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jensenw1/BacktestBench when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_content_after_think Ran
ran; our contract draft was wrong, not the code
jensenw1/BacktestBench/AutoBacktest/001_Retrival/utils.py
pointer only (licence: NONE) · get_code("a48003d0a790366e")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jensenw1/BacktestBench when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_content_after_think Ran
ran; our contract draft was wrong, not the code
jensenw1/BacktestBench/AutoBacktest/002_SQL/utils.py
pointer only (licence: NONE) · get_code("6281ad99e5144a25")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jensenw1/BacktestBench when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

extract_sql_from_response Ran
ran; our contract draft was wrong, not the code
jensenw1/BacktestBench/AutoBacktest/002_SQL/utils.py
pointer only (licence: NONE) · get_code("44f75e09214d5477")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jensenw1/BacktestBench when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

pass_at_k Ran
ran, honoured the contract we drafted
jensenw1/BacktestBench/AutoBacktest/002_SQL/utils.py
pointer only (licence: NONE) · get_code("62af43e66bbbc806")
How it ran

The body of this sample is withheld: GitHub detected no licence in this paper's repository, jensenw1/BacktestBench when it was checked. The setup block that called it is withheld with it, because it is written against that body. source_path and origin say where the code lives, to read under the repository's own terms. A run is recorded.

Also present in other papers' code

Of 6 samples lifted from this paper's linked repositories, 6 carry a function identity and 0 do not. Of the 6 distinct functions with an identity, 1 are also present in other papers whose code we hold (1 with at least one paper dated earlier, 0 the same month, 0 later) and 5 are only here among the 52,977 papers whose code Syntology holds (as of 2026-09-26).

Only here means: among the 52,977 papers whose code Syntology holds (51,887 with lifted samples, 1,090 through their assemblies only), as of 2026-09-26, no other paper's lifted samples or current assembly bricks contain an identical function body after normalisation.

FunctionAlso present inEarliest-datedOthers named
pass_at_k 6 other papers
6 dated earlier
2206.03865 (2022-06)
Fault-Aware Neural Code Rankers
2306.10763 (2023-06)
Guiding Language Models of Code with Global Context using Monitors
2402.09497 (2024-02)
Instruction Tuning for Secure Code Generation
and 3 more not named here

Presence, not direction: an identical function body in two papers' repositories does not say who wrote it, which came from which, or that either paper's method rests on it. Matching is exact after normalisation, so a renamed or edited function is not matched. Dates are when papers appeared, not when code was written. Only .py files the harvester lifted are covered; notebooks are not read. A new-style arXiv id YYMM.NNNN dates a paper to the month 20YY-MM; otherwise Paper.year dates it to the year; otherwise it is undated. Dates are when the paper appeared, not when the code was written. Read 2026-11-24.

Repositories linked to this paper

Some links come from the archived Papers with Code dataset (CC BY-SA 4.0): attribution and licence.

Abstract

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 largescale 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. The dataset and code will be publicly released at https://github.com/jensenw1/BacktestBench.

For agents

The same record, over MCP at https://syntology.ai/mcp:

get_harvested_code_for_paper("2605.17937")
get_code_for_paper("2605.17937")
have("2605.17937")

The run record, dated, one paper per request, free:

curl https://syntology.ai/api/ran/2605.17937.json

A badge for a README (the split and the date, never a ratio):

[![Syntology run record](https://syntology.ai/api/ran/2605.17937.svg)](https://syntology.ai/paper/2605.17937)

Connect an agent — have() is free.