History Rhymes: Macro-Contextual Retrieval for Robust Financial Forecasting
Sarthak Khanna, Armin Berger, Muskaan Chopra, David Berghaus, Rafet Sifa

TL;DR
This paper introduces a macro-contextual retrieval framework for financial forecasting that leverages historical macroeconomic regimes to improve robustness and interpretability during distribution shifts.
Contribution
It proposes a retrieval-augmented forecasting method embedding macro indicators and sentiment, enabling causal retrieval of similar regimes without retraining, improving out-of-distribution performance.
Findings
Consistently narrows the performance gap in OOD settings
Achieves positive out-of-sample trading outcomes with improved metrics
Provides interpretable evidence chains aligned with macro contexts
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsStock Market Forecasting Methods · Forecasting Techniques and Applications · Financial Markets and Investment Strategies
