Introduction
Sentiment analysis within the financial sector presents unique challenges compared to general-purpose sentiment tasks. Financial texts, particularly those sourced from microblogging platforms like Twitter or StockTwits, are characterized by their brevity, informal language, and heavy use of domain-specific slang. In such contexts, standard natural language processing models often fail to capture the nuanced sentiment because they lack the necessary background knowledge to ground informal signals in reality. This paper introduces a "Knowledge-enriched Two-layered Attention Network" designed to bridge this gap by integrating external knowledge bases into a deep learning framework.
Methodology
The core of the proposed approach is a hybrid architecture that combines the representational power of neural networks with the stability of traditional feature engineering. The system consists of three primary components:
1. The Two-Layered Attention Network
This neural component utilizes a Bidirectional Long Short-Term Memory (BiLSTM) network to encode sentences, capturing long-term dependencies from both preceding and succeeding contexts. The architecture features two distinct attention layers:
- Primary Attention (Word-Level): This layer enriches individual word embeddings with external knowledge. For each word, the model retrieves relevant terms from sources such as WordNet or a Distributional Thesaurus. An attention mechanism then weighs these external terms to create a "knowledge-aware" vector for the word.
- Secondary Attention (Sentence-Level): Once words are enriched, this layer identifies which specific words are most critical for determining the overall sentiment of the sentence.
2. Feature-Based Support Vector Regression (SVR)
To complement the neural network, the researchers extract hand-crafted features including TF-IDF scores and sentiment lexicon counts from established sources like Bing Liu and SentiWordNet. These features are used to train a Support Vector Regression model, providing a "rules-based" perspective on the data.
3. The Ensemble Model
Finally, a Multilayer Perceptron (MLP) acts as an ensemble layer, combining the outputs of the neural network and the SVR. This allows the system to leverage both the deep learning "intuition" and the explicit signals provided by feature engineering.
Experimental Results
The model was rigorously evaluated using the SemEval 2017 Task 5 dataset, which involves predicting continuous sentiment scores (ranging from -1 to +1) for financial microblogs and news headlines.
The results demonstrate that the proposed ensemble (E1) significantly outperforms previous state-of-the-art (SOTA) systems. On the Microblog track, the model achieved a cosine similarity score of 0.794, while on the News Headlines track, it reached 0.782. These figures represent a substantial improvement over the 2017 competition winners, with gains of 1.7 and 3.7 points respectively.
Discussion and Error Analysis
A key insight from the study is that the layered attention network alone (L3) often outperformed complex ensembles from previous years. This suggests that incorporating external knowledge to improve word representation is more effective than simply increasing model complexity.
However, the researchers identified two primary areas for improvement. First, the model occasionally struggles with intensifiers (e.g., "pure garbage"), failing to recognize how they amplify sentiment. Second, the model lacks deep financial logic; for instance, it may misinterpret a "good opportunity to buy" as positive even if the context implies a crashing stock price, which is a negative event for current holders. Future work will focus on integrating domain-specific ontologies and more complex financial reasoning to address these limitations.
Conclusion
By combining BiLSTMs with a hierarchical attention mechanism and external knowledge embeddings, this research provides a robust framework for financial sentiment analysis. The ability to ground noisy, informal text in structured knowledge allows the model to achieve new state-of-the-art performance levels on benchmark datasets.
Summary updated