[Paper Review] Few-shot Learning for Time-series Forecasting
This paper proposes a few-shot learning method for time-series forecasting that leverages a recurrent neural network with an attention mechanism to adapt to new target tasks using only a few support time-series samples. Trained on diverse source tasks, the model achieves state-of-the-art performance across 90 datasets without retraining, outperforming methods like LSTM-MAML and LSTM-DI by effectively retrieving relevant patterns from few-shot support sets.
Time-series forecasting is important for many applications. Forecasting models are usually trained using time-series data in a specific target task. However, sufficient data in the target task might be unavailable, which leads to performance degradation. In this paper, we propose a few-shot learning method that forecasts a future value of a time-series in a target task given a few time-series in the target task. Our model is trained using time-series data in multiple training tasks that are different from target tasks. Our model uses a few time-series to build a forecasting function based on a recurrent neural network with an attention mechanism. With the attention mechanism, we can retrieve useful patterns in a small number of time-series for the current situation. Our model is trained by minimizing an expected test error of forecasting next timestep values. We demonstrate the effectiveness of the proposed method using 90 time-series datasets.
Motivation & Objective
- To address the challenge of poor forecasting performance when sufficient target task data is unavailable.
- To enable few-shot adaptation in time-series forecasting without retraining the model for each new task.
- To develop a meta-learning framework that generalizes across diverse time-series dynamics using minimal support data.
- To improve forecasting accuracy by leveraging shared patterns across multiple source tasks through attention mechanisms.
- To demonstrate robustness and efficiency across a wide range of real-world time-series datasets.
Proposed method
- The model uses a bidirectional LSTM to encode representations of a few support time-series in the target task.
- A query time-series is processed by a separate LSTM to capture its own temporal dynamics.
- An attention mechanism computes context-aware weights over support representations to dynamically attend to relevant patterns for forecasting.
- The final prediction is generated by combining the query’s hidden state and the weighted support representations.
- The model is trained end-to-end by minimizing the expected test error of next-step forecasting across multiple source tasks.
- The architecture supports variable-length time-series and flexible support set sizes through the attention mechanism.
Experimental results
Research questions
- RQ1Can a meta-learning model forecast future time-series values in a new task using only a few examples from that task?
- RQ2How does the attention mechanism improve few-shot time-series forecasting compared to standard fine-tuning or meta-feature-based methods?
- RQ3Does the model generalize across diverse time-series dynamics (e.g., trends, cycles) without retraining?
- RQ4How does performance scale with the number of training tasks and support set size?
- RQ5Can the model outperform existing few-shot and zero-shot forecasting baselines on real-world datasets?
Key findings
- The proposed method achieved performance not statistically different from the best baseline in 62 out of 90 datasets, the highest among all compared methods.
- The model outperformed LSTM-MAML and LSTM-DI across all 90 datasets, with a mean root mean squared error (RMSE) of 0.285, compared to 0.312 and 0.387 respectively.
- Even with varying support set sizes, the proposed method maintained low error and showed consistent improvement as support size increased, outperforming LSTM-MAML in all settings.
- The model demonstrated robustness across diverse time-series types, including financial, energy, traffic, and sensor data, with consistent performance gains.
- Training and inference times were efficient, with the proposed method requiring 40,203 seconds for training and 15 seconds per test task, outperforming LSTM-MAML in both metrics.
- Visualizations confirmed that the model accurately captured diverse dynamics (e.g., trends, periodicity) in target time-series using only a few support examples.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.