Skip to main content
QUICK REVIEW

[Paper Review] Data-Juicer: A One-Stop Data Processing System for Large Language Models

Daoyuan Chen, Huang Yi-lun|arXiv (Cornell University)|Sep 5, 2023
Topic ModelingComputer Science5 citations
TL;DR

Data-Juicer is a one-stop, extensible data processing system for Large Language Models (LLMs) that enables efficient construction, evaluation, and optimization of diverse data recipes through over 50 composable operators. It achieves up to a 7.45% average performance gain across 16 LLM benchmarks and a 17.5% higher win rate in GPT-4 pairwise evaluations by supporting scalable, flexible, and auto-evaluated data pipeline composition with integrated LLM training and distributed computing ecosystems.

ABSTRACT

The immense evolution in Large Language Models (LLMs) has underscored the importance of massive, heterogeneous, and high-quality data. A data recipe is a mixture of data from different sources for training LLMs, which plays a vital role in LLMs' performance. Existing open-source tools for LLM data processing are mostly tailored for specific data recipes. To continuously uncover the potential of LLMs, incorporate data from new sources, and improve LLMs' performance, we build a new system named Data-Juicer, with which we can efficiently generate diverse data recipes, explore different possibilities in forming data mixtures, and evaluate their effects on model performance. Different from traditional data-analytics pipelines, Data-Juicer faces some unique challenges. Firstly, the possible data sources for forming data recipes are truly heterogeneous and massive with various qualities. Secondly, it is extremely expensive to precisely evaluate data recipes' impact on LLMs' performance. Thirdly, the end users of Data-Juicer, model developers, need sufficient flexibility to configure and evaluate different data recipes. Data-Juicer features a fine-grained abstraction of pipelines for constructing data recipes, with over 50 built-in operators for easy composition and extension. By incorporating visualization and auto-evaluation capabilities, Data-Juicer enables a timely feedback loop for both LLM pre-training and fine-tuning. Further, Data-Juicer is optimized and integrated with ecosystems for LLM training, evaluation, and distributed computing. The data recipes derived with Data-Juicer gain notable improvements on state-of-the-art LLMs, by up to 7.45% increase in averaged score across 16 LLM benchmarks and 17.5% higher win rate in pair-wise GPT-4 evaluations. Our system, data recipes, and tutorials are released, calling for broader data-centric research on training and understanding LLMs.

Motivation & Objective

  • To address the lack of flexible, extensible, and scalable open-source tools for processing heterogeneous, high-quality data recipes in LLM training and fine-tuning.
  • To overcome the challenge of expensive and slow evaluation of data recipes by enabling timely feedback through auto-evaluation and visualization.
  • To support end users in efficiently exploring diverse data mixtures with customizable pipelines, improving model performance across general-purpose and domain-specific tasks.
  • To decouple data processing components for greater modularity and composability, enabling seamless integration with LLM training, evaluation, and distributed computing ecosystems.

Proposed method

  • Data-Juicer introduces a fine-grained abstraction of data processing pipelines using over 50 built-in, composable operators for data cleaning, filtering, editing, and transformation.
  • It enables flexible composition of operators with configurable hyperparameters, allowing users to explore diverse data recipes through customizable pipeline configurations.
  • The system integrates auto-evaluation and visualization to provide timely feedback on data recipe impact without full model retraining.
  • It is natively optimized and integrated with LLM training, evaluation, and distributed computing frameworks such as Ray and Apache Beam.
  • The system supports scalable data processing across multiple nodes, with performance improvements up to 87.4% reduction in processing time on distributed Ray clusters.
  • It incorporates domain-specific data processing capabilities through tailored operator combinations, enabling adaptation to use cases like finance, reading assistance, and character customization.

Experimental results

Research questions

  • RQ1How can we design a modular and composable data processing system that supports diverse, heterogeneous data sources for LLM training and fine-tuning?
  • RQ2What is the impact of different data recipe compositions on LLM performance, and how can we efficiently evaluate them without full model retraining?
  • RQ3How can we achieve high scalability and performance in distributed data processing for massive-scale LLM data pipelines?
  • RQ4To what extent can a unified data processing system improve model performance across multiple benchmarks and real-world applications?
  • RQ5How can we balance usability, customizability, and automation in data recipe development for LLMs?

Key findings

  • Data-Juicer enables the creation of data recipes that achieve a 7.45% average performance increase across 16 standard LLM benchmarks.
  • In GPT-4 pairwise evaluations, models trained with Data-Juicer’s data recipes showed a 17.5% higher win rate compared to baseline recipes.
  • The system demonstrated up to 87.4% and 84.6% reduction in processing time on StackExchange and arXiv datasets when scaling across multiple nodes using Ray.
  • Data-Juicer outperformed both Ray and Beam in single-server performance and showed proportional scalability on Ray, while Beam’s performance remained nearly unchanged due to I/O bottlenecks.
  • The system has been successfully integrated into industrial LLMs at Alibaba Cloud, including Dianjin, Zhiwen, and Xingchen, demonstrating real-world applicability across finance, reading assistance, and character customization.
  • The Chinese-extended quality classifier in Data-Juicer maintained a data keeping ratio comparable to the original English GPT-3 classifier, validating cross-lingual consistency.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.