arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2512.15031cs.SEcs.CYcs.HC
收藏

前方有毒:预测GitHub上的对话偏离

Toxicity Ahead: Forecasting Conversational Derailment on GitHub

Missouri University of Science and Technology(密苏里科技大学);Elmhurst University(埃尔姆赫斯特大学);Virginia Commonwealth University(弗吉尼亚联邦大学);Drexel University(德雷塞尔大学)

Mia Mohammad Imran, Robert Zita, Rahat Rizvi Rahman, Preetha Chatterjee, Kostadin Damevski

AI总结:

本文提出基于LLM的框架,通过两步提示方法预测GitHub上的有毒对话偏离,实现早期检测与可解释的管理。

摘要:

在开源软件(OSS)社区中,有毒的互动会减少贡献者的参与度并威胁项目的可持续性。在毒性出现之前防止此类毒性需要清楚地了解有害对话是如何展开的。然而,大多数主动管理策略都是手动的,需要社区维护者投入大量时间和精力。为了支持更可扩展的方法,我们整理了一个包含159个偏离有毒线程和207个非有毒线程的GitHub讨论数据集。我们的分析表明,毒性可以通过紧张触发、情感变化和特定的对话模式来预测。我们提出了一种新的基于大型语言模型(LLM)的框架,用于预测GitHub上的对话偏离,使用两步提示管道。首先,我们通过最少到最多(LtM)提示生成对话动态摘要(SCDs);然后使用这些摘要来估计偏离的可能性。在Qwen和Llama模型上评估,我们的LtM策略在决策阈值为0.3时分别达到F1分数0.901和0.852,优于现有的自然语言处理基线。在308个GitHub问题线程数据集上的外部验证(65个有毒,243个非有毒)中,F1分数高达0.797。我们的发现证明了结构化LLM提示在OSS中早期检测对话偏离的有效性,使主动和可解释的管理成为可能。

英文摘要:

Toxic interactions in Open Source Software (OSS) communities reduce contributor engagement and threaten project sustainability. Preventing such toxicity before it emerges requires a clear understanding of how harmful conversations unfold. However, most proactive moderation strategies are manual, requiring significant time and effort from community maintainers. To support more scalable approaches, we curate a dataset of 159 derailed toxic threads and 207 non-toxic threads from GitHub discussions. Our analysis reveals that toxicity can be forecast by tension triggers, sentiment shifts, and specific conversational patterns. We present a novel Large Language Model (LLM)-based framework for predicting conversational derailment on GitHub using a two-step prompting pipeline. First, we generate \textit{Summaries of Conversation Dynamics} (SCDs) via Least-to-Most (LtM) prompting; then we use these summaries to estimate the \textit{likelihood of derailment}. Evaluated on Qwen and Llama models, our LtM strategy achieves F1-scores of 0.901 and 0.852, respectively, at a decision threshold of 0.3, outperforming established NLP baselines on conversation derailment. External validation on a dataset of 308 GitHub issue threads (65 toxic, 243 non-toxic) yields an F1-score up to 0.797. Our findings demonstrate the effectiveness of structured LLM prompting for early detection of conversational derailment in OSS, enabling proactive and explainable moderation.

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

↑