Using Emotion Embeddings to Transfer Knowledge between Emotions, Languages, and Annotation Formats

Georgios Chochlakis, Gireesh Mahajan, Sabyasachee Baruah, Keith Burghardt, Kristina Lerman, Shrikanth Narayanan

TL;DR

Researchers have developed Demux, a transformer-based model that treats emotion labels as input tokens rather than fixed output heads. This architecture allows the model to perform "triple-threat" transfer learning: successfully identifying emotions across different languages, predicting unseen emotion types, and even adapting to entirely different annotation formats (like emotion clusters) in a zero-shot or few-shot manner.

What Problem Does This Paper Address?

Traditional emotion recognition models are often "brittle." If you train a model to detect six specific emotions in English, it typically cannot detect a seventh emotion, handle a different language, or adapt to a dataset where emotions are grouped into clusters (e.g., "Amusement-Sarcasm") without significant retraining.

This fragmentation creates a massive bottleneck. In the real world, emotional expression varies wildly across cultures and platforms (e.g., Twitter vs. formal dialogue). The authors address the need for a unified framework that can transition between these diverse configurations—languages, emotion sets, and annotation schemes—without starting from scratch every time.

Methods

The core of this research is an extension of Demux, a model architecture that changes how we think about classification.

  1. Labels as Inputs: Instead of having a fixed output layer with $N$ neurons for $N$ emotions, Demux appends the emotion names themselves to the input text (e.g., "[Text] + anger, joy, sadness?").
  2. Emotion Embeddings: The model generates contextualized embeddings for these emotion tokens. Because the model is built on top of multilingual transformers (like XLM-T), it leverages the semantic relationships between words. If the model knows what "joy" means in English, it can leverage that knowledge when it sees "joie" in French.
  3. Pooling for Clusters: To handle different annotation formats, the authors introduced a pooling mechanism. If a new dataset uses a cluster like "Positive-other," Demux aggregates the embeddings of all individual emotions that fall under that umbrella to make a prediction.
  4. Correlation-Aware Loss: The model uses a specialized "intra-group correlation loss." This encourages the model to recognize that certain emotions (like joy and optimism) often co-occur, while others (like joy and sadness) typically do not.

Datasets

The study utilizes two primary data sources:

  • SemEval 2018 Task 1 E-c: The gold standard for multilingual emotion detection, featuring tweets in English, Arabic, and Spanish annotated for 11 individual emotions.
  • French Election Dataset: A more complex, "real-world" dataset containing French tweets from the 2017 elections. Crucially, this dataset uses 10 emotion clusters (e.g., "Admiration-Love" or "Anger-Hate-Contempt-Disgust") rather than single labels, providing a rigorous test for annotation format transfer.

Key Insights and Ideas

  • Semantic Transfer is Real: By treating labels as words, the model "inherits" the knowledge embedded in the pre-trained transformer. It doesn't just learn that "Label 1" is active; it learns how the concept of "Anger" relates to the input text.
  • Zero-Shot "Unseen" Emotions: The model can predict emotions it was never explicitly trained on. For example, if trained on 10 emotions but tested on "Trust," it can use its general linguistic knowledge of what "trust" means to make an educated guess.
  • Twitter-Specific Pre-training Wins: Models pre-trained specifically on social media data (like XLM-T or BERTweet) significantly outperform general-purpose models (like vanilla BERT) in these tasks, likely because they better understand the informal, emoji-heavy nature of emotional expression online.
  • Flexibility over Rigidity: The ability to "pool" embeddings to match new annotation formats suggests that we don't need a new model for every new dataset; we just need a better way to map our existing embeddings to the new requirements.

Key Results

  • Multilingual Superiority: Multilingual models were found to be competitive with, and often superior to, monolingual baselines. For Spanish, the multilingual approach actually achieved the best overall Jaccard Score (JS).
  • Zero-Shot Language Transfer: When testing on a language the model had never seen during training (e.g., training on English/Spanish and testing on Arabic), the model maintained a competent level of recognition, though performance dropped by roughly 18-32% compared to supervised versions.
  • Annotation Format Success: In the jump from SemEval (English/Spanish/Arabic single labels) to the French Election data (French clusters), the XLM-T version of Demux achieved a Micro-F1 of 30.5 in a zero-shot setting—remarkably close to the 28.9 achieved by a model trained directly on the French data.

Limitations and Future Work

While the zero-shot results are promising, there is still a noticeable performance gap between zero-shot transfer and full supervision. The authors also noted that machine-translating data for training (a common shortcut) is not an ideal substitute for native multilingual training.

Future work could explore more complex "operations" on emotion embeddings beyond simple pooling and investigate how these models handle even more diverse text types beyond the "tweet" ecosystem.

Summary updated

BibTeX
@inproceedings{chochlakis2023using,
  author = {Georgios Chochlakis and Gireesh Mahajan and Sabyasachee Baruah and Keith Burghardt and Kristina Lerman and Shrikanth Narayanan},
  title = {{Using Emotion Embeddings to Transfer Knowledge between Emotions, Languages, and Annotation Formats}},
  booktitle = {IEEE International Conference on Acoustics, Speech and Signal Processing},
  year = {2023},
  url = {https://openreview.net/forum?id=9bjppaqjWi},
}
Figure