arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2512.04319cs.SEcs.AI
收藏

MANTRA: 一个用于训练期间多阶段自适应噪声处理的框架

MANTRA: a Framework for Multi-stage Adaptive Noise TReAtment During Training

University of British Columbia(不列颠哥伦比亚大学);Michigan Technological University(密歇根技术大学)

Zixiao Zhao, Fatemeh H. Fard, Jie JW Wu

AI总结:

MANTRA通过多阶段自适应噪声处理框架提升代码预训练模型和LLMs在软件工程任务中的性能和鲁棒性。

摘要:

深度学习模型在软件工程任务中的可靠应用依赖于高质量的训练数据。然而,大规模存储库不可避免地引入了噪声或错误标记的示例,这些示例会降低准确性和鲁棒性。尽管噪声标签学习(NLL)已在其他领域被广泛研究,但在软件工程(SE)和大型语言模型(LLMs)中研究NLL的工作却寥寥无几。在本工作中,我们提出了MANTRA,一个多阶段自适应噪声处理框架,该框架将噪声诊断和缓解直接嵌入到代码预训练语言模型(PTM)和代码LLMs的微调过程中。我们首先研究了不同水平的噪声对模型收敛性和损失轨迹的影响。然后,我们应用了一种由每样本损失动态和高斯混合模型聚类引导的自适应丢弃策略,以排除持续噪声点,同时保留干净数据。在代码总结和提交意图分类任务中,我们的实验表明,某些LLMs比其他模型对噪声更敏感。然而,通过MANTRA,所有模型在两个任务中的性能都得到了提升。MANTRA使研究人员和实践者能够减少数据集引入的误差对训练的影响,节省了数据清洗和处理的时间,同时最大化微调的效果。

英文摘要:

The reliable application of deep learning models to software engineering tasks hinges on high-quality training data. Yet, large-scale repositories inevitably introduce noisy or mislabeled examples that degrade both accuracy and robustness. While Noise Label Learning (NLL) has been extensively studied in other fields, there are a few works that investigate NLL in Software Engineering (SE) and Large Language Models (LLMs) for SE tasks. In this work, we propose MANTRA, a Multi-stage Adaptive Noise TReAtment framework that embeds noise diagnosis and mitigation directly into the fine-tuning process of code-Pretrained Language Models (PTM) and code-LLMs. We first investigate the effect of noise at varying levels on convergence and loss trajectories of the models. Then we apply an adaptive dropout strategy guided by per-sample loss dynamics and Gaussian Mixture Model clustering to exclude persistently noisy points while preserving clean data. Applying to code summarization and commit intent classification, our experiments reveal that some LLMs are more sensitive to noise than others. However, with MANTRA, the performance of all models in both tasks is improved. MANTRA enables researchers and practitioners to reduce the impact of errors introduced by the dataset in training, saves time in data cleaning and processing, while maximizing the effect of fine-tuning.

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

↑