Skip to content

TS-RSI: Recursive Self-Improvement in Long-Term Time Series Forecasting

Xinhua Miao, Bowei Yang, Zhengong Cai

cs.LG

Abstract

Forecasting systems increasingly let LLMs write programs and revise them from validation feedback, a loop of recursive self-improvement (RSI). We introduce TS-RSI, a pre-registered testbed on long-term time series forecasting that pairs every loop with a trivial competitor encoding the same structure by hand. TS-RSI-Code uses one LLM-written program per dataset as a feature generator for a ridge correction to a closed-form CycleNet-style learner, with gap-matched fitting and a per-horizon fallback against drift. Relative to the CycleNet cycle, it lowers error by 14-27% on the held-out PEMS datasets and costs at most 1% on the other held-out datasets. The PEMS gain is a weekly cycle: choosing a daily or weekly cycle on validation does at least as well without an LLM, and iterating on the program improves the median by at most 0.8% while validation overstates its gains. TS-RSI-Struct instead lets the LLM search the cycle length from validation feedback. Starting from a one-day prior on every dataset, it reaches the weekly cycle within three evaluations, beats random search by 4-7% with three LLMs and ties the trivial competitor, for 0.24 CNY. When the prior is wrong on two structural choices, the loop falls behind random search.

Create a lesson

Metadata

Categories
cs.LG, cs.AI