arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2405.01553cs.SEcs.AI
收藏

代码大语言模型参数高效方法的实证研究及向 R 语言的知识迁移

Empirical Studies of Parameter Efficient Methods for Large Language Models of Code and Knowledge Transfer to R

University of British Columbia(不列颠哥伦比亚大学)

Amirreza Esmaeili, Iman Saberi, Fatemeh H. Fard

AI总结:

本研究评估了 LoRA、Compacter 和 IA^3 等 PEFT 方法在代码大模型上向 R 语言迁移的效果,发现 LoRA 表现最佳,Compacter 资源效率高,且可训练参数数量比架构对代码准确性影响更大。

摘要:

参数高效微调(PEFT)方法被提出作为大语言模型(LLM)的替代微调方法,以最小化高昂的训练成本。尽管先前的研究证明了 PEFT 方法在使用较小语言模型进行知识迁移时的有效性,但它们在较大 LLM 中的应用,特别是在 R 等低资源和未见过的编程语言中,仍然探索不足。在这项工作中,我们评估了 PEFT 方法 LoRA、Compacter 和 IA^3 在用于代码摘要和生成的 LLM 上的表现,特别强调了向 R 这一未见且探索不足的目标语言的知识迁移。我们的实验表明,LoRA 在所有设置中始终优于 Compacter 和 IA^3,而 Compacter 提供了显著的资源效率,且性能权衡极小。此外,我们发现可训练参数的数量对生成代码的功能准确性影响比 PEFT 架构更大。我们的研究可以指导未来为包括 R 在内的未见语言开发代码智能任务,以及选择用于知识迁移的 PEFT 方法,特别是在平衡计算成本和性能时。

英文摘要:

Parameter Efficient Fine-Tuning (PEFT) methods are proposed as an alternative fine-tuning approach for Large Language Models (LLM) to minimize high training costs. While prior research demonstrates the effectiveness of PEFT methods in knowledge transfer using smaller language models, their application to larger LLMs, particularly in low-resource and unseen programming languages such as R, remains under-explored. In this work, we evaluate PEFT methods, LoRA, Compacter, and IA^3 on LLMs for code summarization and generation, with a particular emphasis on knowledge transfer to R as an unseen under-explored target language. Our experiments reveal that LoRA consistently outperforms Compacter and IA^3 in all settings, while Compacter offers significant resource efficiency with minimal performance trade-offs. Additionally, we find that the number of trainable parameters has a greater influence on the functional accuracy of the generated code than PEFT architecture. Our study can direct future research in developing code intelligent tasks for unseen languages including R, as well as the choice of PEFT methods for knowledge transfer, especially when balancing the computational cost and performance.

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

↑