MemGuard-Alpha:通过成员推断和跨模型分歧检测和过滤受记忆污染的信号在基于LLM的金融预测中
MemGuard-Alpha: Limits of Membership Inference for Detecting and Filtering Memorization-Contaminated Signals in LLM-Based Financial Forecasting
AI总结:
MemGuard-Alpha通过成员推断和跨模型分歧方法,检测并过滤LLM生成的受记忆污染的信号,提升金融预测的准确性与鲁棒性。
摘要:
大型语言模型(LLMs)越来越多地用于生成金融alpha信号,但证据表明LLMs会从训练语料中记忆历史金融数据,产生虚假的预测准确性,这在离样测试中会崩溃。这种由记忆引起的提前偏差威胁到基于LLM的量化策略的有效性。先前的解决方案——模型再训练和输入匿名化——要么成本过高,要么引入显著的信息损失。没有现有方法提供实用的、零成本的信号级过滤以实现实时交易。我们引入MemGuard-Alpha,一个后生成框架,包含两个算法:(i)MemGuard复合分数(MCS),通过逻辑回归结合五种成员推断攻击(MIA)方法和时间接近特征,实现Cohen's d = 18.57的污染分离(d = 0.39-1.37仅使用MIA特征);(ii)跨模型记忆分歧(CMMD),利用不同LLM训练截止日期的差异来区分记忆信号和真实推理。在七个LLM(124M-7B参数)、50只S&P 100股票、42,800个提示和五个MIA方法(2019-2024年5.5年)的评估中,CMMD在未过滤信号上的夏普比率为4.11,比未过滤信号的2.76高49%。干净信号产生14.48个基点的平均日收益,而受污染信号为2.13个基点(7倍差异)。一个显著的交叉模式出现:样本内准确性随污染增加(40.8%到52.5%),而样本外准确性下降(47%到42%),直接证明记忆会提高看似准确性,但以牺牲泛化能力为代价。
英文摘要:
Large language models are increasingly used to generate financial alpha signals, but many have memorized the historical data in their training corpora, producing apparent accuracy that collapses out of sample. Membership inference attacks (MIA) have been proposed as a diagnostic. What has not been established is whether MIA scores are informative about memorization in this setting, or whether signal-level filtering built on them helps once realistic costs are applied.We introduce MemGuard-Alpha, comprising a composite contamination score combining five MIA methods with a temporal proximity feature, and Cross-Model Memorization Disagreement, which exploits variation in training cutoffs across models. We then audit both. Across seven LLMs (124M-7B), 50 S&P 100 constituents, 42,800 prompts and 299,600 prompt-model MIA scores spanning 2019-2024, three findings emerge.First, where in-sample status is defined by a training cutoff, a temporal proximity feature recovers that label perfectly (ROC-AUC 1.000) because it is a monotone transform of the defining variable; any composite score containing such a feature reports separation that is arithmetic rather than detection. Second, the discriminative power of the MIA scores is largely attributable to scale differences between models: asked at a fixed date which models had that date in training, raw scores appear highly informative (AUC up to 0.99), but under three independent within-model normalizations discrimination falls to 0.487-0.537. Third, with transaction costs applied symmetrically, no filtering variant improves risk-adjusted performance over the unfiltered ensemble, none attains significant Fama-French five-factor alpha, and excluding the single weakest model outperforms every contamination-based filter.We report these as negative results with the failure modes that produced them, and release all artifacts needed to reproduce them.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。