跳到主要导航 跳到搜索 跳到主要内容

Learning in the Wild: Towards Leveraging Unlabeled Data for Effectively Tuning Pre-Trained Code Models

  • Shuzheng Gao
  • , Wenxin Mao
  • , Cuiyun Gao*
  • , Li Li
  • , Xing Hu
  • , Xin Xia
  • , Michael R. Lyu
  • *此作品的通讯作者
  • Chinese University of Hong Kong
  • Harbin Institute of Technology
  • Zhejiang University

科研成果: 书/报告/会议事项章节 › 会议稿件 › 同行评审

摘要

Pre-trained code models have recently achieved substantial improvements in many code intelligence tasks. These models are first pre-trained on large-scale unlabeled datasets in a task-agnostic manner using self-supervised learning, and then fine-tuned on labeled datasets in downstream tasks. However, the labeled datasets are usually limited in size (i.e., human intensive efforts), which may hinder the performance of pre-trained code models in specific tasks. To mitigate this, one possible solution is to leverage the large-scale unlabeled data in the tuning stage by pseudo-labeling, i.e., generating pseudo labels for unlabeled data and further training the pre-trained code models with the pseudo-labeled data. However, directly employing the pseudo-labeled data can bring a large amount of noise, i.e., incorrect labels, leading to suboptimal performance. How to effectively leverage the noisy pseudo-labeled data is a challenging yet under-explored problem. In this paper, we propose a novel approach named HINT to improve pre-trained code models with large-scale unlabeled datasets by better utilizing the pseudo-labeled data. HINT includes two main modules: HybrId pseudo-labeled data selection and Noise-tolerant Training. In the hybrid pseudo-data selection module, considering the robustness issue, apart from directly measuring the quality of pseudo labels through training loss, we propose to further employ a retrieval-based method to filter low-quality pseudo-labeled data. The noise-tolerant training module aims to further mitigate the influence of errors in pseudo labels by training the model with a noise-tolerant loss function and by regularizing the consistency of model predictions. We evaluate the effectiveness of HINT on three popular code intelligence tasks, including code summarization, defect detection, and assertion generation. We build our method on top of three popular open-source pre-trained code models. The experimental results show that HINT can better leverage those unlabeled data in a task-specific way and provide complementary benefits for pre-trained models, e.g., improving the best baseline model by 15.33%, 16.50%, and 8.98% on code summarization, defect detection, and assertion generation, respectively.

源语言英语
主期刊名ICSE 2024 - Proceedings of the 46th IEEE/ACM International Conference on Software Engineering
出版商IEEE Computer Society
页969-981
页数13
ISBN(电子版)9798400702174
DOI
出版状态已出版 - 20 5月 2024
活动46th IEEE/ACM International Conference on Software Engineering, ICSE 2024 - Lisbon, 葡萄牙
期限: 14 4月 2024 → 20 4月 2024

丛书

姓名Proceedings - International Conference on Software Engineering
ISSN(印刷版)0270-5257

会议

会议46th IEEE/ACM International Conference on Software Engineering, ICSE 2024
国家/地区葡萄牙
市Lisbon
时期14/04/24 → 20/04/24

学术指纹

探究 'Learning in the Wild: Towards Leveraging Unlabeled Data for Effectively Tuning Pre-Trained Code Models' 的科研主题。它们共同构成独一无二的学术指纹。

引用此