利用参数高效微调优化检索任务的文本与源代码联合嵌入
Refining Joint Text and Source Code Embeddings for Retrieval Task with Parameter-Efficient Fine-Tuning
AI总结:
针对代码-文本检索中大型 Transformer 端到端微调成本高的问题,提出结合 PEFT 与对比学习的框架,并通过 CodeT5+ 在两个数据集上验证最多微调 0.4% 参数即可提升性能。
摘要:
自然语言处理(NLP)的最新发展已在代码-文本检索问题上展现出显著进展。随着该任务中使用的基于 Transformer 的模型规模持续增大,端到端微调所需的计算成本和时间变得相当可观。这给计算资源有限时适配和使用这些模型带来了重大挑战。受这些问题驱动,我们提出了一个利用参数高效微调(PEFT)技术的微调框架。此外,我们采用对比学习目标来提升 Transformer 模型所学双模态表示的质量。另外,针对 PEFT 方法,我们提供了广泛的基准测试,而文献中已强调缺乏此类基准测试是一个关键问题。基于在两个数据集上使用 CodeT5+ 模型进行的充分实验,我们证明,所提出的微调框架有潜力通过最多仅调整 0.4% 的参数来提升代码-文本检索性能。
英文摘要:
The latest developments in Natural Language Processing (NLP) have demonstrated remarkable progress in a code-text retrieval problem. As the Transformer-based models used in this task continue to increase in size, the computational costs and time required for end-to-end fine-tuning become substantial. This poses a significant challenge for adapting and utilizing these models when computational resources are limited. Motivated by these concerns, we propose a fine-tuning framework that leverages Parameter-Efficient Fine-Tuning (PEFT) techniques. Moreover, we adopt contrastive learning objectives to improve the quality of bimodal representations learned by transformer models. Additionally, for PEFT methods we provide extensive benchmarking, the lack of which has been highlighted as a crucial problem in the literature. Based on the thorough experimentation with the CodeT5+ model conducted on two datasets, we demonstrate that the proposed fine-tuning framework has the potential to improve code-text retrieval performance by tuning only 0.4% parameters at most.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。