QuantEval: A Benchmark for Financial Quantitative Tasks in Large Language Models
Organizations: Peking University · Tsinghua University · Fudan University · University of California, Los Angeles ·
Abstract
Large Language Models (LLMs) have shown strong capabilities in finance-oriented question answering, yet their evaluation on professional quantitative workflows remains fragmented and often stops at factual or document-grounded QA. We introduce QuantEval, a benchmark for evaluating whether LLMs can complete the compute--implement--validate loop required in quantitative finance. QuantEval contains 1,575 expert-validated instances across three complementary dimensions: (i) knowledge-based QA, (ii) quantitative mathematical reasoning, and (iii) quantitative strategy coding. The coding task is evaluated with a deterministic CTA-style backtesting framework that executes model-generated strategies and compares risk--return metrics against expert references, moving beyond syntax or template matching. We evaluate 13 open-source and proprietary LLMs, report prompt and reliability analyses, and observe substantial gaps relative to human experts, especially in multi-step reasoning and framework-constrained coding. We further conduct supervised fine-tuning and reinforcement learning experiments on domain-aligned data, showing that training can improve quantitative reasoning while also exposing trade-offs in factual recall. QuantEval releases the dataset, evaluation scripts, and full backtesting configuration to support reproducible research on LLMs for quantitative finance.
Figures & tables
| Metric in Table 2 | Goal | Definition / Interpretation |
| Executable Rate (%) | Fraction of generated strategies that execute end-to-end in the CTA framework with valid interfaces and no runtime failure. | |
| Return MAE | Mean absolute error between generated and GT annualized return, computed over executable instances. | |
| Drawdown MAE | Mean absolute error between generated and GT maximum drawdown. | |
| Sharpe MAE | Mean absolute error between generated and GT Sharpe ratio. | |
| Ret/Draw MAE | Mean absolute error between generated and GT return-to-drawdown ratio, capturing profitability versus downside risk. |
| Knowledge QA (Acc.%) | Reasoning (Acc.%) | Strategy Coding (CoT-only) | |||||||||
| Model | w/ | w/o | w/ | w/o | Exec. Rate | Return MAE | Drawdown MAE | Sharpe MAE | Ret/Draw MAE | ||
| Human Expert | 91.75 | 91.75 | 0.0 | 89.05 | 89.05 | 0.0 | 100 | 1.52 | 1.10 | 0.07 | 0.09 |
| Open-Source Models | |||||||||||
| Qwen3-4B | 64.4 | 69.0 | -4.6 | 27.7 | 33.9 | -6.2 | 0.0 | – | – | – | – |
| Qwen3-8B | 65.5 | 65.5 | 0.0 | 33.9 | 29.2 | +4.7 | 0.0 | – | – | – | – |
| Qwen3-14B | 75.9 | 78.2 | -2.3 | 35.4 | 33.9 | +1.5 | 0.0 | – | – | – | – |
| Training Stage | Knowledge QA | Reasoning | Strategy Coding (Sharpe MAE) |
| Initial checkpoint | 50.3 | 42.8 | – |
| After SFT | 53.2 | 47.8 | 0.85 |
| After SFT + GRPO RL | 52.2 | 48.4 | 0.72 |
| Model | Finance IQ | Fin Eval | Finova | QuantEval QA | QuantEval Reasoning |
| Qwen2.5-7B-Instruct | 57.4 | 52.6 | 30.6 | 38.7 | 30.9 |
| DianJin-R1-7B | 62.3 | 58.7 | 41.9 | 50.3 | 42.8 |
| DianJin-R1-7B + RL | 69.2 | 64.2 | 43.7 | 51.8 | 44.1 |
| DianJin-R1-7B + SFT | 72.2 | 70.5 | 44.8 | 53.2 | 47.8 |
| DianJin-R1-7B + SFT + RL | 77.9 | 72.7 | 45.5 | 52.2 | 48.4 |
Appendix figures & tables13 assets
Supplementary material from the paper’s appendix.
Appendix
| Task | Primary Sources | Data Types | Time Span / Coverage | License / Availability |
| Knowledge QA | Finance textbooks, academic papers, regulatory filings, curated glossaries | Text | N/A | Publicly available / licensed academic materials |
| Quantitative Reasoning | Yahoo Finance, Stooq, FRED, Quandl (public datasets) | Prices, rates, volatility indices, macro indicators | Varies by asset class (e.g., 2010–2024) | Publicly accessible; redistribution follows source licenses |
| Strategy Coding | Open-source strategy repositories, academic implementations, expert-written CTA templates | Python code + aligned historical market data | Source strategies vary; evaluation backtest fixed to 2010–2025 | Open-source code under permissive licenses; expert templates released with benchmark |
| Expert | Knowledge QA (%) | Reasoning (%) |
| Expert 1 | 91.2 | 88.5 |
| Expert 2 | 93.0 | 89.7 |
| Expert 3 | 90.5 | 87.9 |
| Expert 4 | 92.3 | 90.1 |
| Metric | Mean | Std. Dev. |
| Executable Rate (%) | 100 | 0 |
| Return MAE (pp) | 1.52 | 0.27 |
| Drawdown MAE (pp) | 1.10 | 0.24 |
| Sharpe MAE | 0.07 | 0.02 |
| Ret/Draw MAE | 0.09 | 0.02 |
| Name | Professional Background |
| Expert 1 | Computer Science & Quantitative Research |
| Expert 2 | Computer Science & Quantitative Research |
| Expert 3 | Quantitative Trading Practitioner |
| Expert 4 | Quantitative Trading Practitioner |
| Expert 5 | Computer Science & Quantitative Research |
| Expert 6 | Quantitative Trading Practitioner |
| Task Category | Human Expert | Automated Agent | Total Samples |
| Knowledge QA | 520 | 140 | 660 |
| Quantitative Reasoning | 655 | 200 | 855 |
| Strategy Coding | 10 | 50 | 60 |
| Task | Expert Data | Agent Data | Agent Expert |
| Knowledge QA (Acc.%) | 62.8 | 61.3 | -1.5 |
| Quantitative Reasoning (Acc.%) | 55.6 | 53.9 | -1.7 |
| Strategy Coding (Sharpe MAE ) | 0.17 | 0.20 | +0.03 |
| Model | Knowledge QA Acc. 95% CI | Reasoning Acc. 95% CI | Coding Exec. 95% CI |
| Human Expert | 91.8 2.1 | 89.0 2.1 | [94.0, 100.0] |
| Qwen3-30B-A3B | 48.5 3.8 | 40.5 3.3 | [3.6, 18.1] |
| Claude Sonnet 4.5 | 86.0 2.6 | 43.1 3.3 | [52.4, 75.8] |
| Gemini 2.5 Pro | 66.7 3.6 | 38.0 3.3 | [52.4, 75.8] |
| GPT-5 | 83.9 2.8 | 55.0 3.3 | [40.9, 65.4] |
| Type | Evaluation Prompt |
| Multiple Choice | You are an evaluation assistant. |
| Please determine whether the model’s answer below is correct. | |
| Question: [question] | |
| Options: [options] | |
| Correct answer: [correct answer] | |
| Model output: [model output] |
| Training Setting | Knowledge QA | Reasoning | Sharpe MAE |
| Base | 50.3 | 42.8 | – |
| 25% SFT data | 51.2 | 44.5 | 1.25 |
| 50% SFT data | 52.4 | 46.2 | 1.02 |
| 100% SFT data | 53.2 | 47.8 | 0.85 |
| 100% SFT + GRPO | 52.2 | 48.4 | 0.72 |
| Exec. Rate (%) | Sharpe MAE | |||||
| Model | ||||||
| Claude Sonnet 4.5 | 65.0 | 64.2 | 63.3 | 0.16 | 0.17 | 0.17 |
| Gemini 2.5 Pro | 65.0 | 64.2 | 63.3 | 0.15 | 0.16 | 0.16 |
| GPT-5 | 53.3 | 52.5 | 51.7 | 0.17 | 0.17 | 0.18 |