Code Less, Align More: Efficient LLM Fine-tuning for Code Generation with Data Pruning

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Tsai, Yun-Da, Liu, Mingjie, Ren, Haoxing
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916314134609920
author Tsai, Yun-Da
Liu, Mingjie
Ren, Haoxing
author_facet Tsai, Yun-Da
Liu, Mingjie
Ren, Haoxing
contents Recent work targeting large language models (LLMs) for code generation demonstrated that increasing the amount of training data through synthetic code generation often leads to exceptional performance. In this paper we explore data pruning methods aimed at enhancing the efficiency of model training specifically for code LLMs. We present techniques that integrate various clustering and pruning metrics to selectively reduce training data without compromising the accuracy and functionality of the generated code. We observe significant redundancies in synthetic training data generation, where our experiments demonstrate that benchmark performance can be largely preserved by training on only 10% of the data. Moreover, we observe consistent improvements in benchmark results through moderate pruning of the training data. Our experiments show that these pruning strategies not only reduce the computational resources needed but also enhance the overall quality code generation.
format Preprint
id arxiv_https___arxiv_org_abs_2407_05040
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Code Less, Align More: Efficient LLM Fine-tuning for Code Generation with Data Pruning
Tsai, Yun-Da
Liu, Mingjie
Ren, Haoxing
Software Engineering
Machine Learning
Recent work targeting large language models (LLMs) for code generation demonstrated that increasing the amount of training data through synthetic code generation often leads to exceptional performance. In this paper we explore data pruning methods aimed at enhancing the efficiency of model training specifically for code LLMs. We present techniques that integrate various clustering and pruning metrics to selectively reduce training data without compromising the accuracy and functionality of the generated code. We observe significant redundancies in synthetic training data generation, where our experiments demonstrate that benchmark performance can be largely preserved by training on only 10% of the data. Moreover, we observe consistent improvements in benchmark results through moderate pruning of the training data. Our experiments show that these pruning strategies not only reduce the computational resources needed but also enhance the overall quality code generation.
title Code Less, Align More: Efficient LLM Fine-tuning for Code Generation with Data Pruning
topic Software Engineering
Machine Learning
url https://arxiv.org/abs/2407.05040