DataSculpt: Crafting Data Landscapes for Long-Context LLMs through Multi-Objective Partitioning

Keer Lu, Xiaonan Nie, Zheng Liang, Da Pan, Shusen Zhang +6 more
9/2/2024
cs.CL

No official code found. Best implementation: 8023looker/DataSculpt (6 stars, last commit 2024-10-06).

Abstract

In recent years, Large Language Models (LLMs) have demonstrated significant improvements across a variety of tasks, one of which is the long-context capability. The key to improving long-context performance lies in effective data organization and management strategies that integrate data from multiple domains and optimize the context window during training. Through extensive experimental analysis, we identified three key challenges in designing effective data management strategies that enable the model to achieve long-context capability without sacrificing performance in other tasks: (1) a shortage of long documents across multiple domains, (2) effective construction of context windows, and (3) efficient organization of large-scale datasets. To address these challenges, we introduce DataSculpt, a novel data management framework designed for long-context training. We first formulate the organization of training data as a multi-objective combinatorial optimization problem, focusing on attributes including relevance, homogeneity, integrity, and efficiency. Specifically, our approach utilizes a coarse-to-fine methodology to optimize training data organization both efficiently and effectively. We begin by clustering the data based on semantic similarity (coarse), followed by a multi-objective greedy search within each cluster to score and concatenate documents into various context windows (fine). Our comprehensive evaluations demonstrate that DataSculpt significantly enhances long-context training performance, resulting in improvements of 18.09% in retrieval augmentation, 21.23% in summarization, 21.27% in reading comprehension, and a 3.81% increase in code completion, while also maintaining overall model proficiency with a 4.88% improvement.

View on arXivView PDF

Code Implementations(1)

61Shell, PythonSep 11, 20242 years ago

Similar Papers

Cite this paper

@article{lu2024datasculpt,
  title  = {DataSculpt: Crafting Data Landscapes for Long-Context LLMs through Multi-Objective Partitioning},
  author = {Keer Lu and Xiaonan Nie and Zheng Liang and Da Pan and Shusen Zhang and Keshi Zhao and Weipeng Chen and Zenan Zhou and Guosheng Dong and Bin Cui and Wentao Zhang},
  year   = {2024},
  eprint = {2409.00997},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2409.00997v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2409.00997.svg)](https://codeofpaper.com/paper/2409.00997)

Discussion