DialogXL: All-in-One XLNet for Multi-Party Conversation Emotion Recognition

Weizhou Shen, Junqing Chen, Xiaojun Quan, Zhixian Xie
12/16/2020
cs.CLcs.AIcs.IR

Official code: shenwzh3/DialogXL (47 stars, Apache-2.0, last commit 2021-03-26).

Abstract

This paper presents our pioneering effort for emotion recognition in conversation (ERC) with pre-trained language models. Unlike regular documents, conversational utterances appear alternately from different parties and are usually organized as hierarchical structures in previous work. Such structures are not conducive to the application of pre-trained language models such as XLNet. To address this issue, we propose an all-in-one XLNet model, namely DialogXL, with enhanced memory to store longer historical context and dialog-aware self-attention to deal with the multi-party structures. Specifically, we first modify the recurrence mechanism of XLNet from segment-level to utterance-level in order to better model the conversational data. Second, we introduce dialog-aware self-attention in replacement of the vanilla self-attention in XLNet to capture useful intra- and inter-speaker dependencies. Extensive experiments are conducted on four ERC benchmarks with mainstream models presented for comparison. The experimental results show that the proposed model outperforms the baselines on all the datasets. Several other experiments such as ablation study and error analysis are also conducted and the results confirm the role of the critical modules of DialogXL.

View on arXivView PDF

Code Implementations(1)

shenwzh3/DialogXLOfficial100%
Apache-2.0

The PyTorch implementaion for AAAI-2021 accepted paper DialogXL: All-in-One XLNet for Multi-Party Conversation Emotion Recognition.

4712PythonDec 8, 20205 years agoApache-2.0

Similar Papers

Cite this paper

@article{shen2020dialogxl,
  title  = {DialogXL: All-in-One XLNet for Multi-Party Conversation Emotion Recognition},
  author = {Weizhou Shen and Junqing Chen and Xiaojun Quan and Zhixian Xie},
  year   = {2020},
  eprint = {2012.08695},
  archivePrefix = {arXiv},
  url    = {https://arxiv.org/abs/2012.08695}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2012.08695.svg)](https://codeofpaper.com/paper/2012.08695)

Discussion