Skip to main content
QUICK REVIEW

[论文解读] MoralBERT: A Fine-Tuned Language Model for Capturing Moral Values in Social Discussions

Vjosa Preniqi, Iacopo Ghinassi|arXiv (Cornell University)|Mar 12, 2024
Hate Speech and Cyberbullying DetectionComputer Science被引用 7
一句话总结

MoralBERT 是一个在 Twitter、Reddit 和 Facebook 数据上微调的 BERT 模型,对道德基础理论(Moral Foundations Theory)进行了标注;它在领域内道德价值预测方面表现强劲,领域外表现参差不齐,并且一个领域对抗变体在单标签设置中主要有帮助。

ABSTRACT

Moral values play a fundamental role in how we evaluate information, make decisions, and form judgements around important social issues. Controversial topics, including vaccination, abortion, racism, and sexual orientation, often elicit opinions and attitudes that are not solely based on evidence but rather reflect moral worldviews. Recent advances in Natural Language Processing (NLP) show that moral values can be gauged in human-generated textual content. Building on the Moral Foundations Theory (MFT), this paper introduces MoralBERT, a range of language representation models fine-tuned to capture moral sentiment in social discourse. We describe a framework for both aggregated and domain-adversarial training on multiple heterogeneous MFT human-annotated datasets sourced from Twitter (now X), Reddit, and Facebook that broaden textual content diversity in terms of social media audience interests, content presentation and style, and spreading patterns. We show that the proposed framework achieves an average F1 score that is between 11% and 32% higher than lexicon-based approaches, Word2Vec embeddings, and zero-shot classification with large language models such as GPT-4 for in-domain inference. Domain-adversarial training yields better out-of domain predictions than aggregate training while achieving comparable performance to zero-shot learning. Our approach contributes to annotation-free and effective morality learning, and provides useful insights towards a more comprehensive understanding of moral narratives in controversial social debates using NLP.

研究动机与目标

  • 激励分析社交媒体中的道德叙事并使用道德基础理论(MFT)量化文本中的道德价值。
  • 开发并比较一个基于 BERT 的模型(MoralBERT),在多样化、带注释的社交媒体数据上训练,以检测道德基础。
  • 评估单标签(道德价值存在与否)和多标签(多个价值)的领域内和领域外表现,包括一个领域对抗变体。
  • 与基于词典的和 Word2Vec+ML 基线进行基准比较,以评估微调语言表示带来的增益。

提出的方法

  • 在结合的 Twitter、Reddit、Facebook 数据上微调一个用于 MFT 类别的 BERT-base 序列分类器。
  • 尝试一个领域对抗扩展,学习领域不变表示并包含梯度反转层。
  • 将对领域不变投影的 L2 正则化和重建损失纳入,以保持接近原始 BERT embedding,并对损失权重进行超参数网格搜索。
  • 使用 King 和 Zeng (2001) 的加权损失来应对类别不平衡,并采用一对多(单标签)与多标签设置。
  • 文本预处理(删除 URL、@user 标注、表情映射为文本、非 ASCII 字符移除),最大序列长度设为 150;用 5 折交叉验证评估领域内,在领域外进行跨域测试。
  • 与基线 MoralStrength(基于词典)和使用 Word2Vec 嵌入的随机森林进行比较。
Figure 1: Moral label distribution from the MFTC data.
Figure 1: Moral label distribution from the MFTC data.

实验结果

研究问题

  • RQ1MoralBERT 是否能准确检测来自多种社交媒体平台文本中道德基础的存在与否?
  • RQ2领域对抗训练是否改善道德价值预测的跨领域泛化,并且是否对单标签与多标签设置有不同影响?
  • RQ3在道德维度(Care, Fairness, Loyalty, Authority, Purity)以及数据源(Twitter、Reddit、Facebook)之间,领域内和领域外的表现如何比较?

主要发现

  • MoralBERT(单标签)在领域内比基线提高大约 32% 的 F1。
  • MoralBERT(多标签)在领域内比基线提高大约 29% 的 F1。
  • 在领域外测试中,带领域对抗训练的单标签 MoralBERT 通常提升性能,而带对抗训练的多标签表现不如 MoralBERT。
  • 在所有三个领域中,领域对抗训练未能稳定提升多领域的领域内表现,但对领域外的单标签预测有益。
  • 单标签模型始终优于多标签模型,可能是由于道德维度之间的相互依赖和数据不平衡。
  • Care 与 Fairness 的学习比相对较少表示的值(如 Purity、Authority)在若干设置中更为可靠。
Figure 2: Moral label distribution from the MFRC data.
Figure 2: Moral label distribution from the MFRC data.

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。