TL;DR
EVOQUANT is a self-evolving, verifier-guided framework that automates quantitative trading strategy optimization using Large Language Models (LLMs). By treating trading strategies as structured "genomes" and subjecting LLM-proposed edits to a strict, deterministic verification pipeline, it successfully eliminates the code hallucinations and backtest overfitting typical of unconstrained AI generation.
What Problem Does This Paper Address?
Developing and refining quantitative trading strategies is traditionally a slow, manual process. Quant researchers must constantly analyze backtest logs, diagnose why a strategy underperformed during certain market regimes, tweak parameters or risk rules, and re-validate their changes.
While LLM agents promise to accelerate this loop, directly tasking a vanilla LLM with rewriting trading code introduces severe financial risks. LLMs are prone to generating hallucinated trading rules, producing unexecutable code, and—worst of all—overfitting to noisy validation data (data snooping). A strategy might look spectacular on a specific backtest window simply by exploiting random noise, only to collapse when deployed live.
EVOQUANT addresses this challenge by shifting the role of the LLM from an unconstrained code generator to a bounded, auditable "edit proposer" operating within a rigorous scientific verification protocol.
Methods
EVOQUANT structures strategy optimization as a closed-loop evolutionary process divided into four main modules:
- Strategy Ingestion and Representation: Raw strategy code is parsed into an abstract syntax tree and normalized into a typed intermediate representation called a strategy genome. This factors the strategy into editable layers (signals, risk control, position sizing, entries, and exits).
- Baseline Evaluation: The system runs the initial strategy genome across chronological data splits to construct an "Evidence Pack," capturing performance metrics (Sharpe ratio, drawdown), trading behavior profiles, and risk anomalies.
- Diagnostic–Generative Loop: An LLM (specifically DeepSeek-R1) reviews the Evidence Pack to diagnose specific failure modes (e.g., validation decay, regime mismatch). It then generates a highly controlled, structured edit plan (a JSON diff) matching a strict contract, preventing arbitrary code drift.
- OOS-Aware Verification and Promotion: Proposed candidates are backtested in parallel. They must pass deterministic "hard gates" (e.g., minimum trade counts, maximum drawdown limits) before being scored on out-of-sample (OOS) generalization and stress-test robustness. An adaptive promotion engine decides whether to Adopt, Incubate, or Reject the candidate, and successful insights are distilled into a long-term experience memory bank.
Datasets
The framework was evaluated using daily historical data from January 1, 2020, to December 31, 2025, sourced from the AKShare database. To ensure broad market applicability, the authors tested the system across two distinct asset classes:
- A-share Market: 30 randomly sampled stocks evaluated across four strategy families (Bollinger Reversion, EMA-RSI Trend, Low-Vol Quality, and Volume Breakout).
- Crypto Market: Bitcoin (BTC) evaluated across three strategy families (MACD-RSI-Bollinger, ATR Trend Breakout, and Oversold Reversal).
Key Insights and Ideas
- The "Bounded Proposer" Paradigm: The core insight is that LLMs should not write financial strategies from scratch. By restricting the LLM to structured mutations over a typed genome, the system reaps the creative benefits of LLM ideation while guaranteeing syntactic and execution safety.
- Optimization is a Verification Problem: Generating strategy variations is easy; reliably rejecting bad ones is hard. The true driver of performance is the multi-stage verification pipeline that penalizes validation-to-out-of-sample performance decay.
- Accountable Search Planning: Instead of random parameter tuning, the LLM explicitly links its edits to a diagnosed financial failure mode, ensuring that structural rewrites are grounded in economic rationale.
Key Results
- Broad Performance Uplift: Across all seven strategy families, EVOQUANT consistently turned underperforming or negative-return baselines into profitable ones. The average test Sharpe ratio across the portfolios increased significantly from -0.298 to 0.538.
- Substantial Yield Improvements: The best-performing strategy achieved a 199% relative improvement in risk-adjusted returns.
- Ablation Verification: Ablation studies proved the necessity of the verification architecture. Removing the adaptive promotion engine caused the Sharpe ratio uplift on the Volume Breakout task to plummet from 0.982 to just 0.128, demonstrating that expanding candidate pools without strict gating leads to inferior, overfitted results.
Limitations and Future Work
As a research prototype, EVOQUANT's evaluations rely on daily-bar historical data and simplified execution assumptions. It currently omits high-frequency market frictions such as real-time order-book liquidity, borrow costs for shorting, corporate actions, and market impact fees.
The authors note that while these omissions don't invalidate the paired comparisons between baseline and optimized strategies, they bound the absolute interpretation of the returns. Future work will focus on integrating richer execution modeling, expanding the investable asset universe, and incorporating advanced statistical overfitting metrics like the Deflated Sharpe Ratio into the promotion engine.
Summary updated