[论文解读] Utilizing BERT Intermediate Layers for Aspect Based Sentiment Analysis and Natural Language Inference
本论文表明,将中间层的 BERT CLS 表示与 LSTM 或注意力进行池化,相较于 vanilla BERT 可提升 ABSA 和 NLI 的性能,并且可以通过轻微调整推广到最先进的模型。
Aspect based sentiment analysis aims to identify the sentimental tendency towards a given aspect in text. Fine-tuning of pretrained BERT performs excellent on this task and achieves state-of-the-art performances. Existing BERT-based works only utilize the last output layer of BERT and ignore the semantic knowledge in the intermediate layers. This paper explores the potential of utilizing BERT intermediate layers to enhance the performance of fine-tuning of BERT. To the best of our knowledge, no existing work has been done on this research. To show the generality, we also apply this approach to a natural language inference task. Experimental results demonstrate the effectiveness and generality of the proposed approach.
研究动机与目标
- 激励在 ABSA 中利用 BERT 的中间层超越最终层来提升性能。
- 提出池化策略(LSTM-Pooling 和 Attention-Pooling)以融合多层 CLS 表示。
- 在多个数据集上展示改进的 ABSA 性能。
- 通过将该方法应用于大规模 NLI 任务(SNLI)以及一个最先进的模型(MT-DNN)来展示其通用性。
提出的方法
- 从所有 BERT 中间层提取 CLS 隐藏状态。
- 展示两种池化策略:LSTM-Pooling 通过对 CLS 状态的 LSTM 将层表示连接起来;Attention-Pooling 通过点积注意力对 CLS 状态计算加权和。
- 使用带有池化模块的 BERT 进行分类微调。
- 在 ABSA 数据集上与 vanilla BERT 及其他基于 BERT 的变体进行比较。
- 将相同的池化策略应用于 MT-DNN 以测试通用性。
- ABSA 实验使用 10 折交叉验证,SNLI 使用标准的开发/测试划分。
实验结果
研究问题
- RQ1通过池化引入中间层的 CLS 表现是否能在 ABSA 上超越标准的最终层微调?
- RQ2哪个池化策略(LSTM 与 Attention)在跨领域中产生更好的 ABSA 结果?
- RQ3该方法是否可推广到大规模 NLI 任务以及其他基于 BERT 的模型?
- RQ4在 ABSA 数据集上,与 post-trained BERT 变体相比,该方法的表现如何?
主要发现
- BERT-LSTM 和 BERT-Attention 在三组 ABSA 数据集(Laptop、Restaurant、Twitter)上均超过 vanilla BERT。
- pooling 策略在 Laptop 和 Restaurant 数据集上带来与 post-trained BERT 变体类似或更高的提升。
- 在 SNLI 上,BERT-Attention 与 BERT-LSTM 超越 vanilla BERT,且 MT-DNN 变体也因池化而受益,显示出通用性。
- 改进在各数据集间是一致的,池化方法对其他任务具有直接的可应用性。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。