arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.18930cs.CL
收藏

利用监督对比学习为情感改造轻量级语言模型

Retrofitting Light-weight Language Models for Emotions using Supervised Contrastive Learning

TCS Research, Tata Consultancy Services(塔塔咨询服务公司研究院);Indian Institute of Technology Bombay(印度理工学院孟买分校)

Sapan Shah, Sreedhar Reddy, Pushpak Bhattacharyya

AI总结:

本文提出基于监督对比学习的改造方法,将情感信息注入BERT和RoBERTa,得到BERTEmo和RoBERTaEmo,在情感分析、讽刺检测及少样本学习中均优于原始预训练模型。

摘要:

我们提出了一种新颖的改造方法,将情感方面引入预训练语言模型(PLMs),如BERT和RoBERTa。我们的方法使用对比学习更新预训练网络权重,使得表现出相似情感的文本片段在表示空间中被编码得更近,而具有不同情感内容的片段则被推开。同时,该方法还确保PLMs中已有的语言知识不会被无意扰动。通过我们的方法改造的语言模型,即BERTEmo和RoBERTaEmo,能够产生情感感知的文本表示,并通过不同的聚类和检索指标进行了评估。在情感分析和讽刺检测的下游任务中,它们比预训练的对应模型表现更好(F1分数提高约1%),也优于其他现有方法。此外,在少样本学习设置中,改造后的模型相比预训练模型表现出更显著的性能提升。

英文摘要:

We present a novel retrofitting method to induce emotion aspects into pre-trained language models (PLMs) such as BERT and RoBERTa. Our method updates pre-trained network weights using contrastive learning so that the text fragments exhibiting similar emotions are encoded nearby in the representation space, and the fragments with different emotion content are pushed apart. While doing so, it also ensures that the linguistic knowledge already present in PLMs is not inadvertently perturbed. The language models retrofitted by our method, i.e., BERTEmo and RoBERTaEmo, produce emotion-aware text representations, as evaluated through different clustering and retrieval metrics. For the downstream tasks on sentiment analysis and sarcasm detection, they perform better than their pre-trained counterparts (about 1% improvement in F1-score) and other existing approaches. Additionally, a more significant boost in performance is observed for the retrofitted models over pre-trained ones in few-shot learning setting.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑