# Forecasts Must Respect the Clock: Temporal Leakage and Evaluation Codex (AI) · English analytical review · Local edition · Version 1 ## Abstract An accurate retrospective estimate is not necessarily a valid forecast. This review formalizes information availability at a forecast origin and separates event time from arrival time. A stationary Gaussian autoregression gives exact valid forecast variances and smaller, invalid future-assisted variances. An interval audit enumerates windows whose targets cross a nominal split when only window start times are used. These controls are accompanied by reproducible code and two numerical figures, not newly trained forecasting benchmarks. Six primary model records provide context for recurrent, attention-based, linear and patching approaches. The proposed protocol covers normalization, revised data, cross-series availability, hyperparameter selection, missingness and prospective replay, preserving the distinction between a modeling gain and an expanded information set. ## 1. A forecast is defined by what was available A forecasting model predicts an outcome using information available at a particular decision time. An accurate estimate computed after the outcome is observed is a different task, even if the same neural architecture produces it. Temporal leakage occurs when the evaluation pipeline gives the predictor information that would not have existed, or would not yet have been available, at the claimed forecast origin. The mistake can enter through features, normalization, dataset splitting, revision histories, or model selection. This review treats the information set as part of the model specification. A constructed autoregressive process quantifies the apparent benefit of adding a future observation to a forecast. A separate interval calculation shows how overlapping windows can cross a nominal train-test cutoff. Neither construction trains a neural network or reproduces the cited benchmarks. They provide controls that expose evaluation mistakes independently of architecture. The central argument is that a sophisticated forecaster cannot rescue an invalid time contract: every transformation of the data must respect the same availability boundary as the final prediction. ## 2. Architecture papers answer a different question DeepAR studies probabilistic recurrent forecasting across related time series. Temporal Fusion Transformers distinguish static variables, known future covariates, and historically observed inputs. Informer examines efficient attention and long-horizon decoding. Time2Vec studies representations of time. These primary author records describe modeling approaches, but naming one of them does not specify how a particular dataset was made available at each forecast origin. Zeng and colleagues challenge studied transformer comparisons using linear baselines, while Nie and colleagues investigate patching and channel independence in transformer forecasting. We cite these inspected abstracts as evidence that architecture and evaluation choices both matter, not as a current universal ranking. No benchmark from these papers is rerun here, and we do not accuse a specific implementation of leakage. The calculations below are independent controls. Their role is to distinguish a legitimate modeling improvement from an improvement caused by an expanded information set. A comparison is scientifically meaningful only when competing predictors receive the same admissible information and face the same horizon, selection procedure, and target definition. Sources: [dl3-c04-1], [dl3-c04-2], [dl3-c04-3], [dl3-c04-4], [dl3-c04-5], [dl3-c04-6] ## 3. Event time and availability time are not identical A measurement can refer to an event at time t but arrive later. Economic statistics may be revised; sensor streams may be delayed; administrative records may be entered retrospectively. A feature table sorted by event timestamp can therefore contain values that were unavailable when the original decision was made. Training and evaluation should use the value version and arrival time that the operational predictor would have seen. Representing every input with both event time and availability time makes this distinction auditable. At forecast origin tau, include only records whose availability time is no later than tau. If a future covariate is a known calendar variable, its event time may be later than tau while its value is already known. If it is tomorrow's realized weather, the observed value is not equivalent to a weather forecast issued today. A research dataset should preserve that provenance rather than combine them under a generic covariate column. The correct rule concerns information availability, not an unconditional prohibition on every feature associated with a future date. ## 4. An autoregressive control makes the information gap exact Consider a stationary scalar process X_t=rho X_(t-1)+epsilon_t, with independent zero-mean innovations of variance sigma squared and |rho|<1. Given X_t, the h-step conditional mean is rho to the h times X_t. Its mean-squared forecast error is sigma squared times the sum of rho to the 2j for j from zero to h-1. The variance grows with horizon because additional innovations have not yet been observed. Now provide X_(t+h) itself as an input while still calling the output an h-step forecast. The apparent error can be zero through copying. This extreme control is useful because it exposes the logical issue without any training ambiguity. A subtler version provides X_(t+h+1), a later observation correlated with the target. Conditional Gaussian algebra gives a smaller error than the legitimate forecast even though the model has not become better at predicting from the past. Figure 1 compares the valid error with this future-assisted error. All values are analytic consequences of the declared process, not performance measurements on a real forecasting task. ## 5. A future proxy can look like a powerful representation Let V_h denote the legitimate h-step error variance. Since X_(t+h+1)=rho X_(t+h)+epsilon_(t+h+1), conditioning additionally on the future observation reduces the Gaussian conditional variance to V_h sigma squared divided by rho squared V_h plus sigma squared. For rho nonzero this is smaller than V_h. The improvement is entirely explained by information that was unavailable at time t. This does not mean that every strongly correlated covariate is forbidden. A forecast issued earlier by an independent system may be legitimately available. Its version, issue time, and errors must then be preserved. Replacing it with the subsequently realized value changes the experiment. Similarly, a revised label may be appropriate for measuring final outcomes, while revised inputs may be inappropriate for reconstructing historical decisions. The finite program checks the conditional-variance formula against a covariance-matrix calculation and confirms the rho=0 control, where the future neighbor adds no information. Such controls can reveal leakage in preprocessing before an expensive deep model is trained. ## 6. Window construction can cross the split Suppose a training example starts at time s, uses L historical observations, and predicts the following H observations. Its complete support extends from s through s+L+H-1 in discrete time. Assigning examples to training merely because their start time is before a cutoff C can include target observations after C. A test set beginning at C may then share outcomes with training. The safe condition depends on the intended design. For a strict holdout in which no training target reaches the test period, require s+L+H-1