MANTRA: a Framework for Multi-stage Adaptive Noise TReAtment During Training
Zixiao Zhao, Fatemeh H. Fard, Jie JW Wu

TL;DR
MANTRA is a multi-stage adaptive noise treatment framework that improves the robustness and accuracy of code language models by diagnosing and mitigating noise during fine-tuning, leading to better performance in software engineering tasks.
Contribution
It introduces a novel noise diagnosis and mitigation approach integrated into fine-tuning code language models, enhancing their robustness against noisy data in software engineering tasks.
Findings
MANTRA improves model performance on code summarization and commit intent classification.
Some LLMs are more sensitive to noise, but MANTRA enhances robustness across models.
The framework reduces data cleaning time and maximizes fine-tuning effectiveness.
Abstract
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…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsSoftware Engineering Research · Machine Learning and Data Classification · Software Engineering Techniques and Practices
