Distributed Machine Learning via Sufficient Factor Broadcasting

Pengtao Xie, Jin Kyu Kim, Yi Zhou, Qirong Ho, Abhimanu Kumar, Yaoliang Yu, Eric P. Xing · DOI

Abstract

Matrix-parametrized models, including multiclass logistic regression and sparse coding, are used in machine learning (ML) applications ranging from computer vision to computational biology. When these models are applied to large-scale ML problems starting at millions of samples and tens of thousands of classes, their parameter matrix can grow at an unexpected rate, resulting in high parameter synchronization costs that greatly slow down distributed learning. To address this issue, we propose a Sufficient Factor Broadcasting (SFB) computation model for efficient distributed learning of a large family of matrix-parameterized models, which share the following property: the parameter update computed on each data sample is a rank-1 matrix, i.e., the outer product of two "sufficient factors" (SFs). By broadcasting the SFs among worker machines and reconstructing the update matrices locally at each worker, SFB improves communication efficiency --- communication costs are linear in the parameter matrix's dimensions, rather than quadratic --- without affecting computational correctness. We present a theoretical convergence analysis of SFB, and empirically corroborate its efficiency on four different matrix-parametrized ML models.

Introduction: The Communication Bottleneck

In modern large-scale machine learning, Matrix-Parameterized Models (MPMs) are ubiquitous. These models, such as multiclass logistic regression (MLR) or distance metric learning (DML), often involve parameter matrices $W$ that scale with the number of classes and features. In real-world scenarios like Wikipedia document classification, $W$ can contain billions of entries, reaching tens of gigabytes in size.

In a distributed computing environment, the primary bottleneck for training such models is often the network rather than the computation. Standard distributed frameworks rely on synchronizing the full update matrix ($\Delta W$) across all worker nodes. When the parameter space is massive, the time spent transferring these matrices over the network far exceeds the time spent on local CPU/GPU calculations, leading to significant resource underutilization.

Sufficient Factor Broadcasting (SFB)

The core innovation of this work is the Sufficient Factor Broadcasting (SFB) model. The authors identify that for many prominent MPMs, the update $\Delta W$ generated from a single data point is a rank-1 matrix. Specifically, the update can be decomposed into the outer product of two vectors: $\Delta W = \mathbf{u}\mathbf{v}^T$. These vectors, $\mathbf{u}$ and $\mathbf{v}$, are termed "Sufficient Factors" (SFs).

Instead of transmitting the full $J \times D$ matrix, SFB transmits only the vectors $\mathbf{u}$ (size $J$) and $\mathbf{v}$ (size $D$). This reduces the communication complexity from $O(JD)$ to $O(J+D)$, effectively moving from quadratic to linear scaling relative to the matrix dimensions.

The SFB communication model where workers broadcast low-rank sufficient factors (u, v) instead of full parameter matrices.

As illustrated in the figure above, each worker computes its local SFs and broadcasts them to all other peers. Upon receiving SFs from other workers, each node reconstructs the corresponding update matrices locally and applies them to its local copy of the parameter matrix. While this adds a small amount of local computation, the trade-off is highly favorable because network communication is orders of magnitude slower than local memory and arithmetic operations.

Experimental Evaluation

The SFB model was implemented in a system called SFBcaster and evaluated using massive datasets, including ImageNet (1.2M images) and Wikipedia (2.4M documents). The experiments compared SFB against Full-Matrix Synchronization (FMS) and the popular Apache Spark framework.

The results demonstrate that SFB significantly outperforms traditional synchronization methods. On models with billions of parameters, SFB achieved a 3-4x speedup in convergence time compared to FMS. When compared to Spark v1.3.1, the SFB implementation of $L_2$-regularized MLR was approximately 9 times faster.

Runtime comparison between Spark, Full-Matrix Synchronization (FMS), and SFB across various models and scales.

The efficiency gains are most pronounced as the problem scale increases (e.g., more classes in MLR or larger latent dimensions in DML), confirming the theoretical advantage of linear communication scaling. Furthermore, SFB showed excellent scalability, maintaining near-linear speedup as the number of worker machines increased.

Conclusion and Future Directions

Sufficient Factor Broadcasting provides a powerful alternative for distributed training of large-scale matrix-parameterized models. By exploiting the low-rank nature of parameter updates, it circumvents the network bottlenecks that plague standard distributed systems.

Future work may address the memory limitations of the current approach, which requires each worker to store the full parameter matrix. Potential solutions include partitioning the matrix across machines or utilizing disk-based storage. Additionally, while SFB is highly efficient for rank-1 updates, extending its efficiency to larger mini-batch sizes (which result in higher-rank updates) and optimizing network topologies remain active areas for exploration.

Summary updated

BibTeX
@misc{xie2014distributed,
  author = {Pengtao Xie and Jin Kyu Kim and Yi Zhou and Qirong Ho and Abhimanu Kumar and Yaoliang Yu and Eric P. Xing},
  title = {{Distributed Machine Learning via Sufficient Factor Broadcasting}},
  year = {2014},
  eprint = {1409.5705},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/1409.5705},
}
Figure