Skip to main content
QUICK REVIEW

[Paper Review] Affect-LM: A Neural Language Model for Customizable Affective Text Generation

Sayan Ghosh, Mathieu Chollet|arXiv (Cornell University)|Apr 22, 2017
Topic ModelingComputer Science20 references22 citations
TL;DR

Affect-LM is a novel LSTM-based neural language model that generates emotionally colored conversational text by conditioning on affect categories and a customizable affect strength parameter β. It improves language modeling performance (average perplexity reduction of 1.94%) and generates grammatically correct, perceptually expressive sentences across five affect categories, as validated by crowd-sourced perception studies and affect-discriminative word embeddings.

ABSTRACT

Human verbal communication includes affective messages which are conveyed through use of emotionally colored words. There has been a lot of research in this direction but the problem of integrating state-of-the-art neural language models with affective information remains an area ripe for exploration. In this paper, we propose an extension to an LSTM (Long Short-Term Memory) language model for generating conversational text, conditioned on affect categories. Our proposed model, Affect-LM enables us to customize the degree of emotional content in generated sentences through an additional design parameter. Perception studies conducted using Amazon Mechanical Turk show that Affect-LM generates naturally looking emotional sentences without sacrificing grammatical correctness. Affect-LM also learns affect-discriminative word representations, and perplexity experiments show that additional affective information in conversational text can improve language model prediction.

Motivation & Objective

  • To develop a neural language model that generates emotionally expressive conversational text with customizable emotional intensity.
  • To investigate whether affective information from context words improves language model prediction performance.
  • To evaluate the perceptual quality of generated sentences in terms of emotional expressiveness and grammatical correctness.
  • To explore whether the model learns affect-discriminative word representations that reflect emotional semantics.

Proposed method

  • The model extends an LSTM language model with an additional affect category embedding vector et−1 derived from keyword spotting using the LIWC dictionary.
  • A customizable affect strength parameter β controls the intensity of emotional expression in generated text.
  • The model predicts the next word wt using a context hidden state ht and the affect category embedding et−1, with a shared output weight matrix V that captures affect-word correlations.
  • The model is trained on the Fisher conversational corpus and fine-tuned on DAIC, SEMAINE, and CMU-MOSI emotional speech corpora.
  • Affect categories are inferred automatically from emotionally colored words in the context using a LIWC-based keyword spotting system.
  • Word embeddings are visualized to assess affective clustering, with each word's embedding reflecting its emotional category.

Experimental results

Research questions

  • RQ1Can Affect-LM generate affective sentences for a target emotion with varying degrees of affect strength through a customizable model parameter β?
  • RQ2Are the generated sentences rated as emotionally expressive and grammatically correct in a crowd-sourced perception study?
  • RQ3Does automatic inference of affect category from context words improve language modeling performance, as measured by perplexity?
  • RQ4Do the learned word representations in Affect-LM reflect affective distinctions between emotional categories?

Key findings

  • Perception studies on Amazon Mechanical Turk confirmed that Affect-LM generates emotionally expressive sentences across five affect categories (happy, sad, angry, anxious, positive) with increasing β.
  • Grammatical correctness decreased with higher β values, but remained acceptable, with a significant drop only at β=3 for sad and anxious categories.
  • Affect-LM achieved an average perplexity reduction of 1.94% (from 73.98 to 72.54) on the Fisher corpus and 1.31% (from 60.05 to 59.26) on adapted corpora, indicating improved language modeling performance.
  • The model showed significant manipulation of affective valence and anxiety levels with β, as confirmed by Pillai’s Trace F(4,421)=6.44, p<.0001.
  • Word embeddings visualized in Figure 4 show clear clustering of positive emotions away from negative emotions (sad, angry, anxious), confirming affect-discriminative learning.
  • Larger perplexity improvements were observed in corpora with higher emotional word density (e.g., CMU-MOSI and SEMAINE), with reductions of 3.55 and 2.06 points respectively.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.