cs.DCJan 16, 2025

Ray Data: A dynamic and scalable system for heterogeneous data processing

Authors: Frank Sifei Luan, Ron Yifeng Wang, Yile Gu, Ziming Mao, Charlotte Lin, Amog Kamsetty, Hao Chen, Cheng Su, 

Organizations: UC Berkeley · University of Washington · Anyscale

Abstract

While ML model training and inference are both GPU-intensive, CPU-based data processing is often the bottleneck. Existing distributed data processing systems assume homogeneous resource requirements. They excel at CPU-based computation but either under-utilize heterogeneous resources or impose high overheads on failure and reconfiguration. We introduce Ray Data, a scalable system for heterogeneous workloads spanning batch inference and ML training. The key idea is to combine dynamic task creation for memory efficiency with dynamic task placement for operator elasticity. Making both decisions dynamically allows the system to adapt to heterogeneous pipelines where the memory and compute requirements per operator are unknown and variable over time. Ray Data addresses two challenges: (1) leveraging dynamic task creation for memory-efficient pipelining, and (2) designing a task placement policy that jointly allocates heterogeneous compute and memory resources to maximize throughput while limiting memory usage. Ray Data improves throughput on heterogeneous batch inference pipelines by 2.6-12×\times compared to traditional data processing systems. By leveraging heterogeneous clusters, Ray Data improves end-to-end training time for multimodal models such as Stable Diffusion by 31% compared to popular ML data loaders.

Figures & tables

Explore similar work

CardsList
  1. BatchGen: An Architecture for Scalable and Efficient Batch Inference

    Jun 19, 2026Tairan Xu, Leyang Xue, Zhan Lu +7Efficient Neural Network InferenceEfficient Inference

  2. Understand and Accelerate Memory Processing Pipeline for Large Language Model Inference

    Mar 30, 2026Zifan He, Rui Ma, Yizhou Sun +1LLM InferenceLLM Inference Acceleration

  3. ETH: Data-Balanced Heterogeneous Pipeline Parallelism for Training Large Models

    Oct 15, 2026Mianjie Yu, Zhongmin Zhao, Zizhao Mo +9Distributed TrainingPipeline Parallelism