Rethinking the Instruction Quality: LIFT is What You Need

Yang Xu, Yongqiang Yao, Yufan Huang, Mengnan Qi, Maoquan Wang, Bin Gu, Neel SundaresanarXiv 2023 · DOI

Introduction

Instruction tuning is a critical step in aligning Large Language Models (LLMs) to follow human intent. While early efforts focused on scaling the quantity of instruction-response pairs, recent research suggests that the quality and diversity of data are more significant drivers of performance. However, existing methods often face a trade-off: automated data expansion can introduce redundancy and noise, while manual curation is limited by the scope of the initial dataset.

This paper introduces the LLM Instruction Fusion Transfer (LIFT) paradigm. LIFT aims to surpass the limitations of the original data distribution by first expanding the dataset into higher-quality subspaces and then aggressively densifying it around the most informative samples.

The LIFT Paradigm

The LIFT framework operates in two distinct phases designed to optimize the data distribution for instruction tuning.

Figure 1: The two-phase LIFT paradigm showing the transition from the original dataset to an enriched, variety-compressed, and finally quality-compressed dataset.

Phase 1: Dataset Distribution Expansion

In the first phase, LIFT utilizes a high-capability model (GPT-4) as a "professional prompt re-writer." Rather than simply generating more samples of similar difficulty, the model is tasked with increasing the complexity and intricacy of existing instructions. This process broadens the "data subspace," ensuring the resulting dataset covers a wider array of challenging scenarios that were absent in the base collection.

Phase 2: Dataset Variety and Quality Curation

Following expansion, the dataset undergoes a rigorous two-step pruning process to eliminate redundancy and ensure high informational density.

  1. Variety Compression: To maintain diversity without the computational overhead of traditional clustering, LIFT employs GPT embeddings. These embeddings are reduced in dimensionality, and samples are selected based on high row variance. This identifies the most unique data points across the expanded distribution.
  2. Quality Compression: A dual-scoring mechanism evaluates the remaining samples. GPT-4 provides scores based on accuracy, explanation, clarity, and difficulty. This is combined with a Lengthwise Semantic Score, which rewards detailed responses. The top-tier samples are then selected to form the final training set.

Experimental Results

The authors validated LIFT across code generation and natural language understanding (NLU) tasks, demonstrating that a "less is more" approach can yield superior results.

Code Generation

Using a base of Code Alpaca (20k), LIFT produced a curated 10k dataset. When used to tune a StarCoder-15B model, this 10k set achieved a score of 0.550 on HumanEval. Remarkably, this performance nearly matches WizardCoder (0.573), despite WizardCoder being trained on 7.8 times more data (78k samples).

Figure 6: Performance comparison of LIFT against state-of-the-art models on HumanEval and MBPP benchmarks. LIFT achieves competitive results with significantly less data.

Natural Language Understanding

For NLU, LIFT was applied to the Open Platypus dataset, resulting in a 15k curated set. A Mistral-7B model tuned with LIFT achieved an average benchmark score of 0.656, outperforming larger models like Platypus2-13B, which were trained on more extensive datasets.

Discussion and Environmental Impact

The efficiency of LIFT has significant implications for the environmental footprint of AI development. By reducing the required training data by nearly an order of magnitude, LIFT drastically cuts GPU hours and carbon emissions. For instance, training on the curated 15k NLU dataset required only 23.7 GPU hours, compared to nearly 150 hours for the uncurated expanded set.

Conclusion

The LIFT paradigm demonstrates that strategic data enhancement—combining distribution expansion with rigorous variety and quality curation—is more effective than simple scaling. By focusing on "information richness" and diversity, LIFT enables smaller models trained on tiny fractions of data to rival or exceed the performance of much larger, more data-intensive counterparts.

Summary updated

BibTeX
@misc{xu2023rethinking,
  author = {Yang Xu and Yongqiang Yao and Yufan Huang and Mengnan Qi and Maoquan Wang and Bin Gu and Neel Sundaresan},
  title = {{Rethinking the Instruction Quality: LIFT is What You Need}},
  year = {2023},
  eprint = {2312.11508},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2312.11508},
}
Figure