SEAICLMar 15, 2024

Exploring Language Model's Code Generation Ability with Auxiliary Functions

arXiv:2403.10575v130 citationsh-index: 16Has CodeNAACL-HLT
Originality Synthesis-oriented
AI Analysis

This work addresses the need for better understanding and enhancing code generation in AI models, though it is incremental as it focuses on evaluation rather than introducing new methods.

The paper tackled the problem of systematically evaluating how auxiliary functions affect language models' code generation ability, finding that models show promising self-improving behavior but underutilize auxiliary function calls.

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.

Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes