SCAR: Data Selection via Style Consistency-Aware Response Ranking for Efficient Instruction-Tuning of Large Language Models
About
Recent studies emphasize that manually ensuring a consistent response style and maintaining high data quality in training sets can significantly improve the performance of fine-tuned Large Language Models (LLMs) while reducing the number of training examples needed. However, the precise definition of style and the relationship between style, data quality, and LLM performance remains unclear. This research identifies two key stylistic elements in responses: linguistic form and instructional surprisal. We find that, among training data of comparable quality, higher consistency in these response elements leads to better LLM performance. Inspired by this, we introduce Style Consistency-Aware Response Ranking (SCAR), which automatically prioritizes instruction-response pairs in the training set based on their response stylistic consistency. By selecting the most style-consistent examples, using only 0.7% of the full dataset in the best case, the fine-tuned LLMs can match or even surpass the performance of models trained on the entire dataset in coding and open-ended question-answering benchmarks. Code and data are available at https://github.com/zhuang-li/SCAR .
Related benchmarks
| Task | Dataset | Result | Rank | |
|---|---|---|---|---|
| Code Generation | HumanEval (test) | Pass@175 | 506 | |
| Code Generation | MBPP (test) | Pass@170.63 | 298 | |
| Function-level Code Generation | HumanEval+ augmented (test) | Pass@170.73 | 57 | |
| Function-level Code Generation | MBPP+ augmented (test) | Pass@157.67 | 56 | |
| Reasoning | BBH, GSM8K | BBH Score31.52 | 30 | |
| General Capability | BBH, GSM8K, MMLU, TruthfulQA, HumanEval, MBPP | Average Score25.14 | 30 | |
| Knowledge | MMLU, TruthfulQA | MMLU32.29 | 30 | |
| Coding | HumanEval, MBPP | HumanEval Score17.68 | 30 | |
| Instruction Tuning | Alpaca GPT4 | Reasoning75.22 | 20 | |
| Instruction Tuning | WizardLM | Reasoning Score73.65 | 20 |