Effective Distributed Learning with Random Features: Improved Bounds and Algorithms

Yong Liu, Jiankun Liu, Shuqiang Wang

Introduction

Kernel Ridge Regression (KRR) is a powerful tool for non-parametric learning, but it faces a massive "scalability wall." Its computational complexity grows cubically ($O(n^3)$) with the number of data points, and its memory requirements grow quadratically ($O(n^2)$). To scale KRR, researchers typically combine two techniques: Distributed Learning (splitting data across $m$ local machines) and Random Features (approximating the kernel function to map data into a lower-dimensional space).

While combining these techniques into Distributed Kernel Ridge Regression with Random Features (DKRR-RF) is intuitive, existing theory suggested a strict restriction on the number of machines ($m$). To guarantee optimal accuracy, $m$ often had to be kept very small—sometimes even a constant—defeating the purpose of massive distribution. This paper significantly improves the theoretical and practical scalability of DKRR-RF, proving that we can use a much larger number of local machines than previously thought possible while maintaining optimal statistical accuracy.

Methods: Introducing Communication to DKRR-RF

The authors analyze the standard DKRR-RF framework and propose an enhanced version called DKRR-RF-CM (Distributed KRR with Random Features and Communications).

In standard DKRR-RF, data is partitioned into $m$ subsets. Each machine solves a local KRR problem using random features, and the final model is simply the average of these local solutions.

The innovation in DKRR-RF-CM is a communication-based strategy inspired by Newton-Raphson iterations. Instead of a single average, the global machine and local machines engage in $p$ rounds of communication:

  1. Local machines compute gradients based on their data and current global parameters.
  2. The global machine aggregates these gradients to update the model.

Crucially, this strategy only communicates gradients and model parameters—not raw data. This preserves data privacy and keeps communication overhead low ($O(pM)$, where $M$ is the number of random features).

Key Insights and Theoretical Improvements

The paper introduces several major theoretical breakthroughs for distributed learning:

  • Relaxing the Machine Limit: The authors prove that for standard DKRR-RF, the number of machines $m$ can reach $\Omega(\sqrt{|D|})$ in expectation while maintaining optimal accuracy. This is a significant jump from previous bounds that required $m$ to be a constant.
  • Generalization in Probability: Most existing work provides bounds "in expectation" (average performance over many trials). This paper derives bounds "in probability," which better captures the performance of a single training run—the scenario most relevant to practitioners.
  • Efficiency Gains: The proposed method achieves optimal accuracy with only $O(|D|)$ memory and $O(|D|^{1.5})$ time, making it more efficient than several state-of-the-art distributed KRR variants.
Comparison of theoretical bounds for various KRR methods

As shown in the table above, the new communication strategy (DKRR-RF-CM) explicitly allows the number of machines to grow even further. As the number of communication rounds $p$ increases, the allowable number of partitions $m$ approaches the theoretical limit of $\sqrt{|D|}$ even for high-probability bounds.

Empirical Results

The authors validated their theoretical findings using both simulated data (a spline kernel of order $q$) and six real-world datasets from the LIBSVM repository (including mnist, a8a, and space-ca).

The experiments confirmed the theoretical optimality of the approach: DKRR-RF can achieve the same statistical accuracy as exact KRR while being significantly faster. Furthermore, the communication strategy proved highly effective. Across all datasets, DKRR-RF-CM consistently outperformed the standard non-communicative DKRR-RF.

MSE vs Number of Blocks for simulated data showing monotonic improvement with communication rounds

The results demonstrated a clear monotonic improvement: as the number of communication iterations ($p$, denoted as #2, #4, #8 in the figure) increased, the model's performance improved. It could handle a larger number of partitions (blocks) without losing accuracy, directly validating the paper's theoretical claims.

Limitations and Future Work

While the paper provides a strong theoretical foundation and empirical proof, the authors note several paths for future exploration:

  • Linear Time Complexity: Combining their communication strategy with algorithms like Preconditioned Conjugate Gradient (PCG) could potentially push the total time complexity down to linear ($O(|D|)$).
  • Asynchronous Learning: The current model is synchronous; moving to an asynchronous distributed framework could further reduce bottlenecks in real-world clusters.
  • Beyond Quadratic Loss: The current analysis is specific to KRR (quadratic loss). Extending these improved bounds to other loss functions (like those used in SVM or Logistic Regression) remains an open challenge.

Summary updated

BibTeX
@inproceedings{liu2021effective,
  author = {Yong Liu and Jiankun Liu and Shuqiang Wang},
  title = {{Effective Distributed Learning with Random Features: Improved Bounds and Algorithms}},
  booktitle = {International Conference on Learning Representations},
  year = {2021},
}
Figure