Introduction
-
A new task is defined: emotion generation task of dialogue systems.
-
Three main factors in modeling the emotional state of a dialogue system are summarized from a temporal perspective: personality, sentiment, and emotion.
-
Proposed a personality enhanced emotion generation model for emotion generation task.
-
Experimental shows that PEEGM can properly and reasonably achieve emotional state generation in dialogue.
Related Work
Personality, Sentiment, and Emotion
Theoretical Models of Personality
Factor | Symbol | Description |
---|---|---|
Openness | O | Extroverted and lively |
Conscientiousness | C | Reliable and self-disciplined |
Extraversion | E | Creativity, wisdom |
Agreeableness | A | Gentle and tolerant |
Neuroticism | N | Anxiety and impulsivity |
Integrating Personality Emotion Modeling in Dialogue Systems
Methods
-
Sentiment is a part of the cognitive attitude, and its emotional tendency (positive, negative, or neutral) will largely influence the emotional state of the future moment. But this emotional impact is relatively volatile. Therefore, we treat sentiment as a medium-term factor in dialogue.
-
Emotion is short-lived, and there will be different emotional states at each moment in the dialogue, and there is a temporal relationship between these states, that is, emotions at future moments are affected by emotional states at previous moments. Therefore, we view emotions as short-term factors. Therefore, the method design of this paper revolves around these three points.
Task Formulation
Personality Enhanced Emotion Generation Model
Emotional State Inference Unit
Emotion Forgetting Mechanism
Emotion Regulation Mechanism
Training
Experiments
Dataset
Dataset | Item | None | Joy | Surprise | Fear | Anger | Disgust | Sad |
---|---|---|---|---|---|---|---|---|
PELD | Trn+Val | 7811 | 3189 | 1710 | 1215 | 2099 | 344 | 1209 |
Tes | 890 | 344 | 179 | 131 | 241 | 32 | 136 | |
R-PELD | Trn+Val | 6811 | 2463 | 1207 | 1005 | 1901 | 265 | 996 |
Tes | 777 | 259 | 129 | 96 | 175 | 14 | 91 |
Baselines
-
LSTM is a popular model for time series analysis, particularly for handling long-range dependencies and addressing the vanishing gradient problem.
-
BiLSTM (BLSTM) is an improved version of LSTM that incorporates context information, resulting in modeling capabilities.
-
BiLSTM+ATT (BL+ATT) combines LSTM with the attention mechanism, which can effectively extract important information from context. It performs well in several natural language processing tasks.
-
GRU is a simplified and more efficient variant of LSTM that finds extensive applications in natural language processing (NLP).
-
Transformer (TRANS) is a time series modeling model based on the attention mechanism. Due to its strong time series modeling abilities, it is widely used across various domains.
-
IDS-EC is an interactive double-state emotional cell used for text emotion prediction. It is an improvement in the LSTM model.
-
PET is a text emotion prediction model which takes personality traits into account. It models and predicts both personality and emotions in the VAD (valence-arousal-dominance) space.
Evaluation Metrics
Automatic Evaluation
Manual Evaluation
Surprise | Anger | Joy | Fear | Sadness | None | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Method | P | F1 | R | P | F1 | R | P | F1 | R | P | F1 | R | P | F1 | R | P | F1 | R |
LSTM | 0.404 | 0.417 | 0.432 | 0.437 | 0.419 | 0.404 | 0.503 | 0.449 | 0.406 | 0.355 | 0.351 | 0.348 | 0.256 | 0.255 | 0.255 | 0.493 | 0.493 | 0.494 |
BLSTM | 0.401 | 0.389 | 0.378 | 0.396 | 0.409 | 0.423 | 0.464 | 0.426 | 0.395 | 0.332 | 0.342 | 0.354 | 0.257 | 0.256 | 0.256 | 0.456 | 0.457 | 0.459 |
BL+ATT | 0.399 | 0.392 | 0.387 | 0.353 | 0.365 | 0.379 | 0.456 | 0.421 | 0.391 | 0.256 | 0.275 | 0.299 | 0.232 | 0.215 | 0.201 | 0.398 | 0.405 | 0.412 |
GRU | 0.445 | 0.423 | 0.404 | 0.405 | 0.418 | 0.432 | 0.478 | 0.436 | 0.401 | 0.305 | 0.328 | 0.356 | 0.255 | 0.251 | 0.249 | 0.477 | 0.478 | 0.481 |
TRANS | 0.451 | 0.430 | 0.411 | 0.437 | 0.441 | 0.446 | 0.499 | 0.487 | 0.477 | 0.361 | 0.368 | 0.377 | 0.243 | 0.239 | 0.236 | 0.461 | 0.468 | 0.476 |
IDS-EC | 0.450 | 0.445 | 0.441 | 0.442 | 0.442 | 0.444 | 0.511 | 0.492 | 0.476 | 0.376 | 0.378 | 0.381 | 0.264 | 0.275 | 0.289 | 0.495 | 0.497 | 0.499 |
PET | 0.457 | 0.454 | 0.453 | 0.452 | 0.453 | 0.455 | 0.515 | 0.497 | 0.481 | 0.396 | 0.389 | 0.383 | 0.277 | 0.284 | 0.293 | 0.505 | 0.503 | 0.503 |
PEEGM | 0.458 | 0.453 | 0.449 | 0.476 | 0.465 | 0.455 | 0.513 | 0.501 | 0.489 | 0.411 | 0.397 | 0.384 | 0.296 | 0.299 | 0.304 | 0.516 | 0.514 | 0.512 |
Positive | Neutral | Negative | |||||||
---|---|---|---|---|---|---|---|---|---|
Method | P | F1 | R | P | F1 | R | P | F1 | R |
LSTM | 0.634 | 0.619 | 0.606 | 0.687 | 0.681 | 0.674 | 0.601 | 0.593 | 0.586 |
BLSTM | 0.611 | 0.606 | 0.603 | 0.696 | 0.684 | 0.673 | 0.594 | 0.594 | 0.595 |
BL+ATT | 0.599 | 0.592 | 0.587 | 0.653 | 0.644 | 0.634 | 0.556 | 0.574 | 0.544 |
GRU | 0.645 | 0.623 | 0.604 | 0.685 | 0.673 | 0.662 | 0.578 | 0.574 | 0.571 |
TRANS | 0.672 | 0.652 | 0.635 | 0.706 | 0.698 | 0.691 | 0.603 | 0.599 | 0.597 |
IDS-EC | 0.677 | 0.672 | 0.669 | 0.682 | 0.691 | 0.701 | 0.604 | 0.605 | 0.606 |
PET | 0.684 | 0.680 | 0.678 | 0.716 | 0.731 | 0.747 | 0.611 | 0.611 | 0.612 |
PEEGM | 0.694 | 0.684 | 0.676 | 0.736 | 0.745 | 0.755 | 0.623 | 0.645 | 0.669 |
Method | A-S | M-S | |
---|---|---|---|
LSTM | W/o P | 0.290 | 0.132 |
BLSTM | 0.276 | 0.141 | |
BL+ATT | 0.185 | 0.109 | |
GRU | 0.255 | 0.094 | |
TRANS | 0.330 | 0.177 | |
IDS-EC | 0.357 | 0.165 | |
PET | P | 0.377 | 0.473 |
PEEGM | 0.389 | 0.471 |
Implementation Details
Discussion
Comparative Experiments
Method | Emotion-level | Sentiment-level | Manual |
---|---|---|---|
LSTM | 0.067 | 0.004 | 0.066 |
BLSTM | 0.010 | 0.003 | 0.053 |
BL+ATT | 0.001 | 0.000 | 0.036 |
GRU | 0.035 | 0.002 | 0.052 |
TRANS | 0.118 | 0.146 | 0.089 |
IDS-EC | 0.263 | 0.033 | 0.123 |
PET | 0.379 | 0.231 | 0.472 |
PEEGM | 0.5 | 0.5 | 0.5 |
Surprise | Anger | Joy | Fear | Sadness | None | |||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Method | P | F1 | R | P | F1 | R | P | F1 | R | P | F1 | R | P | F1 | R | P | F1 | R |
PEEGM | 0.458 | 0.453 | 0.449 | 0.476 | 0.465 | 0.455 | 0.513 | 0.501 | 0.489 | 0.411 | 0.397 | 0.384 | 0.296 | 0.299 | 0.304 | 0.516 | 0.514 | 0.512 |
W/o FM | 0.457 | 0.458 | 0.444 | 0.478 | 0.443 | 0.459 | 0.525 | 0.533 | 0.487 | 0.435 | 0.398 | 0.386 | 0.293 | 0.316 | 0.305 | 0.522 | 0.517 | 0.515 |
W/o P | 0.404 | 0.423 | 0.442 | 0.448 | 0.417 | 0.402 | 0.498 | 0.503 | 0.465 | 0.369 | 0.366 | 0.351 | 0.221 | 0.271 | 0.245 | 0.406 | 0.433 | 0.464 |
W/o RM | 0.409 | 0.432 | 0.435 | 0.456 | 0.433 | 0.421 | 0.502 | 0.523 | 0.477 | 0.378 | 0.365 | 0.377 | 0.254 | 0.297 | 0.276 | 0.473 | 0.482 | 0.499 |
Positive | Neutral | Negative | |||||||
---|---|---|---|---|---|---|---|---|---|
Method | P | F1 | R | P | F1 | R | P | F1 | R |
PEEGM | 0.694 | 0.684 | 0.676 | 0.736 | 0.745 | 0.755 | 0.623 | 0.645 | 0.669 |
W/o FM | 0.695 | 0.678 | 0.676 | 0.746 | 0.724 | 0.745 | 0.624 | 0.621 | 0.671 |
W/o P | 0.664 | 0.643 | 0.642 | 0.688 | 0.697 | 0.702 | 0.588 | 0.603 | 0.605 |
W/o RM | 0.679 | 0.662 | 0.653 | 0.706 | 0.693 | 0.721 | 0.602 | 0.613 | 0.647 |
Ablation Study
Post | Source | Personal | Generation | Target |
---|---|---|---|---|
Like you, I don’t even know where you work? | Surprise | Chandler | Surprise | Surprise |
Joey | Joy | Joy | ||
Monica | Surprise | Surprise | ||
Thank you! Enjoy your flight? | Joy | Chandler | Joy | Joy |
Joey | Joy | Joy | ||
Monica | None | None | ||
Hope you had a nice flight. | None | Chandler | None | None |
Joey | Joy | Joy | ||
Monica | Fear | Fear | ||
Will the stable boy never get the princess? | Sadness | Chandler | Sadness | Sadness |
Joey | Joy | Surprise | ||
Monica | None | None | ||
Yeah, but you’re making me look bad! | Anger | Chandler | Sadness | Fear |
Joey | Joy | Joy | ||
Monica | Anger | Anger | ||
Are you kidding? | Fear | Chandler | Fear | Fear |
Joey | None | None | ||
Monica | Anger | Sadness |