Skip to main content
QUICK REVIEW

[Paper Review] An Affect-Rich Neural Conversational Model with Biased Attention and Weighted Cross-Entropy Loss

Peixiang Zhong, Di Wang|arXiv (Cornell University)|Nov 17, 2018
Mental Health via WritingPsychology10 citations
TL;DR

This paper proposes Affect-Rich Seq2Seq (AR-S2S), an end-to-end neural conversational model that generates responses rich in valence, arousal, and dominance (VAD) affective dimensions. It integrates VAD word embeddings, a biased attention mechanism to amplify the impact of negators and intensifiers, and a weighted cross-entropy loss to boost affect-rich word generation—achieving superior human preference in emotion quality and content over state-of-the-art baselines.

ABSTRACT

Affect conveys important implicit information in human communication. Having the capability to correctly express affect during human-machine conversations is one of the major milestones in artificial intelligence. In recent years, extensive research on open-domain neural conversational models has been conducted. However, embedding affect into such models is still under explored. In this paper, we propose an end-to-end affect-rich open-domain neural conversational model that produces responses not only appropriate in syntax and semantics, but also with rich affect. Our model extends the Seq2Seq model and adopts VAD (Valence, Arousal and Dominance) affective notations to embed each word with affects. In addition, our model considers the effect of negators and intensifiers via a novel affective attention mechanism, which biases attention towards affect-rich words in input sentences. Lastly, we train our model with an affect-incorporated objective function to encourage the generation of affect-rich words in the output responses. Evaluations based on both perplexity and human evaluations show that our model outperforms the state-of-the-art baseline model of comparable size in producing natural and affect-rich responses.

Motivation & Objective

  • To address the lack of affect-rich response generation in open-domain neural conversational models.
  • To model the influence of negators and intensifiers on affective meaning in input sentences.
  • To maintain linguistic fluency while encouraging the generation of emotionally expressive words in responses.
  • To develop a training objective that balances affective richness and grammatical correctness.
  • To evaluate the model’s performance in both automatic metrics and human preference studies.

Proposed method

  • The model extends the Seq2Seq architecture with a VAD-based word embedding layer, assigning each word a triplet of valence, arousal, and dominance scores from an external corpus.
  • A novel biased attention mechanism dynamically adjusts attention weights to prioritize affect-rich words, especially those influenced by negators and intensifiers.
  • The attention mechanism incorporates term importance functions (user, global, local) to weigh the impact of affective words based on context.
  • A weighted cross-entropy loss function is introduced, assigning higher loss weights to affect-rich words during training to encourage their generation.
  • The model is trained end-to-end using a combination of standard cross-entropy and affect-incorporated weighted cross-entropy objectives.
  • Hyperparameters such as affect embedding strength (λ), attention bias (γ), and loss weighting (δ) are tuned via sensitivity analysis.

Experimental results

Research questions

  • RQ1Can a neural conversational model generate responses that are both linguistically fluent and rich in affective content?
  • RQ2How can negators and intensifiers be effectively modeled to preserve the polarity and strength of emotional expressions?
  • RQ3Does incorporating affective knowledge into the embedding and attention mechanisms improve response quality compared to baseline models?
  • RQ4Can a weighted cross-entropy loss enhance the generation of affect-rich words without degrading fluency?
  • RQ5How do hyperparameters governing affective strength, attention bias, and loss weighting influence model performance?

Key findings

  • The AR-S2S model achieved a 25.0% relative improvement in content quality and an 88.5% relative improvement in emotion quality over the SOTA baseline in human preference tests.
  • Human evaluations showed a significant preference for AR-S2S over the baseline, with a Kappa score of 0.619/0.704 for content and emotion quality, respectively.
  • The model maintained or slightly improved perplexity despite the addition of affective objectives, suggesting no degradation in fluency.
  • Sensitivity analysis revealed that increasing the affective loss weight (δ) consistently increased the number of distinct affect-rich words in generated responses.
  • The number of distinct affect-rich words peaked at intermediate values of λ and γ, indicating an optimal balance between affective strength and decoding stability.
  • The model demonstrated robustness across a wide range of hyperparameter values, particularly under local importance weighting for attention.

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.