Disentangling Latent Emotions of Word Embeddings on Complex Emotional Narratives

Zhengxuan Wu, Yueyi Jiang

Abstract

Word embedding models such as GloVe are widely used in natural language processing (NLP) research to convert words into vectors. Here, we provide a preliminary guide to probe latent emotions in text through GloVe word vectors. First, we trained a neural network model to predict continuous emotion valence ratings by taking linguistic inputs from Stanford Emotional Narratives Dataset (SEND). After interpreting the weights in the model, we found that only a few dimensions of the word vectors contributed to expressing emotions in text, and words were clustered on the basis of their emotional polarities. Furthermore, we performed a linear transformation that projected high dimensional embedded vectors into an emotion space. Based on NRC Emotion Lexicon (EmoLex), we visualized the entanglement of emotions in the lexicon by using both projected and raw GloVe word vectors. We showed that, in the proposed emotion space, we were able to better disentangle emotions than using raw GloVe vectors alone. In addition, we found that the sum vectors of different pairs of emotion words successfully captured expressed human feelings in the EmoLex. We argue that through the proposed emotion space, arithmetic of emotions is preserved in the word vectors.

Introduction

While word embedding models like GloVe and Word2Vec are staples of Natural Language Processing (NLP), they are often treated as "black boxes." While they capture semantic relationships (e.g., King - Man + Woman = Queen), their internal representation of human emotion remains "entangled." In standard embeddings, words with similar emotional polarities are often scattered across hundreds of dimensions, making it difficult for models to interpret the underlying sentiment. This research seeks to disentangle these latent emotional signals, specifically within the context of complex, real-world narratives.

Methodology

The researchers isolated emotional semantics using a multi-step approach:

  1. Autoregressive Modeling: A linear model was trained to predict continuous emotional "valence" using 300-dimensional GloVe vectors from the Stanford Emotional Narratives Dataset (SEND). The model considered previous emotional states to predict current ones, reflecting the temporal nature of narratives.
  2. Dimension Scoring: A sensitivity analysis of the model's weights identified which GloVe dimensions contributed most to emotional expression.
  3. Emotion Space Projection: Using the learned weights, a linear transformation projected raw GloVe vectors into a specialized "emotion space."
  4. Validation: The model was validated using the NRC Emotion Lexicon (EmoLex) and tested for "emotional arithmetic" based on Plutchik’s Wheel of Emotions (e.g., Joy + Trust = Love).

Results and Discussion

Emotional Sparsity and Clustering

A key finding is that emotional information is sparse within word embeddings. Most GloVe dimensions are "non-expressive" regarding emotion. The researchers identified specific dimensions, most notably the 34th dimension, as critical for expressing valence. When words are plotted using only the top-scoring dimensions, clear clusters emerge based on emotional polarity.

Clustering of positive (red) and negative (blue) words along the most emotionally expressive dimensions (34 and 268).

Disentanglement and Arithmetic

In raw GloVe space, emotional arithmetic often fails; for instance, a vector for "Love" (Joy + Trust) showed low similarity (.10) to other "Love" words. However, once projected into the emotion space, the mathematical logic of human feelings emerged. The similarity score for "Love" arithmetic increased to .36, while similarity to its opposite, "Remorse," dropped to -.19.

Heatmaps comparing the raw and projected spaces demonstrate that the projection effectively "de-noised" the emotional signal, providing higher contrast between distinct emotion categories.

Comparison of emotion correlations in raw GloVe space (a) versus the projected emotion space (b), showing improved disentanglement.

The model achieved a Concordance Correlation Coefficient (CCC) of 0.35 on the test set. While below the human benchmark of ~0.47, it successfully captured the emotional trajectories of complex narratives.

Conclusion

This study provides a preliminary framework for "unmasking" emotional signals in standard embeddings. By projecting vectors into a specialized emotion space, the researchers demonstrated that emotional arithmetic holds true mathematically. Future work will explore non-linear transformations and more granular emotional labels to further refine machine understanding of human sentiment.

Summary updated

BibTeX
@inproceedings{wu2019disentangling,
  author = {Zhengxuan Wu and Yueyi Jiang},
  title = {{Disentangling Latent Emotions of Word Embeddings on Complex Emotional Narratives}},
  booktitle = {NLPCC},
  year = {2019},
  url = {https://openreview.net/forum?id=6yzzCO9crdn},
}
Figure