paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Toxicity Ahead: Forecasting Conversational Derailment on GitHub

毒性将至:预测 GitHub 上的对话脱轨
ICSE Proceedings of the 2026 IEEE/ACM 48th International Conference on Software Engineering2026匹配度 2/10 · 论文聚焦 GitHub 开源社区对话毒性预测,使用 LLM 提示工程做分类,属于软件工程/社区治理方向;与用户核心的静态分析、形式化验证、浮点程序分析、贝叶斯程序分析及 Agentic 程序分析均无直接关联。虽然标签含“机器学习与程序语言/开发者工具”,但实际内容不涉及程序语言理论或程序分析技术。引用 6 inbox
Mia Mohammad Imran, Robert Zita, Rahat Rizvi Rahman, Preetha Chatterjee, Kostadin Damevski
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:构建 GitHub 对话脱轨数据集,并提出基于 LLM 两步提示的毒性对话预测框架。

开源社区中的有毒互动会降低贡献者参与度并威胁项目可持续性,但现有主动审核多依赖人工,难以扩展。本文从 GitHub 讨论中整理 159 条脱轨有毒线程与 207 条无毒线程,分析表明紧张触发因素、情感变化和特定会话模式可用于预测毒性。作者提出基于大语言模型的两步提示框架:先用 Least-to-Most 提示生成对话动态摘要(SCD),再据此估计脱轨可能性。在 Qwen 与 Llama 上,该策略于 0.3 阈值下分别取得 0.901 和 0.852 的 F1 值,优于已有 NLP 基线;在 308 条 GitHub issue 线程上的外部验证 F1 最高达 0.797,展示了结构化 LLM 提示用于早期、可解释审核的有效性。

问题
OSS 社区中的毒性对话难以在爆发前被识别,人工审核不可扩展,需要可提前预测对话脱轨的方法。
方法
构建 GitHub 有毒/无毒线程数据集,分析紧张触发、情感变化与会话模式;提出 LLM 两步提示框架,先以 Least-to-Most 生成对话动态摘要,再估计脱轨概率。
评估
在 Qwen 和 Llama 上评估,0.3 阈值下 F1 分别达 0.901 和 0.852,优于 NLP 基线;并在 308 条 GitHub issue 线程上做外部验证,F1 最高 0.797。
原文摘要(Abstract)

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 Summaries of Conversation Dynamics (SCDs) via Least-to-Most (LtM) prompting; then we use these summaries to estimate the 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.

链接与引用

DOI 原文 · arXiv · DBLP

BibTeX
@inproceedings{abs-2512-15031,
  title = {Toxicity Ahead: Forecasting Conversational Derailment on GitHub},
  author = {Mia Mohammad Imran and Robert Zita and Rahat Rizvi Rahman and Preetha Chatterjee and Kostadin Damevski},
  booktitle = {ICSE},
  year = {2026},
  doi = {10.1145/3744916.3787839}
}