用历史经济周期匹配当前市场,让金融预测更稳定可靠。
History Rhymes: Macro-Contextual Retrieval for Robust Financial Forecasting
- 通过经济指标与新闻情绪的联合嵌入,检索历史上相似的宏观周期。
- 在苹果和埃克森2024年数据上实现正收益,夏普比率超0.6。
- 结果可解释,能识别通胀或收益率曲线倒挂等关键阶段。
金融市场具有非平稳性:结构性断裂和宏观经济周期变化常导致模型在分布外(OOD)场景下失效。传统多模态方法简单融合数值指标与文本情绪,难以适应此类变化。本文提出宏观上下文检索框架,将每个预测锚定在历史上相似的宏观经济周期中。该方法在共享相似性空间中联合嵌入宏观指标(如CPI、失业率、利差、GDP增长)与金融新闻情绪,推理时无需重训即可检索先例时期。基于2007-2023年标普500共十七年数据训练,在苹果(2024)和埃克森(2024)的分布外测试中,该框架持续缩小训练到分布外性能差距。基于宏观条件的检索实现了唯一正向样本外交易表现(苹果:绩效比1.18,夏普比0.95;埃克森:绩效比1.16,夏普比0.61),而静态数值、纯文本及朴素多模态基线在周期转换中崩溃。除指标提升外,检索到的邻近时期构成可解释的证据链,对应可识别的宏观情境(如通胀期或收益率曲线倒挂期),支持因果可解释性与透明性。通过实践‘历史不会重演,但常常重复’的原则,本工作证明宏观感知的检索可带来分布变化下的鲁棒且可解释的预测。所有数据集、模型与源码均已公开。
原文摘要 · Abstract (English)
Financial markets are inherently non-stationary: structural breaks and macroeconomic regime shifts often cause forecasting models to fail when deployed out of distribution (OOD). Conventional multimodal approaches that simply fuse numerical indicators and textual sentiment rarely adapt to such shifts. We introduce macro-contextual retrieval, a retrieval-augmented forecasting framework that grounds each prediction in historically analogous macroeconomic regimes. The method jointly embeds macro indicators (e.g., CPI, unemployment, yield spread, GDP growth) and financial news sentiment in a shared similarity space, enabling causal retrieval of precedent periods during inference without retraining. Trained on seventeen years of S&P 500 data (2007-2023) and evaluated OOD on AAPL (2024) and XOM (2024), the framework consistently narrows the CV to OOD performance gap. Macro-conditioned retrieval achieves the only positive out-of-sample trading outcomes (AAPL: PF=1.18, Sharpe=0.95; XOM: PF=1.16, Sharpe=0.61), while static numeric, text-only, and naive multimodal baselines collapse under regime shifts. Beyond metric gains, retrieved neighbors form interpretable evidence chains that correspond to recognizable macro contexts, such as inflationary or yield-curve inversion phases, supporting causal interpretability and transparency. By operationalizing the principle that "financial history may not repeat, but it often rhymes," this work demonstrates that macro-aware retrieval yields robust, explainable forecasts under distributional change. All datasets, models, and source code are publicly available.
Thank you to arXiv for use of its open access interoperability. PaperDance 不是 arXiv 官方产品;中文卡片由大模型生成,请以原文为准。