Curriculum Learning in Deep Neural Networks for Financial Forecasting

Allison Koenecke, Amita Gajewar

Abstract

For any financial organization, computing accurate quarterly forecasts for various products is one of the most critical operations. As the granularity at which forecasts are needed increases, traditional statistical time series models may not scale well. We apply deep neural networks in the forecasting domain by experimenting with techniques from Natural Language Processing (Encoder-Decoder LSTMs) and Computer Vision (Dilated CNNs), as well as incorporating transfer learning. A novel contribution of this paper is the application of curriculum learning to neural network models built for time series forecasting. We illustrate the performance of our models using Microsoft's revenue data corresponding to Enterprise, and Small, Medium & Corporate products, spanning approximately 60 regions across the globe for 8 different business segments, and totaling in the order of tens of billions of USD. We compare our models' performance to the ensemble model of traditional statistics and machine learning techniques currently used by Microsoft Finance. With this in-production model as a baseline, our experiments yield an approximately 30% improvement in overall accuracy on test data. We find that our curriculum learning LSTM-based model performs best, showing that it is reasonable to implement our proposed methods without overfitting on medium-sized data.

Introduction

Accurate quarterly revenue forecasting is essential for financial planning in large organizations. However, as businesses require more granular data—such as forecasting revenue for specific products within specific regions—traditional statistical models like ARIMA or ETS face significant challenges. These include data scarcity for new products, high noise levels in granular data, and the computational overhead of fitting thousands of individual models.

To address these issues, we explore the use of deep neural networks (DNNs), which can learn shared patterns across multiple time series. Specifically, we investigate Encoder-Decoder LSTMs and Dilated CNNs, enhanced by a novel application of curriculum learning to the forecasting domain.

Methodology

Model Architectures

We leverage two primary architectures:

  1. Encoder-Decoder LSTMs: Adapted from NLP, these models are well-suited for sequence-to-sequence tasks, capturing long-term dependencies in time series data.
  2. Dilated CNNs: Borrowed from computer vision and speech synthesis (e.g., WaveNet), these models use dilated convolutions to achieve a large receptive field with fewer parameters, effectively capturing multi-scale temporal patterns.

Curriculum Learning and Difficulty Metrics

The core of our approach is the "Baby Steps" curriculum learning algorithm. Instead of training on the entire dataset simultaneously, we introduce data in stages, starting with "easy" examples and gradually adding "harder" ones.

To quantify difficulty, we employ Seasonal-Trend decomposition (STL). Each time series is decomposed into trend, seasonal, and residual components. We define difficulty based on the residual error, which represents the portion of the signal that cannot be explained by simple patterns.

Seasonal-Trend decomposition (STL) of a time series. The residual component (bottom) is used to rank the difficulty of data rows for curriculum learning.

Training Process

The training set is partitioned into buckets based on their residual scores. The model initially trains on the bucket with the lowest residuals (the most predictable data). Once convergence is reached, the next bucket is added to the training set. This process continues until the model is training on the full dataset. This strategy helps the model learn fundamental patterns before being exposed to high-noise outliers.

Training and validation loss over time during curriculum learning. The steps in the loss curve correspond to the introduction of new, more difficult data buckets.

Experimental Results

We evaluated our models using 39 quarters of Microsoft internal revenue data, covering approximately 6,000 unique combinations of products, regions, and segments.

Our results demonstrate a significant performance gain over the production baseline—an ensemble of traditional statistical and machine learning models. The LSTM model with curriculum learning achieved a 30% revenue-weighted improvement in Mean Absolute Percentage Error (MAPE). Notably, the addition of curriculum learning alone improved the LSTM's MAPE by nearly 10 percentage points compared to standard training.

Furthermore, the DNN approach proved more efficient, generating forecasts for thousands of data rows in a fraction of the time required by the traditional ensemble.

Discussion and Conclusion

This research demonstrates that curriculum learning is highly effective for numerical time series forecasting. By using statistical residuals as a proxy for difficulty, we can guide DNNs to more robust solutions. Our findings also challenge the notion that "Big Data" is a prerequisite for deep learning; with appropriate pre-processing and training strategies, DNNs can outperform traditional methods even on medium-sized financial datasets.

Future work will explore automated tuning of curriculum parameters and the potential of ensembling models trained with different curriculum orders to further enhance forecasting reliability.

Summary updated

Abstract

For any financial organization, computing accurate quarterly forecasts for various products is one of the most critical operations. As the granularity at which forecasts are needed increases, traditional statistical time series models may not scale well. We apply deep neural networks in the forecasting domain by experimenting with techniques from Natural Language Processing (Encoder-Decoder LSTMs) and Computer Vision (Dilated CNNs), as well as incorporating transfer learning. A novel contribution of this paper is the application of curriculum learning to neural network models built for time series forecasting. We illustrate the performance of our models using Microsoft's revenue data corresponding to Enterprise, and Small, Medium & Corporate products, spanning approximately 60 regions across the globe for 8 different business segments, and totaling in the order of tens of billions of USD. We compare our models' performance to the ensemble model of traditional statistics and machine learning techniques currently used by Microsoft Finance. With this in-production model as a baseline, our experiments yield an approximately 30% improvement in overall accuracy on test data. We find that our curriculum learning LSTM-based model performs best, showing that it is reasonable to implement our proposed methods without overfitting on medium-sized data.
BibTeX
@inproceedings{koenecke2019curriculum,
  author = {Allison Koenecke and Amita Gajewar},
  title = {{Curriculum Learning in Deep Neural Networks for Financial Forecasting}},
  booktitle = {MIDAS@PKDD},
  year = {2019},
  url = {https://openreview.net/forum?id=4MxDeuhA18F},
}
Figure