Improving Time Series Forecasting via Instance-aware Post-hoc Revision

Zhiding Liu, Mingyue Cheng, GuanHao Zhao, Jiqian Yang, Qi Liu, Enhong Chen

Abstract

PIR (Post-forecasting Identification and Revision) is a model-agnostic framework that acts as a "safety net" for time series models. It identifies potentially failed forecasts by estimating their uncertainty and then refines them using a combination of local covariate information and global historical retrieval, significantly reducing errors in "long-tail" or anomalous scenarios.

Introduction

In the world of time series forecasting, models are often celebrated for their "average" performance across a dataset. However, average success can hide catastrophic failures at the instance level. Real-world data is messy: sensors fail, distribution shifts occur, and rare "long-tail" patterns emerge that a generalized model might never have seen during training.

Illustration of instance-level failures, showing spikes in per-instance MSE and a long-tail error distribution.

Existing state-of-the-art models (like PatchTST or iTransformer) are powerful, but they often struggle with these specific, atypical instances. The authors argue that instead of just building a "bigger" model to capture every edge case, we should treat forecasting as a two-stage process: first, make a prediction, and second, check if that prediction looks unreliable and revise it if necessary.

The PIR Framework

The authors propose PIR, a framework that plugs into any existing forecasting model (the "backbone") and performs two main tasks:

Overview of the Post-forecasting Identification and Revision (PIR) framework.
  1. Failure Identification (Uncertainty Estimation): Since ground truth is unavailable during inference, PIR uses a two-layer neural network to estimate the likely error (MSE) of the backbone model's forecast. It treats a high predicted error as a signal that the instance is a "failure" requiring revision.
  2. Post-hoc Revision: If an instance is flagged, PIR applies two types of "corrections":
  3. Local Revision: It examines the "neighborhood" of the forecast. By analyzing covariates (related variables) and exogenous information (like timestamps or textual descriptions of the data source), it uses a Transformer-based module to adjust the forecast based on local trends.
  4. Global Revision: It performs a "retrieval" step, searching the entire training history for the $K$ most similar historical patterns. It then uses the actual outcomes of those historical patterns to provide a "global" hint for the current forecast.

Finally, PIR combines the original forecast with these revisions using a weighted sum, where the weights are dynamically determined by the estimated uncertainty.

Experimental Setup

The researchers evaluated PIR across a massive battery of 14 real-world datasets spanning multiple domains:

  • Energy: ETT (four subsets), Electricity, and an "Energy" subset with textual descriptions.
  • Nature: Solar power production and Weather indicators.
  • Transportation: Traffic volume and four subsets of the PEMS (03, 04, 07, 08) dataset.
  • Healthcare: A "Health" dataset featuring multimodal (text + numerical) data.

Key Insights and Results

  • Error as a Proxy for Uncertainty: One of the cleverest aspects is how the failure identifier is trained. Since "uncertainty" is hard to define, they simply train a small network to predict the Mean Squared Error (MSE) of the backbone model. If the network predicts a high MSE, the system knows it cannot trust the initial forecast.
  • The "Residual" Philosophy: PIR does not try to replace the backbone model. It follows a residual approach ($y_{pred} = \bar{y} + \text{revision}$), meaning it only "nudges" the original prediction. This makes it incredibly stable and easy to integrate.
  • Retrieval-Augmented Forecasting: The global revision highlights that "history repeats itself." Even if a model's weights have "forgotten" a rare pattern, explicitly retrieving that pattern from a database can provide the missing context needed to fix a bad forecast.
  • Model Agnosticism: PIR was tested with four very different architectures (PatchTST, SparseTSF, iTransformer, and TimeMixer) and improved all of them, proving it’s a versatile "plugin" rather than a niche fix.

The quantitative improvements are substantial, especially for models that were previously struggling:

  • Massive Error Reduction: PIR achieved an average MSE reduction of 8.99% for PatchTST and a staggering 25.87% for SparseTSF.
  • Reliability in the "Tail": Qualitative analysis showed that PIR specifically targets the "spikes" in error curves. In the PEMS07 dataset, it significantly flattened the long-tail distribution of errors, turning "unreliable" forecasts into "robust" ones.
  • Efficiency: Despite the retrieval step, the authors found that using brute-force cosine similarity on a GPU introduced "negligible additional latency" (e.g., adding only ~0.1 seconds to inference on the ETTh1 dataset).

Limitations and Future Work

While PIR is a powerful step forward, the authors note a few areas for improvement:

  • Architecture Simplicity: The current revision modules (the failure identifier and local reviser) use relatively simple network structures. Future work could involve more sophisticated inductive biases.
  • Target-Side Noise: PIR currently focuses on variations in the input series. It doesn't explicitly handle cases where the target series itself is corrupted by noise or missing values during the evaluation phase.
  • Refining the Revision: Exploring more advanced ways to integrate inductive biases into the revision process remains a promising direction for making forecasting even more reliable.

Summary updated

BibTeX
@inproceedings{liu2025improving,
  author = {Zhiding Liu and Mingyue Cheng and GuanHao Zhao and Jiqian Yang and Qi Liu and Enhong Chen},
  title = {{Improving Time Series Forecasting via Instance-aware Post-hoc Revision}},
  booktitle = {Advances in Neural Information Processing Systems},
  year = {2025},
  url = {https://openreview.net/forum?id=H7e5RpeIi4},
}
Figure