Paper: arXiv 2610.03080

Authors: Siyu Wang, Yifan Wang, Yuecheng He

Abstract

Large language models are moving from producing trading signals to writing the code that executes them. The failure mode of the second role is silent: generated code runs, a backtest plots, yet the risk logic that the trader described is not the logic being executed. Existing code benchmarks test functional correctness on unit tests and finance benchmarks test forecasting; neither measures whether an implementation behaves like the strategy that was asked for. We introduce MintEval, a benchmark in which reference strategies are generated programmatically from a library of composable building blocks, back-translated into colloquial trader instructions, and re-implemented by the model under test. Generated and reference programs are executed bar by bar on identical market data and frictions, and compared on their actions rather than on code similarity or profit: alpha is differenced away. MintEval v0 contains 800 tasks on BTCUSDT 15-minute data, stratified by an execution-measured state-span complexity tau that is decoupled from description length. Low-cost models reach a mean ActionMatch of at most 0.544 and reproduce at most 0.087 of tasks exactly; on a stratified subset of 200 tasks a frontier model (Claude Opus 5.5) reaches 0.889 and reproduces 0.575 exactly, yet still fails silently on 0.275 of tasks. Given a menu of building blocks, models identify the strategy almost perfectly, yet 79.2% of the implementations whose specification was read correctly diverge on more than 10% of active bars. The LLM judge of a recent strategy-generation benchmark, applied verbatim, accepts every one of these silent failures.

Complexity vs Empirical Score

  • Math Complexity: 6.0/10
  • Empirical Rigor: 9.0/10
  • Quadrant: Holy Grail — high math complexity, high empirical rigor

Why this score: This paper presents a highly novel and rigorously designed benchmark for evaluating LLMs in generating trading strategy code. The empirical setup is thorough, focusing on behavioral equivalence rather than just code correctness, which is a critical distinction for real-world trading applications. The methodology for generating tasks and metrics is well-defined and addresses key challenges in LLM evaluation for stateful financial programs.

Research Flowchart

  flowchart TD
    A["Research Goal: Do LLMs Implement the Trading Strategy You Asked For?"] --> B("Methodology: MintEval Benchmark Creation");
    B --> C{"Data/Inputs: Programmatic Strategy Generation & Backtranslation"};
    C --> D("Computational Process: LLM Re-implementation & Execution Comparison");
    D --> E["Outcomes: ActionMatch & Exact Reproduction Scores"];

Evidence Card

What the authors claim, on what data, and who has checked it. Read from the paper's own text by a language model: every quote is verbatim, nothing was re-run. How to read this card

Proposes

The paper proposes MintEval, a benchmark for evaluating whether LLM‑generated code faithfully implements a trader’s intended strategy.

Source sentence
We introduce MintEval, a benchmark in which reference strategies are generated programmatically from a library of composable building blocks, back-translated into colloquial trader instructions, and re-implemented by the model under test.

Assumes 6

  • Reference strategies are evaluated with zero transaction costs and slippage for a friction‑free baseline. execution
    Source sentence
    re-running the same programs with zero fees and slippage gives a median of -0.6% with 47.8% profitable
  • Market data used are publicly available Binance price bars. market
    Source sentence
    Market data are public (data.binance.vision).
  • Tasks are generated from a combinatorial space that does not exist on the web, avoiding contamination. other
    Source sentence
    Tasks are sampled from a combinatorial space at build time; neither the instruction nor the reference program exists on the web.
  • All back‑translation messages must contain every parameter value and at least three slang expressions. model
    Source sentence
    Deterministic gates require every parameter value to appear, at least three expressions from a slang dictionary
Show 2 more
  • Programs must make at least 20 round trips and not lose half their equity in the first 5% of bars to be kept in the pool. execution
    Source sentence
    We sample 15000 candidate programs and keep the 14393 that make at least 20 round trips, are not flat throughout and do not lose half their equity in the first 5% of bars
  • ActionMatch and TradeF1 compare actions under identical frictions, so the metric is independent of P&L sign. statistical
    Source sentence
    ActionMatch and TradeF1 compare actions, and |ES| compares two programs under identical frictions, so a faithful re‑implementation of a losing strategy scores perfectly and an unfaithful one does not.

Data

  • BTCUSDT 15‑minute bars · Binance other public
    BTCUSDT
    Source sentence
    MintEval v0 contains 800 tasks on BTCUSDT 15‑minute data

Costs

Modeled Costs are part of the reported headline results.

Fees are included; programs with short state spans pay more fees and the reference baseline trades at roughly 6 basis points per fill.

Source sentence
Because programs with short state spans trade more often and therefore pay more fees, 𝜏 and reference return are confounded in the raw pool

Finds 5

  • Low‑cost models achieve a mean ActionMatch of at most 0.544 and exactly reproduce only 0.087 of tasks. performance
    Source sentence
    Low‑cost models reach a mean ActionMatch of at most 0.544 and reproduce at most 0.087 of tasks exactly
  • The frontier model Claude Opus 5.5 reaches 0.889 ActionMatch and exactly reproduces 0.575 of tasks, yet still fails silently on 0.275 of tasks. performance
    Source sentence
    on a stratified subset of 200 tasks a frontier model (Claude Opus 5.5) reaches 0.889 and reproduces 0.575 exactly, yet still fails silently on 0.275 of tasks
  • Even when the specification is read correctly, 79.2% of implementations diverge on more than 10% of active bars. negative
    Source sentence
    yet 79.2% of the implementations whose specification was read correctly diverge on more than 10% of active bars
  • ActionMatch declines as state‑span complexity increases; for the strongest models it falls from the shortest to the longest τmax quintile. statistical
    Source sentence
    State span matters (Fig. 1). For the two stronger models, ActionMatch falls from the shortest to the longest 𝜏max quintile (GPT‑5.4-mini open 0.674 →0.473; Haiku open 0.515 →0.315)
  • The median reference program loses 35.1% over two years and only 8.9% are profitable after costs; with zero fees the median loss is –0.6% and 47.8% are profitable. performance
    Source sentence
    The median reference program loses -35.1% over the two years and only 8.9% are profitable after costs

Checked by others

No other paper in the archive has been found to support or contradict these findings (compared with 26 related papers). Coverage is partial, so this is neither replication nor refutation.

Code

https://github.com/spearmintai/minteval — the authors' own repository

Extracted 2026-11-14 · same card as JSON · A language model chose these items: check the source sentence before relying on one.

Cited References (17)

  1. Evaluating Large Language Models Trained on Code (2021) — link
  2. Program Synthesis with Large Language Models (2021) — link
  3. SWE -bench: Can Language Models Resolve Real-World GitHub Issues? (2024)
  4. Is Your Code Generated by ChatGPT Really Correct? Rigorous Evaluation of Large Language Models for Code Generation (2023)
  5. DS-1000 : A Natural and Reliable Benchmark for Data Science Code Generation (2023)
  6. BigCodeBench : Benchmarking Code Generation with Diverse Function Calls and Complex Instructions (2024) — link
  7. LiveCodeBench : Holistic and Contamination Free Evaluation of Large Language Models for Code (2024) — link
  8. CodeHalu : Investigating Code Hallucinations in LLMs via Execution-based Verification (2024) — link
and 9 more
  1. LLM Hallucinations in Practical Code Generation: Phenomena, Mechanism, and Mitigation (2024) — link
  2. Can ChatGPT Forecast Stock Price Movements? Return Predictability and Large Language Models — → 2304.07619
  3. BloombergGPT : A Large Language Model for Finance (2023) — link
  4. FinGPT : Open-Source Financial Large Language Models — → 2306.06031
  5. The Implementation Shortfall: Paper versus Reality (1988) — link
  6. Pseudo-Mathematics and Financial Charlatanism: The Effects of Backtest Overfitting on Out-of-Sample Performance (2014) — link
  7. The Probability of Backtest Overfitting (2016) — link
  8. In the Matter of Knight Capital Americas LLC , Administrative Proceeding File No. 3-15570, Release No. 34-70694 (2013)
  9. QuantCode-Bench : A Benchmark for Evaluating the Ability of Large Language Models to Generate Executable Algorithmic Trading Strategies (2026) — link

2 of 17 cited works are in the corpus; resolved via arXiv source bundles, Semantic Scholar and OpenAlex. Corpus-wide: 2627 linked papers.