cs.LGOct 2, 2026

Dual-Context Analog Retrieval for Time Series Forecasting

Authors: Jung Min Choi, Ngoc Son Le, Ibram Abdelmalak, Vijaya Krishna Yalavarthi, Lars Schmidt-Thieme

Organizations: ISMLL, University of Hildesheim · VWFS Data Analytics Research Center (VWFS-DARC), Hildesheim, Germany

Abstract

Most long-term time-series forecasting models map the look-back window directly to the full horizon in a single pass. While efficient, this design does not explicitly identify which historical states are most relevant to different future segments or exploit what followed those states. Analog forecasting addresses this by retrieving past states similar to the present and using their observed continuations, but single nearest matches can be unreliable and overlapping patches may produce redundant candidates. We propose DuoTS, a Dual-Context Time Series forecasting model that uses retrieved evidence without relying on it exclusively. DuoTS first produces a base forecast with a parallel patch encoder and linear prediction head, then progressively refines it one future patch at a time. Each refinement combines two views: a current context that attends to recent tokens and captures the latest dynamics, and a detail context that provides distinct retrieved analogs together with their subsequent trajectories. Patch-wise refinement allows the model to balance these views across the forecast horizon and associate each future segment with evidence appropriate to its temporal distance from the present. Experiments on multiple real-world datasets show that DuoTS achieves state-of-the-art performance, while ablations confirm the contribution of each context. The refinement mechanism is also model-agnostic, requiring only an encoded look-back window and the future-patch position, and can therefore be integrated into existing forecasting models.

Figures & tables

Appendix figures & tables8 assets

Supplementary material from the paper’s appendix.

Appendix

Explore similar work

CardsList
  1. Most-Recent Anchoring with Recurrent Ordering for Time Series Forecasting

    Oct 2, 2026Jung Min Choi, Ngoc Son Le, Ibram Abdelmalak +2Time Series ForecastingLong-Term Time Series Forecasting

  2. Retrieval Mechanisms Surpass Long-Context Scaling in Time Series Forecasting

    May 6, 2026Rishi Ahuja, Kumar Prateek, Simranjit Singh +1Time Series ForecastingLong-Context Modeling

  3. Dual-Prototype Disentanglement: A Context-Aware Enhancement Framework for Time Series Forecasting

    Jan 23, 2026Haonan Yang, Jianchao Tang, Zhuo LiDisentangled Representation LearningPrototype Learning