TL;DR
This paper introduces DiSF, a novel data selection method for LLM pre-training that combats "dimensional collapse" by selecting the most decorrelated text files. DiSF significantly improves overall LLM performance and efficiency, achieving comparable results to full-data pre-training with a fraction of the data.
What Problem Does This Paper Address?
Training large language models (LLMs) is incredibly computationally expensive, demanding vast amounts of data and processing power. To make this more efficient, researchers have focused on selecting high-quality pre-training data. A common approach is to use proxy models to identify data similar to specific target domains (like Wikipedia or BookCorpus). However, the authors identify a critical issue with this: a "diversity dilemma" or "dimensional collapse." This means that while data selection based on domain similarity might boost performance on tasks related to that specific domain, it severely degrades performance on general tasks. Essentially, the model becomes too specialized and loses its broad capabilities. This paper aims to solve this by proposing a method that enhances data diversity, leading to better overall LLM performance and efficiency.
Methods
The core of DiSF lies in selecting text files that are "most decorrelated" in the feature space. Instead of focusing on similarity to a target domain, DiSF aims to maximize the diversity of the selected data. The authors achieve this by minimizing the Frobenius norm of the feature covariance matrix of the selected text samples. This is framed as a $\gamma$-weakly submodular optimization problem, which they solve using a classical greedy algorithm. This approach ensures that the selected text features have more uniform eigenvalues in their covariance matrix, preventing the dimensional collapse observed in domain-specific selection methods.
Datasets
- Training Data: SlimPajama (a cleaned and deduplicated version of RedPajama).
- Evaluation Tasks: Nine tasks from the Harness framework, including commonsense reasoning (ARC-e, ARC-c, OBQA, BoolQ), physical world knowledge (PIQA, HellaSwag, WinoGrande), and problem-solving (MMLU, BBH).
Key Insights and Ideas
- The "Diversity Dilemma": Domain-specific data selection, while seemingly intuitive, can lead to LLMs that are good at specific tasks but poor at general ones due to "dimensional collapse."
- Decorrelation is Key: Instead of similarity, selecting decorrelated data points is crucial for maintaining broad LLM capabilities and preventing performance degradation.
- Submodularity for Diversity: Framing data selection as a $\gamma$-weakly submodular optimization problem provides a theoretical foundation for maximizing diversity.
- Greedy Algorithm Efficiency: A classical greedy algorithm, adapted for batch processing, effectively solves the submodular optimization problem for data selection.
Key Results
- Significant Data Reduction: DiSF selects only 1.5% of the training files from SlimPajama (approximately 9 billion tokens) to achieve performance comparable to full-data pre-training.
- Improved Efficiency: DiSF achieves about 1.5x training efficiency and 5x data efficiency compared to full-data pre-training within a 50B token budget.
- Superior Overall Performance: Across nine tasks from the Harness framework, DiSF consistently outperforms baselines, demonstrating better general performance and robustness.
- Scalability: The method shows strong scalability across different model sizes (120M to 1.1B parameters) and architectures (TinyLlama, Pythia, OPT).
Limitations and Future Work
- Feature Extractor Choice: While Contriever performed best, the paper notes that other feature extractors like CLIP and GPT-2 did not yield as satisfactory results, suggesting the choice of feature extractor is important.
- Selection Scale Hyperparameter: The paper identifies an "ideal point" for the selection scale (batch size) that balances computational cost and performance, but this parameter might require tuning for different settings.
- Future Work: The paper's findings highlight the critical role of diversity in LLM pre-training, suggesting further exploration into how to best capture and leverage this diversity for even more efficient and capable models.
Summary updated