[Paper Review] Data Selection for Fine-tuning Large Language Models Using Transferred Shapley Values
This paper proposes TS-DShapley, a computationally efficient method for data selection in fine-tuning large language models by leveraging transferred Shapley values via a sampling-based aggregation and a lightweight classifier trained on target model representations. It achieves state-of-the-art performance, improving RoBERTa and DistilBERT accuracy by up to 3.4% over full fine-tuning datasets using only 2% of the data.
Although Shapley values have been shown to be highly effective for identifying harmful training instances, dataset size and model complexity constraints limit the ability to apply Shapley-based data valuation to fine-tuning large pre-trained language models. To address this, we propose TS-DShapley, an algorithm that reduces computational cost of Shapley-based data valuation through: 1) an efficient sampling-based method that aggregates Shapley values computed from subsets for valuation of the entire training set, and 2) a value transfer method that leverages value information extracted from a simple classifier trained using representations from the target language model. Our experiments applying TS-DShapley to select data for fine-tuning BERT-based language models on benchmark natural language understanding (NLU) datasets show that TS-DShapley outperforms existing data selection methods. Further, TS-DShapley can filter fine-tuning data to increase language model performance compared to training with the full fine-tuning dataset.
Motivation & Objective
- To address the high computational cost of exact Shapley value computation for large-scale language model fine-tuning.
- To reduce the need for expensive model retraining during data valuation by transferring value estimates from a simple surrogate model.
- To enable scalable data selection for fine-tuning by aggregating Shapley values from small data subsets.
- To improve model performance by filtering out harmful training instances identified via Shapley-based valuation.
Proposed method
- Proposes a sampling-based method that computes Shapley values on small, random subsets of the training data and aggregates them to estimate full-dataset Shapley values.
- Introduces a value transfer mechanism using a linear classifier trained on representations from the target language model to estimate data values without retraining the main model.
- Uses the Shapley value estimates from the surrogate model to identify and remove low-value, potentially harmful training instances.
- Employs multiple sampling chains to improve estimation stability and accuracy, especially at low subset sizes.
- Applies the optimal data removal index derived from the surrogate model to the target model fine-tuning process.
- Utilizes pre-trained embeddings from the target model (e.g., RoBERTa, DistilBERT) as input features for the surrogate classifier, enhancing transferability and performance.
Experimental results
Research questions
- RQ1Can Shapley-based data valuation be made scalable for large language model fine-tuning through efficient sampling and value transfer?
- RQ2Does using a simple linear classifier on target model representations improve data valuation accuracy compared to alternative embeddings?
- RQ3To what extent can data selection using transferred Shapley values improve downstream performance compared to full fine-tuning?
- RQ4How do sampling hyperparameters (subset size and number of chains) affect the performance of the data selection process?
Key findings
- TS-DShapley outperforms existing data selection baselines and even the full fine-tuning dataset on benchmark NLU tasks.
- Using only 2% of the training data for Shapley value estimation, TS-DShapley achieved a 3.4% performance gain over full fine-tuning for DistilBERT on the QQP dataset.
- RoBERTa achieved a 1.3% improvement using TS-DShapley compared to full fine-tuning on the same dataset.
- The number of sampling chains showed a strong positive correlation (r = 0.94) with performance when subset size exceeded 2% of the training set.
- Using representations from the target language model for the surrogate classifier consistently outperformed GloVe and other pre-trained embeddings in data selection performance.
- The method successfully identified and removed harmful instances, leading to improved generalization and robustness in fine-tuned models.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.