Large-Scale Stochastic Learning using GPUs

Thomas P. Parnell, Celestine Dünner, Kubilay Atasu, Manolis Sifalakis, Haris PozidisWorkshops @ IPDPS 2017

TL;DR

This paper introduces a novel GPU-accelerated stochastic learning system (TPA-SCD) for large-scale applications, achieving up to 35x speedup over sequential CPU implementations. It also presents an adaptive aggregation technique for distributed learning, enabling efficient training on massive datasets that exceed single GPU memory, with a 20x speedup demonstrated on a 40GB dataset.

What Problem Does This Paper Address?

Training machine learning models on massive datasets is computationally expensive and time-consuming. While GPUs offer significant parallel processing power, traditional stochastic learning algorithms like stochastic coordinate descent (SCD) are inherently sequential, making it difficult to fully leverage GPU parallelism. Furthermore, the limited memory of even high-end GPUs restricts the size of datasets that can be trained directly. This paper tackles these challenges by developing a parallel GPU implementation of SCD and a distributed learning framework that can scale to datasets far larger than available GPU memory.

Methods

The paper proposes two main innovations:

  • TPA-SCD (Twice Parallel, Asynchronous Stochastic Coordinate Descent): This is a novel GPU implementation of SCD designed to exploit the massively parallel architecture of GPUs. It achieves parallelism at two levels:
  • Block-level parallelism: Each coordinate update is handled by a dedicated thread block, scheduled concurrently on GPU streaming multiprocessors.
  • Fine-grained parallelism: Within each thread block, computations for coordinate updates are distributed across multiple threads. Updates to the shared model vector are handled using atomic operations, ensuring consistency without blocking.
  • Adaptive Aggregation for Distributed Learning: To address the challenge of datasets exceeding single GPU memory, the authors extend their work to distributed settings. They propose a novel method for optimizing the aggregation of model updates from multiple worker nodes. Instead of simple averaging, this adaptive approach precisely computes an optimal aggregation parameter at each epoch, leading to improved convergence and scaling.

Datasets

The primary dataset used for evaluation is the webspam dataset. For large-scale experiments, a sample of the Criteo dataset was used, consisting of approximately 200 million training examples and 75 million unique features, occupying around 40GB of memory.

Key Insights and Ideas

  • GPU Parallelism for Sequential Algorithms: The paper demonstrates that even inherently sequential algorithms like SCD can be significantly accelerated by carefully mapping their operations onto the parallel architecture of GPUs, achieving substantial speedups.
  • The Power of Asynchronous Updates: The TPA-SCD implementation leverages asynchronous communication between thread blocks on the GPU, which is crucial for maintaining high throughput and avoiding bottlenecks.
  • Adaptive Aggregation for Efficient Distributed Learning: Simple averaging of worker updates in distributed learning can be suboptimal. The proposed adaptive aggregation method dynamically adjusts the contribution of each worker, leading to faster convergence and better scaling, especially for large datasets.
  • Bridging Single-GPU and Distributed Training: The work effectively combines GPU acceleration with distributed learning techniques, creating a system capable of handling datasets that are too large for a single GPU, thus enabling training on internet-scale data.

Key Results

  • Single-GPU Acceleration: The TPA-SCD implementation achieved up to 35x speedup over a sequential CPU implementation for ridge regression.
  • Distributed Learning Scaling: The adaptive aggregation technique allowed scaling out stochastic learning across up to 8 worker nodes without significant loss of training time.
  • Large-Scale Training: By combining GPU acceleration and distributed learning, the authors trained on a 40GB dataset (200 million examples, 75 million features) in approximately 4 seconds using 4 GPUs. This represents a 20x speedup compared to a multi-threaded, distributed CPU implementation.
  • Comparison with Existing Methods: The proposed TPA-SCD demonstrated superior performance compared to existing CPU-based asynchronous SCD implementations (A-SCD and PASSCODE-Wild) in terms of both speed and convergence accuracy.

Limitations and Future Work

  • Dataset Size: While the paper demonstrates scaling to 40GB datasets, the authors acknowledge that the memory capacity of GPUs remains a limiting factor for even larger datasets.
  • Communication Overhead: In distributed settings, communication overheads increase with the number of workers. While the adaptive aggregation helps mitigate this, the paper suggests that faster network interfaces (e.g., 100Gbit Ethernet) could further improve scaling.
  • Generalization: The paper focuses on ridge regression. While the principles are applicable to other problems, further work would be needed to demonstrate their effectiveness on a wider range of machine learning tasks.
  • Future Directions: The authors suggest exploring infrastructure-dependent trade-offs between computation and communication for distributed learning and optimizing the ratio of these to further improve convergence. They also imply that the adaptive aggregation technique could be beneficial for other distributed optimization algorithms.

Summary updated

BibTeX
@inproceedings{parnell2017large,
  author = {Thomas P. Parnell and Celestine Dünner and Kubilay Atasu and Manolis Sifalakis and Haris Pozidis},
  title = {{Large-Scale Stochastic Learning using GPUs}},
  booktitle = {Workshops @ IPDPS},
  year = {2017},
  url = {https://openreview.net/forum?id=k6ussxpVcQc},
}
Figure