In the world of big data, we often find ourselves in a bit of a pickle: our datasets are too large for one machine, and moving that data to a central server is often impossible due to privacy laws or bandwidth constraints. This leads us to decentralized learning, where a network of agents (like a fleet of autonomous cars or a group of hospitals) trains a model by only talking to their immediate neighbors.
A new paper from ICML 2020, titled "Decentralised Learning with Random Features and Distributed Gradient Descent," offers a clever way to make this process faster and more efficient without sacrificing accuracy. By combining Random Features with Distributed Gradient Descent, the authors solve kernel regression across a network. Their key discovery is that if each agent has enough local data, the network can achieve a "linear speedup"—meaning it learns $n$ times faster with $n$ machines—regardless of how poorly the network is connected.
The Centralization Problem in Kernel Methods
Kernel methods (like Support Vector Machines or Kernel Regression) are powerful because they can model complex, non-linear relationships. However, they have a "centralization" problem. Traditionally, the Representer Theorem tells us that the best model is a weighted sum of all training points. In a decentralized network, no single agent sees all the data, making it incredibly difficult for them to agree on a single global model without a central "fusion" hub.
Previous attempts to decentralize kernel methods often required complex optimization tricks (like ADMM) or resulted in algorithms where the learning speed was bottlenecked by the network's topology. If your network was a "long chain" instead of a "well-connected mesh," your learning would crawl to a halt.
A Two-Pronged Methodological Approach
The authors propose a simple, two-pronged approach to overcome these bottlenecks:
- Random Features (RF): Instead of using the "Kernel Trick" (which is hard to distribute), they use Random Features to map data into a common, finite-dimensional space. This gives every agent a "common language" or parameterization. Now, instead of sharing complex kernel functions, they just share a vector of weights ($\omega$).
- Distributed Gradient Descent (DGD) with Implicit Regularization: Agents perform a local gradient step on their own data and then average their model weights with their neighbors. Instead of adding a penalty term (explicit regularization), they control the model's complexity by tuning the step size and number of iterations (early stopping).
By combining these, the "Decentralized Kernel Regression" problem turns into a much simpler decentralized linear regression problem in the RF space.
Key Insights and Empirical Validation
The authors evaluated their approach using the SUSY Dataset, a standard high-energy physics dataset used to classify whether a signal represents a new particle or background noise. They tested the algorithm on Cycle graphs (poorly connected) and Grid graphs (better connected) with varying numbers of agents ($n = 25, 49, 100$).
Topology Independence and Linear Speedup
A major "aha moment" of the paper is demonstrating topology independence. In most decentralized optimization, the time to reach a solution depends on the "spectral gap" (a measure of how well-connected the network is). The authors show that if the number of local samples ($m$) is large enough, the statistical error dominates the network error. In this regime, even a slow-moving "cycle" network can achieve the same optimal learning rate as a single giant machine.
They prove that the algorithm provides a linear improvement in memory cost and, under certain conditions, a linear speedup in computational runtime for any network topology.
Empirical Results
Simulations showed that once agents held enough data (around $10^3$ total samples in their tests), the classification error for decentralized agents aligned perfectly with a single-machine model.
Furthermore, the algorithm achieves the "minimax optimal" statistical rate—essentially the best possible theoretical performance—relative to the total number of samples in the entire network ($nm$). By using RFs, the memory footprint per agent is reduced by a factor of $n$ compared to a single machine trying to process the whole dataset.
Limitations and Future Work
While promising, the approach has a few limitations that pave the way for future research:
- Homogeneous Data: The paper assumes all agents' data is sampled from the same distribution (IID). In many real-world cases (like mobile phones), data is "non-IID"—one person's photos look very different from another's. Extending this to the heterogeneous setting is a major next step.
- Constant Step Size: The current theory relies on specific tuning of the step size and iterations. The authors suggest that exploring Stochastic Gradient Descent (SGD) variants, where data is processed in small batches, would be a natural and practical extension.
- Communication Costs: While the paper proves a computational speedup, it assumes communication is relatively cheap. In high-latency networks, the "cost" of averaging weights might still be a significant factor.
Summary updated