Fortia-FBK at SemEval-2017 Task 5: Bullish or Bearish? Inferring Sentiment towards Brands from Financial News Headlines

Youness Mansar, Lorenzo Gatti, Sira Ferradans, Marco Guerini, Jacopo StaianoarXiv 2017

TL;DR

This paper presents the winning solution for SemEval-2017 Task 5 (Subtask 2), which predicts financial sentiment towards specific brands in news headlines. By combining a 1D Convolutional Neural Network (CNN) with pre-trained GloVe embeddings, an enhanced token-based DepecheMood affective lexicon, and VADER sentiment scores, the system achieves state-of-the-art performance in mapping text to a continuous bullish-to-bearish scale.

What Problem Does This Paper Address?

In the financial domain, market movements are tightly coupled with public perception and news cycles. Sentiment analysis acts as a proxy for identifying "bullish" (positive, upward) or "bearish" (negative, downward) trends. However, standard sentiment analysis often falls short because a single headline can mention multiple entities with contrasting sentiments.

The authors address the challenge of targeted sentiment analysis: given a financial news headline and a specific target company, the goal is to infer a continuous polarity score ranging from -1 (very negative/bearish) to 1 (very positive/bullish).

Methods

The authors designed a hybrid architecture that blends deep learning with rule-based and lexicon-driven sentiment features.

  1. Preprocessing & Target Masking: To force the network to learn context rather than specific brand biases, the target company's name is replaced with a generic <company> token, and all numbers are replaced with <number>.
  2. Sentence Representation: For each word, the model concatenates a 300-dimensional pre-trained GloVe embedding with emotion dimensions from the DepecheMood affective lexicon. Because DepecheMood is natively lemma-based, the authors rebuilt a high-coverage, token-based version using a large corpus of 51.9K news articles.
  3. Network Architecture:
  4. A 1D CNN with multiple filter sizes (2, 3, and 4) processes the sequence of word representations to capture local context and translation-invariant features.
  5. Global Max-Pooling is applied to the filter outputs.
  6. The pooled CNN features are then concatenated with a sentence-level sentiment score generated by VADER, a traditional rule-based sentiment analyzer.
  7. This combined vector passes through fully-connected layers with dropout regularization, ending with a tanh activation function to bound the output between [-1, 1].
Figure 1: Network architecture

The network is optimized using a custom loss function based directly on cosine distance rather than standard mean squared error, matching the official evaluation metric of the competition. To minimize variance, the final output is an ensemble average of 10 identical networks trained with different random seeds.

Datasets

The model was trained and evaluated on the official SemEval-2017 Task 5, Subtask 2 dataset:

  • Source: Financial news headlines crawled from online outlets like Yahoo Finance.
  • Size: 1,142 training instances and 491 test instances.
  • Format: Each instance consists of a (headline, company) pair annotated with a continuous sentiment score in the range [-1, 1].

Key Insights and Ideas

  • The Power of Hybrid Inputs: Relying solely on neural networks can lead to overfitting on small datasets. Combining unsupervised word embeddings (GloVe) with dense affective lexica (DepecheMood) and deterministic rule-based systems (VADER) provides a strong regularizing effect and boosts generalization.
  • Tokenizing the Lexicon: Converting DepecheMood from a lemma-based format (lemma#pos) to a raw token-based format allowed direct concatenation with GloVe embeddings without losing performance, simplifying the pipeline significantly.
  • Direct Metric Optimization: Using cosine distance directly as the loss function ensured that the network optimized for the exact metric it was being graded on during the competition.

Key Results

The system ranked 1st place in the SemEval-2017 challenge. Ablation studies highlighted the critical importance of both the embeddings and the preprocessing steps:

Final test scores showing the impact of embeddings and preprocessing.
  • The Full System achieved a top score of 0.745 on the test set.
  • Removing the word representations (GloVe + DepecheMood) caused performance to drop sharply to 0.660, proving that pre-computed semantic and affective features are vital.
  • Omitting the basic preprocessing step (entity and number masking) dropped the score to 0.678, demonstrating that target anonymization prevents the model from memorizing entity-specific shortcuts.

Limitations and Future Work

The authors do not extensively detail limitations or future work in the paper. However, given the architecture, a clear limitation is its reliance on external tools like VADER and static lexica, which may not adapt well to rapidly evolving financial slang or emojis. Additionally, the dataset used is relatively small (under 2,000 samples); exploring how this architecture scales to massive, streaming financial feeds remains an open question.

Summary updated

BibTeX
@misc{mansar2017fortia,
  author = {Youness Mansar and Lorenzo Gatti and Sira Ferradans and Marco Guerini and Jacopo Staiano},
  title = {{Fortia-FBK at SemEval-2017 Task 5: Bullish or Bearish? Inferring Sentiment towards Brands from Financial News Headlines}},
  year = {2017},
  eprint = {1704.00939},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1704.00939},
}
Figure