[论文解读] Assessing Large Language Models for Online Extremism Research: Identification, Explanation, and New Knowledge
本研究评估了 BERT 和 GPT 模型在检测和分类在线国内极端主义内容方面的表现,采用包含极右翼和极左翼关键词的手动标注社交媒体帖子作为数据。在零样本分类任务中,GPT-4 和 GPT-3.5 表现优于 BERT,且性能对提示设计敏感——GPT-3.5 在极左翼极端主义内容检测方面表现更优,而 GPT-4 在极右翼极端主义内容检测方面表现更佳,凸显了通过优化提示设计,大型语言模型在自动化极端主义检测方面的潜力。
The United States has experienced a significant increase in violent extremism, prompting the need for automated tools to detect and limit the spread of extremist ideology online. This study evaluates the performance of Bidirectional Encoder Representations from Transformers (BERT) and Generative Pre-Trained Transformers (GPT) in detecting and classifying online domestic extremist posts. We collected social media posts containing "far-right" and "far-left" ideological keywords and manually labeled them as extremist or non-extremist. Extremist posts were further classified into one or more of five contributing elements of extremism based on a working definitional framework. The BERT model's performance was evaluated based on training data size and knowledge transfer between categories. We also compared the performance of GPT 3.5 and GPT 4 models using different prompts: naïve, layperson-definition, role-playing, and professional-definition. Results showed that the best performing GPT models outperformed the best performing BERT models, with more detailed prompts generally yielding better results. However, overly complex prompts may impair performance. Different versions of GPT have unique sensitives to what they consider extremist. GPT 3.5 performed better at classifying far-left extremist posts, while GPT 4 performed better at classifying far-right extremist posts. Large language models, represented by GPT models, hold significant potential for online extremism classification tasks, surpassing traditional BERT models in a zero-shot setting. Future research should explore human-computer interactions in optimizing GPT models for extremist detection and classification tasks to develop more efficient (e.g., quicker, less effort) and effective (e.g., fewer errors or mistakes) methods for identifying extremist content.
研究动机与目标
- 评估大型语言模型(LLMs)如 BERT 和 GPT 在识别在线国内极端主义内容方面的有效性。
- 评估不同提示工程策略(包括朴素提示、普通人定义、角色扮演和专业定义)对分类性能的影响。
- 考察训练数据规模和知识迁移对 BERT 在极端主义检测中表现的影响。
- 研究模型特异性敏感度,特别是 GPT-3.5 与 GPT-4 在极左翼与极右翼极端主义类别中的表现差异。
- 探索 LLM 在通过解释与分类生成关于极端主义话语新见解方面的潜力。
提出的方法
- 收集包含“极右翼”和“极左翼”意识形态关键词的社交媒体帖子用于分析。
- 手动标注帖子为极端主义或非极端主义内容,其中极端主义内容进一步依据五项极端主义定义要素进行分类。
- 在不同规模的训练数据上训练并评估 BERT 模型,同时评估极端主义类别之间的知识迁移效果。
- 使用四种不同类型的提示(朴素提示、普通人定义提示、角色扮演提示和专业定义提示)评估 GPT-3.5 和 GPT-4。
- 应用一个工作性定义框架,将极端主义内容划分为五项构成要素,以实现结构化分析。
- 通过精确率、召回率和 F1 分数等指标比较各模型的性能,以确定最优提示策略与模型选择。
实验结果
研究问题
- RQ1BERT 和 GPT 模型在零样本分类在线国内极端主义内容方面表现如何?
- RQ2提示设计(特别是朴素提示、普通人定义提示、角色扮演提示和专业定义提示)如何影响 GPT 模型在检测极端主义内容时的准确性?
- RQ3GPT-3.5 和 GPT-4 在分类极左翼与极右翼极端主义内容时的表现是否存在显著差异?
- RQ4训练数据规模和知识迁移在多大程度上影响 BERT 检测极端主义内容的能力?
- RQ5LLM 是否能够超越简单分类,生成关于极端主义话语的有意义解释与新见解?
主要发现
- GPT-4 和 GPT-3.5 在零样本极端主义分类任务中表现优于表现最佳的 BERT 模型。
- GPT-3.5 在分类极左翼极端主义内容方面表现更优,而 GPT-4 在极右翼极端主义内容分类中准确率更高。
- 更详细的提示(尤其是专业定义提示与角色扮演提示)通常能提升分类性能,但过于复杂的提示会降低效果。
- BERT 在极端主义类别之间表现出知识迁移现象,但其性能仍低于微调后的 GPT 模型。
- 本研究证实,LLM(尤其是 GPT 系列)在自动化检测与解释在线极端主义方面具有显著潜力。
- 提示工程是优化 LLM 性能的关键因素,定制化提示可显著提升极端主义内容检测中的精确率与召回率。
阅读本论文
在 Nubint 阅读器中打开原文,边读边就任意段落提问。
在 Nubint 中阅读本论文本解读由 AI 根据论文原文生成,引用前请核对原文。