Skip to main content
QUICK REVIEW

[Paper Review] LIRS: Enabling efficient machine learning on NVM-based storage via a lightweight implementation of random shuffling

Zhi-Lin Ke, Hsiang-Yun Cheng|arXiv (Cornell University)|Oct 10, 2018
Advanced Neural Network ApplicationsComputer Science25 references8 citations
TL;DR

LIRS proposes a lightweight, memory-efficient random shuffling method for machine learning on non-volatile memory (NVM)-based storage, leveraging fast random I/O to enable fully random data shuffling with minimal overhead. By shuffling instance indexes and directly accessing data from storage, LIRS reduces SVM and DNN training time by 49.9% and 43.5% on average, while improving DNN test accuracy by 1.01%.

ABSTRACT

Machine learning algorithms, such as Support Vector Machine (SVM) and Deep Neural Network (DNN), have gained a lot of interests recently. When training a machine learning algorithm, randomly shuffle all the training data can improve the testing accuracy and boost the convergence rate. Nevertheless, realizing training data random shuffling in a real system is not a straightforward process due to the slow random accesses in hard disk drive (HDD). To avoid frequent random disk access, the effect of random shuffling is often limited in existing approaches. With the emerging non-volatile memory-based storage device, such as Intel Optane SSD, which provides fast random accesses, we propose a lightweight implementation of random shuffling (LIRS) to randomly shuffle the indexes of the entire training dataset, and the selected training instances are directly accessed from the storage and packed into batches. Experimental results show that LIRS can reduce the total training time of SVM and DNN by 49.9% and 43.5% on average, and improve the final testing accuracy on DNN by 1.01%.

Motivation & Objective

  • Address the inefficiency of existing shuffling methods that sacrifice randomness to reduce I/O on slow storage devices.
  • Leverage the fast random access performance of NVM-based storage (e.g., Intel Optane SSD) to enable fully random shuffling.
  • Minimize memory overhead compared to traditional shuffling techniques that require large in-memory buffers.
  • Improve convergence rate and testing accuracy in both SVM and DNN training by increasing data shuffling randomness.
  • Demonstrate that simply upgrading to faster storage is insufficient for optimal training performance without algorithmic improvements like LIRS.

Proposed method

  • Propose a lightweight random shuffling mechanism that operates on indexes of training data rather than the data itself.
  • Use I/O system calls to directly access shuffled training instances from NVM storage, avoiding in-memory data movement.
  • Introduce the Data Format Aware Location Generator to efficiently map shuffled indexes to physical storage locations, especially for sparse formats.
  • Apply Page-aware Random Shuffling to optimize access patterns when training instances are small and numerous.
  • Maintain a small random assignment table (9.8MB for ImageNet) to track shuffled indexes, minimizing memory footprint.
  • Ensure overlapping of I/O and computation phases to hide loading latency, especially on compute-intensive DNN models.

Experimental results

Research questions

  • RQ1How does the degree of data shuffling impact convergence rate and testing accuracy in machine learning training?
  • RQ2Can NVM-based storage with fast random I/O enable fully random shuffling without prohibitive memory or I/O costs?
  • RQ3What is the impact of storage device I/O characteristics (HDD, SSD, Optane) on training time when using different shuffling methods?
  • RQ4Can a lightweight shuffling method reduce training time and improve model accuracy without increasing memory usage?
  • RQ5Is replacing HDD with faster storage sufficient to achieve optimal training performance, or is algorithmic innovation like LIRS necessary?

Key findings

  • LIRS reduces total training time by 49.9% on average for SVM and 43.5% for DNN compared to existing methods on HDD.
  • LIRS improves DNN testing accuracy by 1.01% due to increased randomness within and between batches, reducing risk of local minima.
  • On Optane SSD, LIRS reduces training time by 46.15% for AlexNet, 36.90% for OverFeat, and 47.56% for VGG16 compared to TFIP on HDD.
  • LIRS achieves these gains with only 9.8MB of additional memory (less than 0.1% of ImageNet size), far less than TFIP’s 7.3GB memory requirement.
  • The performance of LIRS is insensitive to storage speed beyond a certain threshold, as long as I/O can be hidden by computation time.
  • Simply upgrading from HDD to Optane SSD without LIRS does not yield optimal training time improvements, proving the necessity of algorithmic innovation.

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.