TL;DR
TimeRFT introduces a reinforcement learning-based finetuning paradigm for Time Series Foundation Models (TSFMs) to overcome the overfitting and distribution shift limitations of standard supervised finetuning. By combining a multi-faceted temporal reward mechanism with difficulty-aware data selection, it significantly boosts forecasting accuracy and cross-domain generalization across diverse data regimes.
What Problem Does This Paper Address?
Just as Large Language Models (LLMs) have revolutionized NLP, Time Series Foundation Models (TSFMs) are emerging as powerful tools for zero-shot and few-shot time series forecasting. However, adapting these pretrained models to specific downstream tasks remains a major bottleneck.
Currently, most practitioners rely on Supervised Fine-Tuning (SFT), which trains the model to directly mimic historical ground-truth data. Because time series data is inherently non-stationary, noisy, and prone to sudden distribution shifts, SFT often causes models to overfit to spurious historical correlations. When the future distribution inevitably drifts, SFT-adapted models struggle to generalize. Furthermore, under limited data regimes (like few-shot learning), SFT can be highly unstable.
Methods
To break free from the limitations of imitative SFT, the authors propose TimeRFT (Time series Reinforcement FineTuning). Instead of just copying the training data, the model learns through self-exploration and task-specific rewards using an optimized version of Group Relative Policy Optimization (GRPO).
TimeRFT relies on two core, forecasting-oriented training recipes:
- Forecasting Quality-Based Reward Design: Rather than relying on a single metric like Mean Squared Error (which often leads to over-smoothed, flat forecasts), TimeRFT evaluates on-policy generated patches across three complementary dimensions:
- Accuracy Reward: Measures point-wise proximity using normalized Mean Squared Error (nMSE).
- Variability Reward: Uses KL-divergence to ensure the local statistical fluctuations of the predicted patch match the ground truth.
- Frequency Reward: Uses the Fast Fourier Transform (FFT) to align global, long-range periodic structures, heavily weighting high-frequency components.
- Synergistic Bonus: A multiplicative interaction term that rewards forecasts that simultaneously achieve high numerical accuracy and realistic temporal dynamics.
- Forecasting Difficulty-Based Data Selection: Reinforcement learning can become unstable if training samples are too trivial or impossibly chaotic. TimeRFT filters the training set to keep only samples of "moderate" difficulty. It uses the initial model's zero-shot Prediction Interval Coverage Probability (PICP) to filter out overly easy or overly hard sequences, and applies Spectral Entropy (SE) to remove highly unpredictable, low-signal-to-noise ratio data.
Additionally, to stabilize policy updates, the authors augment the GRPO group samples with the actual ground-truth forecast as an external guide, applying a piecewise reward shaping function to prevent the model from aggressively over-correcting.
Datasets
The authors evaluated TimeRFT using eight diverse, real-world datasets from the fev-bench benchmark:
- Univariate: Loop Seattle (mobility), ERCOT (energy).
- Multivariate: ETT (energy), Jena Weather (nature), BOOMLET-963 (cloud computing).
- Covariate-Informed: UCI Air Quality (nature), Solar with Weather (energy), ENTSO-e Load (energy).
Key Insights and Ideas
- The Power of On-Policy Exploration: By generating its own rollouts during training, the TSFM encounters out-of-distribution states and learns how to self-correct. This makes it far more resilient to future distribution shifts than a model trained purely on historical ground truths.
- Beyond Point-Wise Loss: Optimizing purely for MSE encourages models to predict the mean value, leading to flat lines that miss real-world volatility. Factoring in local variability and global frequency domains forces the model to generate structurally realistic trajectories.
- Data Curation is Essential for Time Series RL: Not all data is good data. Filtering out chaotic noise and trivial patterns prevents reward hacking and stabilizes policy gradients, making reinforcement learning practical for time series.
Key Results
- Consistent Performance Gains: TimeRFT achieved an average improvement of 10.17% in MSE and 7.04% in MAE compared to standard SFT (TimeSFT) and parameter-efficient SFT (TimeLoRA) across all datasets and data scales (5% few-shot to 100% full-shot).
- Superior Zero-Shot Transferability: When trained on one domain (e.g., ETT station m1) and tested directly on an unseen domain (station m2), TimeRFT outperformed TimeSFT by 6.41% in MSE, proving it learns generalizable temporal patterns rather than dataset-specific quirks.
- Architecture Agnostic: While primarily tested on MOIRAI-MoE, the authors successfully integrated TimeRFT with other TSFM backbones like Chronos-2 and ToTo-1.0, achieving consistent performance boosts.
Limitations and Future Work
The primary drawback of TimeRFT is its training overhead. Because it requires generating multiple on-policy forecasts per training step to compute group advantages, it is computationally heavier than SFT. For instance, on the 20% ETT dataset, TimeSFT takes 14 minutes to train, whereas TimeRFT takes 24 minutes with a group size of $G=8$, scaling up to 50 minutes at $G=24$.
The authors note that future work will focus on improving training efficiency through sparse parameter updates and smarter rollout down-sampling strategies, alongside expanding the framework to multimodal time series reasoning tasks.
Summary updated