TL;DR
This paper introduces the "p-RBM," a novel extension of Restricted Boltzmann Machines (RBMs) designed to handle sequential data by incorporating memory of past states. The p-RBM demonstrates promising results in predicting stock market directions, outperforming simpler models and offering a new approach for time-series analysis.
What Problem Does This Paper Address?
Traditional Restricted Boltzmann Machines (RBMs) are powerful generative models but struggle with sequential data because they lack inherent memory. This limitation makes them unsuitable for tasks like time-series analysis, where understanding past events is crucial for predicting future outcomes. The authors aim to bridge this gap by developing an RBM variant that can effectively capture temporal dependencies.
Methods
The core innovation is the p-RBM model, which extends the standard RBM by creating an ensemble of RBMs, each representing a different past time step. These RBMs are interconnected to model correlations across time. Key aspects of the method include:
- Memory of Past States: The p-RBM explicitly incorporates information from p previous time steps into its model. This is achieved by bundling visible and hidden units into block vectors that span across these past states.
- Modified Energy Function: The energy function is adapted to account for these past interactions, allowing the model to capture auto-correlation within a time series and correlations between multiple time series.
- Training with Contrastive Divergence (CDk): The paper adapts the contrastive divergence training method to the p-RBM. This involves sampling from the model to approximate expectations needed for parameter updates, with a focus on handling the block structure of the parameters.
- Hyperparameter
A: A new hyperparameter, matrixA, is introduced to control the "forgetting rate" or the influence of past states, allowing for flexible topology and prioritization of recent connections.
Datasets
- NASDAQ-100 Index Stocks: The model was trained and evaluated on data from 100 stocks of the NASDAQ-100 index.
- Data Source: Stock data was extracted from a web resource (specifically, Google Finance) with 5-minute intervals over a 20-day period (June 5, 2017, to June 25, 2017).
- Data Split: The dataset was split into an 80% training set and a 20% validation set.
Key Insights and Ideas
- RBMs for Time Series: The paper successfully demonstrates that by extending RBMs to incorporate memory, they can become a viable tool for modeling dynamic, sequential data, a domain where they were previously considered inappropriate.
- Flexible Temporal Modeling: The introduction of the
Amatrix provides a novel way to control the temporal influence within the model, allowing for easy testing and comparison of different temporal dependencies. - Stock Market Prediction Potential: The p-RBM shows promise in predicting stock market direction, suggesting its utility in financial forecasting and other time-series applications.
- Parallelization: The structure of the p-RBM, where each time step's block can be learned somewhat independently, lends itself well to parallelization, especially on GPUs.
Key Results
- Stock Market Direction Prediction: The p-RBM was applied to predict whether stock prices would rise or fall.
- Misclassification Rate: The p-RBM achieved a misclassification error rate of 0.4768 on the validation set.
- Trading Strategy Performance: A simple trading strategy based on the p-RBM's predictions on the validation set resulted in a win-to-loss ratio of 1.2472 and an 11% return.
- Comparison to Other Models:
- The p-RBM performed better than a Random Walk (RW) model (error 0.4883).
- It was outperformed by 1-layer LSTM (error 0.4556) and 3-layer LSTM (error 0.4300) models.
- It also outperformed a VAR(1) model (error 0.4546).
- Training Dynamics: The negative log-likelihood decreased on both training and validation sets during training, indicating that the model was learning without significant overfitting.
Limitations and Future Work
- Prediction Error: The p-RBM showed larger prediction errors compared to LSTM models. The authors suggest this might be due to the sampling method used.
- Variance: The p-RBM exhibited higher variance compared to other methods, potentially related to the sampling strategy.
- Future Work:
- Combining the p-RBM with reinforcement learning for optimal trading strategy discovery.
- Exploring the hyperparameter matrix
Ato discover optimal model topologies. - Extending the model to handle continuous visible units, rather than just discrete ones.
Summary updated