arXiv(opens in a new tab)cs.CRAug 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2608.23308

FIDES: A Concordance Protocol for LLM-Generated Trading Strategies

Arther Tian, Alex Ding, Simon Wu, Aaron Chan

Abstract

An LLM asked for a trading strategy returns three artifacts at once: a natural-language rationale, an executable implementation, and—once run—a track record. Whether these are the same object is rarely checked. We present FIDES, a measurement protocol that treats them as three views to be reconciled rather than one deliverable to be graded. Through dual delivery—a single model call that returns both a natural-language strategy (with an explicit claimed edge) and a self-contained strategy(df) function—FIDES executes the code in a sandbox against a lag-one out-of-sample backtest the model cannot game, and scores three concordance gaps in [0,1]: say→do (does the code implement the stated rules?), do→real (does it execute as written, without look-ahead?), and say→result (does the claimed edge survive the numbers?). On 8 liquid US ETFs across four models plus a two-stage elicitation arm (40 strategies; 2023–24 out-of-sample), three findings stand out, and none is flattering. First, concordance does not predict profit: the most speech-code consistent model (say→do = 1.00) still loses to buy-and-hold, only 2 of 40 strategies beat it, and a plain SMA(50,200) rule outperforms every model's mean Sharpe. Second, self-assessment is badly calibrated: 32 of 40 strategies claim to beat buy-and-hold and exactly one does—a 3.1% hit rate. Third, the language-code judge is not an oracle: swapping it for a second model flips say→do on more than half of items (exact agreement 16/40, mean ∣Δ∣=0.15|\Delta| = 0.15). A look-ahead dose-response validates the execution gap—injecting Close.shift(-1) drops do→real by 0.33 on average—while we disclose, as a negative result, that our runtime future-information probe fired on neither clean nor injected code. We frame FIDES as a protocol for measurement fidelity, not a claim about market performance, and delimit external validity—including a model roster constrained to what our inference catalog served—as future work.

1 Introduction

Large language models are increasingly asked not merely to discuss markets but to produce trading strategies outright—as natural-language rationales, as runnable code, and, through agent frameworks, as systems that place orders [11, 25, 29]. A single such request returns three artifacts at once: the strategy the model states in prose, the strategy its code actually implements, and the track record that strategy realizes when run. It is natural to treat these as one deliverable and grade it—did the code run, was the return positive—but that skips the prior question of whether the three artifacts even describe the same strategy. A fluent rationale can be paired with code that quietly does something else; code that runs cleanly can be silently peeking at future bars; and a confident claim to beat the market can sit atop a track record that does not. In finance these gaps are not cosmetic: acting on a stated rationale when the code diverges, or trusting a backtest that looked ahead, loses real money.

No existing evaluation reconciles the three views jointly. Code-generation benchmarks measure functional correctness against hidden unit tests [1, 7], but there is no unit test for did the code implement the English, and a generated trading strategy has no reference implementation to diff against. Financial LLM benchmarks grade domain knowledge and question answering [24, 26–28], not the internal consistency of a produced strategy. Return-prediction and trading-agent studies pursue profit directly [11, 25, 29] and thereby inherit the well-documented hazards of that target—backtest overfitting, data snooping, and look-ahead bias [3, 4, 13, 23]—hazards acute enough that beating a passive benchmark out of sample is the exception, not the rule [2, 8], and severe enough that look-ahead leakage is now studied specifically for LLMs [5]. Closest in spirit, work on chain-of-thought faithfulness shows that a model's stated reasoning need not reflect the computation that produced its answer [9, 19]; but it operates on multiple-choice reasoning, where the "answer" is a label, rather than on an artifact whose correctness is settled by a non-gameable outcome.

We introduce FIDES, a measurement protocol that reconciles the three artifacts rather than grading one. FIDES uses dual delivery: a single model call returns both a natural-language strategy (with an explicit claimed edge) and a self-contained strategy(df) function, so the language and the code come from one act of reasoning and can be compared without a translation step. It then executes the code in a sandbox and scores three concordance gaps, each in [0, 1] with 1 fully concordant: say→do asks whether the code implements the stated rules, scored by a fixed, non-candidate language-code judge; do→real asks whether the code executes as written, without static look-ahead; and say→result asks whether the claimed edge survives the out-of-sample numbers. The load-bearing design choice is the anchor: outcomes come from a lag-one out-of-sample backtest the model cannot game—positions act on the prior bar, so the code cannot trade on information it should not have—and do→real and say→result are thereby grounded in what actually happened rather than in another model's opinion (Figure 1). Profit is a side metric, and we deliberately do not repair or search over strategies to raise it: doing so would optimize the very quantity whose relationship to the stated logic we are trying to measure.

Across 8 liquid US ETFs and four models (40 strategies; 2023–24 out-of-sample), the protocol turns up three results, none of them flattering to the models. Concordance does not predict profit: the most speech-code consistent model scores a perfect say→do of 1.00 yet loses to buy-and-hold, only 2 of 40 strategies beat it, and a plain SMA(50,200) rule outperforms every model's mean Sharpe. Self-assessment is badly calibrated: 32 of 40 strategies claim to beat buy-and-hold and exactly one does, a 3.1% hit rate. And the language-code judge is not an oracle—swapping it for a second model flips say→do on more than half of items (exact agreement 16/40, mean ∣Δ∣=0.15|\Delta| = 0.15), so a single judge's scores should be read as one measurement, not ground truth. We validate the execution gap with a look-ahead dose-response (injecting Close.shift(-1) drops do→real by 0.33 on average) and, in the same spirit, disclose a negative result: our runtime future-information probe fired on neither clean nor injected code—a limitation of that probe rather than evidence of clean execution. This cheap-first, measure-what-you-can, audit-the-judge stance is shared with a broader line of the authors' work on trustworthy evaluation [14, 16–18]; here the object—an LLM's own trading strategy—and the mechanism—three gaps anchored by a non-gameable backtest—are new. We present FIDES as a protocol for measurement fidelity, not as a claim about market performance, and we are explicit that the model roster is constrained by what our inference catalog actually served (Section 4).

FIDES makes three contributions:

  • A concordance protocol for generated strategies. Dual delivery plus three interval-valued gaps—say→do, do→real, say→result—that reconcile an LLM’s stated logic, its code, and its realized track record, anchored by a lag-one out-of-sample backtest the model cannot game

Figure

Figure 1: The three artifacts of an LLM trading strategy and the three gaps FIDES measures. A single model call (dual delivery) yields a natural-language strategy and its code; executing the code on a lag-one out-of-sample backtest yields a realized track record. Only the backtest is non-gameable ground truth. Each gap is scored in [0,1][0,1] (1 = fully concordant); profit is treated as a side metric, not the objective.

(Section 3).

• An empirical study with uncomfortable findings. On 8 ETFs across four models we show that concordance does not predict profit, that models’ self-reported edge is badly calibrated, and that the language-code judge is not robust to being swapped—each quantified against passive, rule-based, and cost-adjusted baselines (Section 5).

• Honest diagnostics and delimited scope. A validated look-ahead dose-response, a disclosed failed runtime probe, a zero-LLM rule baseline, and a two-stage elicitation control, framed throughout as measurement fidelity with external validity—including model coverage—delimited as future work (Sections 5 and 6).

References (27)