arXiv:2605.17937cs.CLcs.AI2026-05KDD

首个自动化量化策略回测大模型基准,提升金融AI落地效率

BacktestBench: Benchmarking Large Language Models for Automated Quantitative Strategy Backtesting

论文配图:BacktestBench: Benchmarking Large Language Models for Automated Quantitative Strategy Backtesting
图 1 · 摘自论文原文
  • 构建包含600万真实行情数据的1.8万条问答对,覆盖四类回测任务
  • 多智能体系统实现自然语言到可复现回测代码的端到端转化
  • 揭示了验证机制与指标标准化对模型性能的关键影响

量化回测是评估交易策略的核心环节,但面临技术门槛高、扩展性差的挑战。尽管大语言模型(LLMs)有望通过代码生成、工具调用和智能规划实现该复杂跨学科流程的自动化,当前仍缺乏大规模专用基准,严重制约发展。为此,我们提出BacktestBench,首个面向自动化量化回测的大规模基准。基于超过600万条真实市场记录,构建了18,246个精心标注的问题-回答对,涵盖指标计算、标的筛选、策略选择和参数确认四类任务。我们还提出AutoBacktest多智能体基线系统,通过总结器提取语义因子、检索器生成可信SQL、编码器实现Python回测代码,将自然语言策略转化为可复现的回测流程。在23个主流LLM上的评估及针对性消融实验表明,模型端到端表现受多种因素影响,凸显了基于事实的验证与标准指标表示的重要性。

原文摘要 · Abstract (English)

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.

量化回测大模型应用金融AI多智能体

Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。