arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.24564cs.AIcs.CEcs.LG
收藏

召唤神谕以屠之:利用大语言模型缓解金融回测中的前瞻偏差

Summoning the Oracle to Slay It: Mitigating Look-Ahead Bias in Financial Backtesting with Large Language Models

University of Edinburgh(爱丁堡大学)

Weixian Waylon Li, Mengyu Wang, Tiejun Ma

AI总结:

提出FinCAD方法,通过对抗性偏差发现和实体日期自适应规则,在不重新训练的情况下抑制大语言模型对历史结果的记忆,从而缓解金融回测中的参数化前瞻偏差。

摘要:

在历史金融数据上回测大语言模型(LLMs)是不可靠的,因为预训练在事件发生后截断。一个在2024年训练的LLM已经“知道”2018-2020年股票的走势。我们将这种失败命名为参数化前瞻偏差,并提出FinCAD,一种上下文感知解码的推理时适配方法,无需重新训练即可抑制LLM对历史结果的记忆。FinCAD结合了一个对抗性偏差发现流程,该流程学习一个模型特定的记忆激活先验提示,以及一个实体和日期自适应规则,该规则将CAD强度按(实体,日期)记忆程度缩放,使得惩罚在记忆的样本内日期触发,并在样本外衰减至零。在五个7-14B LLM和五只大盘股上,FinCAD在记忆日期上将样本内回测收益削减高达-67.1%,同时将2025年样本外收益保持在$8K以内,夏普比率在基线的0.10以内,并保持通用推理能力在1.7分以内。在十一个模型的排行榜上,它将样本内/样本外Spearman相关性从+0.779提升至+0.846,恢复了真正预测样本外表现的排名。

英文摘要:

Backtesting large language models (LLMs) on historical financial data is unreliable when their pre-training data include the evaluated events. An LLM trained in 2024 may already encode how stocks moved during 2018-2020. We name this failure parametric look-ahead bias and propose FinCAD, an inference-time adaptation of Context-Aware Decoding that attenuates contributions from memorised historical outcomes without retraining. FinCAD pairs an adversarial bias-discovery pipeline that learns a model-specific memory-activating prior prompt with an entity- and date-adaptive rule that scales the CAD strength using a per-(entity, date) confidence signal. Across five 7-14B LLMs and five mega-cap equities, the largest model-level mean in-sample return correction is -67.1%. For the three larger models, 2025 out-of-sample returns remain within $8K and mean Sharpe within $\pm$0.10 of baseline; mean general-benchmark accuracy remains positive or within -1.7 points for four of five models. On an eleven-model leaderboard, FinCAD raises the subset-averaged in-sample/out-of-sample Spearman correlation from +0.779 to +0.846, yielding rankings that are more closely aligned with post-cutoff performance.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑