Improving Multi-label Emotion Classification via Sentiment Classification with Dual Attention Transfer Network

Jianfei Yu, Luís Marujo, Jing Jiang, Pradeep Karuturi, William Brendel

Introduction

Identifying specific emotions like joy, anger, or optimism in short social media posts is a complex multi-label classification problem. Unlike binary sentiment analysis, a single tweet can simultaneously express multiple emotional states. While deep learning models have shown promise in this area, they typically require large amounts of annotated data. Unfortunately, high-quality emotion datasets are often small and expensive to produce due to the subjective nature of human labeling.

To address this data scarcity, researchers have turned to transfer learning from sentiment classification—a related but "coarser" task with significantly more available data. However, standard transfer learning often struggles to distinguish between general sentiment-bearing words (e.g., "good," "bad") and specific emotion-signaling words (e.g., "fearless," "shitty"). This paper introduces the Dual Attention Transfer Network (DATN), designed to explicitly separate these features and improve emotion classification performance.

The Dual Attention Transfer Network (DATN)

The core of the DATN architecture is a Shared-Private (SP) framework enhanced by a novel dual-attention mechanism. The goal is to leverage a large source sentiment dataset to improve performance on a smaller target emotion dataset.

Comparison of transfer learning architectures: Fully-Shared (FS), Private-Shared-Private (PSP), Shared-Private (SP), and the proposed Dual Attention Transfer Network (DATN).

Architectural Components

  1. Shared and Private Encoders: The model employs two Bi-LSTM encoders. The "shared" encoder is trained on both sentiment and emotion tasks to capture general sentiment features. The "private" encoder is dedicated solely to the emotion task, focusing on task-specific nuances that the shared layer might overlook.
  2. Dual Attention Mechanism: This is the primary innovation of the paper. In typical attention-based models, weights are calculated independently for each layer. In DATN, the attention weights from the shared layer ($\alpha^s$) are used as additional inputs when calculating the weights for the private emotion layer ($\alpha^p$). This dependency allows the private layer to "know" what the shared layer is already focusing on.
  3. Orthogonality Constraint: To prevent the shared and private layers from learning redundant information, the authors incorporate a similarity loss (based on cosine similarity) into the objective function. This explicitly penalizes the model if the two attention mechanisms focus on the same set of words, forcing the private layer to seek out unique emotional signals.

Experimental Evaluation

The researchers evaluated DATN on both English and Chinese social media benchmarks:

  • English: Sentiment data from SemEval-2016 Task 4A was used as the source, while SemEval-2018 Task 1C (containing 11 emotion labels) served as the target.
  • Chinese: The Ren-CECps blog dataset, featuring 8 emotion labels, was used. Due to the lack of a large-scale domain-matched sentiment dataset, the original dataset was split into source (sentiment) and target (emotion) tasks.

The training process utilized an alternating optimization strategy, where the model switched between mini-batches of sentiment and emotion data to balance the learning process across both tasks.

Key Insights and Results

The DATN model demonstrated several key advantages over traditional transfer learning approaches:

  • Foundation in Sentiment: By treating sentiment as a foundational layer, the model develops a robust understanding of valence before attempting to distinguish between finer-grained emotional categories.
  • Capturing Emotional Nuance: Qualitative analysis revealed that standard models often focus on high-frequency sentiment words. DATN, through its dual attention and orthogonality constraints, successfully identifies rarer signals, such as specific emojis or adjectives, that define distinct emotions. For instance, DATN was able to correctly identify the "love" emotion in posts where the base model only detected general positivity.
  • State-of-the-Art Performance: On the SemEval-2018 English dataset, an ensemble version of the model (DATN-2) achieved an accuracy of 0.597*, outperforming the top-ranked system in the original competition (0.595). The model consistently showed significant improvements in both Accuracy and Macro F1 scores across both languages.
  • Ablation Success: Results confirmed that the "Dual" component of the attention mechanism was vital. Simpler Shared-Private (SP) models without the attention constraints often failed to outperform basic transfer learning methods.

Conclusion

The Dual Attention Transfer Network provides a robust framework for multi-label emotion classification by effectively transferring knowledge from sentiment analysis. By forcing the model to differentiate between general sentiment and specific emotional features through dual attention and similarity penalties, DATN achieves state-of-the-art results. Future work may explore multi-source transfer learning, incorporating datasets for sarcasm or intensity to further refine the model's emotional intelligence.

Summary updated

BibTeX
@inproceedings{yu2018improving,
  author = {Jianfei Yu and Luís Marujo and Jing Jiang and Pradeep Karuturi and William Brendel},
  title = {{Improving Multi-label Emotion Classification via Sentiment Classification with Dual Attention Transfer Network}},
  booktitle = {Conference on Empirical Methods in Natural Language Processing},
  year = {2018},
  doi = {10.18653/v1/d18-1137},
}
Figure