RINAS: Training with Dataset Shuffling Can Be General and Fast

Tianle Zhong, Jiechen Zhao, Xindi Guo, Qiang Su, Geoffrey Fox
12/4/2023
cs.DBcs.DCcs.LG

No confident code implementation found for this paper.

Abstract

Deep learning datasets are expanding at an unprecedented pace, creating new challenges for data processing in model training pipelines. A crucial aspect of these pipelines is dataset shuffling, which significantly improves unbiased learning and convergence accuracy by adhering to the principles of random sampling. However, loading shuffled data for large datasets incurs significant overhead in the deep learning pipeline and severely impacts the end-to-end training throughput. To mitigate this, current deep learning systems often resort to partial dataset shuffling, sacrificing global randomness to maintain acceptable training throughput on large datasets, still leaving global shuffling efficiency issues not fully explored. In this work, we present RINAS, a data loading framework that systematically addresses the performance bottleneck of loading global shuffled datasets. Our key contribution is to offer an intra-batch unordered data fetching approach, which unleashes unexplored parallelism of data loading. We implement RINAS under the PyTorch framework for common dataset libraries HuggingFace and TorchVision. Our experimental results show that RINAS improves the throughput of general language model training and vision model training by up to 59% and 89%, respectively.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. Any repos shown below are weak matches — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{zhong2023rinas,
  title  = {RINAS: Training with Dataset Shuffling Can Be General and Fast},
  author = {Tianle Zhong and Jiechen Zhao and Xindi Guo and Qiang Su and Geoffrey Fox},
  year   = {2023},
  eprint = {2312.02368},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2312.02368v1}
}

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/2312.02368.svg)](https://codeofpaper.com/paper/2312.02368)

Discussion