Enhancing Discriminative Tasks by Guiding the Pre-trained Language Model with Large Language Model's Experience
<|reference_start|>Enhancing Discriminative Tasks by Guiding the Pre-trained Language Model with Large Language Model's Experience: Large Language Models (LLMs) and pre-trained Language Models (LMs) have achieved impressive success on many software engineering tasks (e.g., code completion and code generation). By leveraging huge existing code corpora (e.g., GitHub), these models aim to understand the patterns in source code and use these patterns to predict code properties. However, fine-tuning LLMs is time-consuming and costly for end users and small organizations. Furthermore, fine-tuning LMs heavily depends on the amount and quality of datasets available. As a result, the current lack of data and the high cost of collecting it in real-world scenarios further limit the applicability of LMs. In this paper, we leverage the powerful generation capabilities of LLMs to enhance pre-trained LMs. Specifically, we use LLMs to generate domain-specific data, thereby improving the performance of pre-trained LMs on the target tasks. We conduct experiments by combining different LLMs in our generation phase and introducing various LMs to learn from the LLM-generated data. Then, we compare the performance of these LMs before and after learning the data. We find that LLM-generated data significantly enhances the performance of LMs. The improvement can reach up to 58.36% for fault localization and up to 6.09% for clone detection. Our study highlights that using LLMs to generate data for LMs can improve performance by a large margin.<|reference_end|>
@article{yin2024enhancing,
    title={Enhancing Discriminative Tasks by Guiding the Pre-trained Language Model
  with Large Language Model's Experience},
    author={Xin Yin, Chao Ni, Xiaodan Xu, Xinrui Li, Xiaohu Yang},
    journal={arXiv preprint arXiv:2408.08553},
    year={2024},
    archivePrefix={arXiv},
    eprint={2408.08553},
    primaryClass={cs.SE}
}