paperbot · PL 论文追踪

全部论文 待读 收藏

P2 Real-Time Toxicity Filtering for Open-Source Code Reviews

面向开源代码评审的实时毒性过滤
FSE Proceedings of the 34th ACM International Conference on the Foundations of Software Engineering2026匹配度 1/10 · 该论文研究开源代码评审中的毒性言论过滤,方法为文本分类与去毒化,属于 NLP/软件工程中的社会技术问题,与静态分析、程序分析、Agentic 程序、浮点程序分析或贝叶斯程序分析均无直接交集。LLM 在此仅用于分类和改写,并非用于改进静态分析或形式化验证。引用 0 inbox
Md Awsaf Alam Anindya, Showvik Biswas, Anindya Iqbal, Jaydeb Sarker, Amiangshu Bosu
crossref: 2026-09-12dblp: 2026-09-12arxiv: 2026-09-12

AI 速览

一句话:提出 ToxiShield,浏览器扩展实时识别、分类并去毒化开源代码评审中的毒性言论。

开源开发中的毒性互动会损害社区协作。论文提出 ToxiShield,一个实时浏览器扩展,用于识别并去毒化毒性代码评审。框架含毒性识别、带理由多类分类和去毒化三模块。在 38,761 条评审文本上,微调 BERT 二分类器达 97% F1;在 1,200 样本上,提示工程 Claude 3.5 Sonnet 多类分类达 39% MCC 与 42% F1;微调 Llama 3.2 去毒化模型获 95.27% 风格迁移准确率、97.03% 流畅度、67.07% 内容保留率和 84% J-score。10 名开发者验证表明其有助于营造更包容的开源环境。

问题
开源代码评审中的毒性言论会伤害协作与社区包容性,现有方法难以实时识别并缓和此类互动。
方法
构建 ToxiShield 浏览器扩展,结合微调 BERT 二分类、基于 Claude 3.5 Sonnet 提示工程的多类分类,以及微调 Llama 3.2 去毒化模型。
评估
在 38,761 条代码评审文本和 1,200 个多类样本上评测各模块,并邀请 10 名软件开发者进行可用性验证。
原文摘要(Abstract)

Toxic interactions in open-source software development harm community collaboration. To combat this, we propose ToxiShield, a realtime browser extension that identifies and detoxifies toxic code reviews. The framework comprises three modules: toxicity identification, reasoned multiclass classification, and code review detoxification. Our fine-tuned BERT-based binary classifier achieved a 97% F1-score on 38,761 code review texts. For multiclass classification, Claude 3.5 Sonnet with prompt engineering achieved a 39% MCC and 42% F1 on 1,200 samples. Finally, our fine-tuned Llama 3.2 detoxification model reached 95.27% style transfer accuracy, 97.03% fluency, 67.07% content preservation, and an 84% J-score. Validation with 10 software developers suggests ToxiShield effectively fosters a more inclusive open-source environment.

链接与引用

DOI 原文 · arXiv · PDF(开放获取) · DBLP

BibTeX
@inproceedings{abs-2604-08886,
  title = {Real-Time Toxicity Filtering for Open-Source Code Reviews},
  author = {Md Awsaf Alam Anindya and Showvik Biswas and Anindya Iqbal and Jaydeb Sarker and Amiangshu Bosu},
  booktitle = {FSE},
  year = {2026},
  doi = {10.1145/3803437.3807395}
}