Analyzing Data Reference Characteristics of Deep Learning Workloads for Improving Buffer Cache Performance
Source abstract
Abstract
Due to the recent growing data size of deep learning workloads, loading data from storage is increasingly becoming a performance bottleneck for neural network systems. In this article, we analyze the data reference characteristics of neural network workloads and observe that they are significantly different from conventional desktop workloads. In particular, during the training phase of deep learning, data blocks are referenced in a fully random manner, which significantly degrades the performance of a buffer cache. To handle this situation, this article suggests a new data shuffling scheme that aims to accelerate data loading in deep neural networks. Unlike the default shuffling method used in PyTorch that randomly shuffles full dataset in every epoch, the proposed scheme defines a shuffling unit called bundle, and enhances the locality of data references to improve buffer cache performances. Specifically, the proposed scheme performs data shuffling by the unit of a bundle, and the bundles used in each epoch are arranged alternately, thereby improving the locality of references at the viewpoint of the buffer cache. Based on simulation and measurement studies, we show that the hit rate of the buffer cache is improved by 37.2%, and the data loading time is also shortened by 11.4% without degrading the model’s training efficiency.
Source: crossref · Quality: baseline
Research context
OpenAlex topics: Advanced Neural Network Applications · Machine Learning and Data Classification · Domain Adaptation and Few-Shot Learning
SciVX discovery tags are terminology-based. OpenAlex topics are source-provided classifications.
Affiliations
Department of Computer Engineering, Ewha University, Seoul 03760, Republic of Korea
Funding
Institute of Information & communications Technology Planning & Evaluation (IITP) · Korean government (MSIT) · Artificial Intelligence Innovation Hub · Artificial Intelligence Convergence Innovation Human Resources Development (Ewha University)
References (39)
Show source-provided references
1. Machine Learning and Deep Learning in smart manufacturing: The Smart Grid paradigm10.1016/j.cosrev.2020.100341 ↗
2. Learning IoT in edge: Deep learning for the internet of things with edge computing10.1109/MNET.2018.1700202 ↗
3. Deep Learning for Safe Autonomous Driving: Current Challenges and Future Directions10.1109/TITS.2020.3032227 ↗
4. A Review on Bayesian Deep Learning in Healthcare: Applications and Challenges10.1109/ACCESS.2022.3163384 ↗
5. Fortune Business Insights (2023, October 06). Artificial Intelligence Market Size, Share & COVID-19 Impact Analysis. Available online: https://www.fortunebusinessinsights.com/industry-reports/artificial-intelligence-market-100114.
6. Adaptive resource optimized edge federated learning in real-time image sensing classifications10.1109/JSTARS.2021.3120724 ↗
7. Park, S., and Bahn, H. (2022, January 18–20). Memory Access Characteristics of Neural Network Workloads and Their Implications. Proceedings of the IEEE Asia-Pacific Conference on Computer Science and Data Engineering, Gold Coast, Australia.10.1109/CSDE56538.2022.10089326 ↗
8. Rhu, M., Gimelshein, N., Clemons, J., Zulfiqar, A., and Keckler, S.W. (2016, January 15–19). vDNN: Virtualized Deep Neural Networks for Scalable, Memory-Efficient Neural Network Design. Proceedings of the 2016 49th Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), Taipei, Taiwan.10.1109/MICRO.2016.7783721 ↗
9. Lee, J., and Bahn, H. (2022, January 18–20). Analyzing Memory Access Traces of Deep Learning Workloads for Efficient Memory Management. Proceedings of the 12th Int’l Conf. Information Technology in Medicine and Education, Xiamen, China.10.1109/ITME56794.2022.00090 ↗
10. Zhang, Z., Huang, L., Manor, U., Fang, L., Merlo, G., Michoski, C., and Gaffney, N. (2018). FanStore: Enabling efficient and scalable I/O for distributed deep learning. arXiv.
11. Cheng, G., Wan, Z., Ding, W., and Sun, R. (2023). Memory Allocation Strategy in Edge Programmable Logic Controllers Based on Dynamic Programming and Fixed-Size Allocation. Appl. Sci., 13.10.3390/app131810297 ↗
12. UniBuffer: Optimizing Journaling Overhead with Unified DRAM and NVM Hybrid Buffer Cache10.1109/TCAD.2019.2925366 ↗
13. Bahn, H., and Kim, J. (2022, January 18–20). Reducing the Overhead of Virtual Memory Swapping by Considering Application Characteristics and Memory Situations. Proceedings of the Int’l Conf. Information Technology in Medicine and Education, Xiamen, China.10.1109/ITME56794.2022.00099 ↗
14. Kwon, S., and Bahn, H. (2022, January 7–9). Classification and Characterization of Memory Reference Behavior in Machine Learning Workloads. Proceedings of the IEEE/ACIS 23rd Int’l Conf. Software Engineering, Artificial Intelligence, Networking and Parallel/Distributed Computing (SNPD), Taichung, Taiwan.10.1109/SNPD54884.2022.10051800 ↗
15. (2023, October 06). Strace. Available online: https://strace.io/.
16. (2023, October 06). PyTorch. Available online: https://pytorch.org/.
17. (2023, October 06). Food101 Dataset. Available online: https://data.vision.ee.ethz.ch/cvl/datasets_extra/food-101/.
18. (2023, October 06). ImageNet100 Dataset. Available online: https://www.kaggle.com/datasets/ambityga/imagenet100.
19. (2023, October 06). ImageNet-1k Dataset. Available online: https://www.image-net.org/challenges/LSVRC/2012.
20. Zhou, F., Behren, J., and Brewer, E. (2005, January 10–15). AMP: Program Context Specific Buffer Caching. Proceedings of the USENIX Annual Technical Conference, Anaheim, CA, USA.
21. Characterization of Memory Access in Deep Learning and Its Implications in Memory Management
22. Khan, R., Yazdani, A., Fu, Y., Paul, A., Ji, B., Jian, X., Cheng, Y., and Butt, A. (2023, January 21–23). SHADE: Enable Fundamental Cacheability for Distributed Deep Learning Training. Proceedings of the 21st USENIX Conference on File and Storage Technologies (FAST), Santa Clara, CA, USA.
23. He, K., Zhang, X., Ren, S., and Sun, J. (2016, January 27–30). Deep residual learning for image recognition. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.90 ↗
24. Measuring the Effects of Data Parallelism on Neural Network Training
25. (2023, October 06). SUN 397. Available online: https://vision.princeton.edu/projects/2010/SUN/.
26. Nguyen, T.T., Trahay, F., Domke, J., Drozd, A., Vatai, E., Liao, J., Wahib, M., and Gerofi, B. (June, January 30). Why Globally Re-shuffle? Revisiting Data Shuffling in Large Scale Deep Learning. Proceedings of the IEEE Int’l Parallel and Distributed Processing Symposium (IPDPS), Lyon, France.
27. Zhu, Y., Chowdhury, F., Fu, H., Moody, A., Mohror, K., Sato, K., and Yu, W. (2018, January 25–28). Entropy-Aware I/O Pipelining for Large-Scale Deep Learning on HPC Systems. Proceedings of the IEEE 26th Int’l Symposium on Modeling, Analysis, and Simulation of Computer and Telecommunication Systems (MASCOTS), Milwaukee, WI, USA.10.1109/MASCOTS.2018.00023 ↗
28. Dryden, N., Böhringer, R., Ben-Nun, T., and Hoefler, T. (2021). Clairvoyant Prefetching for Distributed Machine Learning I/O. arXiv.10.1145/3458817.3476181 ↗
29. Katharopoulos, A., and Fleuret, F. (2018, January 10–15). Not All Samples Are Created Equal: Deep Learning with Importance Sampling. Proceedings of the 35th Int’l Conference on Machine Learning (PMLR), Stockholm, Sweden.
30. Girshick, R. (2015, January 7–13). Fast R-CNN. Proceedings of the 2015 IEEE/CVF Int’l Conference on Computer Vision (ICCV), Santiago, Chile.10.1109/ICCV.2015.169 ↗
31. Shrivastava, A., Gupta, A., and Girshick, R. (July, January 26). Training Region-Based Object Detectors with Online Hard Example Mining. Proceedings of the 2016 IEEE Conference on Computer Vision and Pattern Recognition (CVPR), Las Vegas, NV, USA.10.1109/CVPR.2016.89 ↗
32. Schroff, F., Kalenichenko, D., and Philbin, J. (2015, January 7–12). FaceNet: A Unified Embedding for Face Recognition and Clustering. Proceedings of the IEEE Computer Society Conference on Computer Vision and Pattern Recognition, Boston, MA, USA.10.1109/CVPR.2015.7298682 ↗
33. Robinson, J., Chuang, C., Sra, S., and Jegelka, S. (2020). Contrastive Learning with Hard negative samples. arXiv.
34. Tabassum, A., Wahed, M., Eldardiry, H., and Lourentzou, I. (2022). Hard Negative Sampling Strategies for Contrastive Representation Learning. arXiv.
35. Arazo, E., Ortego, D., Albert, P., O’Connor, N., and McGuinness, K. (2021). How Important is Importance Sampling for Deep Budgeted training?. arXiv.
36. Lee, G., Lee, I., Ha, H., Lee, K., Hyun, H., Shin, A., and Chun, B. (2021, January 14–16). Refurbish Your Training Data: Reusing Partially Augmented Samples for Faster Deep Neural Network Training. Proceedings of the USENIX Annual Technical Conference, Virtual.
37. PHDFS: Optimizing I/O performance of HDFS in deep learning cloud computing platform10.1016/j.sysarc.2020.101810 ↗
38. Chien, S., Markidis, S., Sishtla, C., Santos, L., Herman, P., Narasimhamurthy, S., and Laure, E. (2018, January 12). Characterizing Deep-Learning I/O Workloads in TensorFlow. Proceedings of the IEEE/ACM 3rd Int’l Workshop on Parallel Data Storage & Data Intensive Scalable Computing Systems (PDSW-DISCS), Dallas, TX, USA.10.1109/PDSW-DISCS.2018.00011 ↗
39. Shi, Z., Huang, X., Jain, A., and Lin, C. (2019, January 12–16). Applying Deep Learning to the Cache Replacement Problem. Proceedings of the 52nd Annual IEEE/ACM International Symposium on Microarchitecture (MICRO), Columbus, OH, USA.10.1145/3352460.3358319 ↗