Structured Fine-Tuning Enables Data-Efficient Adaptation of Code Language Models
Its authors withdrew this paper, so there is no full text to read or summarize.
Abstract
Current models tailored for code tasks often adopt the successful pre-training-then-fine-tuning paradigm from natural language processing, treating source code in plain text as in natural language. This approach, however, overlooks the well-defined and unambiguous structures inherent in programming languages. In this work, we explore a data-efficient adaptation of pre-trained code language models by further training and fine-tuning them with program structures, which significantly improve the performance of the downstream coding tasks. Specifically, we represent programs as parse trees, also known as concrete syntax trees (CSTs), and refine a model with serialized CSTs. Fine-tuning with structures encourages the model to learn not only the associations of code text in different languages but also the mappings of their structures and grammars, by using only a small amount of data (e.g., 100 examples). With a focus on generation, we design training objectives for encoder-decoder and decoder-only architectures. We rigorously evaluate the proposed approach on various coding tasks and demonstrate that integrating parse structures with the plain-text representation of source code offers notable advantages, particularly in scenarios of low-data code translation.
BibTeX
@misc{agarwal2024structured,
author = {Mayank Agarwal and Yikang Shen and Bailin Wang and Yoon Kim and Jie Chen},
title = {{Structured Fine-Tuning Enables Data-Efficient Adaptation of Code Language Models}},
year = {2024},
url = {https://openreview.net/forum?id=YKIGyf215Q},
howpublished = {OpenReview},
note = {Submitted to ICLR 2024},
}Ask Althea to put this paper to the test.
Loading related content...