Abstract
A new generation of manycore processors is on the rise that offers dozens and more cores on a chip and, in a sense, fuses host processor and accelerator. In this paper we target the efficient training of generalized linear models on these machines. We propose a novel approach for achieving parallelism which we call Heterogeneous Tasks on Homogeneous Cores (HTHC). It divides the problem into multiple fundamentally different tasks, which themselves are parallelized. For evaluation, we design a detailed, architecture-cognizant implementation of our scheme on a recent 72-core Knights Landing processor that is adaptive to the cache, memory, and core structure. Our library efficiently supports dense and sparse datasets as well as 4-bit quantized data for further possible gains in performance. We show benchmarks for Lasso and SVM with different data sets against straightforward parallel implementations and prior software. In particular, for Lasso on dense data, we improve the state-of-the-art by an order of magnitude.
Introduction
As high-performance computing moves toward manycore systems—processors with dozens or hundreds of cores like the Intel Xeon Phi—standard software often fails to leverage the available compute power. Training Generalized Linear Models (GLMs), such as Lasso regression and Support Vector Machines (SVM), typically faces a "memory wall." Standard parallelization strategies often lead to significant write contention and memory bandwidth bottlenecks, as multiple cores compete to update the same memory locations.
The HTHC Framework
To address these challenges, we introduce Heterogeneous Tasks on Homogeneous Cores (HTHC). Instead of assigning the same job to every core, HTHC divides the workload into two specialized groups:
- Task A (The Selectors): These cores calculate "duality gaps" to identify which model parameters are most in need of updating. This task is primarily read-heavy.
- Task B (The Updaters): These cores perform the mathematical updates to model parameters using Stochastic Coordinate Descent. This task is write-heavy.
This specialization allows for more efficient system utilization. By allowing Task A to work with slightly "stale" model data, the two tasks can run asynchronously, avoiding the overhead of constant synchronization.
Implementation and Optimization
Our implementation is highly optimized for the Intel Knights Landing (KNL) architecture:
- Memory Management: We utilize hardware-aware memory splitting, placing Task A's data in standard DRAM and Task B's data in high-speed, on-chip MCDRAM to minimize bandwidth interference.
- Vectorization: We use AVX-512 instructions to process 16 numbers per core simultaneously.
- Quantization: Support for 4-bit data quantization significantly reduces memory traffic for dense datasets with negligible impact on accuracy.
Key Results and Scaling
We evaluated HTHC on several real-world datasets, including Epsilon (dense), Dogs vs. Cats (dense), News20 (sparse), and Criteo (sparse).
Key findings include:
- Order-of-Magnitude Speedup: For Lasso regression on dense data, HTHC improves performance by 10x over state-of-the-art implementations.
- Robustness to Staleness: Empirical testing shows that the model converges efficiently as long as Task A updates at least 15% of the importance values per epoch.
- Dense vs. Sparse Performance: While HTHC is exceptionally effective on dense data, the overhead of thread management makes it less advantageous for extremely sparse datasets like News20.
Conclusion
HTHC demonstrates that specializing roles on homogeneous manycore processors can overcome traditional parallelization bottlenecks. Future work will focus on improving performance for sparse data, automating load balancing between selector and updater tasks, and porting these optimizations to other manycore architectures.
Summary updated