arXiv:2608.23855cs.AIAug 2026

Manuscript Offprint

arXiv:2608.23855

In-Context Inpainting for Time Series Forecasting

Thang Nguyen, Dung Nguyen, Romero Morais, Truyen Tran

Open access. PaperVantage converted this article to text, so layout and figures may differ from the original.

ICI-Time: In-Context Inpainting for Adaptable Time Series Forecasting

Thang Nguyen, Dung Nguyen, Romero Morais, and Truyen Tran

Applied Artificial Intelligence Initiative, Deakin University,

Geelong, Victoria 3216, Australia

minh.t.nguyen@deakin.edu.au

Abstract. We propose ICI-Time, a novel framework that reframes time series forecasting as a visual inpainting task, leveraging the generalisation power of large vision models (LVMs). Unlike methods that require specialised temporal architectures and extensive domain-specific training, ICI-Time transforms time series into structured visual representations (area charts) and applies visual in-context learning, reformulating forecasting as pattern completion within a grid-structured prompt that pre-trained vision transformers can solve without fine-tuning or architectural modification. Temporal dependencies are represented through spatial layout, with a consistent, invertible mapping between numerical and visual domains. Extensive experiments across epidemiology, meteorology, and power systems demonstrate that ICI-Time performs competitively against deep learning baselines and shows promising adaptability under limited-data settings, introducing a new paradigm that bridges temporal and visual domains.

Keywords: Time-series forecasting · Visual prompting · Inpainting · In-context learning

References (35)