Exploring Language Model's Code Generation Ability with Auxiliary Functions

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Lee, Seonghyeon, Jang, Sanghwan, Jang, Seongbo, Lee, Dongha, Yu, Hwanjo
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866929278914920448
author Lee, Seonghyeon
Jang, Sanghwan
Jang, Seongbo
Lee, Dongha
Yu, Hwanjo
author_facet Lee, Seonghyeon
Jang, Sanghwan
Jang, Seongbo
Lee, Dongha
Yu, Hwanjo
contents Auxiliary function is a helpful component to improve language model's code generation ability. However, a systematic exploration of how they affect has yet to be done. In this work, we comprehensively evaluate the ability to utilize auxiliary functions encoded in recent code-pretrained language models. First, we construct a human-crafted evaluation set, called HumanExtension, which contains examples of two functions where one function assists the other. With HumanExtension, we design several experiments to examine their ability in a multifaceted way. Our evaluation processes enable a comprehensive understanding of including auxiliary functions in the prompt in terms of effectiveness and robustness. An additional implementation style analysis captures the models' various implementation patterns when they access the auxiliary function. Through this analysis, we discover the models' promising ability to utilize auxiliary functions including their self-improving behavior by implementing the two functions step-by-step. However, our analysis also reveals the model's underutilized behavior to call the auxiliary function, suggesting the future direction to enhance their implementation by eliciting the auxiliary function call ability encoded in the models. We release our code and dataset to facilitate this research direction.
format Preprint
id arxiv_https___arxiv_org_abs_2403_10575
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Exploring Language Model's Code Generation Ability with Auxiliary Functions
Lee, Seonghyeon
Jang, Sanghwan
Jang, Seongbo
Lee, Dongha
Yu, Hwanjo
Software Engineering
Artificial Intelligence
Computation and Language
Auxiliary function is a helpful component to improve language model's code generation ability. However, a systematic exploration of how they affect has yet to be done. In this work, we comprehensively evaluate the ability to utilize auxiliary functions encoded in recent code-pretrained language models. First, we construct a human-crafted evaluation set, called HumanExtension, which contains examples of two functions where one function assists the other. With HumanExtension, we design several experiments to examine their ability in a multifaceted way. Our evaluation processes enable a comprehensive understanding of including auxiliary functions in the prompt in terms of effectiveness and robustness. An additional implementation style analysis captures the models' various implementation patterns when they access the auxiliary function. Through this analysis, we discover the models' promising ability to utilize auxiliary functions including their self-improving behavior by implementing the two functions step-by-step. However, our analysis also reveals the model's underutilized behavior to call the auxiliary function, suggesting the future direction to enhance their implementation by eliciting the auxiliary function call ability encoded in the models. We release our code and dataset to facilitate this research direction.
title Exploring Language Model's Code Generation Ability with Auxiliary Functions
topic Software Engineering
Artificial Intelligence
Computation and Language
url https://arxiv.org/abs/2403.10575