RECOST: External Knowledge Guided Data-efficient Instruction Tuning
Qi Zhang, Yiming Zhang, Haobo Wang, Junbo Zhao
TL;DR
This paper tackles the data-efficiency problem in instruction tuning for large language models when using synthetic instruction datasets. It introduces RECOST, a framework that leverages external knowledge through in-context learning to compute a relative predictive entropy and a diversity-aware core-set sampling strategy, enabling high-quality data selection with minimal data. Across Alpaca, Alpaca-gpt4, and OpenLLM benchmarks, RECOST consistently outperforms prior data-efficient methods and in some cases matches or surpasses full-data models using only 1% of the dataset, demonstrating the practical impact of incorporating exogenous knowledge into data curation. The approach underscores the value of combining external knowledge with diversity-focused sampling to improve data efficiency in instruction tuning, offering a scalable path to reduce training costs for LLM alignment.
Abstract
In the current landscape of large language models (LLMs), the process of instruction tuning serves as an essential step. Considering the high computing power overhead, data-efficient instruction tuning was proposed to reduce the training data size in this process, aiming at selecting high-quality instructional data. Nevertheless, we argue that most current data-efficient instruction-tuning methods are highly dependent on the quality of the original instruction-tuning dataset. When it comes to datasets synthesized by LLMs, a common scenario in this field, dirty samples will even be selected with a higher probability than other samples. To address these challenges, we utilized external knowledge (relevant examples or paragraphs) to evaluate those samples synthesized by LLMs with an in-context-based relative predictive entropy. Based on the new metric, we proposed a framework, dubbed as \textbf{RECOST}, which integrates external-knowledge-base re-ranking and diversity-consistent sampling into a single pipeline. Through extensive experiments on several synthetic datasets (Alpaca and Alpaca-gpt4), we demonstrate the effectiveness of our method and achieve even better results with only \textbf{1\%} of the full dataset.
