Fake Date Tests: Can We Trust In-sample Accuracy of LLMs in Macroeconomic Forecasting?
Alexander Eliseev, Sergei Seleznev
TL;DR
This paper tackles the risk that in-sample forecast accuracy of LLMs in macro forecasting may be tainted by lookahead and context biases. It introduces two prompt-sensitivity probes, Fake date test I and II, to detect these biases by comparing forecast distributions under real versus fake dates and varying contextual depth, using a KS-based permutation framework. Applying the tests to three open-weight LLMs forecasting US macro variables across 80 prompts, the study finds no model passing Fake date test I, indicating lookahead bias in retrospective accuracy evaluation; significant distributional differences persist, especially around crisis periods. The work highlights the need for careful validation of in-sample performance in LLM-based macro forecasting and offers a practical diagnostic toolkit that can extend to other time-series forecasting tasks beyond economics.
Abstract
Large language models (LLMs) are a type of machine learning tool that economists have started to apply in their empirical research. One such application is macroeconomic forecasting with backtesting of LLMs, even though they are trained on the same data that is used to estimate their forecasting performance. Can these in-sample accuracy results be extrapolated to the model's out-of-sample performance? To answer this question, we developed a family of prompt sensitivity tests and two members of this family, which we call the fake date tests. These tests aim to detect two types of biases in LLMs' in-sample forecasts: lookahead bias and context bias. According to the empirical results, none of the modern LLMs tested in this study passed our first test, signaling the presence of lookahead bias in their in-sample forecasts.
