[Paper Review] Stock Movement Prediction with Financial News using Contextualized Embedding from BERT
This paper proposes a Fine-Tuned Contextualized-Embedding Recurrent Neural Network (FT-CE-RNN) that leverages BERT fine-tuned on financial news to generate domain-specific contextualized embeddings for predicting short-term stock movements from headlines. The model achieves state-of-the-art performance, significantly outperforming baseline models in both accuracy and simulated trading strategies using Bloomberg News data.
News events can greatly influence equity markets. In this paper, we are interested in predicting the short-term movement of stock prices after financial news events using only the headlines of the news. To achieve this goal, we introduce a new text mining method called Fine-Tuned Contextualized-Embedding Recurrent Neural Network (FT-CE-RNN). Compared with previous approaches which use static vector representations of the news (static embedding), our model uses contextualized vector representations of the headlines (contextualized embeddings) generated from Bidirectional Encoder Representations from Transformers (BERT). Our model obtains the state-of-the-art result on this stock movement prediction task. It shows significant improvement compared with other baseline models, in both accuracy and trading simulations. Through various trading simulations based on millions of headlines from Bloomberg News, we demonstrate the ability of this model in real scenarios.
Motivation & Objective
- To improve stock movement prediction from financial news headlines by replacing static word embeddings with contextualized representations.
- To enhance model performance by fine-tuning BERT on financial news data to incorporate domain-specific knowledge.
- To develop evaluation metrics focused on market-moving news, reflecting real-world investor decision-making.
- To demonstrate the superiority of contextualized embeddings over static embeddings in predicting directional stock price changes.
- To validate the model’s predictive power through extensive trading simulations on real-world news data.
Proposed method
- Fine-tune the BERT language model on a large corpus of financial news headlines to adapt its contextualized embeddings to the financial domain.
- Extract contextualized embeddings from the final layer of the fine-tuned BERT model, which encode both semantic meaning and context-specific word representations.
- Feed the contextualized embeddings into a bidirectional Long Short-Term Memory (LSTM) network to model sequential dependencies in news headlines.
- Train the FT-CE-RNN model end-to-end using a binary cross-entropy loss function to classify headlines as positive or negative stock movement signals.
- Use a novel evaluation protocol that focuses on the top-performing news (e.g., top 1%, 5%) to better reflect real trading performance.
- Conduct ablation studies to compare performance across different BERT layers and classification schemes (2-class vs. 3-class).
Experimental results
Research questions
- RQ1Does using contextualized embeddings from fine-tuned BERT improve stock movement prediction accuracy compared to static embeddings?
- RQ2Can fine-tuning BERT on financial news enhance the model’s ability to detect market-moving news?
- RQ3How does the performance of the FT-CE-RNN model compare to baseline models in both accuracy and simulated trading returns?
- RQ4Does a 2-class classification (positive/negative) outperform a 3-class classification (positive/neutral/negative) in predicting stock movements?
- RQ5Which BERT layer provides the most effective contextualized embeddings for stock prediction tasks?
Key findings
- The FT-CE-RNN model achieves a test accuracy of 74.5% on the top 1% of market-moving news, significantly outperforming baseline models.
- The model demonstrates superior performance in simulated trading environments, indicating strong real-world predictive capability.
- Fine-tuning BERT on financial news leads to better contextualized embeddings that capture domain-specific nuances, improving prediction accuracy.
- Using the final layer (L) of BERT for embeddings yields the best performance, while lower layers (e.g., L-1, L-2) show degraded results due to insufficient context.
- A 3-class classification model underperforms the 2-class model, as the distinction between neutral and market-moving news is ambiguous and hard to learn.
- Qualitative analysis confirms that the model learns meaningful patterns, such as frequent positive terms like 'buy' and 'raise', and negative terms like 'downgrade' and 'miss'.
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.