404: Civility Not Found? Evaluating the Effectiveness of Small Language Models in Detecting Incivility in GitHub Conversations. Patrício, M., Eufrásio, S., Uchôa, A., Rocha, L. S., Coutinho, D., Pereira, J. A., Paixão, M., & Garcia, A. In Proceedings of the 39th Brazilian Symposium on Software Engineering (SBES), 2025, Recife, Pernambuco, Brazil, September 22–26 2025, pages 304–314, Porto Alegre, RS, Brasil, 2025. SBC. Distinguished Artifact Award at the 16th Brazilian Conference on Software: Practice and Theory (CBSoft), SBC/CEES.
404: Civility Not Found? Evaluating the Effectiveness of Small Language Models in Detecting Incivility in GitHub Conversations [link]Paper  doi  abstract   bibtex   
Context: Incivility in open-source software (OSS) platforms like GitHub can harm collaboration, discourage contributor participation, and impact code quality. Although current moderation tools based on Machine Learning (ML) and Natural Language Processing (NLP) offer some support, they often struggle to detect nuanced or implicit types of incivility. Goal: This study aims to assess the effectiveness of Small Language Models (SLMs) in detecting both coarse-grained (civil vs. uncivil) and fine-grained (specific types) incivility in GitHub conversations (issues and pull requests), and to understand how different prompting strategies influence detection performance. Method: We evaluate ten SLMs (3B-14B parameters) across five prompt strategies, on a labeled dataset with more than 6k GitHub conversations. We also compare the best-performing SLMs with five traditional ML models using two text-encoding techniques. Results: Our results reveal that SLMs perform well in detecting civil comments, but their effectiveness in detecting uncivil comments depends on model size. Models with 9B+ parameters (e.g., deepseek-r1, gpt-4o-mini) show improved performance on uncivil comments. For the fine-grained granularity, prompting strategy plays a critical role, with role-based prompting achieving the best results, particularly for implicit incivility types (e.g., Irony and Mocking), even when SLMs struggle with these types of incivility. Traditional ML models still perform well in explicit cases like Threat and Insulting. Conclusion: Our findings highlight the effectiveness of SLMs and prompt strategies in enhancing the detection of incivility within collaborative software development settings.
@inproceedings{patricio2025incivility,
  title={404: Civility Not Found? Evaluating the Effectiveness of Small Language Models in Detecting Incivility in GitHub Conversations},
  author={Mario Patrício and Silas Eufrásio and Anderson Uchôa and Lincoln S. Rocha and Daniel Coutinho and Juliana Alves Pereira and Matheus Paixão and Alessandro Garcia},
  booktitle={Proceedings of the 39th Brazilian Symposium on Software Engineering (SBES), 2025, Recife, Pernambuco, Brazil, September 22--26 2025},
  year={2025},
  abstract={Context: Incivility in open-source software (OSS) platforms like GitHub can harm collaboration, discourage contributor participation, and impact code quality. Although current moderation tools based on Machine Learning (ML) and Natural Language Processing (NLP) offer some support, they often struggle to detect nuanced or implicit types of incivility. Goal: This study aims to assess the effectiveness of Small Language Models (SLMs) in detecting both coarse-grained (civil vs. uncivil) and fine-grained (specific types) incivility in GitHub conversations (issues and pull requests), and to understand how different prompting strategies influence detection performance. Method: We evaluate ten SLMs (3B-14B parameters) across five prompt strategies, on a labeled dataset with more than 6k GitHub conversations. We also compare the best-performing SLMs with five traditional ML models using two text-encoding techniques. Results: Our results reveal that SLMs perform well in detecting civil comments, but their effectiveness in detecting uncivil comments depends on model size. Models with 9B+ parameters (e.g., deepseek-r1, gpt-4o-mini) show improved performance on uncivil comments. For the fine-grained granularity, prompting strategy plays a critical role, with role-based prompting achieving the best results, particularly for implicit incivility types (e.g., Irony and Mocking), even when SLMs struggle with these types of incivility. Traditional ML models still perform well in explicit cases like Threat and Insulting. Conclusion: Our findings highlight the effectiveness of SLMs and prompt strategies in enhancing the detection of incivility within collaborative software development settings.},
  issn = {2833-0633},
  pages = {304--314},
  publisher = {SBC},
  address = {Porto Alegre, RS, Brasil},
  note={<font color="red">Distinguished Artifact Award at the 16th Brazilian Conference on Software: Practice and Theory (CBSoft), SBC/CEES.</font>},
  doi = {10.5753/sbes.2025.9933},
  url = {https://sol.sbc.org.br/index.php/sbes/article/view/37008},
}

Downloads: 0