Abstract
Predicting stock market movements is a complex task characterized by high noise and non-stationary data. While auxiliary information such as market indices and related stock prices can provide valuable context, simple concatenation often introduces more noise than signal. This paper introduces the Multi-Input LSTM (MI-LSTM), a novel architecture that utilizes a "mainstream" feature—the target stock's own historical price—to adaptively gate auxiliary information. By employing a dual-stage attention mechanism and a specific initialization strategy, the MI-LSTM effectively filters noise and prioritizes relevant signals. Experimental results on the CSI-300 index demonstrate a nearly 10% improvement in Mean Square Error (MSE) over standard LSTM models and superior performance in simulated portfolio returns.
Introduction
In quantitative finance, the "curse of dimensionality" often plagues predictive models. While researchers have access to vast amounts of data, including historical prices, social media sentiment, and macroeconomic indicators, feeding all available variables into a model can be counterproductive. Weakly correlated factors often introduce Gaussian noise that overwhelms the predictive signal, leading to poor generalization.
The challenge lies in extracting value from these "weak" auxiliary factors without letting their inherent randomness degrade model performance. Existing methods like Principal Component Analysis (PCA) or traditional feature selection treat all features as equal candidates. In contrast, Hao Li and colleagues from Shanghai Jiao Tong University propose treating the most reliable factor—the stock's own price history—as a "mainstream" guide to filter all other inputs.
The Multi-Input LSTM Architecture
The core innovation of this research is the Multi-Input LSTM (MI-LSTM). Unlike a standard LSTM that processes a single concatenated input vector, the MI-LSTM treats different data sources as distinct streams.
Mainstream Gating
In a typical LSTM, the input gate determines what information to store based on the current input and the previous hidden state. The MI-LSTM introduces "leaky" input gates for auxiliary factors—such as positively correlated stocks, negatively correlated stocks, and market indices—that are controlled by the "mainstream" factor (the target stock's own history). This mechanism allows the model to adaptively decide the relevance of external data based on the current state of the primary signal.
Dual-Stage Attention
The model incorporates two levels of attention:
- Feature Attention: Assigns weights to the four input streams (Self, Positive, Negative, Index) before they are merged into the memory cell.
- Temporal Attention: Identifies the most predictive historical moments across the input sequence to forecast the next day's opening price.
Initialization Strategy
To prevent auxiliary factors from introducing noise during the early stages of training, the weights for these factors are initialized to zero. This forces the model to initially rely on the high-confidence "mainstream" data and gradually learn to incorporate auxiliary signals only as they prove beneficial.
Experimental Setup
The researchers evaluated the MI-LSTM using data from the CSI-300 index, which represents the top 300 stocks on the Shanghai and Shenzhen stock exchanges.
- Dataset: 261 stocks with at least four years of history (April 2013 to May 2017).
- Samples: Approximately 249,516 samples generated using a 10-day sliding window.
- Feature Selection: Pearson Correlation Coefficients (PCC) were used to identify the top $P$ positively correlated and $N$ negatively correlated stocks for each target stock.
Results and Analysis
The "Mainstream" signal (the target stock's own history) showed a significantly higher correlation with future prices compared to auxiliary sources, justifying its use as a gating mechanism.
Performance Metrics
The MI-LSTM achieved a Minimum Mean Square Error (MSE) of 0.996, a 9.96% improvement over the standard LSTM's 1.017. It also outperformed the Dual-Stage Attention RNN (DA-RNN), which struggled with the high noise levels inherent in the multi-stock dataset.
Key Insights
- Filtering Noise: By treating the ~0.98 correlation signal as the primary controller of input gates, the model effectively filters out the noise from weaker signals (~0.35 correlation).
- Attention Weights: Visualization of attention weights showed that the "Mainstream" and "Market Index" factors consistently received the highest weights (converging to ~0.32 and ~0.29, respectively).
- The Failure of Concatenation: Experiments demonstrated that a standard LSTM performed worse when auxiliary features were added via simple concatenation, confirming that without intelligent gating, extra data acts primarily as noise.
Conclusion and Future Work
The MI-LSTM provides a robust framework for incorporating multi-source data into stock price prediction. By using a high-confidence signal to gate auxiliary information, the model achieves superior accuracy and profitability in simulated trading.
However, limitations remain. The current model uses static historical correlations to select auxiliary stocks, whereas market relationships are often non-stationary. Future research could explore dynamic correlation updates within the architecture. Additionally, while the model is theoretically scalable, the computational overhead of calculating cross-correlations for large universes of stocks presents a practical challenge for real-time applications.
Summary updated