TL;DR
This paper tackles the challenge of scaling distributed optimization for massive datasets by proposing a modified Newton method, DiSCO-F. By partitioning data by features instead of samples and using a more efficient preconditioning strategy, they achieve significant reductions in communication overhead and improved load balancing, leading to faster convergence compared to existing methods.
What Problem Does This Paper Address?
As datasets grow exponentially, training machine learning models requires distributed optimization techniques. A major bottleneck in these systems is communication between computing nodes, which is orders of magnitude slower than local computation. Existing distributed optimization methods, even Newton-type methods like DiSCO, often suffer from high communication costs and poor load balancing, where some nodes (master nodes) become idle while others are busy. This paper aims to address these limitations by proposing a new distributed optimization algorithm that minimizes communication and maximizes computational efficiency.
Methods
The authors build upon the DiSCO algorithm, a distributed inexact Newton method. Their key contributions are:
- Feature-based Data Partitioning (DiSCO-F): Instead of partitioning data by samples (where each node holds a subset of data points), they partition data by features. This means each node stores all samples but only a subset of features. This novel approach significantly reduces communication by requiring fewer "ReduceAll" operations (a collective communication primitive) and balances the workload more evenly across all nodes, eliminating the need for a dedicated master node.
- Efficient Preconditioning: The paper addresses the computational bottleneck of solving the preconditioned linear system in Newton methods. They propose a new preconditioning matrix that can be solved efficiently using the Woodbury formula, especially when the number of features used for approximation ($\tau$) is small. This makes the preconditioning step almost negligible.
- Modified DiSCO Algorithm (DiSCO-S and DiSCO-F): They present two variants: DiSCO-S (similar to the original DiSCO, partitioning by samples) and DiSCO-F (partitioning by features). The core of these algorithms involves an inexact Newton step solved using a preconditioned conjugate gradient (PCG) method.
Datasets
The paper evaluates their methods on several large-scale, real-world datasets:
- rcv1.test: 677,399 samples, 47,236 features, 1.21 GB.
- news20: 19,996 samples, 1,355,191 features, 0.13 GB.
- splice-site.test: 4,627,840 samples, 11,725,480 features, 273.4 GB.
These datasets are used with both Quadratic loss and Logistic loss functions.
Key Insights and Ideas
- Feature partitioning is a game-changer for communication: The most striking insight is how partitioning data by features dramatically reduces communication overhead. This is because fewer, larger vector communications are needed, and the workload is more evenly distributed.
- Efficient preconditioning is crucial for Newton methods: Solving the linear system in Newton methods is computationally expensive. The proposed Woodbury formula-based approach for preconditioning, using a small subset of data, makes this step significantly faster and more scalable.
- Load balancing is key to true distributed efficiency: The DiSCO-F algorithm's success hinges on its ability to keep all nodes busy, avoiding the idle time often seen with master-worker architectures. This leads to better overall resource utilization.
- The trade-off between $\tau$ and communication: While a larger $\tau$ (number of samples for preconditioning) leads to fewer communication rounds, it also increases computation time. The paper shows that a small $\tau$ (around 100) often provides the best balance for performance.
Key Results
- Reduced Communication: DiSCO-F uses approximately half the communication rounds compared to DiSCO-S.
- Faster Convergence: For datasets with more features than samples (news20, d >> n), DiSCO-F converges significantly faster in terms of elapsed time, being up to 10% of DiSCO-S.
- Improved Load Balancing: DiSCO-F demonstrates better computational balance across nodes, as illustrated by flow diagrams showing less idle time.
- Competitive Performance: DiSCO-F shows competitive or superior performance compared to other state-of-the-art distributed optimization algorithms like DANE and CoCoA+ in terms of communication rounds and elapsed time.
- Impact of $\tau$: Larger $\tau$ reduces communication rounds but increases elapsed time. $\tau=100$ was found to be optimal in their experiments.
Limitations and Future Work
- Approximation of Hessian: For datasets with a large number of features (news20), using a small subset of samples to approximate the Hessian did not yield benefits and even slowed down convergence. The paper suggests that for such datasets, more samples are needed to capture feature relationships.
- Dataset Characteristics: For datasets where the number of features is smaller than the number of samples (rcv1.test, d < n), DiSCO-F, despite fewer communications, can take longer to reach tolerance due to the larger vectors being communicated.
- Future Work: The paper suggests exploring how to further shrink the number of samples used for Hessian computation, especially for datasets where this is beneficial. They also hint at comparing the impact of different preconditioning matrices.
Summary updated