ReFine: Boosting Time Series Prediction of Extreme Events by Reweighting and Fine-tuning

Jimeng Shi, Azam Shirali, Giri Narasimhan · DOI

Predicting rare, high-impact "extreme events"—such as flash floods, heatwaves, or sudden financial crashes—remains one of the most significant challenges in time series forecasting. Researchers at Florida International University have introduced ReFine, a novel two-stage framework designed to address the inherent difficulties of modeling the "long tail" of data distributions.

The Challenge: Underfitting and Distribution Shift

Standard deep learning models often fail to capture extreme events for two primary reasons. First, because these events are rare, models tend to treat them as noise, prioritizing the "normal" majority to minimize overall loss—a phenomenon known as underfitting. Second, extreme events often present Out-of-Distribution (OOD) challenges, where the characteristics of extremes in the test set differ significantly from those encountered during training.

Distribution shift between training and test sets for Pressure and PM2.5 datasets.

While reweighting training samples to favor rare events is a common strategy, most existing methods rely on manual heuristics or prior knowledge that may not accurately reflect the underlying data distribution.

The ReFine Framework

ReFine introduces a model-agnostic, two-stage strategy to boost performance on extreme events without requiring manual tuning of sample weights.

1. Meta-Learning-Based Reweighting

Instead of fixed rules, ReFine treats sample weights as hyperparameters optimized through a bilevel approach. In the inner loop, the model trains on weighted data. In the outer loop, performance is evaluated on a separate validation set consisting exclusively of extreme samples. This feedback loop forces the model to discover optimal weights that prioritize accuracy on the most critical, rare events.

Conceptual illustration of the training and evaluation sets in the ReFine framework.

2. Targeted Fine-tuning

Following the reweighted training phase, the framework employs a fine-tuning step. By freezing the initial layers (which capture general features) and updating only the final layers using rare samples, the model undergoes a form of "domain adaptation" specifically for the extreme regime.

Experimental Evaluation

The researchers evaluated ReFine across four diverse real-world datasets where extremes were defined as values exceeding the 95th percentile:

  • Beijing PM2.5: Air pollution forecasting.
  • Jena Climate: Saturation vapor pressure prediction.
  • Spain Electricity: Electricity price and load forecasting.
  • Florida Water: River water level prediction.

Key Results and Insights

ReFine demonstrated significant improvements over state-of-the-art baselines like Autoformer and Informer:

  • Quantitative Gains: The meta-learning reweighting component improved Mean Absolute Error (MAE) by 6.6% to 18.6% across the test datasets.
  • Heuristic vs. Automation: The automated meta-learning approach consistently outperformed traditional heuristic methods (such as Extreme Value Theory), proving that the model can discover more effective weighting schemes than human-designed rules.
  • Latent Space Separation: t-SNE visualizations revealed that ReFine helps the model's internal representations better distinguish between "normal" and "extreme" samples, simplifying the final prediction task.

Conclusion

ReFine offers a robust, automated solution for the critical task of extreme event prediction. By combining meta-learning for dynamic reweighting with targeted fine-tuning, it overcomes the limitations of traditional forecasting models. While the computational cost of nested optimization remains a consideration for future work, the framework's ability to generalize across diverse domains makes it a powerful tool for high-stakes time series applications.

Summary updated

BibTeX
@inproceedings{shi2024refine,
  author = {Jimeng Shi and Azam Shirali and Giri Narasimhan},
  title = {{ReFine: Boosting Time Series Prediction of Extreme Events by Reweighting and Fine-tuning}},
  booktitle = {IEEE Big Data},
  year = {2024},
  doi = {10.1109/bigdata62323.2024.10825920},
}
Figure