arXivDaily arXiv每日学术速递 周一至周五更新
arXiv周末暂无论文更新,休息一下吧,周末愉快~~
arXiv 2312.13105cs.SE
收藏

探索将ChatGPT用于GitHub中的毒性检测

Exploring ChatGPT for Toxicity Detection in GitHub

Shyamal Mishra, Preetha Chatterjee

AI总结:

针对软件工程领域毒性数据集稀缺且不平衡的问题,本研究探索零样本大语言模型ChatGPT在GitHub毒性检测中的应用,初步验证了其有效性,并通过提示词设计提升了模型可解释性。

摘要:

营造协作性与包容性的环境对开源开发的持续发展至关重要。然而,负面言论(通常表现为毒性评论)的盛行对开发者的福祉和生产力构成了重大挑战。为了识别项目沟通中尤其是大型项目中的此类负面内容,自动化毒性检测模型必不可少。要有效训练这些模型,我们需要大型的软件工程专属毒性数据集。但这类数据集数量有限,且往往存在不平衡问题(例如,每1000个GitHub议题中仅有6个具有毒性),给训练有效的毒性检测模型带来了挑战。为解决这一问题,我们探索了一种零样本大语言模型(LLM)ChatGPT,它在海量数据集上预训练,但未针对软件相关文本的毒性检测任务进行专门微调。我们的初步评估表明,ChatGPT在GitHub毒性检测方面展现出潜力,值得进一步研究。我们测试了多种提示词,包括用于为模型输出提供依据的提示词,以此增强了模型的可解释性,并为将基于ChatGPT的毒性检测功能集成到开发者沟通渠道中铺平了道路。

英文摘要:

Fostering a collaborative and inclusive environment is crucial for the sustained progress of open source development. However, the prevalence of negative discourse, often manifested as toxic comments, poses significant challenges to developer well-being and productivity. To identify such negativity in project communications, especially within large projects, automated toxicity detection models are necessary. To train these models effectively, we need large software engineering-specific toxicity datasets. However, such datasets are limited in availability and often exhibit imbalance (e.g., only 6 in 1000 GitHub issues are toxic), posing challenges for training effective toxicity detection models. To address this problem, we explore a zero-shot LLM (ChatGPT) that is pre-trained on massive datasets but without being fine-tuned specifically for the task of detecting toxicity in software-related text. Our preliminary evaluation indicates that ChatGPT shows promise in detecting toxicity in GitHub, and warrants further investigation. We experimented with various prompts, including those designed for justifying model outputs, thereby enhancing model interpretability and paving the way for potential integration of ChatGPT-enabled toxicity detection into developer communication channels.

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

↑