Ivan Svogor, Christian Eichenberger, Markus Spanring, Moritz Neun, and Michael Kopp

Implementation differences

Differences between vanilla batch loading and two new implementations introduced in this work.

A growing number of machine learning (ML) frameworks recently made deep learning accessible to a wider audience of engineers, scientists, and practitioners, by allowing straightforward use of complex neural network architectures and algorithms. However, since deep learning is rapidly evolving, not only through theoretical advancements but also with respect to hardware and software engineering, ML frameworks often lose backward compatibility and introduce technical debt that can lead to bottlenecks and sub-optimal resource utilization. Moreover, the focus is in most cases not on deep learning engineering, but rather on new models and theoretical advancements. In this work, however, we focus on engineering, more specifically on the data loading pipeline in the PyTorch framework. We designed a series of benchmarks that outline performance issues of certain steps in the data loading process. Our findings show that for classification tasks that involve loading many files, like images, the training wall-time can be significantly improved. With our new, modified ConcurrentDataloader we can reach improvements in GPU utilization and significantly reduce batch loading time, up to 12X. This allows for the use of the cloud-based, S3-like object storage for datasets, and have comparable training time as if datasets are stored on local drives.

arXiv:2211.04908, 2022-11-09.

View paper
IARAI Authors
Ivan Svogor, Christian Eichenberger, Markus Spanring, Moritz Neun, Dr Michael Kopp​
Infrastructure Research
Benchmarking, Data Loading, Deep Learning, Machine Learning, PyTorch


Imprint | Privacy Policy

Stay in the know with developments at IARAI

We can let you know if there’s any

updates from the Institute.
You can later also tailor your news feed to specific research areas or keywords (Privacy)

Log in with your credentials

Forgot your details?

Create Account