In-Context Inpainting for Time Series Forecasting
The paper introduces ICI-Time, a novel framework that reframes time series forecasting as a visual inpainting task by converting data into area charts and leveraging pre-trained large vision models to achieve competitive performance without specialized architectures or fine-tuning.
Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer
Time series forecasting is the art of predicting the future based on the past. It is the engine behind weather reports, electricity grid management, and disease tracking, where understanding how a value changes over time allows us to prepare for what comes next. For decades, scientists have built complex computer programs specifically designed to recognize these patterns in numbers. These programs are powerful, but they are also rigid; they usually require massive amounts of data and extensive training to learn a new task, and they often struggle when data is scarce or when the patterns shift unexpectedly. Meanwhile, a different kind of artificial intelligence has emerged, one trained on millions of images to understand the visual world. These systems can look at a picture and fill in missing parts, or recognize a cat in a photo they have never seen before, simply by using examples provided at the moment of the task. This ability to learn from context without needing to be retrained is a powerful tool, but it has remained largely unused for predicting numbers because numbers do not naturally look like pictures.
A team of researchers at Deakin University in Australia has now bridged this gap by teaching a computer to see time as an image. They introduced a new method called ICI-Time, which reframes the problem of predicting the future not as a mathematical calculation, but as a visual puzzle. Instead of feeding raw numbers into a specialized forecasting model, the researchers first convert the history of a data stream—such as daily flu cases or hourly temperature readings—into a simple line chart. They then arrange these charts into a grid, placing a complete example of a past pattern next to the current situation, leaving a blank space where the future should be. They ask a pre-trained vision model, a type of artificial intelligence that has already learned to understand images from the internet, to fill in that blank space. The model treats the missing future data as a missing part of an image and uses the visual example provided to "inpaint," or paint over, the empty area with a plausible continuation of the line.
Once the vision model generates the completed image, the researchers translate the drawing back into numbers. They carefully extract the line from the new image and convert its height and position back into the original data values. The entire process happens without the computer ever being taught specifically how to forecast time series. It relies entirely on the model's existing ability to recognize visual patterns and its capacity to learn from the examples shown to it in that single moment. The researchers tested this approach on diverse real-world data, including influenza cases collected over two decades, weather indicators like humidity and air pressure, and electricity transformer temperatures. They compared their method against the most advanced forecasting models currently available, which are built with complex architectures designed specifically for time-based data.
The results were surprising. In almost every test, the visual approach matched or outperformed the specialized models, particularly when measuring how close the predictions were to the actual values. The method proved to be exceptionally robust when data was limited. While the specialized models struggled and their errors grew significantly when trained on only a tiny fraction of the available data, the visual method remained stable and accurate. This suggests that the ability to recognize shapes and trends in an image is a more universal skill than the specific mathematical rules usually applied to time series. The researchers found that the key to success was not just turning numbers into pictures, but doing so in a way that preserved the scale and shape of the data perfectly, ensuring the vision model could read the chart as accurately as a human would.
This work challenges the long-held assumption that predicting the future requires specialized, data-hungry algorithms. It demonstrates that a general-purpose vision system, when given the right visual representation, can understand temporal dynamics just as well as, and sometimes better than, models built from the ground up for that specific purpose. The study suggests that the boundary between visual reasoning and time-based prediction is not as fixed as previously thought. By simply showing a computer an image of the past and asking it to complete the picture, the system can infer the future without needing to be retrained or fine-tuned. This opens a new path for forecasting in situations where data is scarce or where rapid adaptation to new types of data is required, proving that sometimes, the best way to understand time is to look at it as a picture.
Drowning in papers in your field?
Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.