Introduction
Generalized Linear Models (GLMs) with $L_1$ and $L_2$ regularization are fundamental tools for classification and regression, particularly in domains like text mining and clickstream analysis. As datasets scale to billions of examples and millions of features, traditional single-node training becomes impossible. While distributed computing offers a solution, standard approaches often struggle with the unique characteristics of high-dimensional sparse data. This paper introduces d-GLMNET, a distributed algorithm designed to scale regularized GLMs efficiently by partitioning data by features and implementing a robust synchronization mechanism.
The Challenge of Distributed GLMs
Most distributed machine learning frameworks utilize horizontal data splitting, where examples are distributed across nodes. However, for high-dimensional sparse data, vertical splitting—partitioning by features—can be more effective. Vertical splitting presents two primary challenges:
- Update Conflicts: Parallel updates to different features can lead to aggressive steps that cause the global objective to diverge.
- The Straggler Problem: In Bulk Synchronous Parallel (BSP) systems, the cluster's speed is limited by the slowest node, leading to idle resources.
Methodology: d-GLMNET
The proposed d-GLMNET algorithm addresses these challenges through a combination of Coordinate Gradient Descent (CGD) and a global line search.
Vertical Data Splitting and Local Optimization
The dataset is partitioned such that each of the $M$ nodes stores a subset of features for all $n$ examples. Each node performs coordinate descent on its local features to minimize a quadratic approximation of the loss function.
Global Line Search and Adaptive Trust-Region
To ensure convergence and prevent update conflicts, d-GLMNET employs a global line search using the Armijo rule. A critical innovation is the introduction of an adaptive trust-region parameter, $\mu$. In distributed settings, standard line searches often result in small step sizes ($\alpha < 1$) that can inadvertently "break" the sparsity of $L_1$-regularized models by turning zero weights into tiny non-zero values. By adaptively increasing $\mu$ when small steps are detected, the algorithm effectively penalizes large updates, allowing it to take full steps ($\alpha = 1$) more frequently and preserve model sparsity.
Communication Efficiency
Communication is a major bottleneck in distributed systems. d-GLMNET optimizes this by synchronizing the vector $X\Delta\beta$ (of size $n$) rather than the full weight vector. This ensures that communication costs remain manageable even as the number of features grows into the millions.
Asynchronous Load Balancing (ALB)
To mitigate the "straggler problem," the authors propose Asynchronous Load Balancing. Unlike traditional BSP, where every node must finish its iteration before synchronization, ALB allows the system to proceed once a specified fraction of nodes (e.g., 75%) have completed their local updates. Fast nodes can perform multiple passes over their features, while slower nodes contribute as much as possible within the synchronization window. While this introduces non-determinism, empirical results show it significantly reduces wall-clock training time without sacrificing convergence.
Experimental Evaluation
The authors compared d-GLMNET against state-of-the-art methods, including ADMM and Vowpal Wabbit (VW), across three large-scale datasets:
- epsilon: A dense synthetic dataset (12 GB).
- webspam: A sparse dataset (21 GB) with 16.6 million features.
- yandex_ad: A massive, highly sparse click-prediction dataset (56 GB) with 35 million features.
Key Findings
- Performance on Sparse Data: d-GLMNET consistently outperformed ADMM and VW on sparse datasets (
webspamandyandex_ad), reaching lower objective values and higher auPRC (Area Under the Precision-Recall Curve) in less time. - Model Sparsity: The algorithm produced models with significantly fewer non-zero weights than its competitors, facilitating easier deployment and better interpretability.
- ALB Effectiveness: The ALB modification consistently proved faster than the synchronous version, demonstrating that eliminating wait times for stragglers is vital for large-scale cluster efficiency.
- Dense Data Limitations: On the dense
epsilondataset, L-BFGS (via Vowpal Wabbit) remained highly competitive, indicating that coordinate descent's strengths are most prominent in sparse, high-dimensional regimes.
Conclusion
d-GLMNET provides a scalable and efficient framework for training regularized GLMs on massive sparse datasets. By combining vertical data splitting with an adaptive trust-region and asynchronous load balancing, the algorithm achieves superior convergence and sparsity compared to existing distributed methods. Future work may involve integrating multi-core optimizations within nodes to further enhance performance on modern hardware architectures.
Summary updated