Distributed Weighted Parameter Averaging for SVM Training on Big Data

Ayan Das, Raghuveer Chanda, Smriti Agrawal, Sourangshu Bhattacharya

TL;DR

This paper introduces Weighted Parameter Averaging (WPA), a novel hybrid approach for training Support Vector Machines (SVMs) on massive datasets. WPA significantly improves accuracy over standard parameter averaging, especially with a large number of data partitions, and achieves faster convergence than ADMM-based methods, making distributed SVM training more efficient and effective.

What Problem Does This Paper Address?

Training machine learning models, particularly Support Vector Machines (SVMs), on "Big Data" presents a significant challenge. Traditional methods struggle to handle the sheer volume of data, requiring distributed computing frameworks. Two common distributed training strategies are:

  1. Parameter Averaging (PA): This approach trains SVMs independently on different data partitions and then averages the resulting model parameters. It's computationally efficient per iteration but suffers from a significant drop in accuracy as the number of partitions increases. This is because averaging can lead to a less optimal overall model when partitions have vastly different data distributions.
  2. Alternating Direction Method of Multipliers (ADMM): ADMM-based methods aim for higher accuracy by enforcing consensus among parameters across partitions. While accurate and robust to the number of partitions, ADMM is often slow to converge and requires substantial communication overhead, especially when dealing with high-dimensional feature spaces.

The paper addresses the need for a distributed SVM training method that is both accurate (even with many partitions) and efficient in terms of convergence speed and communication.

Methods

The core contribution is a new approach called Weighted Parameter Averaging (WPA). Instead of simply averaging parameters from each partition with equal weight, WPA learns an optimal set of weights for combining these parameters. This is achieved by formulating a new optimization problem where the objective is to minimize the regularized loss with respect to these weights.

Key aspects of the method include:

  • Learning Weights: The problem is framed as learning a weight vector $\beta$ that optimally combines pre-computed SVM parameters $\hat{w}_m$ from each partition ($w = \sum_{m=1}^M \beta_m \hat{w}_m$).
  • Projected Space SVM: The WPA formulation is shown to be equivalent to solving an SVM problem in a "projected space," where data points are transformed by a projection matrix derived from the partition-specific SVM models.
  • Distributed ADMM for WPA (DWPA): To train WPA in a distributed manner, the authors adapt the ADMM framework. This involves a central server coordinating the learning of the weight vector $\beta$, while slave nodes compute intermediate values based on their local data partitions.
  • Accelerated Versions: The paper also proposes accelerated versions of both their DWPA and the standard ADMM-based DSVM (DSVMacc and DWPAacc) using a heuristic called overrelaxation to improve convergence speed.
  • Stability Analysis: A theoretical contribution is a novel proof demonstrating an $O(1/N)$ stability bound on the final hypothesis returned by WPA, where $N$ is the number of partitions. This bound relates to the deviation from the optimal generalization error.

Datasets

The authors evaluated their methods on:

  • Toy Dataset: A synthetically generated dataset from a 2D Gaussian mixture model, specifically designed to highlight the impact of data imbalance across partitions.
  • Real-World Datasets:
    • epsilon
    • gisette
    • real-sim

These datasets were chosen to represent various ranges of feature counts and sparsity, and were obtained from sources like LIBSVM.

Key Insights and Ideas

  • The Problem with Simple Averaging: The toy dataset experiments visually demonstrate why simple parameter averaging fails with imbalanced partitions. When a partition lacks data from a specific class (e.g., an "upper blob"), its learned hyperplane can be skewed, and averaging these skewed hyperplanes leads to a poor overall model.
  • Weights are Key: WPA mitigates this by learning weights. Hyperplanes that are less representative or potentially skewed due to data imbalance receive lower weights, leading to a more robust and accurate final model.
  • Projected Space Advantage: The connection to SVM in a projected space suggests that WPA effectively reduces the information loss that can occur when data is simply averaged without considering the structure learned by individual partition models.
  • Faster Convergence than ADMM: Empirically, DWPA converges much faster than traditional ADMM-based distributed SVMs, making it more practical for large-scale applications.
  • Theoretical Stability: The $O(1/N)$ stability bound provides theoretical backing for WPA's robustness and its ability to maintain accuracy as the number of partitions grows.

Key Results

  • Accuracy Improvement: WPA significantly outperforms standard Parameter Averaging (PA) in terms of accuracy, especially as the number of partitions increases. For instance, on the toy dataset, PA's accuracy drops sharply with more partitions, while WPA maintains higher accuracy. This trend is also observed on real-world datasets.
  • Convergence Speed: DWPA (and its accelerated version DWPAacc) converges much faster than ADMM-based methods (DSVM and DSVMacc). Figure 3 shows DWPA reaching high test accuracies in fewer iterations.
  • Reduced Bias: Table 2 shows that WPA exhibits a much lower mean bias compared to PA, indicating a better approximation of the true underlying model.
  • Efficiency: While not explicitly quantified in terms of total training time, the paper notes that DWPA requires less network bandwidth than DSVM when feature dimensions are large compared to the number of partitions. Table 3 shows DWPA's per-iteration time is generally lower than DSVM's.

Limitations and Future Work

  • Limitations:
    • The paper acknowledges that while WPA is more accurate than PA, it still performs slightly worse than a single, non-distributed SVM trained on the entire dataset.
  • The theoretical stability bound is $O(1/N)$, which, while better than some methods, might still be a concern for extremely large numbers of partitions.
  • Future Work:
    • The authors suggest that the techniques presented are applicable to other distributed regularized risk minimization problems beyond SVMs.
  • The paper implies that further exploration of the "projected space" interpretation could lead to additional insights.

Summary updated

BibTeX
@inproceedings{das2017distributed,
  author = {Ayan Das and Raghuveer Chanda and Smriti Agrawal and Sourangshu Bhattacharya},
  title = {{Distributed Weighted Parameter Averaging for SVM Training on Big Data}},
  booktitle = {Workshops @ AAAI},
  year = {2017},
  url = {https://openreview.net/forum?id=rkZlykbuWr},
}
Figure