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

Fuente: arXiv
Salvato in:
Dettagli Bibliografici
Autori principali: Esmaeili, Amirreza, Saberi, Iman, Fard, Fatemeh H.
Natura: Preprint
Pubblicazione: 2024
Soggetti:
Accesso online:
Tags: Aggiungi Tag
Nessun Tag, puoi essere il primo ad aggiungerne!!
_version_ 1866929688177278976
author Esmaeili, Amirreza
Saberi, Iman
Fard, Fatemeh H.
author_facet Esmaeili, Amirreza
Saberi, Iman
Fard, Fatemeh H.
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2405_01553
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Empirical Studies of Parameter Efficient Methods for Large Language Models of Code and Knowledge Transfer to R
Esmaeili, Amirreza
Saberi, Iman
Fard, Fatemeh H.
Software Engineering
Artificial Intelligence
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.
title Empirical Studies of Parameter Efficient Methods for Large Language Models of Code and Knowledge Transfer to R
topic Software Engineering
Artificial Intelligence
url https://arxiv.org/abs/2405.01553