[论文解读] EmotionX-HSU: Adopting Pre-trained BERT for Emotion Classification
该论文提出 EmotionX-HSU,一种基于微调 BERT 的情绪分类模型,用于社交媒体对话中的情绪识别,利用预训练上下文嵌入和通过回译进行数据增强。该方法在 Friends 数据集上取得 79.1% 的 micro-F1 分数,在 EmotionPush 数据集上取得 86.2% 的 micro-F1 分数,在 11 份提交中排名第三。
This paper describes our approach to the EmotionX-2019, the shared task of SocialNLP 2019. To detect emotion for each utterance of two datasets from the TV show Friends and Facebook chat log EmotionPush, we propose two-step deep learning based methodology: (i) encode each of the utterance into a sequence of vectors that represent its meaning; and (ii) use a simply softmax classifier to predict one of the emotions amongst four candidates that an utterance may carry. Notice that the source of labeled utterances is not rich, we utilise a well-trained model, known as BERT, to transfer part of the knowledge learned from a large amount of corpus to our model. We then focus on fine-tuning our model until it well fits to the in-domain data. The performance of the proposed model is evaluated by micro-F1 scores, i.e., 79.1% and 86.2% for the testsets of Friends and EmotionPush, respectively. Our model ranks 3rd among 11 submissions.
研究动机与目标
- 通过使用预训练语言模型提升低资源社交媒体文本中的情绪分类性能。
- 解决情绪数据集中类别不平衡问题,特别是针对愤怒等代表性不足的情绪。
- 通过引入回译生成的数据提升模型泛化能力,同时保持标签平衡。
- 评估在领域内对话数据上对 BERT 进行微调时,仅进行最少超参数调整的有效性。
提出的方法
- 在情绪分类任务上微调 BERT-base(一个拥有 12 层、1.1 亿参数的 Transformer 模型),方法是在 [CLS] token 表征之上添加一个 softmax 分类器。
- 将 [CLS] token 的最终隐藏状态用作句子级别的表征以进行分类。
- 在预训练期间应用掩码语言建模,并使用交叉熵损失在领域内数据上微调整个模型。
- 通过回译实现数据增强:将英文话语翻译成法语、德语和意大利语,再翻译回英文,以生成合成训练样本。
- 通过仅包含喜悦、悲伤和愤怒的增强数据来平衡训练集,同时丢弃额外的中性样本,以防止类别偏移。
- 通过截断将输入序列限制在 128 个 token 以内,为 [CLS] 和 [SEP] 预留两个 token,并使用 WordPiece 分词法结合小写规范化。
实验结果
研究问题
- RQ1预训练的 BERT 模型能否有效将知识迁移至社交媒体对话中的低资源情绪分类任务?
- RQ2通过回译进行的数据增强对在类别不平衡情绪数据集上的模型性能有何影响?
- RQ3哪些超参数设置(学习率、批量大小、训练轮数)能为 BERT 情绪分类微调带来最优性能?
- RQ4尽管 Friends 数据集在语言使用上更为复杂,为何模型在 EmotionPush 上的表现优于 Friends?
- RQ5类别不平衡在多大程度上影响模型性能,特别是对低资源情绪(如愤怒)的影响?
主要发现
- 所提出的 EmotionX-HSU 模型在 Friends 测试集上取得 79.1% 的 micro-F1 分数,在 EmotionPush 测试集上取得 86.2% 的 micro-F1 分数,在 11 份提交中排名第三。
- 使用较小的初始学习率(2e-5)、批量大小为 24,仅训练 4 个周期,即可实现稳定收敛和优异性能。
- 在 Friends 数据集中,喜悦的精确率显著高于中性情绪(85.4% vs 80.1%),表明标签分布可能存在偏差或上下文敏感性。
- 愤怒情绪分类的性能依然较弱,Friends 数据集上 micro-F1 仅为 65.0%,EmotionPush 数据集上仅为 39.1%,凸显了低资源类别带来的挑战。
- 通过回译进行的数据增强提升了模型鲁棒性,尤其对代表性不足的情绪有益,但增益受限于数据本身的稀缺性。
- 模型性能与每类训练数据量密切相关,如表 2 所示,召回率与标签分布高度一致。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。