Extreme Adaptive Transformer for Time Series Forecasting
2026-07-02 • Machine Learning
Machine Learning
AI summaryⓘ
The authors focus on improving time series forecasting when rare extreme events, like floods, happen. They created a new model called Exformer that uses a special attention method to pay extra attention to these rare extreme events while also considering normal patterns. This helps the model better predict important but unusual spikes in streamflow data. Testing on real hydrologic datasets showed that Exformer forecasts three days ahead more accurately than current state-of-the-art models.
time series forecastingTransformer modelextreme eventsattention mechanismstreamflowhydrologic forecastingtemporal dependenciessparse componentsflood monitoring
Authors
Sanjeev Shrestha, Hui Liu, Yifan Zhang
Abstract
Time series forecasting remains challenging when the underlying data contain rare but critical extreme events. This issue is particularly important in hydrologic forecasting, where streamflow distributions are often highly skewed and extreme peaks can have substantial impacts on flood monitoring, water resource management, and early warning systems. Although Transformer-based forecasting models have achieved strong performance by modeling long-range temporal dependencies, they typically treat all time points uniformly and may therefore underrepresent rare extreme patterns. In this paper, we propose the Extreme-Adaptive Transformer (Exformer), a forecasting framework designed to explicitly model temporal dependencies involving both normal and extreme events. Exformer introduces an extreme-adaptive attention mechanism composed of three sparse components: Local, Stride, and Extreme. The Local and Stride components capture short-term and periodic temporal dependencies, respectively, while the Extreme component selectively models event-aware dependencies between normal and extreme streamflow patterns. Experiments on four real-world hydrologic streamflow datasets show that Exformer achieves superior 3-day forecasting performance compared with state-of-the-art baselines. Our findings demonstrate that explicitly incorporating extreme-aware attention improves the forecasting capacity of Transformer models on imbalanced time series with rare but consequential events.