Understanding and Predicting Derailment in Toxic Conversations on GitHub
该论文旨在通过分析GitHub上的有毒对话,识别导致对话脱轨的早期迹象,并提出一种基于大型语言模型(LLM)的主动干预方法,以预测和缓解潜在的有害对话。
更新于 2025-03-07。作者:Mia Mohammad Imran、Robert Zita、Rebekah Copeland、Preetha Chatterjee、Rahat Rizvi Rahman、Kostadin Damevski。
中文摘要
软件项目得益于来自不同背景的个人参与和贡献。然而,有毒语言和负面互动可能会阻碍贡献者的参与和留存,并使新来者感到疏远。积极的 moderation 策略旨在通过解决偏离初衷的对话来预防毒性的产生。本研究旨在理解和预测导致 GitHub 上对话偏离初衷的有毒对话。为了便于这项研究,我们精心制作了一个包含 202 段有毒对话(带有标注的偏离点)以及 696 段非有毒对话作为基线的全新数据集。基于这个数据集,我们识别出有毒对话和偏离点的独特特征,包括诸如第二人称代词、否定词以及苦涩的挫败感和不耐烦的语气等语言标记,以及项目贡献者和外部参与者之间的对话动态模式。 利用这些实证观察,我们提出了一种积极的 moderation 方法,旨在在对话升级之前自动检测和应对可能有害的对话。通过利用现代 LLM,我们开发了一种对话轨迹摘要技术,能够捕捉讨论的演变并识别早期偏离迹象。我们的实验表明,针对提供 GitHub 对话摘要的 LLM 提示实现了 69% 的 F1 分数,在预测对话偏离方面显著优于一系列基线方法。
英文摘要
Software projects thrive on the involvement and contributions of individuals from different backgrounds. However, toxic language and negative interactions can hinder the participation and retention of contributors and alienate newcomers. Proactive moderation strategies aim to prevent toxicity from occurring by addressing conversations that have derailed from their intended purpose. This study aims to understand and predict conversational derailment leading to toxicity on GitHub. To facilitate this research, we curate a novel dataset comprising 202 toxic conversations from GitHub with annotated derailment points, along with 696 non-toxic conversations as a baseline. Based on this dataset, we identify unique characteristics of toxic conversations and derailment points, including linguistic markers such as second-person pronouns, negation terms, and tones of Bitter Frustration and Impatience, as well as patterns in conversational dynamics between project contributors and external participants. Leveraging these empirical observations, we propose a proactive moderation approach to automatically detect and address potentially harmful conversations before escalation. By utilizing modern LLMs, we develop a conversation trajectory summary technique that captures the evolution of discussions and identifies early signs of derailment. Our experiments demonstrate that LLM prompts tailored to provide summaries of GitHub conversations achieve 69% F1-Score in predicting conversational derailment, strongly improving over a set of baseline approaches.
解读
一句话总结
该论文旨在通过分析GitHub上的有毒对话,识别导致对话脱轨的早期迹象,并提出一种基于大型语言模型(LLM)的主动干预方法,以预测和缓解潜在的有害对话。
问题1:这篇论文想要解决什么具体问题?
- 问题背景:GitHub上的有毒对话会影响贡献者的参与和保留,并使新来者感到疏远。
- 现有方案不足:现有的毒性检测方法主要是事后检测,无法预防毒性并允许负面行为持续存在。
- 研究目标:理解并预测GitHub上对话脱轨导致的有毒行为,并提出一种主动干预方法。
问题2:论文的核心创新点是什么?
- 技术创新:提出了一种基于LLM的对话轨迹摘要技术,以捕获讨论的演变并识别脱轨的早期迹象。
- 方法改进:设计了一种新的提示方法,用于生成GitHub对话的对话动态摘要(SCD),以提高预测准确性。
- 优势:该方法能够有效地检测对话脱轨的早期迹象,在预测对话脱轨方面取得了69%的F1分数。
问题3:实验结果如何验证了方法的有效性?
- 关键实验:使用LLM生成的SCD进行对话脱轨预测。
- 性能提升:与基线方法相比,该方法在预测对话脱轨方面取得了显著的性能提升,F1分数达到0.69。
- 对比结果:与CRAFT和Hua等人的方法相比,该方法在精确度方面表现更好。
问题4:这个研究的实际应用价值是什么?
- 应用场景:可用于GitHub等开源软件项目,以预测和缓解潜在的有害对话。
- 实施建议:开发实时监控工具,如交互式仪表板和自动化机器人,以标记有风险的对话并提醒用户遵守行为准则。
- 局限与展望:需要进一步研究以验证在不同环境和社区中的适用性,并开发更复杂的干预措施。