A Unified Framework for Gradient-based Clustering of Distributed Data

Aleksandar Armacki, Dragana Bajovic, Dusan Jakovetic, Soummya KararXiv 2024 · DOI

Introduction

Clustering is a fundamental tool in unsupervised learning, traditionally performed on centralized datasets. However, modern data is increasingly siloed across diverse devices and organizations due to privacy concerns, storage constraints, and bandwidth costs. This shift necessitates robust distributed clustering algorithms that can operate without sharing raw data.

This paper introduces DGC-$\mathcal{F}_\rho$, a unified framework for distributed, center-based clustering. By moving beyond the standard K-means algorithm to support a broad class of smooth convex loss functions—such as Huber and Logistic losses—the authors provide a scalable solution that achieves global consensus through a "consensus + innovation" gradient-based approach.

Distributed Network Architectures

Most existing distributed clustering methods rely on a Client-Server architecture, where a central coordinator manages local updates. While effective, this creates a single point of failure and potential communication bottlenecks. This paper focuses on the more challenging Peer-to-Peer (P2P) scenario, where users only communicate with their immediate neighbors in a network graph.

Comparison of Client-Server (a) and Peer-to-Peer (b) network topologies.

The DGC Framework

The proposed Distributed Gradient Clustering (DGC-$\mathcal{F}_\rho$) family of algorithms solves a relaxed optimization problem that balances two competing objectives:

  1. Innovation: Minimizing the local clustering loss to fit the user's specific data.
  2. Consensus: Ensuring local cluster centers align with those of neighboring users using a graph Laplacian penalty.

Unlike traditional K-means, which often relies on closed-form mean calculations (Lloyd's method), DGC uses gradient descent. This flexibility allows for the use of non-standard losses like the Huber loss, which provides robustness against outliers, or Logistic/Fair losses for handling heavy-tailed distributions. A tunable penalty parameter, $\rho$, controls the pressure for consensus; as $\rho$ increases, the network moves toward a unified global solution.

Experimental Validation

The framework was validated using both synthetic and real-world benchmarks, including Iris, MNIST, and CIFAR datasets. The experiments covered both homogeneous distributions (where all users have similar data) and heterogeneous distributions (where data classes vary across the network).

Key Results

  • Robustness to Outliers: In experiments with noisy datasets, DGC using Huber Loss (DGC-HL) successfully identified true cluster centers, whereas standard K-means was often skewed by outlier groups.
  • Competitive Accuracy: On the MNIST7 dataset, DGC-HL achieved 74.4% accuracy, slightly outperforming both centralized K-means (73.7%) and distributed ADMM-based K-means (73.9%).
  • Scalability: The method scaled effectively to a synthetic dataset of 2,000,000 samples, maintaining low per-iteration computation time.
  • Finite-Time Convergence: While cluster centers converge asymptotically, the authors proved that the actual assignment of data points to clusters (hard clustering) converges in finite time.

Insights and Future Directions

A surprising insight from the study is that distributed clustering can be more robust to poor initialization than centralized methods. Because each node starts with its own local estimate, the network effectively explores multiple starting points simultaneously, which the consensus dynamic then pulls toward a high-quality global solution.

Future work may address the communication overhead of P2P networks through compressed messaging or explore dynamic networks where nodes may join or leave the cluster during the optimization process.

Summary updated

BibTeX
@misc{armacki2024unified,
  author = {Aleksandar Armacki and Dragana Bajovic and Dusan Jakovetic and Soummya Kar},
  title = {{A Unified Framework for Gradient-based Clustering of Distributed Data}},
  year = {2024},
  eprint = {2402.01302},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2402.01302},
}
Figure