Skip to content

TL;DR Quantitative trading agents have demonstrated substantial promise in automating factor discovery, signal aggregation, and portfolio execution. However, existing agent-based trading systems predominantly rely on loosely specified natural-language workflows, leading to opaque reasoning processes...

Authors: Yishuo Yuan, Jiayi Sheng, Sirui Zeng et al.

Published: 2026-12-02

Categories: cs.AI

arXiv: 2605.05580

License: cc-by-4.0

PDF: download · download markdown

:material-format-quote: Cite this paper

@misc{arxiv_2605_05580,
  title        = {AlphaCrafter: Harnessing Multi-Agent Workflows for Cross-Sectional Quantitative Trading},
  author       = {Yishuo Yuan and Jiayi Sheng and Sirui Zeng and Jiaqi Wang and Jiaheng Liu},
  year         = {2026},
  eprint       = {2605.05580},
  archivePrefix = {arXiv},
  url          = {https://arxiv.org/abs/2605.05580}
}

AlphaCrafter: Harnessing Multi-Agent Workflows for Cross-Sectional Quantitative Trading

Yishuo Yuan1 Jiayi Sheng1 Sirui Zeng1 Jiaqi Wang1 Jiaheng Liu1,†

  • 1 Nanjing University
  • † Corresponding author.

Quantitative trading agents have demonstrated substantial promise in automating factor discovery, signal aggregation, and portfolio execution. However, existing agent-based trading systems predominantly rely on loosely specified natural-language workflows, leading to opaque reasoning processes, inconsistent behaviors across foundation models, and limited controllability and verifiability, all of which introduce significant risks in financial decision-making. To address these limitations, we propose AlphaCrafter, a multi-agent framework built upon a structured agent harness. Instead of treating agent behavior as unconstrained prompt execution, AlphaCrafter encapsulates each agent within programmable policy specifications that integrate procedural workflows, execution constraints, and explicit verification mechanisms. This harness-driven design transforms the entire trading pipeline into a sequence of well-defined, reproducible, and auditable decision processes with explicit execution semantics. Extensive experiments on the CSI 300 and S&P 500 benchmarks demonstrate that AlphaCrafter consistently achieves superior risk-adjusted returns while exhibiting substantially lower cross-model and cross-trial variance. These results suggest that harness-based agent design provides a practical foundation for building more reliable, controllable, and robust multi-agent systems for quantitative trading.

Correspondence: Jiaheng Liu at [email protected]

Date: October 2026

1 Introduction

Financial markets constitute high-dimensional, nonlinear dynamical systems characterized by heavy tails Mandelbrot, 1997, volatility clustering Engle, 1982, and complex cross-sectional dependencies Diebold and Yılmaz, 2014. These properties imply that asset returns are jointly driven by macroeconomic regimes, microstructural frictions, and behavioral feedback Brock and Hommes, 1997; 1998; Kahneman and Tversky, 2013. Consequently, the predictive power of any fixed signal set inevitably deteriorates as market conditions evolve. Nevertheless, the dominant paradigm in quantitative investing remains one of static model specification followed by periodic manual recalibration Cao et al., 2025; GÂRLEANU and PEDERSEN, 2013.

Traditional quantitative strategies have evolved from classical factor pricing models Carhart, 1997; Fama and French, 1993 to machine learning methods such as XGBoost Chen and Guestrin, 2016 and LightGBM Ke et al., 2017, and more recently to deep sequence architectures including LSTMs Vennerød et al., 2021 and Transformers Vaswani et al., 2017. Despite their impressive predictive capabilities, these approaches fundamentally operate under a static design philosophy: feature engineering, model architectures, and optimization objectives remain manually specified, requiring repeated human intervention whenever market dynamics shift.

The emergence of large language models (LLMs) has enabled agent-based systems capable of automating increasingly sophisticated components of quantitative trading. Existing approaches generally follow two directions. One line constructs role-playing trading committees that aggregate heterogeneous information through simulated discussions Tian et al., 2025; Xiao et al., 2025. While effective for financial reasoning, these anthropomorphic interactions introduce considerable latency and may amplify behavioral biases. Another line develops agentic frameworks that directly perform factor discovery, strategy optimization, or trading execution through iterative interactions with financial data and computational tools Song et al., 2026; Kou et al., 2025; Li et al., 2025; Tang et al., 2025. Although these systems substantially automate quantitative research, they predominantly rely on loosely specified prompt-driven workflows that lack explicit execution policies, verification mechanisms, and behavioral consistency guarantees. These deficiencies undermine reproducibility and reliability—particularly in long-horizon trading, where sustained consistency is as critical as predictive accuracy.

Recent advances in agent engineering suggest that the execution harness surrounding an LLM can be as important as the underlying model itself for solving complex, long-running tasks OpenAI, 2026; Young, 2025. Rather than relying solely on natural-language prompts, a well-designed harness specifies explicit execution policies and control mechanisms that transform agent behavior from an implicit prompt-driven process into a controllable, verifiable, and reproducible computational workflow.

Motivated by the principle of harness engineering, we propose AlphaCrafter, a harness-driven multiagent framework for cross-sectional quantitative trading. AlphaCrafter encapsulates each agent within a structured execution harness that combines programmable policy specifications, execution constraints, and explicit verification mechanisms. The harness orchestrates the complete factor-to-execution pipeline while maintaining consistent behavior across different foundation models and repeated executions, enabling adaptive yet reliable quantitative trading under evolving market conditions.

Our core contributions are summarized as follows:

  • Harness-Driven Agent Execution for Quantitative Trading. We present the first harness-driven multiagent framework for cross-sectional quantitative trading, replacing loosely specified prompt-driven workflows with programmable execution policies, explicit behavioral constraints, and verification mechanisms for controllable and reproducible agent execution.
  • Robust Long-Horizon Trading Performance. Extensive experiments on both CSI 300 and S&P 500 demonstrate that AlphaCrafter consistently achieves superior risk-adjusted returns while exhibiting substantially lower cross-model and cross-trial variance, validating the effectiveness and robustness of harness-driven agent execution for quantitative trading.

2 AlphaCrafter

2.1 Preliminary Formulation

The trading environment is formalized as a tuple

\[\mathcal{E} = (\mathcal{T}, \mathcal{M}, \mathcal{Z}, \Pi), \tag{1}\]

where T = {1, . . . , T} is the discrete set of trading days. M denotes the market state space, encompassing both aggregate market conditions and individual asset characteristics. Formally, M contains the universe of tradable assets U ⊂ M, where U is a set of N individual entities. The raw market data is represented as a three-dimensional tensor X ∈ RN×T×P , where N denotes the number of assets, T is the number of trading days, and P denotes the number of raw features (e.g., open, high, low, close, volume). Each entry x (p) i,t represents the value of the p-th feature for asset i at time t. Z is the factor library, a dynamic repository of quantitative factors, where each factor is a function f : Rℓ×P → R that maps a lookback window of raw features xi,t−ℓ+1:t for a single asset to a scalar signal, with ℓ denoting the lookback length. For a cross-section of N assets, applying f to each asset's historical feature window yields a cross-sectional signal vector ft = (f(x1,t−ℓ+1:t ), . . . , f(xN,t−ℓ+1:t )) ∈ RN. We define an alpha as a factor that exhibits statistically significant predictive power for future cross-sectional returns, i.e., a factor whose information

Figure 1. The architecture of AlphaCrafter: A Miner Cluster continuously expands the factor library, the Screener enforces regime-aware calibration, and the Trader adaptively optimizes execution strategy. Together, these three harnesses form a closed-loop trading system.

coefficient (IC) exceeds a predefined threshold. Π defines the space of admissible trading strategies, parameterized by portfolio construction rules and risk constraints.

Agents operate with two forms of memory. In-context Memory injects immediate situational awareness directly into each agent's LLM prompt. Persistent Long-Term Memory functions as a shared, universally accessible repository that archives the complete trading trajectory, including selected factors, executed strategies, and realised performance outcomes. This persistent layer enables collective system adaptation by disseminating performance feedback and conditional directives across all agents.

2.2 Miner Cluster Harness

The Miner Cluster harness is responsible for autonomous factor generation, rigorous validation, and continuous library maintenance. It deploys a cluster of specialized Miner agents that collaboratively expand the factor pool over the asset universe U ⊂ M. Candidate factors are proposed by an LLM based on current market conditions, evaluated against historical asset data, and selectively integrated into the factor library Z. The harness terminates exploration after validating all generated factor candidates in the current round.

The Miner Cluster operates on the current factor library Zt , the asset universe U, and market state M:

$\(A_M(\mathcal{Z}_t, \mathcal{M}) \xrightarrow{P_M} \mathcal{Z}_{t+1}.\)$ (2)

The policy PM is summarized in Algorithm 1. It begins by invoking the agent to generate candidate factor expressions conditioned on the prevailing market state. Each candidate is then validated using a comprehensive set of metrics including the Information IC, Rank IC, ICIR, Rank ICIR, hit ratio, coverage, and turnover, evaluated across multiple prediction horizons. Accepted factors are persisted into the library, while a subsequent maintenance phase re-validates existing factors at regular intervals and prunes those exhibiting significant performance decay.

2.3 Screener Harness

The Screener harness distills a coherent factor ensemble Et by weaving together signals from the factor library with a nuanced reading of prevailing market conditions. Its policy PS first retrieves market information via a dedicated tool, then invokes an LLM to diagnose the market regime Rˆ t , assessing trend direction, volatility, correlation structure, and other relevant market characteristics. Building on this regime diagnosis, it evaluates the semantic relevance of each factor f ∈ Zt with respect to the diagnosed regime, computes a suitability score based on recent predictive performance, and selectively assembles a diversified subset by enforcing semantic dissimilarity among selected factors. Finally, it assigns directional weights to form an ensemble attuned to the unfolding market dynamics.

The Screener's transformation of the factor library and market state into an actionable ensemble is given by:

$\(A_S(\mathcal{Z}_t, \mathcal{M}) \xrightarrow{P_S} (\mathcal{E}_t, \hat{\mathcal{R}}_t).\)$ (3)

Algorithm 1 Miner Policy \(P_M\)

1: \mathcal{Z}_{t+1} \leftarrow \mathcal{Z}_t
 2: \mathcal{H} \leftarrow \{1,5\} {Evaluation horizons}
 3: \Delta_{valid} \leftarrow 90 {Re-validation interval}
 4: FUNCTION Validate(f)
 5: for each h \in \mathcal{H} do
6: \{IC_h^{(t)}\}_{t=1}^{T-h} \leftarrow \emptyset {Initialize empty list of IC values}
          for t = 1 to T - h do
 7:
             \mathbf{f}_t \leftarrow (f(\mathbf{x}_{1,t-\ell+1:t}), \dots, f(\mathbf{x}_{N,t-\ell+1:t})) \in \mathbb{R}^N
 8:
             R_{t+h} \leftarrow (r_{1,t+h}, \dots, r_{N,t+h}) \in \mathbb{R}^N {Forward returns: rate of price change from t to t+h}
 9:
          IC_h^{(t)} \leftarrow corr(\mathbf{f}_t, R_{t+h})
10.
            RankIC_h^{(t)} \leftarrow rank\_corr(\mathbf{f}_t, R_{t+h})
11:
12:
         IC_h \leftarrow mean(\{IC_h^{(t)}\}) {Time-series average of IC}
13:
         RankIC_h \leftarrow mean(\{RankIC_h^{(t)}\}) \{Time-series average of Rank IC\}
         ICIR_h \leftarrow mean(\{IC_h^{(t)}\})/std(\{IC_h^{(t)}\}) \{ICIR\}
15:
         RankICIR_h \leftarrow mean(\{RankIC_h^{(t)}\}) / std(\{RankIC_h^{(t)}\}) \{Rank ICIR\}
16:
        \eta_{h} \leftarrow \frac{1}{T-h} \sum_{t=1}^{T-h} \mathbf{1}[\operatorname{RankIC}_{h}^{(t)} > 0] \text{ {Hit ratio}}
\kappa_{h} \leftarrow \frac{1}{T-h} \sum_{t=1}^{T-h} \frac{|\{i \in [N]: f(\mathbf{x}_{i,t-\ell+1:t}) \neq \mathrm{NA}\}|}{N} \text{ {Coverage}}
\tau_{h} \leftarrow \frac{1}{T-h-1} \sum_{t=2}^{T-h} \frac{\|\operatorname{rank}(\mathbf{f}_{t}) - \operatorname{rank}(\mathbf{f}_{t-1})\|_{1}}{N} \text{ {Turnover}}
17:
18:
19:
          if (IC_h, RankIC_h, ICIR_h, RankICIR_h, \eta_h, \kappa_h, \tau_h) \notin S(h) then
20:
             return False {S(h): for h = 1: IC, RankIC > 0.015, ICIR, RankICIR > 0.2; for h = 5: IC, RankIC >
21.
             0.025, ICIR, RankICIR > 0.25; both: |\eta - 0.5| > 0.1, \kappa > 0.9, \tau < 0.4
22:
          end if
23: end for
24: last\_validated(f) \leftarrow current\_time
25: return True
26: END FUNCTION
27: \mathcal{C} \leftarrow \text{LLMGenerateCandidates}(\mathcal{M}) {LLM proposes prior hypotheses based on market conditions
      and generates multiple candidate factor expressions}
28: for each f \in \mathcal{C} do
         if Validate(f) then
29:
             \mathcal{Z}_{t+1} \leftarrow \mathcal{Z}_{t+1} \cup \{f\}
30.
         end if
31:
32: end for
33: for each f \in \mathcal{Z}_t do
          if current_time – last_validated(f) \geq \Delta_{\text{valid}} then
34:
             if not Validate(f) then
35:
                 \mathcal{Z}_{t+1} \leftarrow \mathcal{Z}_{t+1} \setminus \{f\}
36:
             end if
37:
          end if
38.
39: end for
40: return \mathcal{Z}_{t+1}

Algorithm 2 outlines the selection process. The agent retrieves market information, diagnoses the regime via LLM, filters factors by semantic relevance, computes suitability scores as the mean of recent Rank IC values, enforces diversity through LLM-based semantic similarity assessment, and outputs a structured ensemble with normalized weights and directional signs.

2.4 Trader Harness

The Trader harness composes a trading strategy \(\pi_t\) by integrating the factor ensemble \(\mathcal{E}_t\) and regime assessment \(\hat{\mathcal{R}}_t\) with self-determined hyperparameter configurations, operating on the asset universe \(\mathcal{U}\) . Its policy \(P_T\) explores

Algorithm 2 Screener Policy \(P_S\)

1: Info_t \leftarrow CALLGetMarketInfoTool(\mathcal{M}) {Retrieve market data and information through dedicated data acquisi-
     tion tools}
 2: \hat{\mathcal{R}}_t \leftarrow \text{LLMAssessRegime}(\text{Info}_t) \{\text{LLM diagnoses market regime based on retrieved information}\}
 3: selected \leftarrow \emptyset, candidate \leftarrow \emptyset
 4: for each f \in \mathcal{Z}_t do
        relevant \leftarrow LLMSemanticJudge(f, \hat{\mathcal{R}}_t) {LLM judges semantic relevance; skip if irrelevant}
 5:
        if relevant = False then
 6:
 7.
            continue
        and if
 8.
        \mathbf{f}_{\tau} \leftarrow (f(\mathbf{x}_{1,\tau-\ell+1:\tau}), \dots, f(\mathbf{x}_{N,\tau-\ell+1:\tau})) \in \mathbb{R}^{N} \text{ {Factor vector over cross-section}}
 9:
        s_f \leftarrow \frac{1}{L_{ic}} \sum_{\tau=t-L_{ic}}^{t-1} \text{rank\_corr}(\mathbf{f}_{\tau}, R_{\tau+1}) {Mean Rank IC over the past L_{ic} days as factor suitability score for
        current market conditions}
        candidate \leftarrow candidate \cup \{(f, s_f)\}
11:
12: end for
13: ranked \leftarrow sort(candidate, |s_f|, descending)
14: while ranked \neq \emptyset do
15:
         f^* \leftarrow \text{pop\_first(ranked)}
16:
        if |s_{f^*}| < \theta_s then
17:
18.
        end if{Reject factors with insufficient predictive strength; \theta_s = 0.02}
        similarity \leftarrow \max_{g \in \text{selected}} \text{LLMSemanticSimilarity}(f^*, g) {LLM evaluates semantic similarity between factor
19.
        expressions following the given instruction; returns 0 if selected is empty}
20:
        if similarity < \theta_{sim} then
            selected \leftarrow selected \cup {f^*} {\theta_{sim} = 0.8: LLM-guided semantic filtering, reject if factors are semantically
21.
            overlapping}
         end if
22:
23: end while
24: for each f \in selected do
        w_f \leftarrow \frac{|s_f|}{\sum_{g \in \text{selected}} |s_g|} {Weight normalized by absolute suitability}
25:
        d_f \leftarrow \operatorname{sign}(s_f) \{ \operatorname{Long} \text{ if } s_f > 0, \text{ short if } s_f < 0 \}
27:
        \dot{\mathcal{E}}_t \leftarrow \mathcal{E}_t \cup \{(f, w_f, d_f)\}
28: end for
29: return (\mathcal{E}_t, \hat{\mathcal{R}}_t)

hyperparameter configurations \(\Theta\) of a reference top-K strategy \(\pi_{ref}\) via backtesting, selects the configuration that satisfies the feasible region \(\mathcal{S}_{\Theta}\) while maximizing the Sharpe ratio, and executes the resulting portfolio.

The Trader's operation is formalized as:

$\(A_T(\mathcal{E}_t, \hat{\mathcal{R}}_t, \mathcal{M}) \xrightarrow{P_T} (\pi_t, r_t),\)$ (4)

where \(r_t\) is the realized return from executing \(\pi_t\) .

The reference strategy \(\pi_{\rm ref}\) is a top-K long-short portfolio construction mechanism operating on the asset universe \(\mathcal{U}\) , detailed in Algorithm 4 of Appendix A. For each asset, it aggregates weighted signals from the factor ensemble \(\mathcal{E}_t\) into a composite score, then selects the top \(N_{\rm long}\) assets for long positions and the bottom \(N_{\rm short}\) for short positions. Position sizing follows a controlled allocation scheme parameterized by gross exposure \(\beta\) and net exposure bias \(\gamma\) , with rebalancing subject to these exposure constraints.

Algorithm 3 describes the strategy search and execution policy. The agent samples hyperparameter configurations conditioned on the diagnosed market regime, generates executable strategy code by instantiating the reference strategy with the factor ensemble and sampled parameters, evaluates candidates via backtesting, and selects the configuration that achieves the highest Sharpe ratio while satisfying risk constraints. The optimal strategy is then executed on live market data to produce realized returns.

3 Experiments

3.1 Experimental Setup

Algorithm 3 Trader Policy \(P_T\)

1: \Theta \leftarrow \{\beta, \gamma, N_{long}, N_{short}\} {Strategy hyperparameters}
 2: N \leftarrow 3 {Maximum backtest trials}
 3: \pi_{\text{best}} \leftarrow \text{None}, SR_{\text{best}} \leftarrow -\infty
 4: for n \leftarrow 1 to N do
        \theta_n \leftarrow \text{Sample}(\Theta, \hat{\mathcal{R}}_t) (Sample hyperparameters conditioned on market regime to adjust long/short intensity
        \pi_n \leftarrow \text{LLMGenerateCode}(\pi_{\text{ref}}, \mathcal{E}_t, \theta_n) \text{ {Generate executable strategy code}}
 7:
        r_n, SR_n, MDD_n \leftarrow CallBacktestTool(\pi_n)
        if (r_n, SR_n, MDD_n) \in \mathcal{S} and SR_n > SR_{best} then
 8:
 9:
            \pi_{\text{best}} \leftarrow \pi_n, SR_{\text{best}} \leftarrow SR_n \{S: r > 8\%, SR > 0.6, MDD > -8\% \}
10.
        end if
11. end for
12: if \pi_{\text{best}} = None then
        return (None, 0)
14: end if
15: r_t \leftarrow \text{CallExecuteTool}(\pi_{\text{best}}) {Run the generated strategy code on live market data}
16: return (\pi_{\text{best}}, r_t)

3.1.1 Dataset

Our experiments utilize a comprehensive dataset covering both Chinese A-share market (CSI 300 constituents) and U.S. stock market (S&P 500 constituents). The raw data encompasses four categories: (1) Price-volume data including daily OHLCV (Open, High, Low, Close, Volume); (2) Fundamental indicators including Price-to-Earnings (PE), Price-to-Sales (PS), Price-to-Book (PB), and Dividend Yield Rate (DYR); (3) Financial statements including quarterly balance sheets, income statements, and cash flow statements; (4) Alternative data comprising financial news and corporate announcements, including authoritative sources such as the Federal Reserve. The temporal split of the dataset is detailed in Table 1. Detailed information regarding data sources and storage formats is provided in Appendix B.1.

Table 1. Dataset Splits for Training, Validation, Backtesting, and Live Trading

Market Training Validation Backtesting Live Trading
CSI 300 2016.01.04-2022.12.30 2023.01.03-2023.12.29 2024.01.02-2026.02.27 2026.03.02-2026.06.12
Trading Days 1703 Days 242 Days 519 Days 69 Days
S&P 500 2016.01.04-2022.12.30 2023.01.03-2023.12.29 2024.01.02-2026.02.27 2026.03.02-2026.06.12
Trading Days 1763 Days 250 Days 542 Days 73 Days

3.1.2 Metrics

We evaluate all methods using three standard financial metrics. Annualized Return (AR) measures the geometric mean yearly return, reflecting absolute profitability. Sharpe Ratio (SR) assesses risk-adjusted performance by normalizing excess returns by their volatility, capturing return efficiency per unit of risk. Maximum Drawdown (MDD) quantifies the largest peak-to-trough decline over the evaluation period, indicating worst-case capital loss. For factor-level evaluation, we report Information Coefficient (IC) and IC Information Ratio (ICIR), along with their rank-based variants. IC measures the cross-sectional Pearson correlation between factor values and forward returns, directly indicating predictive strength. Rank IC uses Spearman rank correlation instead, providing robustness against outliers. ICIR and Rank ICIR are computed as the respective mean IC divided by its standard deviation, measuring the consistency of predictive performance over time. Detailed formal definitions of all metrics are provided in Appendix B.2.

3.1.3 Baselines

We compare AlphaCrafter against representative methods spanning five categories. Quantitative methods include MACD (Appel, 1979), a momentum-based trend-following indicator, and Grid Trading (Griffin et al., 2003), a mean-reversion strategy that places buy and sell orders at predetermined price levels. Machine learning methods employ LightGBM (Ke et al., 2017) and XGBoost (Chen and Guestrin, 2016) trained on technical and fundamental features to predict asset returns. Deep learning methods include LSTM (Vennerød et al., 2021) and Transformer (Vaswani et al., 2017), which capture temporal dependencies through sequential modeling, as well as TRA (Lin et al.,

2021), which additionally captures cross-sectional patterns via a dual-attention architecture. Traditional trading agent methods comprise TradingAgents Xiao et al., 2025 and TradingGroup Tian et al., 2025, which simulate role-playing committees with rule-based coordination for multi-source information aggregation. Quantitative trading agent methods include RD-Agent Li et al., 2025 and AlphaAgent Tang et al., 2025, which leverage LLMs for automated factor generation. Beyond the multi-agent collaborative aggregation of market information, AlphaAgent further incorporates a regularization-based search mechanism to counteract alpha decay. All baseline implementations follow their original papers' recommended settings, with hyperparameters tuned on the validation set. For methods requiring feature preprocessing, input data are standardized using Z-score normalization. For LLM-based agent methods, we conduct experiments using three backbone models: GPT 5.3 Codex OpenAI, 2026, Claude Opus 4.6 Anthropic, 2026, and Gemini 3.1 Pro Google DeepMind, 2026.

3.1.4 Settings

Our experiments are conducted under a daily-frequency cross-sectional trading framework with portfolio weights updated at each market close. To mitigate the risk of data leakage, all stock identifiers are anonymized throughout the experiments, so that LLM-based methods cannot exploit memorized firm-specific information from pre-training. For LLM-based methods, each configuration is evaluated over 10 independent trials; reported metrics are averaged over trials within the interquartile range to mitigate outlier influence. Backtesting is performed through a simulation environment with static market data and a simulated matching engine calibrated to real liquidity conditions. We additionally conduct a live-trading phase using a paper-trading API from a real brokerage, operating under actual market order execution mechanics. The evaluation window for live trading falls strictly outside the training data cutoff of all backbone models to eliminate confounding effects from LLM memory and known market-beta trends Kong et al., 2026. Detailed experimental specifications are deferred to Appendix B.3.

3.2 Main Results

Table 2 reports the backtesting and live trading performance of all evaluated methods across the CSI 300 and S&P 500 markets.

Table 2. Backtesting and Live Trading Performance Comparison on CSI 300 and S&P 500

Method Backtesting Live Trading
CSI 300 S&P 500 CSI 300 S&P 500
AR(%) SR MDD(%) AR(%) SR MDD(%) AR(%) SR MDD(%) AR(%) SR MDD(%)
Non-LLM Methods
MACD 21.77 0.9856 -18.63 7.92 0.7203 -19.88 10.29 0.8662 -16.18 18.76 1.2209 -19.47
Grid Trading 6.62 0.3291 -16.02 15.21 1.1115 -9.18 -2.90 -0.2552 -12.92 6.22 0.3901 -14.70
LightGBM 17.92 1.2215 -10.32 8.14 0.5142 -13.67 7.64 0.5140 -9.70 11.99 1.1892 -12.15
XGBoost 16.26 1.2431 -8.71 2.08 -0.1625 -8.63 3.40 0.3621 -10.17 9.68 1.0110 -13.32
LSTM 20.11 1.4279 -12.21 16.26 1.3802 -10.46 3.22 0.3469 -11.59 7.52 0.8262 -10.91
Transformer 14.31 1.1917 -9.17 7.22 0.4420 -10.11 -2.31 -0.3223 -13.92 5.09 0.2826 -13.15
TRA 16.25 1.1622 -10.65 10.27 1.0071 -8.19 7.51 0.7121 -8.87 9.07 1.0225 -10.05
Agent Methods with GPT 5.3 Codex
TradingAgents 15.25 1.2726 -9.05 10.75 0.9769 -11.40 7.72 0.5673 -12.84 10.45 1.1243 -11.61
TradingGroup 13.43 1.1631 -10.04 11.67 1.0431 -9.83 4.66 0.3005 -12.68 14.20 1.2978 -13.02
RD-Agent 16.32 1.3935 -9.04 9.26 0.8512 -7.95 5.98 0.3571 -11.92 9.21 1.1871 -11.84
AlphaAgent 16.11 1.5043 -9.55 15.22 1.3123 -9.22 10.78 1.1035 -10.66 12.23 1.1341 -12.35
AlphaCrafter 16.76 1.5268 -8.98 13.51 1.2531 -8.85 9.57 1.1275 -9.07 14.02 1.4546 -9.06
Agent Methods with Claude Opus 4.6
TradingAgents 17.25 1.3726 -9.78 11.21 1.0769 -10.08 6.72 0.6671 -10.22 13.45 1.2521 -13.10
TradingGroup 13.53 1.1368 -12.65 10.58 0.9813 -11.26 3.52 0.4998 -8.05 8.32 0.9186 -10.31
RD-Agent 16.48 1.3235 -10.14 11.48 1.1334 -9.34 5.52 0.5164 -10.53 8.12 0.7810 -11.96
AlphaAgent 19.22 1.6648 -8.92 14.51 1.2664 -9.17 11.22 1.1783 -9.92 15.75 1.5767 -9.76
AlphaCrafter 18.88 1.6732 -8.48 15.66 1.3425 -7.98 10.70 1.1902 -8.21 16.26 1.6012 -9.53
Agent Methods with Gemini 3.1 Pro
TradingAgents 13.76 1.0565 -12.23 14.64 1.2229 -11.20 3.72 0.3021 -11.49 14.11 1.1851 -12.44
TradingGroup 12.56 0.9666 -12.82 13.22 1.0091 -9.67 2.93 0.2752 -10.22 9.89 0.9394 -11.70
RD-Agent 15.42 1.3632 -8.96 12.35 1.0902 -10.55 7.27 0.8389 -8.33 12.55 1.2801 -9.20
AlphaAgent 16.92 1.3932 -10.36 12.09 1.1938 -10.81 7.86 1.0022 -10.96 14.11 1.3372 -11.05
AlphaCrafter 17.22 1.4852 -9.27 14.52 1.3126 -8.65 9.91 1.2001 -8.17 14.25 1.4008 -8.89

Traditional technical indicators, particularly MACD, achieve substantial raw returns by capturing market beta, yet suffer from unfavorable risk-adjusted profiles characterized by low Sharpe ratios and elevated drawdowns, reflecting the absence of effective risk management mechanisms. Machine learning and deep learning methods, notably LSTM, demonstrate strong backtesting performance but exhibit pronounced degradation in live trading, exposing their vulnerability to overfitting and regime shifts. This pattern is consistent across both markets, underscoring

the fundamental challenge of generalizing data-driven models to out-of-sample conditions. Agent-based methods reveal a clear dichotomy. Role-playing agents (TradingAgents, TradingGroup) exhibit considerable cross-model instability due to the inherent variability in LLM reasoning across different backbone models. In contrast, quantitative trading agents (RD-Agent, AlphaAgent, AlphaCrafter) demonstrate more consistent behavior, attributed to their structured factor-centric workflows. Across the quantitative trading agent category, AlphaCrafter consistently exhibits favorable cross-model and cross-trial stability throughout both backtesting and live trading phases, suggesting that its harness-driven design contributes to more reliable and reproducible performance under varied conditions.

3.3 Stability Analysis

To assess the reliability and robustness of AlphaCrafter, we aggregate all S&P 500 backtesting experiments and conduct stability analyses from two perspectives: (1) performance consistency under stochastic variation through repeated independent trials, and (2) model robustness with respect to the choice of underlying LLM backbone. Results are presented in Figure 2 and Figure 3.

MDD -15%~-5% GPT 5.3 Codex SR 0~2.0 Claude Opus 4.6 Gemini 3.1 Pro IC 0.50 0.75 1.00 0~0.03 AR 0~20% ICIR 0~0.3 Rank ICIR 0~0.3 Rank IC \(0 \sim 0.03\)

Figure 2. Performance distributions across independent backtesting trials. Each bar represents the min-max range of annualized returns across 10 independent trials for each method.

Figure 3. Performance comparison across backbone LLMs in backtesting. Radar chart comparing key metrics of AlphaCrafter instantiated with three backbone LLMs.

3.3.1 Trial Stability

Figure 2 presents the distribution of annualized returns across 10 independent backtesting trials. AlphaCrafter exhibits the smallest cross-trial variance and the highest minimum returns among all methods, indicating the lowest tail risk. This robustness stems from the structured harness mechanism, which constrains agent behavior through programmable policies rather than unconstrained prompt execution. In contrast, baseline methods display wider variance and pronounced negative outliers, confirming that AlphaCrafter delivers reliable and reproducible performance under repeated evaluation.

3.3.2 Model Stability

Figure 3 compares AlphaCrafter's backtesting performance across three backbone LLMs. The framework exhibits a consistently stable profile across all models, with radar patterns remaining broadly aligned across all metric dimensions. Notably, AlphaCrafter demonstrates the smallest cross-model range across all performance metrics, confirming that the harness mechanism effectively decouples the framework's effectiveness from the specific choice of underlying LLM. While Claude Opus 4.6 yields marginally superior overall performance, the GPT and Gemini variants maintain robust results with minimal degradation. This stability underscores the model-agnostic design of AlphaCrafter, where procedural workflows and verification mechanisms embedded in the agent harness ensure consistent behavior across diverse model architectures, a critical property for practical deployment where LLM choices may vary due to cost or availability constraints.

3.4 Alpha Decay Analysis

Alpha decay refers to the gradual erosion of a factor's predictive power over time, as market dynamics shift and the informational edge embedded in the factor becomes arbitraged away by other market participants. To evaluate

the temporal stability of factor efficacy and the extent to which different curation strategies mitigate this decay, we conduct an analysis across four consecutive semi-annual periods from January 2024 to January 2026. We report the mean, maximum, and minimum Information Coefficient for agent-based quantitative trading methods (RD-Agent, AlphaAgent, and AlphaCrafter), alongside two Alpha158-based baselines Yang et al., 2020: global top20 (retains the 20 best factors over the entire backtesting horizon) and periodic top20 (dynamically re-selects the top 20 factors within each semi-annual interval). For AlphaCrafter, we dynamically track the effective factors retained in the factor library Zt , reflecting the system's adaptive curation process. All agent-based results reported in this analysis are instantiated with the Claude Opus 4.6 backbone, which yields the best overall performance in the main experiments.

Figure 4. IC comparison of different methods across time periods on CSI 300 and S&P 500 markets.

As shown in Figure 4, the two Alpha158 baselines exhibit diametrically opposite behaviors: periodic top20 maintains consistently high IC across both markets through frequent refreshment, while global top20 suffers severe volatility with IC values fluctuating widely and even turning negative, confirming that static factor sets are highly vulnerable to market regime shifts. Among agent-based methods, AlphaAgent and AlphaCrafter sustain stable IC levels around 0.02 across all periods, demonstrating robust predictive persistence. In contrast, RD-Agent exhibits a noticeable declining trend in later evaluation windows, indicating more pronounced alpha decay. These results collectively demonstrate that both regularization-based search and adaptive library maintenance are effective in mitigating alpha decay, underscoring the importance of dynamic factor curation for preserving predictive power in evolving markets.

3.5 Ablation Study

To quantify the marginal contribution of each component, we conduct ablation experiments with the following variants: (1) w/o Miner, replacing the Miner Cluster harness with the static Alpha158 factor set Yang et al., 2020; (2) w/o Screener, replacing the Screener harness with equal-weighted allocation across all available factors in Zt ; (3) w/o Trader, replacing the Trader harness with the fixed reference strategy πref; (4) w/o Harness, retaining all specialized agents but replacing the programmatic harness with a natural-language workflow in which the agents coordinate through natural-language instructions; and (5) Single-Agent, using a single LLM agent that performs all programmatic workflows within a single context, bypassing the multi-agent harness design. All experiments use Claude Opus 4.6 as the backbone model.

Table 3. Ablation Study: Backtesting Performance on CSI 300 and S&P 500
Method CSI 300 S&P 500
AR(%) ↑ SR ↑ MDD(%) ↑ AR(%) Std ↓ AR(%) ↑ SR ↑ MDD(%) ↑ AR(%) Std ↓
Ablation Variants
w/o Miner 16.64 1.3515 -9.82 3.53 14.02 1.1401 -9.26 3.28
w/o Screener 15.87 1.3858 -9.24 3.96 13.73 1.1377 -10.42 4.12
w/o Trader 16.11 1.3284 -10.85 4.15 13.32 1.1250 -11.15 3.75
w/o Harness 15.32 1.3628 -10.93 4.02 14.53 1.2769 -8.58 3.31
Single-Agent 14.83 1.1527 -12.24 4.57 9.95 0.8631 -11.37 4.16
Full Model
AlphaCrafter 18.88 1.6732 -8.48 3.03 15.66 1.3425 -7.98 2.91

Table 3 reports the results. Removing any component-level harness degrades performance across all metrics. The w/o Miner variant, which replaces the Miner Cluster harness, exhibits notable AR decline on both markets, as the static

Alpha158 factor set suffers from IC instability and alpha decay, whereas the Miner Cluster harness continuously generates and validates new factors. The w/o Screener variant, which removes the Screener harness, incurs substantial AR degradation, confirming its role in selecting regime-appropriate factors and mitigating downside risk. The w/o Trader variant, which replaces the Trader harness, yields low Sharpe ratios, showing that adaptive execution is essential for risk-adjusted returns.

The w/o Harness variant holds the agent set fixed but replaces structured programmatic interfaces with naturallanguage coordination. On S&P 500 it drops AR from 15.66 to 14.53 and SR from 1.3425 to 1.2769 while raising AR Std from 2.91 to 3.31; CSI 300 shows a consistent degradation. Since the agent decomposition is unchanged, this gap isolates the stabilizing role of the programmatic harness: structured interfaces constrain and validate each step of agent interaction, which natural-language coordination alone does not provide.

The Single-Agent variant exhibits the highest variance and most severe drawdowns on both markets, as the monolithic agent must manage factor generation, regime diagnosis, ensemble selection, and strategy construction within a single context window, causing critical steps to be lost or corrupted. The multi-agent harness instead provides explicit context isolation, and the full model achieves the highest AR, Sharpe ratio, and lowest volatility across both universes.

4.1 LLM-Powered Agentic Systems

LLM-based agentic systems span a broad spectrum, ranging from predefined workflows Zhuge et al., 2025; Xi et al., 2023 to fully autonomous agents Wang et al., 2024a; Zhang et al., 2024c; Hong et al., 2024. Recent advances have shifted toward skill-based frameworks that treat agent capabilities as composable and verifiable modules, enabling dynamic assembly and reuse Liang et al., 2026; Xu and Yan, 2026; Li et al., 2026. A growing body of evidence suggests that the harness surrounding an LLM—the structured interface that governs its behavior—is as critical as the model itself for sustained autonomous operation OpenAI, 2026; Young, 2025. These insights motivate the design of agent systems with explicit behavioral constraints and verification mechanisms.

4.2 LLM for Financial Trading

Domain-specific financial LLMs such as FinGPT Yang et al., 2025 and FinLlama Konstantinidis et al., 2024 demonstrate strong performance on financial tasks such as sentiment analysis and information extraction, though they typically operate on static data without real-time adaptation. Agent-based trading architectures have emerged along several trajectories. News-driven agents incorporate sentiment signals from financial news and social media to inform trading decisions Zhang et al., 2024b; Wang et al., 2024b; Yu et al., 2023. Reflection-driven agents iteratively refine their decisions through self-critique and multi-agent debate Xing, 2025; Zhang et al., 2024a; Yu et al., 2024; Xiao et al., 2025; Tian et al., 2025. Factor optimization frameworks leverage LLMs for automated alpha discovery and strategy formulation Kou et al., 2025; Li et al., 2025; Tang et al., 2025; Wang et al., 2024c; 2025. These approaches collectively demonstrate the potential of LLMs in automating various aspects of quantitative trading, from signal generation to decision-making.

5 Conclusion

In this paper, we introduced AlphaCrafter, a multi-agent framework grounded in harness engineering principles that formalizes quantitative trading workflows through structured algorithmic policies. Unlike existing agent-based systems that rely on loosely specified natural-language prompts, AlphaCrafter encapsulates each agent within programmable policy specifications that integrate procedural workflows, execution constraints, and explicit verification mechanisms. This harness-driven design transforms the entire trading pipeline into a sequence of well-defined, reproducible, and auditable decision processes with explicit execution semantics. Extensive evaluations on the CSI 300 and S&P 500 benchmarks demonstrate that AlphaCrafter consistently achieves superior risk-adjusted returns while exhibiting substantially lower cross-model and cross-trial variance compared to state-of-the-art baselines. These results suggest that disciplined harness-based design provides a practical foundation for building more reliable, controllable, and robust multi-agent systems for quantitative trading, with clear potential for extension to broader financial decision-making domains.

References

  • Anthropic. Introducing Claude Opus 4.6. https://www.anthropic.com/news/claude-opus-4-6, February 2026. Accessed: 2026-04-27.
  • Gerald Appel. The Moving Average Convergence-Divergence Trading Method. Signalert Corporation, Great Neck, NY, 1979.
  • Ran Aroussi. yfinance: Download market data from Yahoo! Finance's API. https://pypi.org/project/yfinance/, 2026. Accessed: 2026-04-01.
  • BaoStock. BaoStock: Free china stock market data via python api. https://www.baostock.com/, 2026. Accessed: 2026-04-01.
  • William A. Brock and Cars H. Hommes. A rational route to randomness. Econometrica, 65(5):1059–1095, 1997. ISSN 00129682, 14680262. http://www.jstor.org/stable/2171879.
  • William A. Brock and Cars H. Hommes. Heterogeneous beliefs and routes to chaos in a simple asset pricing model. Journal of Economic Dynamics and Control, 22(8):1235–1274, 1998. ISSN 0165-1889. doi: https://doi.org/10.1016/S0 165-1889(98)00011-6. https://www.sciencedirect.com/science/article/pii/S0165188998000116.
  • Bokai Cao, Saizhuo Wang, Xinyi Lin, Xiaojun Wu, Haohan Zhang, Lionel M. Ni, and Jian Guo. From deep learning to llms: A survey of ai in quantitative investment, 2025. https://arxiv.org/abs/2503.21422.
  • Mark M. Carhart. On persistence in mutual fund performance. The Journal of Finance, 52(1):57–82, 1997. doi: https://doi.org/10.1111/j.1540-6261.1997.tb03808.x. https://onlinelibrary.wiley.com/doi/abs/10.1111/j.1540-6261. 1997.tb03808.x.
  • Tianqi Chen and Carlos Guestrin. Xgboost: A scalable tree boosting system. CoRR, abs/1603.02754, 2016. http: //arxiv.org/abs/1603.02754.
  • DeepSeek. Deepseek: Advancing state-of-the-art open-source language models. https://www.deepseek.com/, 2025. Accessed: 2026-04-25.
  • Francis X. Diebold and Kamil Yılmaz. On the network topology of variance decompositions: Measuring the connectedness of financial firms. Journal of Econometrics, 182(1):119–134, 2014. ISSN 0304-4076. doi: https: //doi.org/10.1016/j.jeconom.2014.04.012. https://www.sciencedirect.com/science/article/pii/S0304407614000712. Causality, Prediction, and Specification Analysis: Recent Advances and Future Directions.
  • Robert F. Engle. Autoregressive conditional heteroscedasticity with estimates of the variance of united kingdom inflation. Econometrica, 50(4):987–1007, 1982. ISSN 00129682, 14680262. http://www.jstor.org/stable/1912773.
  • Eugene F. Fama and Kenneth R. French. Common risk factors in the returns on stocks and bonds. Journal of Financial Economics, 33(1):3–56, 1993. ISSN 0304-405X. doi: https://doi.org/10.1016/0304-405X(93)90023-5. https://www.sciencedirect.com/science/article/pii/0304405X93900235.
  • Google DeepMind. Gemini 3.1 Pro model card. https://deepmind.google/models/model-cards/gemini-3-1-pro/, February 2026. Accessed: 2026-04-27.
  • John M. Griffin, Jeffrey H. Harris, and Selim Topaloglu. The dynamics of institutional and individual trading. The Journal of Finance, 58(6):2285–2320, 2003. ISSN 00221082, 15406261. http://www.jstor.org/stable/3648194.
  • NICOLAE GÂRLEANU and LASSE HEJE PEDERSEN. Dynamic trading with predictable returns and transaction costs. The Journal of Finance, 68(6):2309–2340, 2013. doi: https://doi.org/10.1111/jofi.12080. https://onlinelibrary. wiley.com/doi/abs/10.1111/jofi.12080.
  • Sirui Hong, Yizhang Lin, Bang Liu, Bangbang Liu, Binhao Wu, Ceyao Zhang, Chenxing Wei, Danyang Li, Jiaqi Chen, Jiayi Zhang, Jinlin Wang, Li Zhang, Lingyao Zhang, Min Yang, Mingchen Zhuge, Taicheng Guo, Tuo Zhou, Wei Tao, Xiangru Tang, Xiangtao Lu, Xiawu Zheng, Xinbing Liang, Yaying Fei, Yuheng Cheng, Zhibin Gou, Zongze Xu, and Chenglin Wu. Data interpreter: An llm agent for data science, 2024. https://arxiv.org/abs/2402.18679.
  • Daniel Kahneman and Amos Tversky. Prospect Theory: An Analysis of Decision Under Risk, chapter Chapter 6, pages 99–127. World Scientific, 2013. doi: 10.1142/9789814417358_0006. https://www.worldscientific.com/doi/abs/10.11 42/9789814417358\_0006.
  • Guolin Ke, Qi Meng, Thomas Finley, Taifeng Wang, Wei Chen, Weidong Ma, Qiwei Ye, and Tie-Yan Liu. Lightgbm: a highly efficient gradient boosting decision tree. In Proceedings of the 31st International Conference on Neural Information Processing Systems, NIPS'17, page 3149–3157, Red Hook, NY, USA, 2017. Curran Associates Inc. ISBN 9781510860964.
  • Yaxuan Kong, Hoyoung Lee, Yoontae Hwang, Alejandro Lopez-Lira, Bradford Levy, Dhagash Mehta, Qingsong Wen, Chanyeol Choi, Yongjae Lee, and Stefan Zohren. Evaluating llms in finance requires explicit bias consideration, 2026. https://arxiv.org/abs/2602.14233.

  • Thanos Konstantinidis, Giorgos Iacovides, Mingxue Xu, Tony G. Constantinides, and Danilo Mandic. Finllama: Financial sentiment classification for algorithmic trading applications, 2024. https://arxiv.org/abs/2403.12285.
  • Zhizhuo Kou, Holam Yu, Junyu Luo, Jingshu Peng, Xujia Li, Chengzhong Liu, Juntao Dai, Lei Chen, Sirui Han, and Yike Guo. Automate strategy finding with llm in quant investment, 2025. https://arxiv.org/abs/2409.06289.
  • Xiangyi Li, Wenbo Chen, Yimin Liu, Shenghan Zheng, Xiaokun Chen, Yifeng He, Yubo Li, Bingran You, Haotian Shen, Jiankai Sun, Shuyi Wang, Binxu Li, Qunhong Zeng, Di Wang, Xuandong Zhao, Yuanli Wang, Roey Ben Chaim, Zonglin Di, Yipeng Gao, Junwei He, Yizhuo He, Liqiang Jing, Luyang Kong, Xin Lan, Jiachen Li, Songlin Li, Yijiang Li, Yueqian Lin, Xinyi Liu, Xuanqing Liu, Haoran Lyu, Ze Ma, Bowei Wang, Runhui Wang, Tianyu Wang, Wengao Ye, Yue Zhang, Hanwen Xing, Yiqi Xue, Steven Dillmann, and Han chung Lee. Skillsbench: Benchmarking how well agent skills work across diverse tasks, 2026. https://arxiv.org/abs/2602.12670.
  • Yuante Li, Xu Yang, Xiao Yang, Minrui Xu, Xisen Wang, Weiqing Liu, and Jiang Bian. R&d-agent-quant: A multi-agent framework for data-centric factors and model joint optimization, 2025. https://arxiv.org/abs/2505.15155.
  • Yuan Liang, Ruobin Zhong, Haoming Xu, Chen Jiang, Yi Zhong, Runnan Fang, Jia-Chen Gu, Shumin Deng, Yunzhi Yao, Mengru Wang, Shuofei Qiao, Xin Xu, Tongtong Wu, Kun Wang, Yang Liu, Zhen Bi, Jungang Lou, Yuchen Eleanor Jiang, Hangcheng Zhu, Gang Yu, Haiwen Hong, Longtao Huang, Hui Xue, Chenxi Wang, Yijun Wang, Zifei Shan, Xi Chen, Zhaopeng Tu, Feiyu Xiong, Xin Xie, Peng Zhang, Zhengke Gui, Lei Liang, Jun Zhou, Chiyu Wu, Jin Shang, Yu Gong, Junyu Lin, Changliang Xu, Hongjie Deng, Wen Zhang, Keyan Ding, Qiang Zhang, Fei Huang, Ningyu Zhang, Jeff Z. Pan, Guilin Qi, Haofen Wang, and Huajun Chen. Skillnet: Create, evaluate, and connect ai skills, 2026. https://arxiv.org/abs/2603.04448.
  • Hengxu Lin, Dong Zhou, Weiqing Liu, and Jiang Bian. Learning multiple stock trading patterns with temporal routing adaptor and optimal transport. In Proceedings of the 27th ACM SIGKDD Conference on Knowledge Discovery and Data Mining, pages 1017–1026, 2021. doi: 10.1145/3447548.3467358.
  • Lixinger. Lixinger: Data center for rational investors. https://www.lixinger.com/, 2026. Accessed: 2026-04-01.
  • Benoit B. Mandelbrot. The variation of certain speculative prices, pages 371–418. Springer New York, New York, NY, 1997. ISBN 978-1-4757-2763-0. doi: 10.1007/978-1-4757-2763-0_14. https://doi.org/10.1007/978-1-4757-2763-0\_14.
  • Meta. Llama: Open and efficient foundation language models. https://www.llama.com/, 2025. Accessed: 2026-04-25.
  • Microsoft Qlib Contributors. Qlib documentation: Data layer and Alpha158 data handler. https://qlib.readthedocs.i o/en/v0.6.2/component/data.html, 2026. Accessed: 2026-04-27.
  • OpenAI. Introducing GPT-5.3-Codex. https://openai.com/index/introducing-gpt-5-3-codex/, February 2026. Accessed: 2026-04-27.
  • OpenAI. Harness engineering: Leveraging codex in an agent-first world. Blog post, February 2026. https://openai.c om/index/harness-engineering/.
  • Zifan Song, Kaitao Song, Guosheng Hu, Ding Qi, Junyao Gao, Xiaohua Wang, Dongsheng Li, and Cairong Zhao. Trade in minutes! rationality-driven agentic system for quantitative financial trading, 2026. https://arxiv.org/abs/ 2510.04787.
  • Ziyi Tang, Zechuan Chen, Jiarui Yang, Jiayao Mai, Yongsen Zheng, Keze Wang, Jinrui Chen, and Liang Lin. Alphaagent: Llm-driven alpha mining with regularized exploration to counteract alpha decay, 2025. https://arxiv.org/abs/2502 .16789.
  • Feng Tian, Flora D. Salim, and Hao Xue. Tradinggroup: A multi-agent trading system with self-reflection and data-synthesis, 2025. https://arxiv.org/abs/2508.17565.
  • Trading Economics. Trading economics | 20 million indicators from 196 countries, 2026. https://tradingeconomics.com. Accessed: 2026-04-25.
  • Ashish Vaswani, Noam Shazeer, Niki Parmar, Jakob Uszkoreit, Llion Jones, Aidan N. Gomez, Lukasz Kaiser, and Illia Polosukhin. Attention is all you need. CoRR, abs/1706.03762, 2017. http://arxiv.org/abs/1706.03762.
  • Christian Bakke Vennerød, Adrian Kjærran, and Erling Stray Bugge. Long short-term memory RNN. CoRR, abs/2105.06756, 2021. https://arxiv.org/abs/2105.06756.
  • Lei Wang, Chen Ma, Xueyang Feng, Zeyu Zhang, Hao Yang, Jingsen Zhang, Zhiyuan Chen, Jiakai Tang, Xu Chen, Yankai Lin, Wayne Xin Zhao, Zhewei Wei, and Jirong Wen. A survey on large language model based autonomous agents. Frontiers of Computer Science, 18(6), March 2024a. ISSN 2095-2236. doi: 10.1007/s11704-024-40231-1. http://dx.doi.org/10.1007/s11704-024-40231-1.
  • Meiyun Wang, Kiyoshi Izumi, and Hiroki Sakaji. Llmfactor: Extracting profitable factors through prompts for explainable stock movement prediction, 2024b. https://arxiv.org/abs/2406.10811.

  • Saizhuo Wang, Hang Yuan, Lionel M. Ni, and Jian Guo. Quantagent: Seeking holy grail in trading by self-improving large language model, 2024c. https://arxiv.org/abs/2402.03755.
  • Saizhuo Wang, Hang Yuan, Leon Zhou, Lionel M. Ni, Heung-Yeung Shum, and Jian Guo. Alpha-gpt: Human-ai interactive alpha mining for quantitative investment, 2025. https://arxiv.org/abs/2308.00016.
  • Zhiheng Xi, Wenxiang Chen, Xin Guo, Wei He, Yiwen Ding, Boyang Hong, Ming Zhang, Junzhe Wang, Senjie Jin, Enyu Zhou, Rui Zheng, Xiaoran Fan, Xiao Wang, Limao Xiong, Yuhao Zhou, Weiran Wang, Changhao Jiang, Yicheng Zou, Xiangyang Liu, Zhangyue Yin, Shihan Dou, Rongxiang Weng, Wensen Cheng, Qi Zhang, Wenjuan Qin, Yongyan Zheng, Xipeng Qiu, Xuanjing Huang, and Tao Gui. The rise and potential of large language model based agents: A survey, 2023. https://arxiv.org/abs/2309.07864.
  • Yijia Xiao, Edward Sun, Di Luo, and Wei Wang. Tradingagents: Multi-agents llm financial trading framework, 2025. https://arxiv.org/abs/2412.20138.
  • Frank Xing. Designing heterogeneous llm agents for financial sentiment analysis. ACM Transactions on Management Information Systems, 16(1):1–24, February 2025. ISSN 2158-6578. doi: 10.1145/3688399. http://dx.doi.org/10.1145/3 688399.
  • Renjun Xu and Yang Yan. Agent skills for large language models: Architecture, acquisition, security, and the path forward, 2026. https://arxiv.org/abs/2602.12430.
  • Hongyang Yang, Xiao-Yang Liu, and Christina Dan Wang. Fingpt: Open-source financial large language models, 2025. https://arxiv.org/abs/2306.06031.
  • Xiao Yang, Weiqing Liu, Dong Zhou, Jiang Bian, and Tie-Yan Liu. Qlib: An AI-oriented quantitative investment platform. arXiv preprint arXiv:2009.11189, 2020.
  • Justin Young. Effective harnesses for long-running agents. Anthropic Engineering Blog, November 2025. https: //anthropic.com/engineering/effective-harnesses-for-long-running-agents.
  • Yangyang Yu, Haohang Li, Zhi Chen, Yuechen Jiang, Yang Li, Denghui Zhang, Rong Liu, Jordan W. Suchow, and Khaldoun Khashanah. Finmem: A performance-enhanced llm trading agent with layered memory and character design, 2023. https://arxiv.org/abs/2311.13743.
  • Yangyang Yu, Zhiyuan Yao, Haohang Li, Zhiyang Deng, Yupeng Cao, Zhi Chen, Jordan W. Suchow, Rong Liu, Zhenyu Cui, Zhaozhuo Xu, Denghui Zhang, Koduvayur Subbalakshmi, Guojun Xiong, Yueru He, Jimin Huang, Dong Li, and Qianqian Xie. Fincon: A synthesized llm multi-agent system with conceptual verbal reinforcement for enhanced financial decision making, 2024. https://arxiv.org/abs/2407.06567.
  • Chong Zhang, Xinyi Liu, Zhongmou Zhang, Mingyu Jin, Lingyao Li, Zhenting Wang, Wenyue Hua, Dong Shu, Suiyuan Zhu, Xiaobo Jin, Sujian Li, Mengnan Du, and Yongfeng Zhang. When ai meets finance (stockagent): Large language model-based stock trading in simulated real-world environments, 2024a. https://arxiv.org/abs/2407.18957.
  • Haohan Zhang, Fengrui Hua, Chengjin Xu, Hao Kong, Ruiting Zuo, and Jian Guo. Unveiling the potential of sentiment: Can large language models predict chinese stock price movements?, 2024b. https://arxiv.org/abs/2306.14222.
  • Jiayi Zhang, Chuang Zhao, Yihan Zhao, Zhaoyang Yu, Ming He, and Jianping Fan. Mobileexperts: A dynamic tool-enabled agent team in mobile devices, 2024c. https://arxiv.org/abs/2407.03913.
  • Mingchen Zhuge, Haozhe Liu, Francesco Faccio, Dylan R. Ashley, Róbert Csordás, Anand Gopalakrishnan, Abdullah Hamdi, Hasan Abed Al Kader Hammoud, Vincent Herrmann, Kazuki Irie, Louis Kirsch, Bing Li, Guohao Li, Shuming Liu, Jinjie Mai, Piotr Piękos, Aditya A. Ramesh, Imanol Schlag, Weimin Shi, Aleksandar Stanić, Wenyi Wang, Yuhui Wang, Mengmeng Xu, Deng-Ping Fan, Bernard Ghanem, and Jürgen Schmidhuber. Mindstorms in natural language-based societies of mind. Computational Visual Media, 11(1):29–81, February 2025. ISSN 2096-0433. doi: 10.26599/cvm.2025.9450460. http://dx.doi.org/10.26599/CVM.2025.9450460.

Appendix

A Reference Strategy

Algorithm 4 defines the fixed reference strategy \(\pi_{\rm ref}\) , which serves as the non-adaptive baseline for the Trader agent. Given a set of factor signals from the ensemble \(\mathcal{E}_t\) , it computes a composite score \(\phi_{i,t}\) for each asset as a weighted combination of factor values. Assets are then ranked by this score, with the top \(N_{\rm long}\) selected for long positions and the bottom \(N_{\rm short}\) for short positions. Position sizes are determined by a gross exposure parameter \(\beta\) and a net exposure bias \(\gamma\) , which controls the long–short balance (e.g., \(\gamma=1\) yields a long-only portfolio). The strategy submits orders to adjust holdings from the previous period to the computed target weights.

Algorithm 4 Reference Strategy \(\pi_{ref}\)

1: \Theta \leftarrow \{\beta, \gamma, N_{\text{long}}, N_{\text{short}}\} {Hyperparameters}
  2: NAV_t \leftarrow net asset value at time t
  3: for each i \in \mathcal{U} do
          \phi_{i,t} \leftarrow \sum_{j=1}^{|\mathcal{E}_t|} w_j \cdot d_j \cdot f_j(\mathbf{x}_{i,t-\ell+1:t}) {Composite score}
  6: rank ← sort(U, \phi_{i,t}, descending)
  7: \mathcal{I}_{long} \leftarrow top(rank, N_{long}), \ \mathcal{I}_{short} \leftarrow bottom(rank, N_{short})
  8: for each i \in \{i \mid h_{i,t-1} \neq 0\} do
          if i \notin \mathcal{I}_{long} \cup \mathcal{I}_{short} then
10:
               submit_order(i, -h_{i,t-1}) {Liquidate exited positions}
11.
12: end for
13: V_{\text{long}} \leftarrow \beta \cdot \text{NAV}_t \cdot (1 + \gamma)/2
14: V_{\text{short}} \leftarrow \beta \cdot \text{NAV}_t \cdot (1 - \gamma)/2
15: for each i \in \mathcal{I}_{long} do
          h_{i,t}^{\text{target}} \leftarrow V_{\text{long}} / (N_{\text{long}} \cdot P_{i,t})
16:
17: end for
18: for each i \in \mathcal{I}_{short} do
       h_{i,t}^{\text{target}} \leftarrow -V_{\text{short}}/(N_{\text{short}} \cdot P_{i,t})
19:
20: end for
21: for each i \in \mathcal{I}_{long} \cup \mathcal{I}_{short} do
          submit_order(i, h_{i,t}^{\text{target}} - h_{i,t-1}) {Adjust to target holdings}
23: end for

B Experimental Details

B.1 Dataset Details

B.1.1 Data Sources

The daily OHLCV data for CSI 300 constituents is collected from Baostock (BaoStock, 2026). For the S&P 500 constituents, daily price-volume data is obtained from Yahoo Finance (Aroussi, 2026). Fundamental indicators (PE, PS, PB, DYR), financial statement data (quarterly balance sheets, income statements, cash flow statements), and alternative data (financial news and corporate announcements) are sourced from Lixinger (Lixinger, 2026).

B.1.2 Data Storage Format

Data are stored in the following formats:

  • Daily OHLCV data: Stored in CSV format, with each row corresponding to a trading day and columns representing Open, High, Low, Close, and Volume.
  • Fundamental indicators: Stored in CSV format, with each row corresponding to a trading day per asset and columns representing PE, PS, PB, and DYR.

  • Financial statements: Stored in JSON format, organized hierarchically by asset ticker and reporting quarter. Each JSON object contains standardized fields for balance sheet, income statement, and cash flow statement items.
  • Alternative data (news and announcements): Stored in JSON format, where each entry contains the publication timestamp, asset ticker, headline, full content, and sentiment metadata (when available).

B.2 Metrics Details

We provide the mathematical formulations for the evaluation metrics used throughout our framework. The notation follows the conventions established in Section 2.2 and Section 2.3.

Annualized Return (AR). Given a sequence of daily portfolio values \(V_0, V_1, \dots, V_T\) over an evaluation period of T trading days, the total return is \(R_{\text{total}} = \frac{V_T - V_0}{V_0}\) . The Annualized Return is computed as:

\[AR = (1 + R_{\text{total}})^{\frac{D}{T}} - 1 \tag{5}\]

where D denotes the number of trading days per calendar year, with D=243 for the CSI 300 (Chinese A-share market) and D=252 for the S&P 500 (U.S. equity market).

Sharpe Ratio (SR). Let \(r_t = \frac{V_t - V_{t-1}}{V_{t-1}}\) denote the daily portfolio return on day t. The Sharpe Ratio is defined as:

$\(SR = \frac{\sqrt{D} \cdot \left(\frac{1}{T} \sum_{t=1}^{T} r_t - r_f\right)}{\sqrt{\frac{1}{T-1} \sum_{t=1}^{T} (r_t - \bar{r})^2}}\)$ (6)

where D is the number of trading days per year, \(r_f\) is the daily risk-free rate. Following conventional practice, we set the annualized risk-free rate to 1.25% for the Chinese market (CSI 300) and 3.81% for the U.S. market (S&P 500), based on the 2-year government bond yields. Source: Trading Economics (Trading Economics, 2026).

Maximum Drawdown (MDD). Let \(V_t\) denote the portfolio value at time t. The Maximum Drawdown is the largest peak-to-trough decline over the evaluation period:

$\(MDD = \min_{t \in [0,T]} \left( \frac{V_t - \max_{s \in [0,t]} V_s}{\max_{s \in [0,t]} V_s} \right)\)$ (7)

Information Coefficient (IC). For a given factor f and a cross-section of N assets at time t, let \(\mathbf{f}_t \in \mathbb{R}^N\) denote the vector of factor signals:

$\(\mathbf{f}_t = \left( f(\mathbf{x}_{1,t-\ell+1:t}), \dots, f(\mathbf{x}_{N,t-\ell+1:t}) \right)^\top \in \mathbb{R}^N\)$ (8)

and let \(\mathbf{r}_{t+h} \in \mathbb{R}^N\) denote the vector of forward returns from time t to t+h:

$\(\mathbf{r}_{t+h} = (r_{1,t+h}, \dots, r_{N,t+h})^{\top} \in \mathbb{R}^N\)$ (9)

where h denotes the prediction horizon. The IC at time t for horizon h is the Pearson correlation coefficient between the factor signal and subsequent returns:

\[IC_t^{(h)} = corr(\mathbf{f}_t, \mathbf{r}_{t+h}) \tag{10}\]

Similarly, the Rank IC at time t for horizon h is the Spearman rank correlation:

$\(RankIC_{t}^{(h)} = rank\_corr(\mathbf{f}_{t}, \mathbf{r}_{t+h})\)$ (11)

In our empirical experiments, all reported IC and RankIC results are these time-averaged values with h=1 (i.e., next-day returns) unless otherwise specified.

Information Coefficient Information Ratio (ICIR). Given a time series of IC values \(\{IC_t\}_{t=1}^T\) , the ICIR is defined as:

$\(ICIR = \frac{\overline{IC}}{\sigma_{\overline{IC}}}\)$ (12)

where \(\overline{\text{IC}} = \frac{1}{T} \sum_{t=1}^{T} \text{IC}_t\) is the mean IC, and \(\sigma_{\text{IC}} = \sqrt{\frac{1}{T-1} \sum_{t=1}^{T} (\text{IC}_t - \overline{\text{IC}})^2}\) is the standard deviation of IC. The Rank ICIR is computed analogously:

$\(RankICIR = \frac{\overline{RankIC}}{\sigma_{RankIC}}\)$ (13)

Hit Ratio. The Hit Ratio measures the directional accuracy of the factor's predictions. It is defined as the proportion of periods in which the IC is positive, indicating that the factor correctly predicted the direction of relative asset performance:

$\(\eta = \frac{1}{T} \sum_{t=1}^{T} \mathbf{1} \left[ \psi_t > 0 \right]\)$ (14)

where 1[·] denotes the indicator function.

Coverage. Coverage measures the proportion of assets for which the factor produces a valid (non-NA) signal at time t:

$\(\kappa_t = \frac{\left|\left\{i \in [N] : f(\mathbf{x}_{i,t-\ell+1:t}) \neq \text{NA}\right\}\right|}{N}\)$ (15)

The overall coverage is averaged across all time periods:

\[\kappa = \frac{1}{T} \sum_{t=1}^{T} \kappa_t \tag{16}\]

Turnover. Turnover quantifies the stability of the factor's ranking across consecutive periods. At time t, it is computed as the average absolute rank change normalized by the number of assets:

$\(\tau_t = \frac{\|\operatorname{rank}(\mathbf{f}_t) - \operatorname{rank}(\mathbf{f}_{t-1})\|_1}{N}\)$ (17)

where rank(ft) ∈ RN denotes the vector of ranks assigned to each asset based on factor values, and ∥ · ∥1 is the L1 norm. The average turnover is given by:

\[\tau = \frac{1}{T - 1} \sum_{t=2}^{T} \tau_t \tag{18}\]

B.3 Simulation Settings

To provide a realistic yet tractable evaluation environment, we implement market-specific backtesting simulators that approximate the trading rules of the Chinese A-share market (CSI 300) and the U.S. equity market (S&P 500). These simulators model essential exchange mechanisms, including order execution, account management, and transaction costs, while intentionally simplifying certain aspects of real-world market microstructure. The key simulation settings are summarized below.

CSI 300 Exchange (A-share Market). The CSI 300 simulator is configured to approximate the trading constraints of the Chinese A-share market. In particular, it models the T+1 settlement rule by preventing shares purchased on a trading day from being sold until the following trading day. Since short selling is generally inaccessible in typical retail-oriented trading scenarios, the simulator adopts a long-only setting. A proportional transaction cost of 0.02% (2 basis points) is applied to each trade as a simplified approximation of brokerage commissions and related execution costs.

S&P 500 Exchange (U.S. Market). The S&P 500 simulator approximates the trading conventions of the U.S. equity market by allowing same-day position adjustments and supporting long-short portfolio construction. To model margin constraints in a simplified manner, opening short positions assumes an initial margin requirement of 50% of the position value, while a maintenance margin of 30% is used throughout the backtesting process. Rather than reproducing the fee schedule of any specific broker, the simulator applies a fixed proportional transaction cost of 0.01% (1 basis point) per trade to account for commissions and other execution-related costs.

Integration with Reference Strategy. These market-specific simulation settings are naturally integrated with the reference strategy πref (Algorithm 4). The hyperparameter γ ∈ [−1, 1] controls the net exposure bias. For the CSI 300 simulator, where only long positions are considered, we set γ = 1. For the S&P 500 simulator, which supports long-short portfolios, we set γ = 0.5 to maintain a moderate net long bias while permitting partial short exposure. Across both simulated markets, the gross exposure parameter is fixed at β = 0.8, corresponding to approximately 80% capital deployment and leaving the remaining capital as cash to accommodate execution uncertainty and simplified margin requirements during backtesting.

C Case Study

To complement the quantitative results, we conduct a series of case studies examining the internal behavior of AlphaCrafter's harness-driven pipeline. Specifically, we investigate three aspects: (1) whether the Miner harness

generates genuinely novel factors rather than syntactic recombinations of existing ones, (2) whether the Screener harness accurately perceives market regimes through its structured information retrieval and LLM-based assessment, and (3) whether the integrated harness system exhibits coherent risk-awareness through adaptive position sizing.

C.1 Factor Semantic Diversity and Novelty Analysis

To assess whether factors discovered by AlphaCrafter's Miner harness constitute genuinely novel alpha signals rather than syntactic recombinations of classical factors, we conduct a semantic diversity analysis grounded in operator-tree topology.

Every factor expression is parsed into a normalized abstract syntax tree (AST), where leaf nodes represent raw data (e.g., close, volume) and internal nodes denote operators (e.g., rank, ts_corr). Let \(\delta(f_i, f_j) \in [0,1]\) denote the normalized tree edit distance (NTED) between two factors, computed by dividing the raw edit distance by the sum of the two tree sizes. This metric captures structural divergence at the algorithmic level, independent of parameter values such as rolling-window lengths.

We define two complementary indices. For a factor library \(\mathcal{A}^{(k)}\) produced in trial k, let \(n_k = |\mathcal{A}^{(k)}|\) be the number of factors in that trial, and let \(a_i^{(k)} \in \mathcal{A}^{(k)}\) denote the i-th factor expression. The internal semantic diversity is

\[\Phi_{\text{intra}}^{(k)} = \frac{2}{n_k(n_k - 1)} \sum_{1 \le i < j \le n_k} \delta(a_i^{(k)}, a_j^{(k)}), \tag{19}\]

which computes the arithmetic mean of the NTED over all unordered pairs of distinct factors within the same trial. A high \(\Phi_{intra}\) indicates that the Miner explores a broad logical spectrum rather than resampling a narrow set of templates.

Let \(\mathcal{B}\) denote the Alpha158 (Microsoft Qlib Contributors, 2026) classical reference library, with \(b_j \in \mathcal{B}\) indexing its constituent factors. The external semantic novelty against \(\mathcal{B}\) is

\[\Phi_{\text{inter}}^{(k)} = \frac{1}{n_k} \sum_{i=1}^{n_k} \min_{b_j \in \mathcal{B}} \delta(a_i^{(k)}, b_j), \tag{20}\]

where the inner minimization identifies, for each generated factor \(a_i^{(k)}\) , its nearest structural neighbour in the classical library. A high \(\Phi_{\text{inter}}\) implies systematic departure from established factor structures.

For K independent trials, we report the trial-averaged metrics

\[\bar{\Phi}_{\text{intra}} = \frac{1}{K} \sum_{k=1}^{K} \Phi_{\text{intra}}^{(k)} \qquad \bar{\Phi}_{\text{inter}} = \frac{1}{K} \sum_{k=1}^{K} \Phi_{\text{inter}}^{(k)}. \tag{21}\]

Figure 5. Semantic diversity and novelty metrics across three LLM backbones.

Figure 5 reports \(\bar{\Phi}_{intra}\) and \(\bar{\Phi}_{inter}\) across both markets. Two principal findings emerge. GPT 5.3 Codex excels at structural novelty, consistently achieving the highest \(\bar{\Phi}_{inter}\) , indicating that it generates factors whose operator-tree configurations lie furthest from classical Alpha158 formulations. Its \(\bar{\Phi}_{intra}\) also leads, suggesting that its exploratory mechanism spans diverse logical structures. Claude Opus 4.6 and Gemini 3.1 Pro exhibit moderate but stable novelty scores.

Critically, these semantic properties exhibit a nuanced relationship with downstream trading performance. Despite GPT 5.3 Codex's superiority in generating structurally novel factors, its realized risk-adjusted returns do not surpass those of Claude Opus 4.6. This divergence carries an important implication: greater factor novelty does not

monotonically translate into superior investment outcomes. The Screener harness's role in filtering and ensemble construction under market-regime awareness appears to act as a moderating mechanism, selecting factors that are not merely original but also seasonally appropriate. This underscores the value of the harness architecture, where the Screener's structured verification complements the Miner's generative exploration.

C.2 Regime Coherence Analysis

To evaluate the fidelity of AlphaCrafter's market perception, we analyze the alignment between the Screener harness's semantic regime assessments and empirically measured market conditions. The Screener harness operates through a structured two-step process: it first retrieves quantitative market information via a dedicated tool, then invokes an LLM to produce qualitative regime diagnoses. This design ensures that assessments are grounded in actual data rather than relying solely on the LLM's parametric knowledge. We conduct this case study using a representative trial of AlphaCrafter powered by Claude Opus 4.6, selected as the median-performing run to avoid cherry-picking. For each trading cycle, the Screener produces qualitative judgments across three distinct market dimensions: trend direction, volatility regime, and correlation structure.

We map each semantic label to a discrete numerical value in the set \(\{0,0.25,0.5,0.75,1\}\) based on its ordinal intensity. For instance, trend labels are mapped as: "strong downtrend" \(\rightarrow\) 0, "downtrend" \(\rightarrow\) 0.25, "range-bound" \(\rightarrow\) 0.5, "uptrend" \(\rightarrow\) 0.75, "strong uptrend" \(\rightarrow\) 1. Volatility and correlation labels follow analogous mappings from "low" to "high" and from "low dispersion" to "index-led", respectively.

For each cycle c, we compute quantitative market proxies using trailing windows ending at timestamp \(\tau_c\) , with L=20 days for volatility and correlation, and L=60 days for trend. Historical data preceding the evaluation period is used to pre-warm all metrics.

Trend proxy \(M_c^{\text{(trend)}}\) : the normalized cumulative return of the market index over the past 60 trading days, mapped to [0,1] via a logistic transformation:

$\(M_c^{\text{(trend)}} = \frac{1}{1 + e^{-r_c^{(60)}/\sigma_0}},\)$ (22)

where \(r_c^{(60)}\) is the 60-day log return, and \(\sigma_0 = \sigma_{\rm ann} \times \sqrt{60/D}\) with \(\sigma_{\rm ann} = 0.2\) as the long-term annualized volatility estimate.

Volatility proxy \(M_c^{(\text{vol})}\) : the realized volatility of the index over the past 20 trading days, min-max normalized to [0, 1] using the empirical 5th and 95th percentiles from the full sample:

\[M_c^{(\text{vol})} = \min\left(\max\left(\frac{\sigma_c^{(20)} - q_{0.05}}{q_{0.95} - q_{0.05}}, 0\right), 1\right),\tag{23}\]

where \(\sigma_c^{(20)}=\sqrt{\frac{D}{19}\sum_{i=1}^{20}(r_{t-i+1}-\bar{r})^2}\) is the annualized realized volatility.

Correlation proxy \(M_c^{(corr)}\) : the average absolute pairwise correlation of daily returns among index constituents:

$\(M_c^{(\text{corr})} = \frac{2}{K(K-1)} \sum_{i=1}^{K-1} \sum_{j=i+1}^{K} |\rho_{ij,c}^{(20)}|,\)$ (24)

where \(\rho_{ij,c}^{(20)}\) is the 20-day Pearson correlation between stocks i and j, and K is the number of constituents with sufficient trading history.

We evaluate the coherence between Screener's semantic assessments and market-derived proxies over 50 consecutive trading cycles. For each dimension, we construct a similarity matrix where cell (i,j) represents the similarity between the semantic assessment at cycle i and the market proxy at cycle j, defined as \(1 - |\text{semantic}_i - \text{market}_j|\) . The raw similarity values are then linearly normalized to [0,1] across the entire matrix, with 1 indicating perfect alignment and 0 indicating maximal dissimilarity.

Figure 6 and Figure 7 present the resulting heatmaps for the CSI 300 and S&P 500 markets, respectively. Along the diagonal where semantic assessments align with contemporaneous market proxies, we observe consistently high similarity values (deep blue cells). This indicates that Screener's regime diagnosis, enabled by the tool-based information retrieval and structured LLM assessment, accurately reflects prevailing market conditions for trend and volatility dimensions across most cycles. The off-diagonal regions exhibit lower similarity, confirming that the agent's assessments are primarily responsive to current rather than future or past market states.

The correlation dimension exhibits markedly different behavior. Unlike trend and volatility, which show clear diagonal structures, the correlation heatmaps appear uniformly deep blue across nearly all cycle pairs. This pattern arises

because cross-sectional correlations among index constituents remained remarkably stable throughout the evaluation window, with limited temporal variation. Consequently, the market correlation proxy takes nearly constant values across cycles, and Screener's semantic assessments align uniformly with this stable proxy, yielding uniformly high similarity independent of cycle alignment.

Figure 6. Regime coherence heatmaps for CSI 300 market.

Figure 7. Regime coherence heatmaps for S&P 500 market.

In summary, the Screener harness demonstrates reliable regime perception across all three dimensions, with semantic assessments closely tracking contemporaneous market conditions. The strong diagonal alignment observed in the heatmaps confirms that the structured information retrieval and LLM-based diagnosis components of the harness function as intended, grounding qualitative judgments in actual market data.

C.3 Risk Management and Position Exposure Analysis

To examine whether AlphaCrafter's integrated harness system dynamically adjusts market exposure in response to prevailing risk conditions, we conduct a case study using a representative trial of Claude Opus 4.6 — selected as the median-performing run to avoid cherry-picking. We focus on the U.S. equity market, where both long and short positions are permissible, in contrast to the long-only constraint of the Chinese A-share market. We construct two rolling-window metrics at a 10-day horizon. The first, market volatility, is defined as the range amplitude over the window:

$\(V_{t} = \frac{\max_{\tau \in [t-9,t]} H_{\tau} - \min_{\tau \in [t-9,t]} L_{\tau}}{O_{t-9}},\)$ (25)

where Hτ, Lτ, and Oτ denote the daily high, low, and open prices of the market index, respectively. The second, average net position exposure, is the 10-day rolling mean of the account's net position rate:

\[E_t = \frac{1}{10} \sum_{\tau=t-9}^{t} r_{\tau},\tag{26}\]

where rτ is the net position rate (long market value minus short market value, divided by total assets) on day τ. Both series are sampled at non-overlapping 10-day intervals to avoid serial dependence, and their relationship is assessed via linear regression.

  • (a) Time series of market volatility and average net position exposure.
  • (b) Scatter plot with ordinary least-squares regression line

Figure 8. Relationship between market volatility and net position exposure for a representative Claude Opus 4.6 trial on the S&P 500 market.

Figure 8 presents the results. Panel (a) displays the co-evolution of \(V_t\) and \(E_t\) over the backtest horizon. Visual inspection reveals a clear inverse relationship: during episodes of elevated market volatility, the net position rate tends to decline, whereas calmer regimes coincide with higher exposure levels. Panel (b) corroborates this observation quantitatively. The scatter plot, together with the ordinary least-squares regression line, yields a negative slope, and the Pearson correlation coefficient r confirms a statistically significant inverse association.

This pattern reflects a coherent risk-management behaviour emerging from the AlphaCrafter harness architecture. When market conditions become turbulent, the Screener harness's regime-aware filtering mechanism deprioritizes high-uncertainty factors, while the Trader harness's structured hyperparameter search and backtest validation lead it to reduce net exposure — either by decreasing gross positions or by balancing long and short legs. Conversely, during low-volatility regimes, the system deploys capital more aggressively. Importantly, this adaptive de-risking emerges without explicit volatility-targeting rules encoded in the policies; rather, it is a consequence of the structured interactions among the Miner, Screener, and Trader harnesses, each enforcing its respective constraints and verification mechanisms.

These findings provide evidence that AlphaCrafter's harness-driven design confers a degree of intrinsic risk awareness. The position-taking behavior is not static but responds in a disciplined, counter-cyclical manner to shifting market stress, emerging from the coordinated execution of procedural policies rather than from unconstrained LLM reasoning. This property is particularly valuable in long–short equity markets, where unmanaged gross exposure can amplify drawdowns during volatility spikes. The observed negative correlation between net exposure and market turmoil thus supports the claim that the full harness pipeline yields not only predictive alpha signals but also prudent downside control through its structured, auditable decision processes.

D Limitations

While AlphaCrafter demonstrates robust and state-of-the-art performance across multiple markets, it is crucial to contextualize its achievements within the inherent limitations of its design and the experimental setup. Furthermore, these limitations illuminate several promising avenues for future research. This section provides a critical analysis of the framework's current constraints and explores the potential for its evolution into more comprehensive and realistic trading systems.

Daily Trading Frequency and Transaction Cost Abstraction. Our experimental framework is confined to a daily trading frequency, and backtesting is conducted within a simulation environment with abstracted transaction costs. While we mitigate this concern through a dedicated live-trading phase using a real brokerage paper-trading API, the backtesting component necessarily operates under simplifying assumptions that cannot fully replicate the complexities of live markets. Factors such as the price impact of trading illiquid index constituents, time-varying bid-ask spreads, intraday order book dynamics, and episodic liquidity droughts may introduce non-trivial frictions in real-world execution. The abstracted transaction cost model further assumes fixed commission rates and symmetric, zero-mean slippage, which may not hold during periods of market stress or for larger order sizes. Consequently, although our live-trading results provide evidence for real-market viability, the backtesting performance under more realistic market microstructure models remains an open question.

Incomplete Mitigation of LLM Data Leakage and Look-Ahead Biases in Backtesting. The backtesting phase evaluates AlphaCrafter over historical periods that may partially overlap with the training data of the backbone LLMs. While these models are not explicitly trained on financial time-series for trading purposes, they may have encountered market data, financial reports, or macroeconomic narratives from the backtest window during their large-scale pre-training. This creates a potential data leakage concern: the LLM may possess parametric knowledge of market outcomes during the backtest period, even though such information is not observable to the agent in a forward-looking setting. To address this limitation, we conduct a dedicated live-trading phase using a paper-trading API from a real brokerage, with an evaluation window that falls strictly outside the training data cutoff of all backbone models. This design ensures that live-trading results are free from look-ahead biases. However, the backtesting results should be interpreted with appropriate caution, as they may not fully disentangle genuine reasoning capabilities from memorized market patterns Kong et al., 2026.

Evaluated Backbone Models and Generalizability. Our stability study validates AlphaCrafter's performance across three state-of-the-art LLMs: GPT 5.3 Codex OpenAI, 2026, Claude Opus 4.6 Anthropic, 2026, and Gemini 3.1 Pro Google DeepMind, 2026. While results indicate low sensitivity to the underlying model, this conclusion is drawn from a set of architectures that may share convergent training methodologies, datasets, and alignment techniques. The generalizability of our findings to smaller, open-source models (e.g., Llama series Meta, 2025, DeepSeek seriesDeepSeek, 2025) or models with distinct pre-training distributions remains unverified. A significant performance cliff when transitioning to more accessible or specialized models would limit the framework's democratization and reproducibility.

Scope of the Asset Universe and Extension to Alternative Markets. The experimental universe encompasses the CSI 300 and S&P 500 indices over a long period, a setting that already provides meaningful coverage of distinct market structures and macro-financial conditions. Extending this scope to additional asset classes would further enrich the assessment of the framework's generality. In particular, factor definitions, regime dynamics, and execution constraints differ fundamentally in futures, options, and cryptocurrency markets. Exploring the framework's feasibility and adaptation requirements in these alternative markets, especially under the high-leverage and contract-specific microstructure that characterize derivatives trading, constitutes a natural and valuable direction for future work.

E Impact Statement

This paper presents AlphaCrafter, a multi-agent framework grounded in harness engineering principles that formalizes quantitative trading workflows through structured algorithmic policies. We recognize that automated trading systems carry dual-use potential and warrant careful consideration of their societal implications.

Positive Impacts. By replacing opaque natural language workflows with rigorous algorithmic policy specifications, AlphaCrafter promotes transparency and reproducibility in automated trading system design. The framework lowers the technical barrier to systematic investing by providing a disciplined, modular architecture that smaller research teams and academic institutions can adopt without the extensive infrastructure typically reserved for large financial firms. The regime-aware screening harness enables adaptive portfolio construction that may reduce pro-cyclical herding behavior, potentially contributing to more stable market dynamics during regime transitions. Furthermore, the explicit execution semantics across the entire factor-to-execution lifecycle facilitate regulatory auditing and risk management.

Negative Impacts. Autonomous trading agents, if widely deployed without adequate safeguards, could contribute to market instability through correlated strategy crowding or unintended feedback loops during stress events. The framework's reliance on commercial LLMs raises concerns about the concentration of financial decision-making power in a small number of technology providers. Additionally, while our harness-based design reduces behavioral noise compared to natural language agents, the underlying LLMs may still harbor unexamined biases that propagate through the factor generation and selection process. We encourage future deployments to incorporate circuit breakers, position limits, and mandatory human oversight for live trading, and we advocate for continued research into interpretability and robustness verification for harness-based trading systems.