通过语言模式识别并发Bug报告
Identifying Concurrency Bug Reports via Linguistic Patterns
AI总结:
本文提出基于语言模式的框架,通过微调预训练语言模型实现高精度识别并发Bug报告,提升分类自动化与可解释性。
摘要:
随着多核架构的普及,并发系统已成为必不可少但日益复杂的问题源,如数据竞争和死锁。尽管现代问题跟踪系统有助于报告此类问题,但标记与并发相关的Bug报告仍是一个劳动密集且容易出错的任务。本文提出了一种基于语言模式的框架,用于自动识别并发Bug报告。我们从730个手动标记的并发Bug报告中推导出58种不同的语言模式,分为四个层次:词级(关键词)、短语级(n-gram)、句子级(语义)和Bug报告级(上下文)。为了评估其有效性,我们评估了四种互补的方法——匹配、学习、提示基于和微调,涵盖传统机器学习、大型语言模型(LLMs)和预训练语言模型(PLMs)。我们在12个大规模开源项目(10,920个问题报告)上的综合评估表明,使用语言模式增强的输入微调PLMs实现了最佳性能,在GitHub上达到91%的精度,在Jira上达到93%的精度,并在post cut-off数据上保持强劲的精度(91%)。本工作的贡献包括:(1)并发Bug的全面语言模式分类法,(2)一种新的微调策略,将领域特定的语言知识整合到PLMs中,(3)一个经过整理、标记的数据集以支持可重复研究。这些进步为提高并发Bug分类的自动化、精度和可解释性提供了基础。
英文摘要:
With the growing ubiquity of multi-core architectures, concurrent systems have become essential but increasingly prone to complex issues such as data races and deadlocks. While modern issue-tracking systems facilitate the reporting of such problems, labeling concurrency-related bug reports remains a labor-intensive and error-prone task. This paper presents a linguistic-pattern-based framework for automatically identifying concurrency bug reports. We derive 58 distinct linguistic patterns from 730 manually labeled concurrency bug reports, organized across four levels: word-level (keywords), phrase-level (n-grams), sentence-level (semantic), and bug report-level (contextual). To assess their effectiveness, we evaluate four complementary approaches-matching, learning, prompt-based, and fine-tuning-spanning traditional machine learning, large language models (LLMs), and pre-trained language models (PLMs). Our comprehensive evaluation on 12 large-scale open-source projects (10,920 issue reports from GitHub and Jira) demonstrates that fine-tuning PLMs with linguistic-pattern-enriched inputs achieves the best performance, reaching a precision of 91% on GitHub and 93% on Jira, and maintaining strong precision on post cut-off data (91%). The contributions of this work include: (1) a comprehensive taxonomy of linguistic patterns for concurrency bugs, (2) a novel fine-tuning strategy that integrates domain-specific linguistic knowledge into PLMs, and (3) a curated, labeled dataset to support reproducible research. Together, these advances provide a foundation for improving the automation, precision, and interpretability of concurrency bug classification.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。